* language.h (enum exp_opcode): Remove commented out forward
[binutils-gdb.git] / gdb / ChangeLog
1 2007-12-19 Joel Brobecker <brobecker@adacore.com>
2
3 * language.h (enum exp_opcode): Remove commented out forward
4 declaration.
5 (op_error): Delete declaration.
6
7 2007-12-19 Joel Brobecker <brobecker@adacore.com>
8
9 * infrun.c (handle_inferior_event): Fix spelling in comment.
10
11 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
12
13 * minsyms.c (lookup_minimal_symbol): Also check the separate
14 debug objfile.
15 (lookup_minimal_symbol_text): Likewise.
16 (lookup_minimal_symbol_solib_trampoline): Likewise.
17 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
18
19 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
20
21 * mi/mi-main.c (mi_cmd_list_features): Announce
22 the 'pending-breakpoints' feature.
23
24 2007-12-17 Jim Blandy <jimb@codesourcery.com>
25
26 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
27 offsets obtained from DW_AT_data_member_location before recording
28 them in FIELD_BITPOS (*fp).
29
30 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
31
32 2007-12-17 Nigel Stephens <nigel@mips.com>
33 Maciej W. Rozycki <macro@mips.com>
34
35 * utils.c (string_to_core_addr): If the executable format
36 indicates that addresses should be sign-extended and there are
37 only 8 hex digits in the address, then do so.
38 * Makefile.in (utils.o): Depend on $(gdbcore_h).
39
40 2007-12-17 Chris Dearman <chris@mips.com>
41
42 * symfile.c (init_filename_language_table): Recognise .sx as
43 an assembler file.
44
45 2007-12-17 Joel Brobecker <brobecker@adacore.com>
46
47 * language.h (enum exp_opcode): Comment out this declaration,
48 undoing the previous change.
49
50 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
51
52 * breakpoint.c: (watch_command_1): Parse additional optional
53 "thread" parameter to the watchpoint command and set the
54 "thread" member of the breakpoint struct.
55
56 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
57
58 * breakpoint.c (bpstat_stop_status): Check an additional
59 condition before evaluating an expression value.
60
61 2007-12-17 Joel Brobecker <brobecker@adacore.com>
62
63 * language.h (enum exp_opcode): Add forward declaration.
64 (language_string_char_type, language_lookup_primitive_type_by_name):
65 Move declaration past declaration of language_defn.
66
67 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
68 Joseph Myers <joseph@codesourcery.com>
69
70 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
71 *-*-solaris2.1[[0-9]].
72 * configure: Regenerate.
73 * procfs.c (proc_set_current_signal): If redelivering a signal,
74 reuse the current siginfo if possible.
75
76 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
77
78 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
79 (f_type_print_base): Output the type names directly for real and
80 complex types.
81
82 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
83
84 * breakpoint.c (bpstat_have_active_hw_watchpoints):
85 Remove
86 (bpstat_stop_status): Remove unused variable
87 real_breakpoint.
88 * breakpoint.h (bpstat_have_active_hw_watchpoints):
89 Remove prototype.
90
91 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
92
93 * target.h (target_pid_or_tid_to_str): Remove.
94 * infrun.c (handle_inferior_event):
95 Use target_pid_to_str instead of
96 target_pid_or_tid_to_str.
97 (normal_stop): Likewise.
98
99 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
100
101 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
102 DWARF3 equivalent `DW_AT_bit_stride'.
103 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
104
105 2007-12-16 Joel Brobecker <brobecker@adacore.com>
106
107 * mi/mi-main.c: Remove code that was commented out in 1999.
108
109 2007-12-16 Joel Brobecker <brobecker@adacore.com>
110
111 * expression.h (parse_expression_in_context): Delete prototype.
112 * parse.c (parse_expression_in_context): Delete.
113
114 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
115
116 Add support for pending breakpoints in MI.
117 * gdb.h (gdb_breakpoint): Add parameter pending.
118 * breakpoint.c (gdb_breakpoint): Add parameter pending.
119 * mi/mi-cmd-break.c (mi_break_insert): Change
120 comment to refer to manual. Add support for
121 the -f flag, for pending breakpoint.
122
123 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
124
125 * breakpoint.c (break_command_really): New, copied
126 from break_command_1. New parameters COND_STRING, THREAD
127 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
128 The previous FLAG parameter split into TEMPFLAG and
129 HARDWAREFLAG.
130 When PARSE_CONDITION_AND_THREAD is not set, duplicate
131 the passed condition string.
132 (struct captured_breakpoint_args): Remove
133 (do_captured_breakpoint): Remove.
134 (break_command_1): Relay to break_command_really.
135 (gdb_breakpoint): Relay to break_command_really.
136
137 2007-12-13 Michael Snyder <msnyder@specifix.com>
138
139 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
140
141 2007-12-13 Jim Blandy <jimb@codesourcery.com>
142
143 * dwarf2read.c (attr_form_is_constant): New function.
144 (dwarf2_add_field): Use it and attr_form_is_section_offset to
145 recognize DW_AT_data_member_location attributes. Use
146 dwarf2_get_attr_constant_value when the attribute is a constant.
147
148 * dwarf2read.c (attr_form_is_section_offset): New function.
149 (dwarf_add_member_fn, read_common_block, read_partial_die)
150 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
151
152 2007-12-12 Jim Blandy <jimb@codesourcery.com>
153
154 Remove unused support for target-based exception catching.
155 * target.h (struct target_ops): Delete
156 to_enable_exception_callback and to_get_current_exception_event
157 members.
158 (target_enable_exception_callback)
159 (target_get_current_exception_event): Delete macros.
160 * target.c (update_current_target): Remove code to inherit and
161 default those members.
162 (debug_to_enable_exception_callback)
163 (debug_to_get_current_exception_event): Delete functions.
164 (setup_target_debug): Don't install those methods.
165 * inf-child.c (inf_child_enable_exception_callback)
166 (inf_child_get_current_exception_event): Delete dummy functions.
167 (inf_child_target): Don't install them in the target vector.
168 * breakpoint.h (enum bptype): Delete bp_catch_catch,
169 bp_catch_throw.
170 * breakpoint.c (cover_target_enable_exception_callback)
171 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
172 functions.
173 (insert_bp_location, update_breakpoints_after_exec)
174 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
175 (bpstat_stop_status, bpstat_what)
176 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
177 (user_settable_breakpoint, allocate_bp_location)
178 (disable_watchpoints_before_interactive_call_start)
179 (enable_watchpoints_after_interactive_call_stop, mention)
180 (delete_breakpoint, breakpoint_re_set_one, disable_command)
181 (enable_command): Remove exception catchpoint cases.
182 (catch_exception_command_1): Don't try target-based exception
183 handling.
184 * stack.c (catch_info): Call print_frame_label_vars
185 unconditionally.
186
187 2007-12-12 Nigel Stephens <nigel@mips.com>
188 Maciej W. Rozycki <macro@mips.com>
189
190 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
191 of setting deprecated_register_valid array directly.
192
193 2007-12-07 Maciej W. Rozycki <macro@mips.com>
194
195 * mips-tdep.c (extended_offset): Fix a comment.
196
197 2007-12-07 Maciej W. Rozycki <macro@mips.com>
198
199 * target.c (update_current_target): Inherit to_log_command.
200 * target.h (struct target_ops). Add to_log_command.
201 (target_log_command): New macro.
202 * top.c (execute_command): Call target_log_command() rather than
203 serial_log_command().
204 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
205 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
206 * remote-mips.c (_initialize_remote_mips): Likewise.
207 * remote.c (init_remote_ops): Likewise.
208
209 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
210
211 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
212 (handle_inferior_event): Clear stop_stack_dummy earlier.
213
214 2007-12-06 Jim Blandy <jimb@codesourcery.com>
215
216 * addrmap.c (addrmap_splay_tree_remove): New function.
217 (addrmap_mutable_set_empty): Use it.
218
219 * addrmap.c, addrmap.h: Update to GPLv3.
220
221 * addrmap.c (struct addrmap): Make the referenced function table
222 const.
223 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
224 Don't use designated initializers.
225
226 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
227 (addrmap_mutable_relocate): Use internal_error, not abort.
228
229 * NEWS: Mention support for non-contiguous lexical blocks and
230 function bodies.
231
232 2007-12-06 Markus Deuling <deuling@de.ibm.com>
233
234 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
235 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
236 gdbarch as parameter.
237 * gdbarch.{c,h}: Regenerate.
238
239 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
240 Replace current_gdbarch by gdbarch.
241 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
242 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
243 (rs6000_dwarf2_reg_to_regnum): Likewise.
244 * mips-tdep.c (mips_stab_reg_to_regnum)
245 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
246 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
247 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
248 * i386-tdep.c (i386_dbx_reg_to_regnum)
249 (i386_svr4_reg_to_regnum): Likewise
250 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
251 (h8300_dbg_reg_to_regnum): Likewise.
252 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
253 * arch-utils.c (no_op_reg_to_regnum): Likewise.
254 * arch-utils.h (no_op_reg_to_regnum): Likewise.
255 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
256 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
257 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
258 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
259 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
260
261 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
262
263 Localize infrun use of remove_breakpoints.
264 * infrun.c (handle_inferior_event): Remove
265 calls to remove_breakpoints, except where needed to
266 communicate change of breakpoint locations to inferior.
267 (keep_going): If steppping over breakpoint, remove
268 breakpoints.
269
270 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
271
272 Clarify infrun variable naming.
273 * infrun.c (trap_expected): Rename
274 to stepping_over_breakpoint. Document.
275 (stepping_past_breakpoint): Remove.
276 (stepping_past_breakpoint_ptdi): Renamed
277 to deferred_step_ptid.
278 (struct execution_control_state): Rename
279 the another_trap field to stepping_over_breakpoint.
280 (struct inferior_status): Rename the trap_expected
281 field to stepping_over_breakpoint.
282 (clear_proceed_status, proceed)
283 (init_execution_control_state, context_switch)
284 (handle_inferior_event, currently_stepping)
285 (keep_going, save_inferior_status)
286 (restore_inferior_status, prepare_to_proceed): Adjust.
287 * gdbthread.h (struct thread_info): Rename the
288 trap_expected field to stepping_over_breakpoint.
289 * thread.c (load_infrun_state, save_infrun_state):
290 Adjust.
291
292 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
293
294 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
295 Add "gdb_stdint.h" dependency required for uintptr_t type use.
296 (handle_output_debug_string): Use uintptr_t typecast.
297 (handle_exception): Ditto.
298 (win32_xfer_memory): Ditto.
299 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
300
301 2007-12-04 Jim Blandy <jimb@codesourcery.com>
302
303 Support lexical blocks and function bodies that occupy
304 non-contiguous address ranges.
305 * addrmap.c, addrmap.h: New files.
306 * block.h (struct addrmap): New forward declaration.
307 (struct blockvector): New member, 'map'.
308 (BLOCKVECTOR_MAP): New accessor macro.
309 * block.c: #include "addrmap.h"
310 (blockvector_for_pc_sect): If the blockvector we've found has
311 an address map, use it instead of searching the blocks.
312 * buildsym.c: #include "addrmap.h"
313 (pending_addrmap_obstack, pending_addrmap_interesting): New static
314 variables.
315 (really_free_pendings): If we have a pending addrmap, free it too.
316 (record_block_range): New function.
317 (make_blockvector): If we have an interesting pending addrmap,
318 record it in the new blockvector.
319 (start_symtab, buildsym_init): Assert that there is no pending
320 addrmap now; we should have cleaned up any addrmaps we'd built
321 previously.
322 (end_symtab): If there is a pending addrmap left over that didn't
323 get included in the blockvector, free it.
324 * buildsym.h (struct addrmap): New forward declaration.
325 (record_block_range): New prototype.
326 * objfiles.c: #include "addrmap.h".
327 (objfile_relocate): Relocate the blockvector's address map, if
328 present.
329 * dwarf2read.c (dwarf2_record_block_ranges): New function.
330 (read_func_scope, read_lexical_block_scope): Call it.
331 * Makefile.in (SFILES): Add addrmap.c.
332 (addrmap_h): New header dependency variable.
333 (COMMON_OBS): Add addrmap.o.
334 (addrmap.o): New rule.l
335 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
336
337 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
338 pointer to the block, not its index in the blockvector.
339 (block_for_pc_sect): Use the returned block, instead of looking it
340 up ourselves.
341 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
342 declarations.
343 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
344 looking it up ourselves.
345 * stack.c (print_frame_label_vars): Disable function, which
346 depends on the block's index.
347
348 * buildsym.c (finish_block): Return the block we've built.
349 * buildsym.h (finish_block): Update prototype.
350
351 * defs.h (CORE_ADDR_MAX): New constant.
352
353 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
354
355 * coffread.c (decode_type): Use builtin_type_int32 instead
356 of FT_INTEGER fundamental type for array range index type.
357 (decode_base_type): Use builtin types of current_gdbarch
358 instead of fundamental types.
359
360 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
361 (read_file_scope): Do not initialize ftypes member.
362 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
363 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
364 fundamental type for array range index type.
365 (read_tag_string_type): Likewise for string range index type.
366 Also, do not overwrite FT_CHAR type with new string type.
367 (read_base_type): If DW_AT_name is missing, create unnamed type
368 with given properties instead of looking for a fundamental type.
369 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
370 DW_ATE_complex_float types.
371 (read_subrange_type): Create new type to represent missing
372 DW_AT_type instead of looking for a fundamental type.
373 (die_type): Use builtin type to represent "void" instead of
374 looking for a fundamental type.
375
376 * stabsread.c (define_symbol): Use builtin types to represent
377 'r' and 'i' floating-point and integer constants.
378
379 * gdbtypes.c (lookup_fundamental_type): Remove.
380 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
381 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
382 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
383 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
384 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
385 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
386 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
387 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
388 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
389 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
390 * objfiles.c (struct objfile): Remove fundamental_types member.
391 * symfile.c (reread_symbols): Do not clear fundamental_types.
392
393 * language.h (struct language_defn): Remove la_fund_type member.
394 (create_fundamental_type): Remove.
395 * language.c (unk_lang_create_fundamental_type): Remove.
396 (unknown_language_defn, auto_language_defn,
397 local_language_defn): Adapt initializer.
398 * ada-lang.c (ada_create_fundamental_type): Remove.
399 (ada_language_defn): Adapt initializer.
400 * c-lang.h (c_create_fundamental_type): Remove prototype.
401 * c-lang.c (c_create_fundamental_type): Remove.
402 (c_language_defn, cplus_language_defn, asm_language_defn,
403 minimal_language_defn): Adapt initializer.
404 * f-lang.c (f_create_fundamental_type): Remove.
405 (f_language_defn): Adapt initializer.
406 * jv-lang.c (java_create_fundamental_type): Remove.
407 (java_language_defn): Adapt initializer.
408 * m2-lang.c (m2_create_fundamental_type): Remove.
409 (m2_language_defn): Adapt initializer.
410 * objc-lang.c (objc_create_fundamental_type): Remove.
411 (objc_language_defn): Adapt initializer.
412 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
413 * p-lang.c (pascal_create_fundamental_type): Remove.
414 (pascal_language_defn): Adapt initializer.
415 * scm-lang.c (scm_language_defn): Adapt initializer.
416
417 2007-12-04 Maciej W. Rozycki <macro@mips.com>
418
419 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
420 * features/mips64-cpu.xml: Likewise.
421 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
422 * features/mips64-fpu.xml: Likewise.
423 * features/mips-linux.c: Regenerate.
424 * features/mips64-linux.c: Regenerate.
425
426 2007-12-04 Maciej W. Rozycki <macro@mips.com>
427
428 * target.h (target_find_new_threads): Fix definition.
429
430 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
431
432 * win32-nat.c (win32_resume): Set the trace bit
433 in the thread identified by inferior_ptid.
434
435
436 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
437
438 * win32-nat.c (open_process_used): New static variable.
439 (win32_init_thread_list): Remove call to CloseHandle for thread.
440 (win32_delete_thread): Ditto.
441 (fake_create_process): Set open_process_used if OpenProcess call is
442 successful.
443 (get_win32_debug_event): Do not close process handle.
444 (do_initial_win32_stuff): Set open_process_used to zero.
445 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
446 open_process_used is set.
447 (win32_kill_inferior): Do not close process and main_thread handles.
448
449 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
450
451 * remote.c (remote_cmdlist): New variable.
452 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
453 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
454 (remote_buffer_add_string, remote_buffer_add_bytes)
455 (remote_buffer_add_int, remote_hostio_parse_result)
456 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
457 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
458 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
459 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
460 (remote_file_delete, remote_put_command, remote_get_command)
461 (remote_delete_command, remote_command): New functions.
462 (_initialize_remote): Register new packets and commands.
463 * Makefile.in (gdb_fileio_h): New variable.
464 (remote.o): Update.
465 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
466 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
467 (mi-cmd-target.o): New rule.
468 * mi/mi-cmd-target.c: New file.
469 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
470 and target-file-put.
471 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
472 (mi_cmd_target_file_delete): Declare.
473 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
474 Declare.
475 * NEWS: Describe new file transfer support.
476
477 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
478
479 * infrun.c (handle_inferior_event): Don't
480 ignore beakpoints if trap_expected is set.
481
482 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
483
484 Make insert_breakpoints return void.
485 * breakpoint.h (insert_breakpoints): Change
486 return type to void.
487 * breakpoint.c (insert_breakpoints): Change
488 return type to void. Rename local return_val
489 variable to error.
490 * infrun.c (keep_going): Instead of checking
491 return value from insert_breakpoints, catch exception.
492
493 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
494
495 Stop infrun from tracking breakpoint insertion status.
496
497 The checks of breakpoints_inserted before calling
498 remove_breakpoints are removed, as remove_breakpoint
499 won't touch uninserted breakpoints. In a number of places,
500 we're interested if a breakpoint is inserted at particular
501 PC, and we now use breakpoint_inserted_here_p. In a few
502 places, insert_breakpoints can be called unconditionally,
503 since it won't try to insert already inserted breakpoint.
504
505 * breakpoint.h (regular_breakpoint_inserted_here_p): New
506 declaration.
507 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
508 (breakpoint_inserted_here_p): Use
509 regular_breakpoint_inserted_here_p.
510 * infrun.c (breakpoints_inserted): Remove.
511 (resume): Don't check for breakpoints_inserted before
512 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
513 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
514 (handle_inferior_event): Don't use breakpoints_inserted.
515 Use breakpoints_meant_to_be_inserted and
516 breakpoints_inserted_here_p.
517 (insert_step_resume_breakpoint_at_sal, keep_going): Use
518 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
519 (normal_stop): Don't check for breakpoints_inserted. Don't
520 set breakpoints_inserted.
521 (keep_going): Don't check for breakpoints_inserted.
522 (insert_step_resume_breakpoint_at_sal): Don't insert
523 breakpoints
524
525 2007-11-28 Jim Blandy <jimb@codesourcery.com>
526
527 * breakpoint.c (watch_command_1): When the watchpoint isn't local
528 to any frame, initialize watchpoint_frame using null_frame_id, not
529 a memset.
530
531 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
532
533 * infrun.c (resume): Set right thread even if
534 stepping over breakpoint using software single step.
535
536 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
537
538 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
539 (mi_print_value_p): Guard against type = NULL.
540
541 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
542
543 * dfp.c (decimal_from_string): Remove superfluous newline from
544 error string.
545 (decimal_to_string): Likewise.
546 * printcmd.c (printf_command): Change string buffer to use
547 MAX_DECIMAL_STRING constant.
548 * value.c (value_from_decfloat): Likewise.
549
550 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
551
552 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
553 64-bit CORE_ADDR and BFD support, move them to ...
554 (ALL_64_TARGET_OBS): ... this new variable.
555 * configure.ac: Check for --enable-64-bit-bfd option. Only add
556 64-bit targets with --enable-targets=all if BFD supports 64-bit.
557 * configure: Regenerate.
558
559 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
560 all elf32-i386 executables, only cygwin core files.
561
562 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
563
564 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
565 code with its variables OBJFILE, CU_HEADER and OBFD into ...
566 (dwarf2_ranges_read): ... a new function.
567 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
568
569 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
570
571 * win32-nat.c (DR6_CLEAR_VALUE): New define.
572 (thread_info_struct): Rename suspend_count to suspended, to be
573 used as a flag.
574 (thread_rec): Only suspend the thread if it wasn't suspended by
575 gdb before. Warn if suspending failed.
576 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
577 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
578 `suspended' flag. Do ContinueDebugEvent after resuming the
579 suspended threads, not before. Set threads' contexts before
580 resuming them, not after.
581 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
582
583 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
584
585 * breakpoint.c (insert_breakpoints)
586 (insert_bp_location): Remove stale comments.
587
588 2007-11-23 Maciej W. Rozycki <macro@mips.com>
589
590 * mips-linux-tdep.h: Fix some formatting.
591
592 2007-11-21 Markus Deuling <deuling@de.ibm.com>
593
594 * stack.c (print_args_stub): Use get_frame_arch to get at the current
595 architecture and replace current_gdbarch.
596 (frame_info): Likewise.
597
598 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
599
600 * varobj.c (c_variable_editable, cplus_variable_editable)
601 (java_variable_editable, variable_editable): Delete.
602 (varobj_editable_p): Replace above functions with one language
603 independent function. Check for an lvalue.
604 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
605 (struct language_specific): Delete variable_editable field.
606
607 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
608
609 * varobj.h: Add extern for varobj_editable_p.
610
611 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
612
613 Remove unused breakpoint fields.
614 * breakpoint.h (struct breakpoint): Remove
615 from_tty and flag fields.
616 * breakpoint.c (break_command_1): Don't set
617 from_tty and flag field set of breakpoint.
618 (create_ada_exception_breakpoint): Don't set
619 the from_tty field.
620
621 2007-11-20 David Ung <davidu@mips.com>
622 Maciej W. Rozycki <macro@mips.com>
623
624 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
625 instruction.
626
627 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
628
629 * infrun.c (resume): Clarify logic that
630 decides if a single thread must be resumed. Add
631 comments.
632
633 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
634
635 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
636 Make static.
637
638 2007-11-19 Markus Deuling <deuling@de.ibm.com>
639
640 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
641 * gdbarch.{c,h}: Regenerate.
642
643 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
644 * score-tdep.c (score_register_sim_regno): Likewise.
645 * sim-regno.h (one2one_register_sim_regno): Likewise.
646
647 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
648 Replace current_gdbarch by gdbarch.
649 * sh-tdep.c (sh_sh2a_register_sim_regno)
650 (sh_dsp_register_sim_regno): Likewise.
651 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
652 * mips-tdep.c (mips_register_sim_regno): Likewise.
653 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
654 * frv-tdep.c (frv_register_sim_regno): Likewise.
655 * arm-tdep.c (arm_register_sim_regno): Likewise.
656 * remote-sim.c (one2one_register_sim_regno): Likewise.
657
658 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
659
660 * configure.ac (--enable-targets): New configure option.
661 Collect gdb_target_obs of multiple targets into TARGET_OBS.
662 Call configure.tgt multiple times, using $targ as operand.
663 * configure.tgt: Operate on $targ instead of $target.
664 * configure: Regenerate.
665 * Makefile.in (ALL_TARGET_OBS): Define.
666
667 * NEWS: Mention --enable-targets option.
668
669 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
670
671 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
672 current architecture is not MIPS.
673
674 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
675
676 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
677 to construct error message if no argument was supplied.
678
679 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
680
681 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
682 (i386nbsd_aout_regset_from_core_section): Likewise.
683 (i386nbsd_aout_init_abi): Likewise.
684 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
685
686 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
687 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
688
689 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
690
691 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
692 (amd64fbsd_sigtramp_end_addr): Likewise.
693
694 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
695 (iq2000_address_to_pointer): Likewise.
696 (iq2000_frame_prev_register): Likewise.
697 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
698 instead of regcache_cooked_read into CORE_ADDR variable.
699 (iq2000_return_value): Fix argument types.
700
701 * m32r-rom.c (m32r_load_section): Fix printf argument type.
702 (m32r_load): Likewise.
703
704 * m68kbsd-tdep.c: Include "gdbtypes.h".
705 * Makefile.in: Update dependencies.
706
707 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
708
709 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
710 lmo->l_addr_size element.
711
712 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
713 (m32r_insert_breakpoint): Likewise.
714 (m32r_remove_breakpoint): Likewise.
715 (m32r_insert_watchpoint): Likewise.
716 (m32r_remove_watchpoint): Likewise.
717 (m32r_load): Fix printf argument type.
718
719 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
720 argument type.
721 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
722 (xtensa_frame_prev_register): Likewise.
723 (xtensa_push_dummy_call): Likewise.
724
725 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
726
727 * config/alpha/alpha-linux.mt: Remove file.
728 * config/alpha/alpha.mt: Remove file.
729 * config/alpha/alpha-osf1.mt: Remove file.
730 * config/alpha/fbsd.mt: Remove file.
731 * config/alpha/nbsd.mt: Remove file.
732 * config/alpha/obsd.mt: Remove file.
733 * config/arm/embed.mt: Remove file.
734 * config/arm/linux.mt: Remove file.
735 * config/arm/nbsd.mt: Remove file.
736 * config/arm/obsd.mt: Remove file.
737 * config/arm/wince.mt: Remove file.
738 * config/avr/avr.mt: Remove file.
739 * config/cris/cris.mt: Remove file.
740 * config/frv/frv.mt: Remove file.
741 * config/h8300/h8300.mt: Remove file.
742 * config/i386/cygwin.mt: Remove file.
743 * config/i386/fbsd64.mt: Remove file.
744 * config/i386/fbsd.mt: Remove file.
745 * config/i386/i386gnu.mt: Remove file.
746 * config/i386/i386.mt: Remove file.
747 * config/i386/i386sol2.mt: Remove file.
748 * config/i386/linux64.mt: Remove file.
749 * config/i386/linux.mt: Remove file.
750 * config/i386/mingw.mt: Remove file.
751 * config/i386/nbsd64.mt: Remove file.
752 * config/i386/nbsd.mt: Remove file.
753 * config/i386/nto.mt: Remove file.
754 * config/i386/obsd64.mt: Remove file.
755 * config/i386/obsd.mt: Remove file.
756 * config/i386/sol2-64.mt: Remove file.
757 * config/ia64/ia64.mt: Remove file.
758 * config/ia64/linux.mt: Remove file.
759 * config/iq2000/iq2000.mt: Remove file.
760 * config/m32c/m32c.mt: Remove file.
761 * config/m32r/linux.mt: Remove file.
762 * config/m32r/m32r.mt: Remove file.
763 * config/m68hc11/m68hc11.mt: Remove file.
764 * config/m68k/linux.mt: Remove file.
765 * config/m68k/monitor.mt: Remove file.
766 * config/m68k/nbsd.mt: Remove file.
767 * config/m68k/obsd.mt: Remove file.
768 * config/m88k/obsd.mt: Remove file.
769 * config/mep/mep.mt: Remove file.
770 * config/mips/embed.mt: Remove file.
771 * config/mips/irix5.mt: Remove file.
772 * config/mips/irix6.mt: Remove file.
773 * config/mips/linux.mt: Remove file.
774 * config/mips/nbsd.mt: Remove file.
775 * config/mips/obsd64.mt: Remove file.
776 * config/mn10300/linux.mt: Remove file.
777 * config/mn10300/mn10300.mt: Remove file.
778 * config/mt/mt.mt: Remove file.
779 * config/pa/hppahpux.mt: Remove file.
780 * config/pa/hppa.mt: Remove file.
781 * config/pa/linux.mt: Remove file.
782 * config/pa/obsd.mt: Remove file.
783 * config/powerpc/aix.mt: Remove file.
784 * config/powerpc/linux.mt: Remove file.
785 * config/powerpc/nbsd.mt: Remove file.
786 * config/powerpc/obsd.mt: Remove file.
787 * config/powerpc/ppc-eabi.mt: Remove file.
788 * config/s390/s390.mt: Remove file.
789 * config/score/embed.mt: Remove file.
790 * config/sh/embed.mt: Remove file.
791 * config/sh/linux.mt: Remove file.
792 * config/sh/nbsd.mt: Remove file.
793 * config/sh/obsd.mt: Remove file.
794 * config/sh/sh64.mt: Remove file.
795 * config/sparc/embed.mt: Remove file.
796 * config/sparc/fbsd.mt: Remove file.
797 * config/sparc/linux64.mt: Remove file.
798 * config/sparc/linux.mt: Remove file.
799 * config/sparc/nbsd64.mt: Remove file.
800 * config/sparc/nbsd.mt: Remove file.
801 * config/sparc/obsd64.mt: Remove file.
802 * config/sparc/obsd.mt: Remove file.
803 * config/sparc/sol2-64.mt: Remove file.
804 * config/sparc/sol2.mt: Remove file.
805 * config/sparc/sparc64.mt: Remove file.
806 * config/sparc/sparc.mt: Remove file.
807 * config/spu/spu.mt: Remove file.
808 * config/v850/v850.mt: Remove file.
809 * config/vax/nbsd.mt: Remove file.
810 * config/vax/obsd.mt: Remove file.
811 * config/vax/vax.mt: Remove file.
812 * config/xstormy16/xstormy16.mt: Remove file.
813 * config/xtensa/xtensa.mt: Remove file.
814
815 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
816 (gdb_target): Likewise.
817 (gdb_target_obs): Document. Set for every target to contents
818 of TDEPFILES in former .mt makefile fragment.
819
820 * configure.ac (TARGET_OBS): Define.
821 (target_makefile_frag, gdb_target_cpu): Do not define.
822 * configure: Regenerate.
823
824 * Makefile.in (MT_FLAGS): Remove.
825 (GLOBAL_CFLAGS): Update.
826 (TARGET_OBS): Substitute from configure.
827 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
828 (@target_makefile_frag@): Remove.
829
830 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
831
832 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
833 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
834 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
835 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
836 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
837 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
838 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
839 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
840 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
841 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
842 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
843 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
844 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
845 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
846 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
847 * config/powerpc/ppc-sim.mt: Remove file.
848 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
849 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
850 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
851 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
852 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
853 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
854 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
855
856 * configure.tgt (gdb_sim): Document variable.
857 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
858 (avr-*-*): Likewise.
859 (frv-*-*): Likewise.
860 (h8300-*-*): Likewise.
861 (iq2000-*-*): Likewise.
862 (m32c-*-*): Likewise.
863 (m32r*-*-linux*): Likewise.
864 (m32r*-*-*): Likewise.
865 (m68hc11*-*-*|m6811*-*-*): Likewise.
866 (mips*-*-*): Likewise.
867 (mips*-*-linux*): Likewise.
868 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
869 (mn10300-*-*): Likewise.
870 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
871 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
872 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
873 (sh*): Set gdb_sim.
874 (sh-*-linux*): Likewise.
875 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
876 (sh64-*-elf*): Likewise.
877 (sparc-*-rtems*): Likewise.
878 (v850*-*-elf): Likewise.
879 (xstormy16-*-*): Likewise.
880
881 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
882 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
883 * configure: Regenerate.
884 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
885 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
886
887 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
888
889 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
890 (arm*-*-*): Do not set obsolete build_rdi_share variable.
891
892 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
893 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
894 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
895 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
896 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
897
898 (xscale-*-*): Merge into arm*-*-* case.
899 (fido-*-elf*): Merge into m68*-*-elf* case.
900 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
901 m68*-*-uclinux*): Merge cases.
902 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
903 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
904
905 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
906
907 * configure.tgt: Reformat main case statement.
908
909 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
910
911 * configure.ac (hostfile, targetfile): Remove.
912 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
913 (xm_h, tm_h): Likewise.
914 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
915 * configure, config.in: Regenerate.
916
917 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
918 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
919 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
920 * defs.h: Do not include "xm.h" or "tm.h".
921
922 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
923 * gdbarch.c: Regenerate.
924
925 * config/score/embed.mt: Remove obsolete comment.
926
927 2007-11-16 Markus Deuling <deuling@de.ibm.com>
928
929 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
930 as parameter.
931 * gdbarch.{c,h}: Regenerate.
932
933 * alpha-tdep.c (alpha_cannot_fetch_register)
934 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
935 current_gdbarch by gdbarch.
936 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
937 (crisv32_cannot_fetch_register)
938 (crisv32_cannot_store_register): Likewise.
939 * arch-utils.c (cannot_register_not): Likewise.
940 * arch-utils.h (cannot_register_not): Likewise.
941 * hppa-tdep.c (hppa32_cannot_store_register)
942 (hppa32_cannot_store_register, hppa64_cannot_store_register)
943 (hppa64_cannot_fetch_register): Likewise.
944 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
945 (mipsnbsd_cannot_store_register): Likewise.
946
947 2007-11-16 Markus Deuling <deuling@de.ibm.com>
948
949 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
950 the current architecture by regcache.
951 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
952 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
953 (fetch_register, supply_vrregset, fetch_ppc_registers)
954 (store_altivec_register, store_spe_register, store_register)
955 (fill_vrregset, store_ppc_registers): Likewise.
956 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
957 * win32-nat.c (do_win32_fetch_inferior_registers)
958 (do_win32_store_inferior_registers): Likewise.
959 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
960 * remote-m32r-sdi.c (m32r_fetch_registers)
961 (m32r_store_registers): Likewise.
962 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
963
964 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
965 gdbarch.
966 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
967 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
968 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
969 (ppc64_sysv_abi_return_value): Likewise.
970 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
971 * m2-lang.c (build_m2_types): Likewise.
972 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
973 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
974 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
975 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
976
977 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
978 get at the current architecture by frame_info.
979 * gcore.c (derive_stack_segment): Likewise.
980
981 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
982 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
983 gdbarch to GETREGS_SUPPLIES call.
984
985 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
986
987 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
988 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
989 ELF-private symbol data when processing synthetic symbols. Use
990 udata.p to get at size of ppc64 synthetic 'dot' symbols.
991 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
992
993 2007-11-15 Doug Evans <dje@google.com>
994
995 * buildsym.h (subfiles): Move ...
996 * buildsym.c (subfiles): ... to here and make static.
997
998 * symmisc.c (maintenance_info_symtabs): Print linetable info.
999
1000 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1001
1002 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1003
1004 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1005
1006 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1007 expression and use get_frame_arch to replace current_gdbarch by frame's
1008 architecture.
1009 * arm-tdep.h (LOWEST_PC): Remove
1010
1011 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1012
1013 Apply const qualifier to some users of bp_location.
1014 * breakpoint.h (struct bpstats): Make
1015 the breakpoint_at field point at const bp_location.
1016 * breakpoint.c (bpstat_alloc): Accept const
1017 bp_location.
1018 (breakpoint_here_p, breakpoint_inserted_here_p)
1019 (software_breakpoint_inserted_here_p)
1020 (breakpoint_thread_match, bpstat_stop_status)
1021 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1022 const bp_location for iteration.
1023 (print_it_typical, print_bp_stop_message): Use
1024 const bp_location variable.
1025
1026 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1027
1028 Make mark_breakpoints_out static.
1029 * breakpoint.h (mark_breakpoints_out): Remove
1030 declaration.
1031 * breakpoint.c (mark_breakpoints_out): Make static.
1032
1033 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1034
1035 Prevent clear_command from directly modifying breakpoint list.
1036 * Makefile.in (breakpoint_h): Update dependency.
1037 * breakpoint.c (clear_command): Do not remove
1038 breakpoints from breakpoint_chain. Collect breakpoints
1039 to delete in a vector.
1040 * breakpoint.h (breakpoint_p): New typedef for pointer to
1041 breakpoint. Register vector of breakpoint_p.
1042
1043 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1044
1045 Remove 'run_cleanup'.
1046 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1047 declarations.
1048 * infcmd.c (run_command_1): Call clear_solib instead
1049 of do_run_cleanups.
1050 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1051 any use.
1052 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1053 (update_solib_lib): Don't setup run cleanup.
1054 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1055 * utils.c (run_cleanup_chain, make_run_cleanup)
1056 (do_run_cleanups): Remove.
1057
1058 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1059
1060 Remove CLEAR_SOLIB use.
1061 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1062 * infcmd.c (attach_command): Likewise.
1063
1064 2007-11-14 Doug Evans <dje@google.com>
1065
1066 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1067
1068 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1069
1070 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1071
1072 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1073
1074 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1075 obsolete comment.
1076 (verify_gdbarch, gdbarch_dump): Likewise.
1077 (do_read): Update comment.
1078 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1079 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1080 * gdbarch.{c,h}: Regenerate.
1081
1082 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1083
1084 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1085 (ARGS_FIRST_REG): Remove.
1086 (areg_numer): New function.
1087 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1088 (xtensa_extract_return_value, xtensa_store_return_value)
1089 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1090 (AREG_NUMBER): Remove.
1091 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1092 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1093 (xtensa_push_dummy_call): Update use of ARG_NOF.
1094 (extract_call_winsize): Add gdbarch as parameter. Replace
1095 current_gdbarch by gdbarch.
1096 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1097 of extract_call_winsize.
1098
1099 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1100
1101 * NEWS: Add entry for new set/show print frame-args command.
1102
1103 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1104
1105 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1106 register number to map. Adjust warning check and error/warning
1107 return value code to match expectations of this function's callers.
1108
1109 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1110
1111 * stack.c (print_this_frame_argument_p): Handle arguments passed
1112 by reference properly.
1113
1114 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1115
1116 * stack.c (print_frame_arguments_choices): New static global.
1117 (print_frame_arguments): Likewise.
1118 (print_this_frame_argument_p): New function.
1119 (print_frame_args): Print the argument value only when appropriate.
1120 (_initialize_task): Add new "set/show print frame-arguments" command.
1121
1122 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1123
1124 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1125 saved_dabr_value assignment to the correct position.
1126
1127 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1128
1129 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1130 * arch-utils.h (generic_convert_register_p): Likewise.
1131
1132 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1133
1134 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1135 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1136 * i387-tdep.c (i387_convert_register_p): Likewise.
1137 * i387-tdep.h (i387_convert_register_p): Likewise.
1138 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1139 * gdbarch.{c,h}: Regenerate.
1140
1141 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1142 Replace current_gdbarch by gdbarch.
1143 * mips-tdep.c (mips_convert_register_p): Likewise.
1144 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1145 * i386-tdep.c (i386_convert_register_p): Likewise.
1146
1147 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1148
1149 * gdb_string.h: Include <strings.h>.
1150
1151 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1152
1153 * breakpoint.c (break_command_1): Remove
1154 pending_bp parameter.
1155 (create_breakpoint): Likewise.
1156 (create_breakpoints): Likewise. Adjust call to
1157 create_breakpoint.
1158 (break_command_1): Likewise. Adjust call to
1159 create_breakpoints.
1160 (do_captured_breakpoint): Adjust call to
1161 create_breakpoints.
1162 (break_command, tbreak_command, hbreak_command)
1163 (stopin_command, stopat_command): Adjust call
1164 to break_command_1.
1165
1166 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1167 Daniel Jacobowitz <dan@codesourcery.com>
1168
1169 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1170 struct values smaller than one doubleword; left-align those
1171 larger. Pass structs containing a single floating-point value in
1172 registers.
1173
1174 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1175 Daniel Jacobowitz <dan@codesourcery.com>
1176
1177 * gdbtypes.c (floatformats_ibm_long_double): New.
1178 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1179 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1180 split_half field.
1181 * mips-tdep.c (n32n64_floatformat_always_valid,
1182 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1183 Remove.
1184 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1185 floatformats_n32n64_long.
1186 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1187 double.
1188 * doublest.c (convert_floatformat_to_doublest,
1189 convert_doublest_to_floatformat): Handle split floating-point
1190 formats.
1191 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1192 double arguments.
1193 (ppc64_sysv_abi_push_dummy_call): Likewise.
1194 (do_ppc_sysv_return_value): Handle IBM long double return.
1195
1196 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1197
1198 Fix crash when a variable object being deleted
1199 has any of its children deleted previously.
1200
1201 * varobj.c (delete_variable_1): Don't recurse
1202 into deleted children.
1203
1204 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1205
1206 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1207 * gdbarch.{c,h}: Regenerate.
1208 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1209 Replace current_gdbarch by gdbarch.
1210 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1211 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1212 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1213
1214 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1215
1216 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1217 get_regcache_arch to get at the current architecture by regcache.
1218 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1219 to get at the current architecture by frame_info.
1220 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1221 at the current architecture by regcache.
1222 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1223 the current architecture by frame_info.
1224 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1225 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1226 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1227 caller of special_register_p.
1228
1229 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1230
1231 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1232 current architecture by frame_info.
1233
1234 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1235
1236 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1237
1238 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1239
1240 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1241 get at the current architecture by regcache.
1242 (SUBOFF): Add gdbarch to macro definition.
1243
1244 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1245
1246 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1247 * gdbarch.{c,h}: Regenerate.
1248
1249 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1250 Replace current_gdbarch by gdbarch.
1251 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1252 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1253 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1254 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1255 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1256 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1257 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1258
1259 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1260 parameter.
1261 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1262 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1263 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1264 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1265 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1266 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1267 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1268 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1269 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1270 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1271 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1272 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1273 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1274 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1275 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1276 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1277 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1278 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1279 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1280 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1281
1282 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1283 Replace current_gdbarch by gdbarch.
1284 (rs6000_software_single_step): Use get_frame_arch to get at the
1285 current architecture by frame_info. Add gdbarch to
1286 rs6000_breakpoint_from_pc call.
1287
1288 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1289
1290 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1291 macro CURRENT_VARIANT by its expression.
1292 (CURRENT_VARIANT): Remove.
1293 (frv_check_watch_resources): Add gdbarch parameter.
1294
1295 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1296
1297 * MAINTAINERS (Write After Approval): Add self.
1298
1299 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1300
1301 * features/rs6000/power-core.xml: Use uint32 as register type.
1302 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1303 * features/rs6000/powerpc-32.c: Regenerate.
1304 * features/rs6000/powerpc-403.c: Regenerate.
1305 * features/rs6000/powerpc-403gc.c: Regenerate.
1306 * features/rs6000/powerpc-505.c: Regenerate.
1307 * features/rs6000/powerpc-602.c: Regenerate.
1308 * features/rs6000/powerpc-603.c: Regenerate.
1309 * features/rs6000/powerpc-604.c: Regenerate.
1310 * features/rs6000/powerpc-64.c: Regenerate.
1311 * features/rs6000/powerpc-7400.c: Regenerate.
1312 * features/rs6000/powerpc-750.c: Regenerate.
1313 * features/rs6000/powerpc-860.c: Regenerate.
1314 * features/rs6000/powerpc-e500.c: Regenerate.
1315
1316 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1317
1318 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1319
1320 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1321
1322 * breakpoint.h (create_solib_load_event_breakpoint)
1323 (create_solib_unload_event_breakpoint)
1324 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1325 (create_exec_event_catchpoint): Delete declaration.
1326 * breakpoint.c (create_solib_load_event_breakpoint)
1327 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1328 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1329 (create_exec_event_catchpoint): Make static.
1330
1331 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1332
1333 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1334 * breakpoint.c (set_breakpoint_sal): Delete.
1335
1336 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1337
1338 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1339 (make_blockvector): Likewise. Remove FIXME comment.
1340
1341 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1342
1343 * printcmd.c: (printf_command): Add support for new DFP
1344 modifiers %H, %D and %DD.
1345 * configure.ac: Add check for DECFLOAT printf support.
1346 * configure: Regenerated.
1347
1348 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1349
1350 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1351 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1352 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1353 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1354 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1355 (has_vtable, primary_base_class, virtual_base_list_length,
1356 virtual_base_list_length_skip_primaries, virtual_base_index,
1357 virtual_base_index_skip_primaries, class_index_in_primary_list,
1358 count_virtual_fns): Remove prototypes.
1359 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1360 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1361 virtual_base_list_length_skip_primaries, virtual_base_index,
1362 virtual_base_index_skip_primaries, class_index_in_primary_list,
1363 count_virtual_fns): Remove.
1364
1365 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1366 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1367 (cp_print_value_fields): Remove support for HP aCC vtables.
1368 (cp_print_value): Likewise.
1369 * c-typeprint.c (c_type_print_base): Likewise.
1370
1371 * value.h (find_rt_vbase_offset): Remove prototype.
1372 * valops.c (find_rt_vbase_offset): Remove.
1373 (search_struct_method): Remove support for HP aCC vtables.
1374 (find_method_list): Likewise.
1375
1376 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1377
1378 * language.h (struct language_defn): Remove la_builtin_type_vector
1379 and string_char_type members.
1380 * language.c (language_string_char_type): No longer consult
1381 la->string_char_type.
1382 (language_lookup_primitive_type_by_name): No longer consult
1383 current_language->la_builtin_type_vector.
1384
1385 * language.c (unknown_language_defn, auto_language_defn,
1386 local_language_defn): Adapt initializer.
1387 * ada-lang.c (ada_language_defn): Likewise.
1388 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1389 minimal_language_defn): Likewise.
1390 * f-lang.c (f_language_defn): Likewise.
1391 * jv-lang.c (java_language_defn): Likewise.
1392 * m2-lang.c (m2_language_defn): Likewise.
1393 * objc-lang.c (objc_language_defn): Likewise.
1394 * p-lang.c (pascal_language_defn): Likewise.
1395 * scm-lang.c (scm_language_defn): Likewise.
1396
1397 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1398
1399 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1400 current_gdbarch by gdbarch.
1401 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1402 current architecture by frame_info.
1403 * frame.h (frame_id_inner): Add gdbarch parameter.
1404 * stack.c (return_command): Use get_frame_arch to get at the current
1405 architecture by frame_info. Update call of frame_id_inner.
1406 * infrun.c (handle_inferior_event): Likewise.
1407 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1408 current architecture by regcache. Update call of frame_id_inner.
1409
1410 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1411
1412 * gdbarch.sh (register_name): Add gdbarch parameter.
1413 * gdbarch.{c,h}: Regenerate.
1414
1415 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1416 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1417 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1418
1419 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1420 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1421 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1422 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1423 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1424 (mt_registers_info): Replace current_gdbarch by gdbarch.
1425 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1426 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1427 current_gdbarch by gdbarch.
1428 (mips_register_name): Add gdbarch to tdesc_register_name call.
1429 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1430 current_gdbarch by gdbarch.
1431 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1432 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1433 current_gdbarch by gdbarch.
1434 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1435 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1436 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1437 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1438 architecture by frame_info.
1439 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1440 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1441 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1442 parameter.
1443 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1444 (h8300sx_register_name): Add gdbarch parameter.
1445 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1446 gdbarch parameter. Replace current_gdbarch by gdbarch.
1447 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1448 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1449 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1450 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1451 caller.
1452 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1453 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1454 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1455 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1456 of alpha_register_name.
1457 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1458 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1459 current_gdbarch by gdbarch.
1460 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1461 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1462 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1463
1464 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1465 (m68hc11_register_reggroup_p): Add gdbarch to call of
1466 m68hc11_register_name.
1467 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1468 (am33_2_register_name): Add gdbarch parameter.
1469 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1470 architecture by frame_info.
1471 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1472 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1473 current_gdbarch by gdbarch.
1474 * score-tdep.c (score_register_name): Add gdbarch parameter.
1475 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1476 by gdbarch.
1477 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1478 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1479 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1480 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1481 and update caller. Replace current_gdbarch by gdbarch.
1482 (sh64_extract_return_value, sh64_store_return_value): Use
1483 get_regcache_arch to get at the current architecture by regcache.
1484 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1485 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1486 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1487 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1488 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1489 parameter.
1490 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1491 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1492 current_gdbarch by gdbarch.
1493 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1494 get_regcache_arch to get at the current architecture by regcache.
1495 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1496 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1497 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1498 parameter.
1499 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1500 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1501 current_gdbarch by gdbarch.
1502 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1503 (xtensa_frame_prev_register): Add gdbarch parameter to
1504 xtensa_register_name call.
1505
1506 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1507
1508 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1509 find_solib_trampoline_target if PC is not in .plt section.
1510
1511 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1512
1513 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1514 minimal symbol from an undefined dynamic symbol, use proper section.
1515
1516 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1517
1518 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1519 to get at the current architecture by regcache.
1520
1521 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1522
1523 * libunwind-frame.c (libunwind_frame_sniffer)
1524 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1525 (libunwind_frame_cache): Use get_frame_arch to get at the current
1526 architecture by frame_info.
1527 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1528
1529 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1530
1531 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1532 at the current architecture by frame_info.
1533
1534 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1535
1536 * inf-child.c (inf_child_fetch_inferior_registers): Use
1537 get_regcache_arch to get at the current architecture by regcache.
1538
1539 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1540
1541 * inf-ptrace.c (inf_ptrace_fetch_registers)
1542 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1543 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1544 current architecture by regcache.
1545
1546 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1547
1548 * hpux-thread.c (hpux_thread_fetch_registers)
1549 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1550 current architecture by regcache.
1551
1552 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1553
1554 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1555 current architecture by frame_info.
1556
1557 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1558
1559 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1560 (go32_store_registers): Use get_regcache_arch to get at the current
1561 architecture by regcache.
1562
1563 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1564
1565 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1566
1567 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1568
1569 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1570 to get at the current architecture by frame_info.
1571
1572 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1573
1574 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1575
1576 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1577
1578 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1579 the current architecture by regcache.
1580
1581 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1582
1583 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1584 current architecture by regcache.
1585
1586 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1587
1588 * bsd-uthread.c (bsd_uthread_fetch_registers)
1589 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1590 current architecture by regcache.
1591
1592 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1593
1594 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1595 get_frame_arch to get at the current architecture by frame_info.
1596
1597 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1598
1599 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1600
1601 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1602
1603 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1604 (store_regs): Use get_regcache_arch to get at the current architecture
1605 by regcache.
1606
1607 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1608
1609 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1610 to get at the current architecture by regcache.
1611
1612 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1613
1614 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1615 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1616 the current architecture by regcache.
1617
1618 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1619
1620 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1621 gdbarch.
1622
1623 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1624
1625 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1626 soft float and vector ABIs. Support the generic vector ABI for
1627 AltiVec types.
1628 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1629 casts.
1630 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1631 supported.
1632 * ppc-tdep.h (enum powerpc_vector_abi): New.
1633 (struct gdbarch_tdep): Add soft_float and vector_abi.
1634 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1635 (powerpc_soft_float_global, powerpc_vector_strings)
1636 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1637 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1638 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1639 (powerpc_set_vector_abi): New.
1640 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1641 commands.
1642 * Makefile.in (elf_ppc_h): New.
1643 (rs6000-tdep.o): Update.
1644
1645 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1646
1647 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1648 swapped offsets and VRSAVE offset.
1649 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1650 (ppc32_linux_vrregset): Added.
1651 (ppc_linux_regset_from_core_section): Added support for
1652 .reg-ppc-vmx section.
1653 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1654 (ppc_supply_vrregset): Declare.
1655 (ppc_collect_vrregset): Declare.
1656 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1657 (ppc_supply_vrregset): Added.
1658 (ppc_collect_vrregset): Added.
1659 * corelow.c (get_core_registers): Added support for
1660 .reg-ppc-vmx section.
1661
1662 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1663
1664 GDB 6.7.1 released.
1665
1666 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1667
1668 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1669 deleted function.
1670
1671 * tracepoint.c (tracepoint_operation): Report the deletion event
1672 after we have unlinked the tracepoint from the list, and use the
1673 proper tracepoint number.
1674
1675 * ax-gdb.c (expr_to_agent): Delete unused function.
1676 (expr_to_address_and_size): Delete #if 0'd function.
1677 * ax-gdb.h (expr_to_agent): Delete declaration.
1678
1679 * ax-gdb.c (gen_cast): Remove redundant assignment to
1680 value->type. Doc fix.
1681
1682 * ax-general.c (gen_traced_pop, gen_int_literal)
1683 (gen_usual_arithmetic): Check for typedefs.
1684
1685 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1686
1687 * parse.c (prefixify_expression): Minor reformatting.
1688
1689 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1690
1691 * version.in: Use dot instead of dash.
1692
1693 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1694
1695 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1696
1697 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1698
1699 * memory-map.c (parse_memory_map): Don't use an empty struct
1700 initializer.
1701
1702 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1703
1704 * signals/signals.c (signals): Update pointer to enum
1705 target_signal declaration.
1706
1707 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1708 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1709 Jim Blandy <jimb@codesourcery.com>
1710
1711 * dwarf2read.c (read_partial_die): check the value
1712 of DW_AT_calling_convention in Fortran programs.
1713
1714 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1715 Thiago Jung Bauermann <bauerman@br.ibm.com>
1716
1717 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1718 floating point in YYSTYPE union.
1719 (DECFLOAT) Add token and expression element handling code.
1720 (parse_number): Parse DFP constants, which end with suffix 'df',
1721 'dd' or 'dl'. Return DECFLOAT.
1722 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1723 handle OP_DECFLOAT.
1724 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1725 for DFP constants.
1726 (union exp_element): Add decfloatconst to represent DFP
1727 elements, which is 16 bytes by default.
1728 * parse.c (write_exp_elt_decfloatcst): New function to write a
1729 decimal float const into the expression.
1730 (operator_length_standard): Set operator length for OP_DECFLOAT
1731 to 4.
1732 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1733 * valarith.c (value_neg): Add code to handle the negation
1734 operation of DFP values.
1735 * value.c (value_from_decfloat): New function to get the value
1736 from a decimal floating point.
1737 * value.h (value_from_decfloat): Prototype.
1738
1739 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1740 Thiago Jung Bauermann <bauerman@br.ibm.com>
1741
1742 * c-lang.c (c_create_fundamental_type): Create fundamental
1743 types for DFP.
1744 * c-typeprint.c (c_type_print_varspec_prefix): Add
1745 TYPE_CODE_DECFLOAT to no prefix needed case.
1746 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1747 suffix needed case.
1748 * c-valprint.c (c_val_print): Call print_decimal_floating to
1749 print DFP values.
1750 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1751 attribute code and return TYPE_CODE_DECFLOAT.
1752 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1753 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1754 builtin_decdouble and builtin_declong.
1755 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1756 type code for DFP.
1757 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1758 types, for decimal floating point.
1759 (FT_NUM_MEMBERS): Increment, new types added.
1760 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1761 and builtin_declong.
1762 * valprint.c (print_decimal_floating): New function to print DFP
1763 values.
1764 * value.h (print_decimal_floating): Prototype.
1765
1766 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1767 Thiago Jung Bauermann <bauerman@br.ibm.com>
1768
1769 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1770 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1771 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1772 (INSTALLED_LIBS): Add -ldecnumber in.
1773 (CLIBS): Add LIBDECNUMBER in.
1774 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1775 headers.
1776 (dfp_h): New macros for decimal floating point.
1777 (dfp.o): New target.
1778 (COMMON_OBS): Add dfp.o in.
1779 (c-exp.o): Add dfp_h as dependency.
1780 (valprint.o): Add dfp_h as dependency.
1781 (value.o): Add dfp_h as dependency.
1782 * dfp.h: New header file for decimal floating point support in
1783 GDB.
1784 * dfp.c: New source file for decimal floating point support in
1785 GDB. Implement decimal_from_string and decimal_to_string based
1786 on libdecnumber API.
1787 * configure.ac: Add AC_C_BIGENDIAN test.
1788 * config.in, configure: Regenerate.
1789
1790 2007-10-25 David Ung <davidu@mips.com>
1791 Maciej W. Rozycki <macro@mips.com>
1792
1793 PR exp/1926
1794 * infcmd.c (registers_info): Check for a user register before
1795 calling target's gdbarch_print_registers_info(). If found to be
1796 so, extract the implicit value of user register and call
1797 print_scalar_formatted().
1798 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1799
1800 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1801
1802 * NEWS: Document status of hppa64-hpux support.
1803
1804 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1805
1806 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1807 set_solib_ops to install SVR4 operations.
1808 (_initialize_svr4_solib): Do not set current_target_so_ops.
1809
1810 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1811 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1812
1813 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1814
1815 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1816 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1817 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1818 * solib-legacy.c: Remove file.
1819
1820 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1821 * config/arm/linux.mt (TDEPFILES): Likewise.
1822 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1823 * config/ia64/linux.mt (TDEPFILES): Likewise.
1824 * config/m32r/linux.mt (TDEPFILES): Likewise.
1825 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1826 * config/s390/s390.mt (TDEPFILES): Likewise.
1827
1828 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1829 set_solib_svr4_fetch_link_map_offsets.
1830 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1831 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1832
1833 * i386gnu-tdep.c: Include "solib-svr4.h".
1834 * Makefile.in: Update dependencies.
1835
1836 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1837
1838 * i386-nto-tdep.c: Include "solib.h".
1839 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1840 current_target_so_ops members.
1841 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1842 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1843 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1844 * Makefile.in: Update dependencies.
1845
1846 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1847
1848 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1849 (arm_wince_init_abi): Call set_solib_ops.
1850 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1851 (i386_cygwin_init_abi): Call set_solib_ops.
1852 * solib-target.c: Include "solib-target.h".
1853 (solib_target_so_ops): Make global.
1854 (_initialize_solib_target): Do not set current_target_so_ops.
1855 * solib-target.h: New file.
1856 * Makefile.in: Update dependencies.
1857
1858 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1859
1860 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1861 (mips_irix_init_abi): Call set_solib_ops.
1862 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1863 (irix_so_ops): Make global.
1864 (_initialize_irix_solib): Do not set current_target_so_ops.
1865 * solib-irix.h: New file.
1866 * Makefile.in: Update dependencies.
1867
1868 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1869
1870 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1871 * config/pa/hppa64.mt: Delete file.
1872 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1873 (TDEPFILES): Move somread.o to ...
1874 * config/pa/hpux.mh (NATDEPFILES): ... here.
1875
1876 * configure.ac: Add check for elf_hp.h header.
1877 Search libdl and libxpdl for dlgetmodinfo.
1878 * config.in, configure: Regenerate.
1879 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1880 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1881 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1882 set_solib_ops instead of modifying current_target_so_ops.
1883 * solib-pa64.h (pa64_solib_select): Update prototype.
1884 * solib-som.c: Remove include of "som.h". Include "solib.h".
1885 (som_solib_select): Take gdbarch instead of tdep argument. Call
1886 set_solib_ops instead of modifying current_target_so_ops.
1887 * solib-som.h (som_solib_select): Update prototype.
1888 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1889 of tdep to som_solib_select call.
1890 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1891 pa64_solib_select call.
1892 * Makefile.in: Update dependencies.
1893
1894 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1895
1896 * frv-tdep.c: Include "solib.h".
1897 (frv_gdbarch_init): Call set_solib_ops.
1898 * frv-tdep.h (struct target_so_ops): Add forward reference.
1899 (frv_so_ops): Add extern declaration.
1900 * solib-frv.c (frv_so_ops): Make global.
1901 (_initialize_frv_solib): Do not set current_target_so_ops.
1902 * Makefile.in: Update dependencies.
1903
1904 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1905
1906 * solib.c (solib_global_lookup): Use solib_ops instead of global
1907 current_target_so_ops.
1908
1909 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1910
1911 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1912 * config/frv-tm-frv.h: Delete file.
1913
1914 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1915
1916 * NEWS: Mention gdbserver support for non-libthread_db operation.
1917
1918 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1919
1920 * amd64-tdep.c (amd64_convert_register_p): Delete.
1921 (amd64_init_abi): Use i387_convert_register_p.
1922 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1923 eight byte types.
1924 (alpha_register_to_value, alpha_value_to_register): Do not handle
1925 eight byte types.
1926 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1927 * i387-tdep.c (i387_convert_register_p): New.
1928 (i387_register_to_value, i387_value_to_register): Update comments.
1929 * i387-tdep.h (i387_convert_register_p): Declare.
1930 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1931 builtin_type_ia64_ext.
1932 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1933 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1934 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1935 builtin_type_m68881_ext.
1936 (m68k_register_to_value, m68k_value_to_register): Update comments.
1937
1938 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1939
1940 * target-memory.c (claim_memory): Propagate baton for split memory
1941 requests.
1942
1943 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1944
1945 PR gdb/2341
1946 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1947 alias warning bug.
1948
1949 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1950
1951 * symtab.c (find_line_symtab): scan through psymtabs
1952 when exact_match is zero.
1953
1954 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1955
1956 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1957 (deal_with_atomic_sequence): New.
1958 (mips_software_single_step): Use it.
1959
1960 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1961
1962 PR gdb/2336
1963 * configure.ac: Modify $LIBINTL before the BFD check.
1964 * configure: Regenerated.
1965
1966 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1967
1968 * buildsym.c (free_pending_blocks): Remove commented-out code.
1969 (make_blockvector): Likewise. Re-use free_pending_blocks.
1970 (end_symtab): Remove commented-out code.
1971
1972 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1973
1974 * top.c (command_loop): Fix output for shrinkage.
1975
1976 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1977
1978 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1979 (exp): Remove and document function-like casts.
1980
1981 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1982
1983 * cp-support.c: Include "safe-ctype.h".
1984 (cp_already_canonical): New function.
1985 (cp_canonicalize_string): Use it. Return NULL for already canonical
1986 strings.
1987 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1988 (cp_func_name, remove_params): Likewise.
1989 (cp_find_first_component_aux): Use ISSPACE.
1990 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1991 MEMORY_P argument.
1992 * cp-name-parser.y (ALLOC_CHUNK): Define.
1993 (struct demangle_info): Add PREV and NEXT. Increase the size of
1994 COMPS.
1995 (d_grab): Convert to a function.
1996 (allocate_info): Rewrite.
1997 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1998 strlen. Update call to allocate_info. Do not free it on failure.
1999 (main): Update calls to cp_demangled_name_to_comp.
2000 * Makefile.in (cp-support.o): Update.
2001
2002 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2003
2004 * std-regs.c (value_of_builtin_frame_fp_reg)
2005 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2006 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2007 current architecture by frame_info.
2008
2009 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2010
2011 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2012 by gdbarch.
2013
2014 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2015
2016 * infcmd.c (default_print_registers_info, print_return_value)
2017 (print_vector_info, print_float_info): Replace current_gdbarch by
2018 gdbarch.
2019 (registers_info): Use get_frame_arch to get at the current
2020 architecture by frame_info.
2021
2022 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2023
2024 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2025 get_regcache_arch to get at the current architecture by regcache.
2026
2027 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2028
2029 * target.c (debug_print_register): Use get_regcache_arch to get at the
2030 current architecture by regcache.
2031
2032 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2033
2034 * dwarf2read.c (read_file_scope): Add a comment.
2035 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2036 (read_enumeration_type, process_enumeration_scope, read_array_type)
2037 (read_typedef, read_base_type, read_subrange_type)
2038 (read_unspecified_type): Use dwarf2_name.
2039
2040 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2041
2042 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2043 * dwarf2read.c (dwarf2_free_objfile): New.
2044 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2045 * symfile.h (dwarf2_free_objfile): Declare.
2046
2047 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2048
2049 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2050
2051 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2052
2053 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2054 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2055 default dwarf2_frame_set_init_reg function.
2056
2057 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2058
2059 * NEWS: Mention native MinGW configuration.
2060
2061 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2062
2063 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2064 of "macro" column throughout the file. Remove (empty) "macro" entry
2065 of all gdbarch functions.
2066
2067 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2068
2069 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2070 * gdbarch.c, gdbarch.h: Regenerate.
2071 * dbxread.c (find_stab_function_addr): Define unconditionally.
2072 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2073 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2074 (end_psymtab): Likewise.
2075 (process_one_symbol): Likewise.
2076 * mdebugread.c (parse_partial_symbols): Likewise.
2077
2078 * symtab.h (struct minimal_symbol): Always define "filename" member.
2079 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2080 * minsyms.c (lookup_minimal_symbol): Likewise.
2081 * symmisc.c (dump_msymbols): Likewise.
2082
2083 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2084 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2085 * config/i386/tm-i386sol2.h: Remove file.
2086 * config/i386/tm-linux.h: Remove file.
2087 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2088 set_gdbarch_sofun_address_maybe_missing.
2089 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2090
2091 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2092 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2093 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2094 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2095 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2096 * config/powerpc/tm-ppc-eabi.h: Remove file.
2097 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2098 set_gdbarch_sofun_address_maybe_missing.
2099
2100 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2101 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2102 * config/sparc/tm-sol2.h: Remove file.
2103 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2104 set_gdbarch_sofun_address_maybe_missing.
2105 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2106
2107 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2108
2109 * gdbarch.sh (static_transform_name): New gdbarch callback.
2110 * gdbarch.c, gdbarch.h: Regenerate.
2111 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2112 instead of STATIC_TRANSFORM_NAME.
2113 * mdebugread.c (parse_partial_symbols): Likewise.
2114 * stabsread.c (define_symbol): Likewise.
2115 * xcoffread.c (scan_xcoff_symtab): Likewise.
2116
2117 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2118 (IS_STATIC_TRANSFORM_NAME): Remove.
2119 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2120 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2121 (i386_sol2_init_abi): Install it.
2122
2123 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2124 (IS_STATIC_TRANSFORM_NAME): Remove.
2125 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2126 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2127 (sparc32_sol2_init_abi): Install it.
2128 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2129 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2130
2131 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2132
2133 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2134 (mips_n32n64_return_value, mips_o32_return_value)
2135 (mips_o64_return_value): Update calls to mips_xfer_register.
2136
2137 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2138
2139 * frame.c (frame_unwind_unsigned_register): Delete.
2140 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2141 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2142
2143 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2144 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2145 mt-tdep.c: Replace frame_unwind_unsigned_register with
2146 frame_unwind_register_unsigned.
2147
2148 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2149
2150 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2151 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2152 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2153 include procfs.h.
2154 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2155 if not building on Cygwin.
2156 (win32_make_so, handle_output_debug_string, handle_exception)
2157 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2158 (win32_attach): Only fallback to Cygwin pids if building on
2159 Cygwin.
2160 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2161 building on Cygwin.
2162 (win32_create_inferior): Disable starting the inferior through a
2163 shell, environment var processing and tty handling if not building
2164 on Cygwin.
2165 (cygwin_pid_to_str): Rename to ...
2166 (win32_pid_to_str): ... this.
2167 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2168 and "cygwin-exceptions" commands if not building on Cygwin.
2169
2170 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2171
2172 * doc/gdb.texinfo: Add TSIZE definition, removed
2173 statement about unbounded arrays being unimplemented.
2174 * m2-valprint.c (m2_print_array_contents): New function.
2175 (m2_print_unbounded_array): New function.
2176 (m2_print_array_contents): New function.
2177 * m2-typeprint.c (m2_unbounded_array): New function.
2178 (m2_is_unbounded_array): New function.
2179 (m2_print_type): Test for unbounded array when walking
2180 across structs.
2181 * m2-lang.h: Added extern m2_is_unbounded_array.
2182 * m2-lang.c (evaluate_subexp_modula2): New function.
2183 (exp_descriptor_modula2): New structure.
2184 (m2_language_defn): Use exp_descriptor_modula2.
2185 * m2-exp.y: Added TSIZE and binary subscript.
2186
2187 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2188
2189 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2190 after freeing it.
2191
2192 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2193
2194 * m32r-tdep.c (decode_prologue): Sign extend offset for
2195 "addi sp, xx" case.
2196 (m32r_frame_unwind_cache): Likewise.
2197
2198 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2199
2200 * rs6000-tdep.c (skip_prologue): Restore comment with
2201 function description to its proper place.
2202
2203 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2204
2205 * NEWS: Mention gdbserver PowerPC improvements.
2206
2207 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2208
2209 * features/Makefile (WHICH): Add PowerPC register definitions.
2210 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2211 (rs6000/powerpc-64-expedite): New macros.
2212 ($(outdir)/%.dat): Handle subdirectories.
2213 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2214 regformats/rs6000/powerpc-e500.dat: New generated files.
2215
2216 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2217
2218 * ppc-linux-nat.c (ppc_linux_read_description): New.
2219 (_initialize_ppc_linux_nat): Set to_read_description.
2220 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2221
2222 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2223
2224 * NEWS: Document target described register support for PowerPC.
2225 * ppc-tdep.h: Remove ppc_spr constants.
2226 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2227 ppc_builtin_type_vec128 members.
2228 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2229 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2230 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2231 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2232 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2233 * rs6000-tdep.c: Include preparsed descriptions.
2234 (init_sim_regno_table): Do not iterate over pseudo registers.
2235 Look up segment registers by name. Use sim_spr_register_name
2236 for SPRs.
2237 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2238 (rs6000_builtin_type_vec128): Delete.
2239 (rs6000_register_name): Only handle SPE pseudo registers and upper
2240 halves. Call tdesc_register_name for everything else.
2241 (rs6000_register_type): Delete. Replace with...
2242 (rs6000_pseudo_register_type): ...this new function. Only handle
2243 SPE pseudo registers.
2244 (rs6000_register_reggroup_p): Delete. Replace with...
2245 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2246 handle SPE pseudo registers.
2247 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2248 "struct reg".
2249 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2250 of reg->fpr.
2251 (e500_register_reggroup_p): Delete.
2252 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2253 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2254 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2255 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2256 (registers_powerpc, registers_403, registers_403GC, registers_505)
2257 (registers_860, registers_601, registers_602, registers_603)
2258 (registers_604, registers_750, registers_7400, registers_e500): Delete
2259 variables.
2260 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2261 tdesc.
2262 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2263 (variants): Delete outdated comment. Use standard target descriptions
2264 instead of "struct reg" arrays.
2265 (init_variants): Delete.
2266 (rs6000_gdbarch_init): Do not guess word size from the BFD
2267 architecture if we have a target description. Select a variant
2268 before creating a new architecture. Use the variant's target
2269 description if the target did not define a register layout.
2270 Validate target-supplied registers. Reject mismatches. Use
2271 fixed register numbers and new constants instead of magic
2272 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2273 (_initialize_rs6000_tdep): Initialize the preparsed target
2274 descriptions.
2275 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2276 uint128.
2277 (tdesc_find_register_early): New function.
2278 (tdesc_numbered_register): Use it.
2279 (tdesc_register_size): New function.
2280 (tdesc_use_registers): Take a target_desc argument. Do not use
2281 gdbarch_target_desc.
2282 * target-descriptions.h (tdesc_use_registers): Update prototype
2283 and comment.
2284 (tdesc_register_size): New prototype.
2285 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2286 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2287 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2288 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2289 (rs6000-tdep.o): Update.
2290 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2291 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2292 * mips-tdep.c (mips_gdbarch_init): Likewise.
2293
2294 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2295
2296 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2297 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2298 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2299 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2300 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2301 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2302 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2303 generated files.
2304
2305 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2306
2307 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2308 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2309 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2310 feature descriptions for standard PowerPC register sets.
2311
2312 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2313 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2314 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2315 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2316 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2317 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2318 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2319 target descriptions for PowerPC processors.
2320
2321 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2322
2323 * target-descriptions.c (tdesc_predefined_types): New.
2324 (tdesc_named_type): Use it.
2325 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2326 (_intialize_target_descriptions): Register "maint print c-tdesc".
2327 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2328 (cfiles, %.c): New rules.
2329 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2330 features/mips64-linux.c: New generated files.
2331
2332 * arm-linux-nat.c: Include preparsed description instead of
2333 "xml-support.h".
2334 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2335 (arm_linux_read_description): New function.
2336 (_initialize_arm_linux_nat): Set to_read_description instead of
2337 to_xfer_partial. Initialize preparsed description.
2338 * config/arm/linux.mh (TDEP_XML): Delete.
2339 * mips-linux-nat.c: Include preparsed descriptions instead of
2340 "xml-support.h".
2341 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2342 (mips_linux_read_description): New function.
2343 (_initialize_mips_linux_nat): Set to_read_description instead of
2344 to_xfer_partial. Initialize preparsed description.
2345 * config/mips/linux.mh (TDEP_XML): Delete.
2346 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2347 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2348 (mips64_linux_c): New macros.
2349 (arm-linux-nat.o, mips-linux-nat.o): Update.
2350
2351 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2352
2353 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2354 Replace xasprintf by xstrprintf.
2355 symfile-mem.c (add_vsyscall_page): Ditto.
2356
2357 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2358
2359 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2360 replacing use of global current_gdbarch.
2361 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2362 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2363
2364 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2365 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2366 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2367 (ia64_sigtramp_frame_cache): Update caller.
2368
2369 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2370
2371 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2372 (extract_return_value, store_return_value): Remove.
2373 (return_value): Remove default implementation.
2374 * gdbarch.c, gdbarch.h: Regenerate.
2375
2376 * stack.c (return_command): Remove compatibility hack.
2377 * arch-utils.c (legacy_return_value): Remove.
2378 * arch-utils.h (legacy_return_value): Likewise.
2379
2380 * arch-utils.c (always_use_struct_convention): Remove.
2381 * arch-utils.h (always_use_struct_convention): Likewise.
2382 * value.c (generic_use_struct_convention): Remove.
2383 * defs.h (generic_use_struct_convention): Likewise.
2384
2385 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2386
2387 * avr-tdep.c (avr_return_value): New function.
2388 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2389 set_gdbarch_extract_return_value.
2390
2391 * fvr-tdep.c (frv_return_value): New function.
2392 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2393 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2394 and set_gdbarch_deprecated_use_struct_convention.
2395
2396 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2397 Add check for structure, union, or array types.
2398 (ia64_extract_return_value): Make static.
2399 (ia64_store_return_value): Make static. Support multi-word values.
2400 (ia64_return_value): New function.
2401 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2402 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2403 and set_gdbarch_deprecated_use_struct_convention.
2404
2405 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2406
2407 * solib-target.c (solib_target_parse_libraries)
2408 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2409
2410 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2411
2412 * serial.h (struct serial_ops): Document read_prim to return zero
2413 at EOF.
2414 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2415 read_prim returns zero, not SERIAL_TIMEOUT.
2416
2417 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2418
2419 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2420 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2421 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2422 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2423
2424 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2425 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2426 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2427 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2428 * config/alpha/tm-alpha.h: Remove file.
2429
2430 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2431
2432 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2433 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2434
2435 * config/pa/tm-hppa.h: Delete file.
2436 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2437 * config/pa/hppahpux.mt: Likewise.
2438 * config/pa/hppa.mt: Likewise.
2439 * config/pa/linux.mt: Likewise.
2440 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2441
2442 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2443
2444 * config/arm/nm-nbsdaout.h: Remove file.
2445 * config/nm-nbsdaout.h: Likewise.
2446 * config/nm-nbsd.h: Likewise.
2447
2448 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2449
2450 * block.h (struct block): Remove "gcc_compile_flag" member.
2451 (BLOCK_GCC_COMPILED): Remove.
2452 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2453 * buildsym.c (finish_block): Do not set it.
2454 * symmisc.c (dump_symtab_1): Do not dump it.
2455
2456 * value.h (using_struct_return): Remove "gcc_p" argument.
2457 * value.c (using_struct_return): Likewise.
2458 * eval.c (evaluate_subexp_standard): Adapt callers.
2459 * infcall.c (call_function_by_hand): Likewise.
2460 * stack.c (return_command): Likewise.
2461 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2462
2463 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2464 * gdbarch.c, gdbarch.h: Regenerate.
2465 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2466 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2467 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2468 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2469 (push_dummy_code, call_function_by_hand): Adapt callers.
2470
2471 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2472
2473 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2474 (finish_command_continuation, finish_command): Adapt callers.
2475
2476 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2477
2478 * infcall.c (call_function_by_hand): Remove special handling
2479 for HP aCC compiled code.
2480
2481 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2482
2483 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2484 reference. Fix endianness bugs.
2485 (cris_reg_struct_has_address): Remove.
2486 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2487 and set_gdbarch_deprecated_use_struct_convention calls.
2488
2489 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2490 * gdbarch.c, gdbarch.h: Regenerate.
2491 * infcall.c (call_function_by_hand): Remove handling of
2492 deprecated_reg_struct_has_addr.
2493
2494 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2495 Kazu Hirata <kazu@codesourcery.com>
2496
2497 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2498 checking watchpoint resources.
2499
2500 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2501
2502 * memattr.c (inaccessible_by_default): Change the initial
2503 value to 1.
2504
2505 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2506
2507 PR gdb/2280
2508 * coffread.c (read_one_sym): Check for read errors.
2509
2510 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2511
2512 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2513 instead of "Linux 2.6.19" in comment.
2514 (linux_xfer_partial): Use "GNU/Linux target" instead of
2515 "Linux target" in comment.
2516 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2517 (m68k_linux_get_sigtramp_info): Likewise.
2518
2519 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2520
2521 * MAINTAINERS (language support): List Joel and Paul as
2522 Ada maintainers.
2523
2524 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2525
2526 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2527 checks.
2528 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2529 not set DEPRECATED_TM_FILE.
2530 * config/arm/tm-arm.h: Delete file.
2531
2532 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2533
2534 * MAINTAINERS (Write After Approval): Add self.
2535
2536 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2537
2538 * buildsym.c (record_line): Remove empty lines followed by
2539 end-of-sequence markers.
2540
2541 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2542
2543 * configure.tgt: Recognize fido-*-elf.
2544
2545 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2546
2547 GDB 6.7 released.
2548
2549 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2550
2551 * stack.c (print_frame_args, frame_info, return_command): Use
2552 get_regcache_arch or get_frame_arch to get at the current architecture
2553 by regcache or by frame, respectively.
2554
2555 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2556
2557 * rs6000-nat.c (fetch_register, store_register)
2558 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2559 get_regcache_arch to get at the current architecture by regcache.
2560
2561 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2562 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2563 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2564 current_gdbarch by gdbarch.
2565 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2566 (rs6000_value_to_register): Use get_frame_arch to get at the current
2567 architecture by frame_info.
2568
2569 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2570
2571 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2572 get_regcache_arch to get at the current architecture by regcache.
2573
2574 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2575 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2576 get_regcache_arch to get at the current architecture by regcache.
2577
2578 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2579 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2580 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2581 current architecture by regcache.
2582
2583 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2584
2585 * remote-mips.c (mips_wait, mips_fetch_registers)
2586 (mips_store_registers): Use get_regcache_arch to get at the
2587 current architecture by regcache.
2588
2589 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2590 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2591 get at the current architecture by regcache.
2592 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2593 architecture by frame_info.
2594
2595 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2596 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2597 the current architecture by regcache.
2598
2599 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2600 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2601 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2602 current architecture by frame_info.
2603 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2604 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2605 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2606 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2607 get at the current architecture by regcache.
2608
2609 * mips-linux-nat.c (mips_linux_register_addr)
2610 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2611 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2612 (mips64_linux_regsets_fetch_registers)
2613 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2614 the current architecture by regcache.
2615
2616 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2617 get at the current architecture by frame_info.
2618
2619 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2620
2621 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2622 current architecture by regcache.
2623 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2624 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2625 (mips_stub_frame_cache, mips_read_fp_register_single)
2626 (mips_read_fp_register_double, mips_print_fp_register)
2627 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2628 at the current architecture by frame_info.
2629 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2630 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2631 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2632 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2633 (mips_o32_push_dummy_call, mips_o32_return_value)
2634 (mips_o64_push_dummy_call, mips_o64_return_value)
2635 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2636 gdbarch.
2637
2638 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2639
2640 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2641 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2642 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2643 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2644 (xtensa_register_write_masked, xtensa_register_read_masked)
2645 (xtensa_supply_gregset, xtensa_store_return_value)
2646 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2647 current architecture by regcache.
2648 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2649 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2650 architecture by frame_info.
2651
2652 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2653
2654 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2655 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2656 out of loop. Do not set cache->frameoffset.
2657 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2658 frameoffset. Simplify framesize.
2659 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2660 frameoffset.
2661 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2662
2663 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2664
2665 * target.c (update_current_target): Call setup_target_debug.
2666 (push_target): Do not call it here.
2667
2668 2007-10-09 Michael Snyder <msnyder@specifix.com>
2669
2670 * MAINTAINERS: Update my email address.
2671
2672 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2673
2674 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2675 their expression:
2676 (xtensa_pseudo_register_read)
2677 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2678 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2679 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2680 (xtensa_pseudo_register_read)
2681 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2682 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2683 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2684 (xtensa_frame_prev_register): NUM_AREGS.
2685 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2686 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2687 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2688 (xtensa_supply_gregset, xtensa_frame_cache)
2689 (xtensa_frame_prev_register): WS_REGNUM.
2690 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2691 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2692 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2693 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2694 (xtensa_register_reggroup_p): REGMAP.
2695 (call0_track_op): LITBASE_REGNUM.
2696 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2697 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2698 (xtensa_frame_prev_register, AREG_NUMBER)
2699 (xtensa_register_type): AR_BASE.
2700 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2701 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2702 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2703 (xtensa_frame_cache, xtensa_frame_prev_register)
2704 (xtensa_extract_return_value, xtensa_store_return_value)
2705 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2706 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2707 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2708 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2709 (call0_frame_cache): A1_REGNUM.
2710 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2711 (xtensa_push_dummy_call): A4_REGNUM.
2712 (ARGS_FIRST_REG): A6_REGNUM.
2713 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2714 (xtensa_frame_prev_register): A15_REGNUM.
2715 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2716 them in the appropriate source file:
2717 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2718 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2719 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2720 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2721 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2722 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2723 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2724 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2725 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2726 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2727 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2728
2729 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2730
2731 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2732 the current architecture by frame_info.
2733 (h8300_frame_prev_register
2734 (h8300_print_register): Replace current_gdbarch by gdbarch.
2735 (h8300_print_registers_info, h8300_register_type)
2736 (h8300_register_type): Likewise.
2737
2738 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2739
2740 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2741 the current architecture by regcache.
2742 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2743 (i386_linux_fetch_inferior_registers)
2744 (i386_linux_store_inferior_registers): Likewise.
2745 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2746 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2747 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2748 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2749 (i386_extract_return_value, i386_store_return_value): Likewise.
2750 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2751 the current architecture by frame_info.
2752 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2753 (i386_register_to_value, i386_value_to_register): Likewise.
2754
2755 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2756
2757 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2758 the current architecture by regcache.
2759 (monitor_store_register, monitor_store_registers): Likewise.
2760
2761 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2762
2763 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2764 the current architecture by regcache.
2765
2766 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2767
2768 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2769 gdbarch.
2770
2771 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2772
2773 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2774 architecture by frame.
2775 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2776 (inside_main_func, frame_sp_unwind): Likewise.
2777
2778 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2779
2780 * solib-svr4.c (enable_break): Add the dynamic linker also if
2781 auxv succeeds.
2782
2783 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2784
2785 * MAINTAINERS (Write After Approval): Add self.
2786
2787 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2788
2789 * stabsread.c (read_huge_number): Initialize local variable to 0.
2790
2791 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2792
2793 * p-lang.h (pascal_main_name): Add declaration.
2794 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2795 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2796 (pascal_main_name): New function.
2797 * symtab.c: Include p-lang.h.
2798 (find_main_name): Add call to pascal_main_name.
2799 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2800
2801 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2802
2803 * stabsread.c (read_huge_number): Fix handling of octal
2804 representation when the bit width is known.
2805 (read_range_type): Record unsigned integral types with their size,
2806 when the type size is known.
2807
2808 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2809
2810 * MAINTAINERS (Write After Approval): Add self.
2811
2812 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2813
2814 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2815 Replace asprintf by xstrprintf.
2816
2817 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2818
2819 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2820 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2821
2822 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2823
2824 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2825 <sys/wait.h> include before last commit.
2826
2827 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2828
2829 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2830
2831 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2832
2833 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2834 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2835 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2836 (store_regs_user_thread, store_regs_kernel_thread): Use
2837 get_regcache_arch or get_frame_arch to get at the current architecture
2838 by regcache or by frame, respectively.
2839
2840 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2841
2842 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2843 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2844 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2845 (sh64_print_register, sh64_media_print_registers_info)
2846 (sh64_compact_print_registers_info, sh64_unwind_sp)
2847 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2848 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2849 (sh64_frame_prev_register): Use FRAME to recognize current
2850 architecture.
2851
2852 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2853
2854 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2855 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2856 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2857 current_gdbarch by gdbarch.
2858 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2859 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2860 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2861 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2862 recognize current architecture.
2863
2864 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2865
2866 * remote.c (init_remote_state, fetch_register_using_p)
2867 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2868 (store_register_using_P, store_registers_using_G)
2869 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2870 get at the current architecture by regcache or by frame, respectively.
2871
2872 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2873
2874 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2875 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2876 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2877 get_regcache_arch or get_frame_arch to get at the current architecture
2878 by regcache or by frame, respectively.
2879 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2880 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2881 (store_register, old_store_inferior_registers, supply_gregset)
2882 (supply_fpregset, fill_fpregset): Likewise.
2883 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2884 Replace current_gdbarch by gdbarch.
2885
2886 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2887
2888 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2889 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2890 get_frame_arch to get at the current architecture by regcache or by
2891 frame, respectively.
2892
2893 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2894
2895 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2896 Replace current_gdbarch by gdbarch.
2897 * ia64-tdep.c (ia64_frame_prev_register
2898 (ia64_sigtramp_frame_prev_register)
2899 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2900 get_frame_arch to get at the current architecture by regcache or by
2901 frame, respectively.
2902 * ia64-linux-nat.c (ia64_linux_fetch_register)
2903 (ia64_linux_fetch_registers, ia64_linux_store_register)
2904 (ia64_linux_store_registers): Likewise.
2905
2906 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2907
2908 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2909 current_gdbarch by gdbarch.
2910 * hppa-linux-nat.c (fetch_register, store_register)
2911 (hppa_linux_fetch_inferior_registers)
2912 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2913 get_frame_arch to get at the current architecture by regcache or by
2914 frame, respectively.
2915 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2916 (hppa_hpux_unwind_adjust_stub): Likewise.
2917 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2918 (hppa_hpux_fetch_inferior_registers)
2919 (hppa_hpux_store_inferior_registers): Likewise.
2920
2921 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2922
2923 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2924 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2925 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2926 or get_frame_arch to get at the current architecture by regcache or by
2927 frame, respectively.
2928 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2929 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2930 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2931 current_gdbarch by gdbarch.
2932
2933 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2934
2935 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2936 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2937 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2938 get at the current architecture by regcache or by·frame, respectively.
2939 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2940 gdbarch.
2941
2942 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2943
2944 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2945 Use get_regcache_arch or get_frame_arch to get at the current
2946 architecture by regcache or by frame, respectively.
2947 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2948 * amd64-nat.c (amd64_supply_native_gregset)
2949 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2950
2951 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2952
2953 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2954 gdbarch.
2955 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2956 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2957 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2958 get_frame_arch to get at the current architecture by regcache or by
2959 frame, respectively.
2960 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2961
2962 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2963
2964 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2965 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2966 current_gdbarch by gdbarch.
2967 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2968
2969 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2970
2971 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2972 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2973 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2974 get_frame_arch to get at the current architecture by regcache or by
2975 frame, respectively.
2976
2977 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2978
2979 * findvar.c (value_of_register, locate_var_value): Use
2980 get_regcache_arch or get_frame_arch to get at the current architecture
2981 by regcache or by frame, respectively.
2982 * findvar.c (default_value_from_register, value_from_register): Replace
2983 current_gdbarch by gdbarch.
2984
2985 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2986
2987 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2988
2989 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2990
2991 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2992 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2993
2994 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2995
2996 * remote.c (get_offsets): Only call free_symfile_segment_data if
2997 data was allocated.
2998
2999 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3000
3001 * objc-exp.y: ARI fix: remove 4 PARAMS.
3002
3003 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3004
3005 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3006 news. Mention XML support for M68K in GDB 6.7.
3007
3008 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3009
3010 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3011 bounds.
3012 (init_vector_type): Use builtin_type_int32.
3013
3014 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3015
3016 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3017 size to enable bi-arch generate-core-file support.
3018
3019 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3020
3021 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3022
3023 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3024
3025 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3026 signal handler.
3027 * tui/tui-win.c (tui_initialize_win): New function for
3028 initializing tui's SIGWINCH signal handler.
3029 * tui/tui-win.h (tui_initialize_win): Declare.
3030
3031 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3032
3033 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3034 pointer to uintptr_t before casting to CORE_ADDR.
3035
3036 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3037
3038 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3039
3040 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3041
3042 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3043 * ser-mingw.c (enum select_thread_state): New type.
3044 (struct ser_console_state): Add have_started and thread_state.
3045 (select_thread_wait): New function.
3046 (thread_fn_type): New type.
3047 (create_select_thread): New function.
3048 (destroy_select_thread): Likewise.
3049 (start_select_thread): Likewise.
3050 (stop_select_thread): Likewise.
3051 (console_select_thread): Use new functions.
3052 (pipe_select_thread): Likewise.
3053 (file_select_thread): Likewise.
3054 (ser_console_wait_handle): Likewise.
3055 (ser_console_done_wait_handle): Likewise.
3056 (ser_console_close): Likewise.
3057 (free_pipe_state): Likewise.
3058 (pipe_wait_handle): Likewise.
3059 (pipe_done_wait_handle): Likewise.
3060 (struct net_windows_state): Derive from ser_console_state.
3061 (net_windows_select_thread): Use new functions.
3062 (net_windows_wait_handle): Likewise.
3063 (net_windows_done_wait_handle): Likewise.
3064 (net_windows_close): Likewise.
3065
3066 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3067
3068 * inflow.c (terminal_ours_1): Remove useless line.
3069
3070 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3071
3072 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3073 odd FP registers.
3074 (mips_print_fp_register): Correct check for even FP registers.
3075 (mips_virtual_frame_pointer): New function.
3076 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3077
3078 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3079
3080 * value.h (lookup_only_internalvar): New prototype.
3081 (create_internalvar): Likewise.
3082 * value.c (lookup_only_internalvar): New function.
3083 (create_internalvar): Likewise.
3084 (lookup_internalvar): Use new lookup_only_internalvar and
3085 create_internalvar functions.
3086 * parse.c (write_dollar_variable): Look up $ symbols in internal
3087 table first rather than last.
3088
3089 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3090
3091 * linux-nat.c (linux_nat_new_thread): New variable.
3092 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3093 linux_nat_switch_fork.
3094 (lwp_list): Make public.
3095 (add_lwp): Call linux_nat_new_thread.
3096 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3097 the new thread.
3098 (resume_callback): Clear lp->siginfo. Remove unused variable.
3099 (linux_nat_resume): Assert that the LWP list is already initialized.
3100 Clear lp->siginfo.
3101 (save_siginfo): New.
3102 (stop_wait_callback, linux_nat_wait): Call it.
3103 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3104 * linux-nat.h (struct lwp_info): Add siginfo.
3105 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3106 (ALL_LWPS): Define.
3107
3108 * amd64-linux-nat.c (amd64_linux_dr): New.
3109 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3110 (amd64_linux_dr_set): Take a PTID argument.
3111 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3112 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3113 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3114 (amd64_linux_new_thread): New.
3115 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3116 * i386-linux-nat.c (i386_linux_dr): New.
3117 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3118 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3119 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3120 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3121 (i386_linux_new_thread): New.
3122 (i386_linux_resume): Remove unnecessary PID check.
3123 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3124 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3125 (fetch_debug_register, fetch_debug_register_pair): Delete.
3126 (debug_registers): New.
3127 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3128 ALL_LWPS and debug_registers.
3129 (ia64_linux_new_thread): New.
3130 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3131 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3132 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3133 (saved_dabr_value): New.
3134 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3135 ALL_LWPS.
3136 (ppc_linux_new_thread): New.
3137 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3138 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3139 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3140 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3141 after reading it.
3142 (s390_fix_watch_points): Take a PTID argument.
3143 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3144 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3145
3146 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3147 Jeff Johnston <jjohnstn@redhat.com>
3148
3149 * breakpoint.c (watchpoints_triggered): New.
3150 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3151 Check watchpoint_triggered instead. Combine handling for software
3152 and hardware watchpoints. Do not use target_stopped_data_address
3153 here. Always check a watchpoint if its scope breakpoint triggers.
3154 Do not stop for thread or overlay events. Improve check for
3155 triggered watchpoints without a value change.
3156 (watch_command_1): Insert the scope breakpoint first. Link the
3157 scope breakpoint to the watchpoint.
3158 * breakpoint.h (enum watchpoint_triggered): New.
3159 (struct breakpoint): Add watchpoint_triggered.
3160 (bpstat_stop_status): Update prototype.
3161 (watchpoints_triggered): Declare.
3162 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3163 (stepped_after_stopped_by_watchpoint): Delete.
3164 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3165 local. Handle infwait_step_watch_state. Update calls to
3166 bpstat_stop_status. Use watchpoints_triggered to check
3167 watchpoints.
3168 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3169 (remote_stopped_data_address): Do not check it.
3170
3171 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3172
3173 * configure.ac: Add $LIBINTL when testing libbfd.
3174 * configure: Regenerated.
3175
3176 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3177
3178 * NEW: Mention pending breakpoint changes and
3179 support for breakpoints at multiple locations.
3180
3181 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3182
3183 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3184 (arm_linux_init_abi): Use it.
3185 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3186 condition correctly.
3187 * arm-tdep.h (arm_get_next_pc): Declare.
3188 * Makefile.in (arm-linux-tdep.o): Update.
3189
3190 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3191
3192 * varobj.c (install_new_value): Don't
3193 call value_get_print_value when a value is
3194 lazy. Update the print_value member in a
3195 single place.
3196
3197 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3198
3199 * breakpoint.c (create_breakpoint): Set
3200 condition on each location, not on the first
3201 location of breakpoint.
3202
3203 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3204
3205 * remote.c (getpkt_sane): Fix error message. No animals were
3206 harmed in the making of this debugger.
3207
3208 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3209
3210 * p-typeprint.c: Fix 11 ARI reported problems.
3211 (pascal_print_type): Fix 4 operator at end of line.
3212 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3213 using strncmp function.
3214 (pascal_type_print_base): Fix 2 operator at end of line.
3215 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3216 using strncmp function.
3217
3218
3219 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3220
3221 * Fix PR pascal/2231
3222 dwarf2read.c (read_subroutine_type):
3223 All pascal functions are prototyped.
3224
3225 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3226
3227 * Fix PR pascal/2283
3228 p-valprint.c (pascal_val_print): correct current language check.
3229 Also print array of char as strings.
3230
3231
3232 2007-09-26 David Ung <davidu@mips.com>
3233 Maciej W. Rozycki <macro@mips.com>
3234
3235 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3236
3237 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3238
3239 * p-exp.y: Fix 12 ARI reported problems.
3240 (name_not_typename): Fix 2 operator at end of line issues.
3241 (yylex): Fix 3 operator at end of line issues.
3242 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3243
3244 2007-09-25 David Ung <davidu@mips.com>
3245 Maciej W. Rozycki <macro@mips.com>
3246
3247 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3248 rules return composite types in registers as appropriate.
3249
3250 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3251
3252 * symfile.h (struct symfile_segment_data): Doc fixes.
3253 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3254 Assert that we were passed some loaded segment addresses,
3255 and that sections' segment numbers are valid.
3256 Simplify offset calculation.
3257 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3258 strategy, and set num_segments correctly. Delete redundant
3259 assignments to do_sections.
3260
3261 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3262
3263 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3264
3265 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3266
3267 * breakpoint.c (remove_sal): New.
3268 (expand_line_sal_maybe): New.
3269 (create_breakpoints): Call expand_line_sal_maybe.
3270 (clear_command): Add comment.
3271 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3272 * linespec.c (decode_indirect): Set explicit_pc to 1.
3273 (decode_all_digits): Set explicit_line to 1.
3274 (append_expanded_sal): New.
3275 (expand_line_sal): New.
3276 * linespec.h (expand_line_sal): Declare.
3277 * symtab.c (init_sal): Initialize explicit_pc
3278 and explicit_line.
3279 * symtab.h (struct symtab_and_line): New fields
3280 explicit_pc and explicit_line.
3281
3282 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3283
3284 * infcall.c (call_function_by_hand): Handle language-specific
3285 pass and return by reference.
3286
3287 * cp-abi.c (cp_pass_by_reference): New.
3288 * cp-abi.h (cp_pass_by_reference): Declare.
3289 (struct cp_abi_ops): Add pass_by_reference.
3290 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3291 (init_gnuv3_ops): Set pass_by_reference.
3292
3293 * language.c (language_pass_by_reference): New.
3294 (default_pass_by_reference): New.
3295 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3296 default_pass_by_reference.
3297 * langauge.h (struct language_defn): Add la_pass_by_reference.
3298 (language_pass_by_reference, default_pass_by_reference): Declare.
3299 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3300 * c-lang.c (c_language_defn, asm_language_defn)
3301 (minimal_language_defn): Likewise.
3302 (cplus_language_defn): Add cp_pass_by_reference.
3303 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3304 * jv-lang.c (java_language_defn): Likewise.
3305 * m2-lang.c (m2_language_defn): Likewise.
3306 * objc-lang.c (objc_language_defn): Likewise.
3307 * p-lang.c (pascal_language_defn): Likewise.
3308 * scm-lang.c (scm_language_defn): Likewise
3309
3310 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3311
3312 Allow a code breakpoint to have several locations
3313 associated with it.
3314 * breakpoint.h (enum enable_state): Remove the
3315 bp_shlib_disabled enumerator.
3316 (struct bp_location): New members shlib_disabled,
3317 global_next, enabled and function_name.
3318 Rename pending to condition_not_parsed.
3319
3320 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3321 (ALL_BP_LOCATIONS_SAFE): Likewise.
3322 (breakpoint_enabled): Don't check for pending.
3323 (condition_command): Free and update all locations of
3324 a breakpoint.
3325 (insert_bp_location): Adjust.
3326 (software_breakpoint_inserted_here_p): Don't care
3327 if breakpoint is enabled, as soon as it's inserted.
3328 (print_it_typical): Print bpstat's location, not
3329 bpstat's breakpoint's location.
3330 (bpstat_stop_status): Iterate over all locations, not
3331 all breakpoints.
3332 (print_breakpoint_location): New.
3333 (print_one_breakpoint): Renamed to
3334 (print_one_breakpoint_location): ...this. Take
3335 parameters to describe which location is being
3336 printed. Modify code to properly print header
3337 for several locations and individual locations.
3338 (print_one_breakpoint): Print all locations.
3339 (breakpoint_has_pc): New.
3340 (describe_other_breakpoints): Use the above.
3341 (check_duplicates): Renamed to...
3342 (check_duplicates_for): .. this.
3343 (check_duplicates): Use check_duplicates_for.
3344 (allocate_bp_location): Adjust.
3345 (set_raw_breakpoint_without_location): New,
3346 extracted from set_raw_breakpoint.
3347 (set_breakpoint_location_function): New.
3348 (set_raw_breakpoint): Use
3349 set_raw_breakpoint_without_location.
3350 (make_breakpoint_permanent): Mark all locations
3351 as inserted.
3352 (disable_breakpoints_in_shlibs): Iterate over
3353 locations.
3354 (disable_breakpoints_in_unloaded_shlib): Likewise.
3355 (re_enable_breakpoints_in_shlibs): Likewise.
3356 (mention): Say "pending" when breakpoint has
3357 zero locations. If breakpoint has more than one
3358 location, say so.
3359 (add_location_to_breakpoint): New.
3360 (create_breakpoint): Accept symtabs_and_lines, not
3361 symtab_and_line. Pass extra sals to
3362 add_location_to_breakpoint.
3363 (create_breakpoints): Pass symtabs_and_lines to
3364 create_breakpoints.
3365 (break_command_1): Make pending breakpoints
3366 have zero locations.
3367 (do_captured_breakpoint): Remove wrong allocation.
3368 (clear_command): Iterate over all locations.
3369 (unlink_locations_from_global_list): Renamed
3370 from unlink_location_from_global_list. Remove
3371 all locations.
3372 (delete_breakpoint): Remove all locations.
3373 Iterate over all locations when deciding which
3374 other location to re-enable.
3375 (all_locations_are_pending): New.
3376 (update_breakpoint_locations): Renamed from
3377 update_breakpoint_location. Try to match old
3378 and new locations using names of containing
3379 functions.
3380 (breakpoint_re_set_one): Adjust.
3381 (find_location_by_number): New.
3382 (disable_command): Allow disabling individual location.
3383 (enable_command): Allow enabling individual location.
3384 * breakpoint.c: Adjust all uses of breakpoint's
3385 enable state to for bp_shlib_disabled change.
3386
3387 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3388
3389 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3390 (resolve_pending_breakpoint): Remove.
3391 (re_enable_breakpoints_in_shlibs): Remove.
3392 (unlink_locations_from_global_list): New.
3393 (update_breakpoint_locations): New.
3394 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3395 Use parse_condition and update_breakpoint_location to
3396 reset breakpoint. Ignore 'symbol not found' error from
3397 decode_line_1.
3398 (breakpoint_re_set): Don't emit newline before the
3399 reason why breakpoint is not reset.
3400 (do_enable_breakpoint): Don't specially process pending
3401 breakpoints.
3402 (free_bp_location): New.
3403 (break_command_1): For pending breakpoints, initialize
3404 all fields of a sal with zeroes.
3405 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3406 * infcmd.c (post_create_inferior): Don't call
3407 re_enable_breakpoints_in_shlibs.
3408 * infrun.c (handle_inferior_event): Likewise.
3409 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3410 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3411 * win32-nat.c (get_win32_debug_event): Likewise.
3412
3413 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3414
3415 * breakpoint.c (create_breakpoint): Split from
3416 create_breakpoints, implementing most of its logic.
3417 Take just a single sal, single address string and
3418 single condition. Do not take parsed condition at
3419 all.
3420 (create_breakpoints): Just call create_breakpoint
3421 for each sal.
3422 (find_condition_and_thread): New.
3423 (break_command_1): Use find_condition_and_thread.
3424 Do not keep parsed conditions.
3425 (do_captured_breakpoint): Don't convert
3426 condition string to struct expression.
3427
3428 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3429
3430 * breakpoint.h (struct breakpoint): Move the cond
3431 field to...
3432 (struct bp_location): Here.
3433 * breakpoint.c (condition_command, bpstat_stop_status)
3434 (print_one_breakpoint, allocate_bp_location)
3435 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3436 (create_exec_event_catchpoint, create_breakpoints)
3437 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3438 (create_ada_exception_breakpoint, set_breakpoint_sal)
3439 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3440 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3441
3442 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3443
3444 Associate bp_stat with bp_location, not breakpoint.
3445 * breakpoint.h (breakpoint_at): Change type
3446 to bp_location*.
3447 * breakpoint.c (bpstat_alloc): Take bp_location,
3448 not breakpoint.
3449 (bpstat_find_breakpoint): Look at bpstat's location's
3450 owner, not at bpstat->breakpoint_at.
3451 (bpstat_find_step_resume_breakpoint): Likewise.
3452 (bpstat_num): Likewise.
3453 (print_it_typical): Likewise.
3454 (print_bp_stop_message): Likewise.
3455 (watchpoint_check): Likewise.
3456 (bpstat_what): Likewise.
3457 (bpstat_get_triggered_catchpoints): Likewise.
3458 (breakpoint_auto_delete): Likewise.
3459 (delete_breakpoint): Likewise.
3460 (bpstat_stop_status): Pass location, not breakpoint,
3461 to bpstat_alloc. Look at bpstat's location's
3462 owner, not at bpstat->breakpoint_at.
3463
3464 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3465
3466 * macrotab.h (new_macro_table): Document that removing information
3467 from an obstack/bcache-managed macro table leaks memory.
3468 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3469 that data is never freed in obstack/bcache-managed macro tables,
3470 just leak the storage.
3471 (macro_undef): If we're undefining a macro at exactly the same
3472 source location that we defined it, simply remove the definition
3473 altogether.
3474
3475 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3476
3477 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3478 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3479 Adjust the struct sym_fns object accordingly by setting
3480 the new field to NULL.
3481 * xcoffread.c (aix_process_linenos): Make static.
3482 (xcoff_sym_fns): Set new field to aix_process_linenos.
3483 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3484 by call to new the new sym_fns sym_read_linetable function.
3485 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3486 * config/rs6000/tm-rs6000.h: Delete.
3487
3488 2007-09-21 David Ung <davidu@mips.com>
3489 Maciej W. Rozycki <macro@mips.com>
3490
3491 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3492 rules do not treat composite types specially.
3493
3494 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3495
3496 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3497 (mips16_in_function_epilogue_p): Likewise.
3498 (mips_in_function_epilogue_p): Likewise.
3499 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3500
3501 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3502
3503 * configure.ac: Add check for "etext".
3504 * configure, config.in: Regenerate.
3505 * maint.c (TEXTEND): Only define if either _etext or etext
3506 are available.
3507 Disable the profiling functionality if TEXTEND is not defined.
3508
3509 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3510
3511 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3512 address register. Correct the call to frame_id_build.
3513 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3514 is invalid.
3515
3516 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3517
3518 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3519 the linetable past the function end.
3520
3521 2007-09-18 James E. Wilson <wilson@specifix.com>
3522
3523 * MAINTAINERS: Update my email address.
3524
3525 2007-09-18 Jerome Guitton <guitton@adacore.com>
3526
3527 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3528 (inf_ttrace_delete_dying_threads_callback): New function.
3529 (inf_ttrace_resume): After resuming the execution, iterate over
3530 the dying threads to delete them for the thread list.
3531 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3532 mark the corresponding thread as dying instead of removing it
3533 from the thread list.
3534 (inf_ttrace_thread_alive): return 0 for dying threads.
3535
3536 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3537
3538 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3539 that return_frame is not null.
3540
3541 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3542
3543 * solib-svr4.c: Add include of "auxv.h".
3544 (enable_break): Use the AT_BASE auxiliary entry if available.
3545 * Makefile.in (solib-svr4.o): Update dependencies.
3546
3547 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3548
3549 * NEWS: Create a new section for the next release branch.
3550 Rename the section of the current branch, now that it has
3551 been cut.
3552
3553 2007-09-17 Jerome Guitton <guitton@adacore.com>
3554
3555 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3556 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3557
3558 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3559
3560 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3561 * mi/mi-cmds.h (mi_cmd_list_features): New.
3562 * mi/mi-main.c (mi_cmd_list_features): New.
3563
3564 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3565
3566 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3567 * version.in: Bump version to 6.7.50-20070911-cvs.
3568
3569 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3570
3571 * thread.c (free_thread): Do not delete the step resume breakpoint
3572 right away.
3573
3574 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3575
3576 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3577 * corelow.c (core_read_description): New.
3578 (init_core_ops): Set to_read_description.
3579 * gdbarch.sh: Add gdbarch_core_read_description.
3580 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3581 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3582 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3583 (mips_register_g_packet_guesses): Use them.
3584 (_initialize_mips_tdep): Initialize them.
3585 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3586 * gdbarch.h, gdbarch.c: Regenerated.
3587
3588 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3589
3590 * infrun.c (stepping_past_breakpoint): New global variable.
3591 (stepping_past_breakpoint_ptid): Likewise.
3592 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3593 Only switch threads if we need to single-step over a breakpoint hit
3594 in the previously selected thread. If stepping, remember previous
3595 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3596 switch_to_thread instead of copying its contents.
3597 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3598 prepare_to_proceed returns true.
3599 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3600 (context_switch): Call switch_to_thread.
3601 (handle_inferior_event): Switch back to previous thread if requested
3602 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3603 * gdbthread.h (switch_to_thread): Add prototype.
3604 * thread.c (switch_to_thread): Make global.
3605
3606 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3607
3608 * p-valprint.c: Fix 7 ARI reported problems.
3609 (pascal_val_print): Fix one operator at end of line issue.
3610 Use paddress function to remove use of
3611 deprecated_print_address_numeric function (2 times).
3612 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3613 (pascal_value_print): Fix 3 operator at end of line issues.
3614
3615 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3616
3617 PR gdb/2103
3618 * arm-tdep.c (arm_in_call_stub): Delete.
3619 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3620
3621 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3622
3623 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3624 types.
3625
3626 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3627 Jim Blandy <jimb@codesourcery.com>
3628
3629 * NEWS: Update description of string changes. Mention print/s.
3630 * c-valprint.c (textual_element_type): New.
3631 (c_val_print): Use it. Do not skip address printing for pointers
3632 with a string format.
3633 (c_value_print): Doc update.
3634 * dwarf2read.c (read_array_type): Use make_vector_type.
3635 * gdbtypes.c (make_vector_type): New.
3636 (init_vector_type): Use it.
3637 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3638 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3639 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3640 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3641 (make_vector_type): New.
3642 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3643 Call the language print routine for string format.
3644 (print_scalar_formatted): Call val_print for string format. Handle
3645 unsigned original types for char format.
3646 (validate_format): Do not reject string format.
3647 * stabsread.c (read_type): Use make_vector_type.
3648 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3649
3650 2007-09-04 Michael Snyder <msnyder@access-company.com>
3651
3652 * expprint.c (print_subexp_standard): Check strchr for null.
3653 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3654
3655 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3656
3657 * stabsread.c (patch_block_status): Guard against null.
3658 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3659
3660 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3661
3662 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3663 in internal error message.
3664
3665 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3666 Daniel Jacobowitz <dan@codesourcery.com>
3667
3668 * infcmd.c (post_create_inferior): Update comment.
3669 (run_command_1): Always call post_create_inferior with 0 as
3670 from_tty.
3671
3672 * i386-cygwin-tdep.h: New.
3673 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3674 (win32_xfer_shared_library): Make it extern.
3675
3676 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3677 i386-cygwin-tdep.h.
3678 (win32_so_ops): Delete.
3679 (get_relocated_section_addrs): Delete.
3680 (solib_symbols_add): Delete.
3681 (register_loaded_dll): Delete.
3682 (win32_make_so): New.
3683 (handle_load_dll): Use win32_make_so.
3684 (win32_free_so): Free the passed in so.
3685 (win32_relocate_section_addresses): Delete.
3686 (win32_solib_create_inferior_hook): Delete.
3687 (handle_unload_dll): Don't add PE offset here. Free so with
3688 win32_free_so instead of free_so.
3689 (win32_special_symbol_handling): Delete.
3690 (get_win32_debug_event): Remove unneeded calls. Set state to
3691 TARGET_WAITKIND_LOADED on a dll unload.
3692 (do_initial_win32_stuff): Clear cygwin_load_start and
3693 cygwin_load_end.
3694 (map_code_section_args): Delete.
3695 (dll_code_sections_add): Delete.
3696 (core_section_load_dll_symbols): Delete.
3697 (win32_xfer_shared_libraries): New.
3698 (win32_current_sos): Delete.
3699 (win32_xfer_partial): New.
3700 (open_symbol_file_object): Delete.
3701 (in_dynsym_resolve_code): Delete.
3702 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3703 of win32_ops. Remove win32_so_ops settings. Don't set
3704 current_target_so_ops here.
3705
3706 * Makefile.in (i386_cygwin_tdep_h): New variable.
3707 (i386-cygwin-tdep.o): Update dependencies.
3708 (win32-nat.o): Update dependencies.
3709
3710 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3711 Daniel Jacobowitz <dan@codesourcery.com>
3712
3713 * gdbarch.sh (core_xfer_shared_libraries): New.
3714
3715 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3716
3717 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3718
3719 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3720 (xml_escape_text): New.
3721 * xml-support.h (xml_escape_text): Declare.
3722
3723 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3724 * config/i386/cygwin.mt (TDEPFILES): ... here.
3725
3726 * win32-nat.c: (fetch_elf_core_registers): Delete.
3727 (win32_elf_core_fn): Delete.
3728 (_initialize_core_win32): Delete.
3729
3730 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3731 "xml-support.h" and "gdbcore.h".
3732 (i386_win32_gregset_reg_offset): New.
3733 (I386_WIN32_SIZEOF_GREGSET): New.
3734 (i386_win32_regset_from_core_section): New.
3735 (win32_xfer_shared_library): New.
3736 (struct cpms_data): New.
3737 (core_process_module_section): New.
3738 (win32_core_xfer_shared_libraries): New.
3739 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3740 gregset_num_regs, sizeof_gregset members of tdep. Register
3741 regset_from_core_section and core_xfer_shared_libraries callbacks.
3742
3743 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3744 * gdbarch.h, gdbarch.c: Regenerate.
3745
3746 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3747
3748 * corelow.c (core_xfer_partial): Pass writebuf to
3749 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3750
3751 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3752
3753 * arm-tdep.h (arm_skip_stub): Declare.
3754 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3755 "gdbcore.h".
3756 (arm_pe_skip_trampoline_code): New function.
3757 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3758 gdbarch_skip_trampoline_code callback.
3759 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3760
3761 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3762
3763 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3764
3765 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3766
3767 * configure.ac: Add --with-expat.
3768 * configure: Regenerated.
3769
3770 2007-09-03 Andreas Schwab <schwab@suse.de>
3771
3772 * configure.ac: Accept --with-system-readline.
3773 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3774 * configure: Regenerate.
3775 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3776 substituted values.
3777 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3778
3779 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3780 Daniel Jacobowitz <dan@codesourcery.com>
3781
3782 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3783
3784 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3785
3786 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3787
3788 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3789
3790 * top.c (print_gdb_version): Update for GPL version 3.
3791
3792 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3793
3794 * NEWS: Mention the build-id .debug files verification.
3795
3796 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3797
3798 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3799
3800 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3801
3802 * Makefile.in (symfile.o): Update dependencies.
3803 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3804 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3805 (struct build_id): New structure.
3806 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3807 (find_separate_debug_file): New variable BUILD_ID.
3808 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3809
3810 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3811
3812 * varobj.c (struct varobj): Fix comment
3813 for the type member not to lie when it can be
3814 NULL.
3815
3816 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3817
3818 Implement -var-info-path-expression.
3819
3820 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3821 Declare.
3822 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3823 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3824 * varobj.c (struct varobj): New field 'path_expr'.
3825 (c_path_expr_of_child, cplus_path_expr_of_child)
3826 (java_path_expr_of_child): New.
3827 (struct language_specific): New field path_expr_of_child.
3828 (varobj_create): Initialize the path_expr field.
3829 (varobj_get_path_expr): New.
3830 (new_variable): Initialize the path_expr field.
3831 (free_variable): Free the path_expr field.
3832 (adjust_value_for_children_access): New parameter
3833 WAS_TYPE.
3834 (c_number_of_children): Adjust.
3835 (c_describe_child): New parameter CFULL_EXPRESSION.
3836 Compute full expression.
3837 (c_value_of_child, c_type_of_child): Adjust.
3838 (cplus_number_of_children): Adjust.
3839 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3840 Compute full expression.
3841 (cplus_name_of_child, cplus_value_of_child)
3842 (cplus_type_of_child): Adjust.
3843 * varobj.h (varobj_get_path_expr): Declare.
3844
3845 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3846
3847 * mi/mi-cmd-var.c (print_varobj): If a varobj
3848 type is NULL, don't try to print it.
3849
3850 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3851
3852 * ppc-linux-nat.c (right_fill_reg): Delete.
3853 (supply_gregset): Use ppc_supply_gregset.
3854 (supply_fpregset): Use ppc_supply_fpregset.
3855 (fill_gregset): Use ppc_collect_gregset.
3856 (fill_fpregset): Use ppc_collect_fpregset.
3857 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3858 (right_supply_register, ppc_linux_supply_gregset): Delete.
3859 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3860 (ppc_linux_supply_fpregset): Delete.
3861 (ppc_linux_collect_gregset): New function.
3862 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3863 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3864 ppc_linux_supply_gregset, and ppc_collect_gregset.
3865 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3866 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3867 (ppc_linux_regset_from_core_section): Update.
3868 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3869 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3870 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3871 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3872 (ppcobsd_collect_gregset): Likewise.
3873 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3874 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3875 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3876 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3877 (rs6000_aix64_reg_offsets): Likewise.
3878 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3879 ppc_floating_point_unit_p.
3880 (rs6000_aix_collect_regset): Similarly.
3881 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3882 when regsize is larger than regcache register size.
3883 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3884 regcache register size.
3885 (ppc_greg_offset): New function, split out from..
3886 (ppc_supply_gregset): ..here. Separate code handling all regs from
3887 single reg case. Correct xer offset.
3888 (ppc_fpreg_offset): New function, split out from..
3889 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3890 single reg case.
3891 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3892 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3893 a fp unit, instead return if no fp.
3894
3895 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3896
3897 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3898 this code has not been compiled for two years.
3899
3900 2007-08-29 Michael Snyder <msnyder@access-company.com>
3901
3902 * event-top.c (gdb_readline2): Return after EOF.
3903
3904 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3905
3906 * symtab.c: Remove a function that has been commented out 3 years ago.
3907
3908 2007-08-29 Randolph Chung <tausq@debian.org>
3909
3910 * hppa-tdep.c (hppa32_cannot_fetch_register)
3911 (hppa64_cannot_fetch_register): New functions.
3912 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3913 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3914
3915 2007-08-28 Michael Snyder <msnyder@access-company.com>
3916
3917 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3918 check for null before calling check_typedef.
3919
3920 * NEWS: Mention Coverity bug fixes.
3921
3922 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3923
3924 * spu-tdep.c (spu_pointer_to_address): New function.
3925 (spu_integer_to_address): Likewise.
3926 (spu_gdbarch_init): Add spu_pointer_to_address and
3927 spu_integer_to_address to gdbarch.
3928
3929 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3930
3931 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3932
3933 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3934
3935 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3936 that contains the GDB license.
3937 * copying.awk: Adjust to the GPLv3 wording.
3938 * copying.c: Regenerate.
3939
3940 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3941
3942 * copying.awk: Protoization, and i18n markup.
3943
3944 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3945
3946 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3947 * copyright.sh: Likewise.
3948 * gdb-events.sh: Likewise.
3949 * gdb_gcore.sh: Likewise.
3950 * gdb_mbuild.sh: Likewise.
3951 * gdbarch.sh: Likewise.
3952 * observer.sh: Likewise.
3953 * features/feature_to_c.sh: Likewise.
3954 * regformats/regdat.sh: Likewise.
3955
3956 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3957
3958 Switch the license of all .c files to GPLv3.
3959 Switch the license of all .h files to GPLv3.
3960 Switch the license of all .cc files to GPLv3.
3961
3962 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3963
3964 * configure.ac: Switch license to GPLv3.
3965
3966 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3967
3968 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3969 determine the file's FPU type.
3970
3971 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3972
3973 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3974 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3975 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3976
3977 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3978
3979 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3980 Fix formatting.
3981 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3982 (elf_lookup_lib_symbol): Fix formatting.
3983
3984 2007-08-21 Michael Snyder <msnyder@access-company.com>
3985
3986 * dbxread.c (read_dbx_symtab): Guard null deref.
3987 Break up long line.
3988
3989 * valops.c (find_overload_match): Guard against NULL.
3990
3991 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3992
3993 * MAINTAINERS (Patch Champions): Remove self.
3994
3995 2007-08-21 Chris Smith <chris.smith@st.com>
3996
3997 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3998 line.
3999
4000 2007-08-18 Michael Snyder <msnyder@access-company.com>
4001
4002 * stabsread.c (dbx_lookup_type): Memory leak.
4003
4004 * event-loop.c (delete_async_signal_handler): Move pointer null
4005 test to before pointer dereference.
4006
4007 * ui-out.c (append_header_to_list): Possible cut and paste error.
4008
4009 * MAINTAINERS: white space tweak.
4010
4011 2007-08-17 Michael Snyder <msnyder@access-company.com>
4012
4013 * stack.c (print_frame): Memory leak.
4014
4015 * completer.c (filename_completer): Avoid memory leak.
4016 Remove unnecessary nested block.
4017
4018 * c-exp.y (parse_number): Memory leak.
4019
4020 * completer.c (location_completer): Must free 'fn_list', except
4021 in the one case where it is returned (as 'list').
4022
4023 * varobj.c (value_of_root): Memory leak.
4024
4025 * gdbtypes.h (virtual_base_list): Remove export decl.
4026 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4027 (virtual_base_index): Memory leak.
4028 (virtual_base_index_skip_primaries): Ditto.
4029
4030 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4031
4032 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4033 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4034 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4035 (xtensa_read_register): New function.
4036 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4037 (xtensa_insn_kind): New types.
4038 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4039 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4040 (xtensa_verify_config, xtensa_pseudo_register_read)
4041 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4042 (xtensa_store_return_value)
4043 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4044 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4045 (xtensa_frame_this_id, xtensa_frame_prev_register)
4046 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4047 (call0_frame_cache, call0_frame_get_reg_at_entry)
4048 (call0_classify_opcode, call0_track_op)
4049 (call0_analyze_prologue, call0_frame_cache): New functions.
4050
4051 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4052
4053 * breakpoint.c (bpstat_free): New.
4054 (bpstat_clear): Use bpstat_free.
4055 (delete_breakpoint): Document why we cannot
4056 remove bpstats from stop_bpstat.
4057 * breakpoint.h (bpstat_free): Declare.
4058
4059 2007-08-16 Michael Snyder <msnyder@access-company.com>
4060
4061 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4062
4063 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4064 Joel Brobecker <brobecker@adacore.com>
4065
4066 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4067
4068 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4069 Joel Brobecker <brobecker@adacore.com>
4070
4071 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4072 checkin guarding against NULL.
4073
4074 2007-08-14 Michael Snyder <msnyder@access-company.com>
4075
4076 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4077 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4078 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4079 go at beginning of new line.
4080
4081 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4082 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4083 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4084 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4085 tui-winsource.h, tui.c, tui.h: Function declarations and
4086 definitions, wrap long lines.
4087
4088 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4089 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4090 Reformat block comments to GNU standard.
4091
4092 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4093 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4094 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4095 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4096 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4097 spaces after periods, etc).
4098
4099 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4100 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4101 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4102 tui-winsource.h: Whitespace changes, fix pointer declarations
4103 to be consistant.
4104
4105 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4106 Michael Snyder <msnyder@access-company.com>
4107
4108 * ada-lang.c (field_alignment): Guard against NULL.
4109
4110 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4111
4112 * MAINTAINERS (Global Maintainers): Add self.
4113
4114 2007-08-14 Michael Snyder <msnyder@access-company.com>
4115
4116 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4117
4118 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4119
4120 * varobj.c (cplus_describe_child): Guard against null.
4121 Use "NULL" instead of "0" to initialize pointers.
4122
4123 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4124
4125 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4126 to match any gdbarch with matching OSABI. Set default ABI and FPU
4127 after running the OSABI handler.
4128
4129 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4130
4131 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4132 * config/i386/linux.mt (TDEPFILES): ...to here.
4133
4134 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4135
4136 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4137 the 'silent' parameter and code to implement that.
4138 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4139 prototype.
4140 * win32-nat.c: Adjust.
4141 * solib.c: Adjust.
4142
4143 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4144
4145 * breakpoint.c (update_breakpoints_after_exec): Don't
4146 set address to zero.
4147
4148 2007-08-13 Michael Snyder <msnyder@access-company.com>
4149
4150 * valops.c: Whitespace clean-up.
4151
4152 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4153
4154 * event-top.c (command_line_handler): Memory leak.
4155
4156 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4157 No need to make copy.
4158
4159 * source.c (find_source_lines): Require symtab 's'.
4160
4161 2007-08-11 Michael Snyder <msnyder@access-company.com>
4162
4163 * completer.c: Spelling fix in comments.
4164
4165 2007-08-10 Michael Snyder <msnyder@access-company.com>
4166
4167 * gdbtypes.c: Coding standard cleanup.
4168 * gdbtypes.c: Comment/whitespace cleanup.
4169
4170 * stabsread.c (read_huge_number): Attempt to compute value before
4171 values that it depends on.
4172
4173 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4174 (decode_objc): Use "NULL" instead of 0.
4175 (find_method): Ditto.
4176 (decode_all_digits): Ditto.
4177 (decode_dollar): Ditto.
4178
4179 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4180
4181 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4182
4183 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4184 after closing bfd.
4185
4186 * completer.c: Comment/whitespace cleanup.
4187
4188 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4189
4190 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4191
4192 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4193
4194 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4195 allocated file descriptors.
4196
4197 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4198
4199 * Makefile.in: Minor cleanup throughout; add some missing variables,
4200 add some missing rules, remove some rules that are no longer needed,
4201 and fix the dependencies in several rules.
4202
4203 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4204
4205 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4206 (scm_lang_h, scm_tags_h): New.
4207 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4208 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4209 * defs.h (enum language): Add `language_scm'.
4210
4211 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4212 opening.
4213
4214 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4215
4216 * MAINTAINERS (Write After Approval): Add myself.
4217
4218 2007-08-09 Michael Snyder <msnyder@access-company.com>
4219
4220 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4221
4222 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4223
4224 * solib-som.c (som_relocate_section_addresses): Stop saving
4225 the $CODE$ section in the so_list structure.
4226
4227 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4228
4229 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4230 (xtensa_register_group_t): Add entries for coprocessors.
4231 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4232 (xtensa_add_reggroups): Likewise.
4233 (xtensa_register_reggroup_p): Likewise.
4234 (xtensa_coprocessor_register_group): New function.
4235 (xtensa_cp): New.
4236
4237 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4238
4239 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4240
4241 2007-08-08 Michael Snyder <msnyder@access-company.com>
4242
4243 * target.c (target_read_string): Guard against null.
4244
4245 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4246
4247 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4248 (tui_set_layout_for_display_command): Mem leak.
4249
4250 * top.c (command_line_input): Memory leak.
4251
4252 * solib-svr4.c (open_symbol_file_object): Memory leak.
4253 (svr4_current_sos): Ditto.
4254 (enable_break): Ditto.
4255
4256 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4257
4258 * dwarf2read.c (add_partial_symbol): Memory leak.
4259
4260 2007-08-06 Michael Snyder <msnyder@access-company.com>
4261
4262 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4263
4264 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4265
4266 * macroexp.c (init_buffer): Remove testing code that overrides the
4267 caller's length guess.
4268 (gather_arguments): Use a larger initial size, now that the vector
4269 growth code has been exercised.
4270
4271 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4272
4273 * solib-target.c (solib_target_relocate_section_addresses): Add
4274 orig_delta to addr_high.
4275
4276 2007-08-04 Michael Snyder <msnyder@access-company.com>
4277
4278 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4279
4280 * breakpoint.c (print_one_breakpoint): Off by one error.
4281
4282 * tracepoint.c (add_register): Off by one error.
4283 (stringify_collection_list): Free malloc buffer.
4284
4285 2007-08-03 Michael Snyder <msnyder@access-company.com>
4286
4287 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4288 stop memory leak, straighten out cleanups.
4289
4290 * jv-lang.c (java_link_class_type): Guard against NULL.
4291
4292 2007-08-02 Michael Snyder <msnyder@access-company.com>
4293
4294 * gdbtypes.c (create_set_type): Test should only be done within
4295 the preceeding if block. Otherwise, variable is uninitialized.
4296
4297 * gdbtypes.c (check_typedef): Guard NULL.
4298
4299 2007-08-01 Michael Snyder <msnyder@access-company.com>
4300
4301 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4302 avoid dereference in lookup_cmd_1.
4303
4304 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4305 clean up long lines.
4306 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4307 (tui_alloc_win_info): Ditto.
4308 (tui_add_content_elements): Ditto.
4309 * tui/tui-file.c (tui_file_magic): Ditto.
4310
4311 2007-07-31 Michael Snyder <msnyder@access-company.com>
4312
4313 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4314 True and false paths are mutually exclusive.
4315
4316 * event-top.c (command_line_handler): Add pedantic return.
4317
4318 * f-valprint.c (info_common_command): Bail out to prevent null
4319 pointer deref. Break up a long line.
4320
4321 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4322
4323 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4324
4325 * printcmd.c (build_address_symbolic): Remove dead code and dead
4326 variable.
4327
4328 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4329
4330 * linespec.c (minsym_found): Advance to the next line if possible.
4331
4332 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4333
4334 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4335 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4336 solib-svr4.o, and add solib-target.o
4337
4338 2007-07-27 Michael Snyder <msnyder@access-company.com>
4339
4340 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4341
4342 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4343
4344 * MAINTAINERS (Write After Approval): Add myself.
4345
4346 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4347
4348 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4349 for include files.
4350
4351 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4352
4353 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4354
4355 2007-07-24 Michael Snyder <msnyder@access-company.com>
4356
4357 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4358 'buffer' must cover both branches that call strcmp (Coverity).
4359
4360 * stack.c (print_frame_args): Check return value of lookup_symbol.
4361
4362 * ax-gdb.c (find_field): Guard against null ptr.
4363
4364 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4365
4366 * regformats/reg-spu.dat: Fix order of npc, id registers.
4367
4368 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4369
4370 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4371 sections should always go to the executable file.
4372
4373 2004-07-20 Chris Dearman <chris@mips.com>
4374
4375 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4376 prologue instructions.
4377
4378 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4379
4380 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4381 a direct test.
4382
4383 2007-07-20 Chris Dearman <chris@mips.com>
4384 Maciej W. Rozycki <macro@mips.com>
4385
4386 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4387 description.
4388
4389 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4390 Daniel Jacobowitz <dan@codesourcery.com>
4391
4392 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4393 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4394 printf.
4395 * NEWS: Mention gdbserver DLL support.
4396
4397 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4398
4399 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4400
4401 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4402
4403 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4404 warning bug.
4405
4406 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4407
4408 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4409 instruction case.
4410
4411 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4412
4413 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4414 (mep_analyze_prologue): Add case for BRA instruction.
4415
4416 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4417
4418 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4419
4420 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4421
4422 * breakpoint.c: Include "top.h".
4423 (breakpoint_1): Don't set convenience variable $_ if server prefix
4424 is used.
4425 (_initialize_breakpoint): Describe this behaviour in command help.
4426
4427 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4428
4429 * solib-target.c (library_list_start_segment): Cast address to
4430 CORE_ADDR.
4431
4432 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4433
4434 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4435 for terminated processes.
4436
4437 2007-07-05 Michael Snyder <msnyder@access-company.com>
4438
4439 * event-top.c (cli_command_loop): Prompt string can (and should)
4440 be freed after call to readline (Coverity). Also move local var
4441 declarations into block where they are used.
4442
4443 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4444 should) be freed after call to readline (Coverity). Also move
4445 local var declarations into block where they are used.
4446
4447 2007-07-03 Andreas Schwab <schwab@suse.de>
4448
4449 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4450 /proc/../stat.
4451
4452 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4453 Thiago Bauermann <bauerman@br.ibm.com>
4454 Joseph S. Myers <joseph@codesourcery.com>
4455 Daniel Jacobowitz <dan@codesourcery.com>
4456
4457 * remote.c (remote_check_symbols): Use
4458 gdbarch_convert_from_func_ptr_addr.
4459 * infcall.c (find_function_addr): Handle function descriptors
4460 without debugging information.
4461 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4462 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4463 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4464 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4465 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4466 allow SEC_CODE and SEC_DATA.
4467 (enable_break): Update calls. Pass current_target to solib_add.
4468 Use gdbarch_convert_from_func_ptr_addr.
4469
4470 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4471 Daniel Jacobowitz <dan@codesourcery.com>
4472
4473 * symfile.c (print_transfer_performance): Avoid integer overflow.
4474 Use larger units.
4475
4476 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4477
4478 * cp-namespace.c (lookup_symbol_file): Add block to
4479 lookup_symbol_global call.
4480 * Makefile.in (solist_h): Add dependency on symtab header.
4481 (symtab.o): Add dependency on solist header.
4482 * solib.c (solib_global_lookup): New function.
4483 * solib-svr4.c (scan_dyntag): Likewise.
4484 (elf_locate_base): Call helper routine scan_dyntag.
4485 (elf_lookup_lib_symbol): New function.
4486 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4487 * solist.h (symtab.h): New include.
4488 (struct target_so_ops): New member lookup_lib_global_symbol.
4489 (solib_global_lookup): New prototype.
4490 * symtab.c: New include solist.h.
4491 (lookup_objfile_from_block): New function.
4492 (lookup_global_symbol_from_objfile): New function.
4493 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4494 (lookup_symbol_global): Call library-specific lookup procedure.
4495 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4496
4497 * NEWS: Document framework.
4498
4499 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4500
4501 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4502 to NULL.
4503
4504 * cli/cli-script.c (build_command_line): Update NULL check.
4505
4506 2007-07-02 Michael Snyder <msnyder@access-company.com>
4507
4508 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4509
4510 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4511
4512 * Makefile.in (XMLFILES): Add library-list.dtd.
4513 (ALLDEPFILES): Add solib-target.o.
4514 (solib-target.o): New rule.
4515 * remote.c (PACKET_qXfer_libraries): New constant.
4516 (remote_protocol_features): Add qXfer:libraries:read.
4517 (remote_wait): Recognize library stop replies.
4518 (remote_async_wait): Likewise. Fix typo.
4519 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4520 (init_remote_async_ops): Fix typo.
4521 (_initialize_remote): Register "set remote library-info-packet".
4522 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4523 * solib-target.c: New file.
4524 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4525 of textsection.
4526 (info_sharedlibrary_command): Likewise.
4527 (solib_add_library, solib_remove_library): New.
4528 * solist.h (struct so_list): Replace textsection with addr_low and
4529 addr_high.
4530 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4531 * NEWS: Describe new qXfer:libraries:read and shared library
4532 event support.
4533 * features/library-list.dtd: New.
4534
4535 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4536
4537 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4538 (start_remote): Use STOP_QUIETLY_REMOTE.
4539 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4540 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4541 Update to match shared library event breakpoint support. Only
4542 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4543 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4544 * fork-child.c (startup_inferior): Do not set
4545 inferior_ignoring_startup_exec_events
4546 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4547 declaration.
4548 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4549
4550 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4551
4552 * breakpoint.c (insert_bp_location): Remove dead code
4553 (DISABLE_UNSETTABLE_BREAK).
4554 (disable_breakpoints_in_shlibs)
4555 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4556
4557 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4558
4559 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4560 Call insert_bp_location.
4561
4562 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4563
4564 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4565 alias warning bug.
4566
4567 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4568
4569 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4570 objfiles.
4571
4572 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4573
4574 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4575 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4576 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4577 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4578 to display_gdb_prompt.
4579
4580 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4581
4582 PR symtab/2161
4583 * target.c (memory_xfer_partial): Do not continue past targets with
4584 all memory.
4585
4586 2007-06-30 Andreas Schwab <schwab@suse.de>
4587
4588 * m68k-tdep.c (m68k_ps_type): New.
4589 (m68k_init_types): New.
4590 (m68k_register_type): Use m68k_ps_type for PS register.
4591 (_initialize_m68k_tdep): Call m68k_init_types.
4592
4593 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4594 from the generic m68k arch.
4595
4596 2007-06-28 Michael Snyder <msnyder@access-company.com>
4597
4598 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4599 (Coverity).
4600
4601 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4602 gdb_assert before using return value of find_thread_pid (Coverity).
4603
4604 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4605
4606 * cli/cli-script.c (build_command_line): Add null pointer guard
4607 (Coverity).
4608
4609 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4610
4611 * linux-thread-db.c (thread_db_attach): Delete.
4612 (thread_db_detach): Typo fix. Call target_mourn_inferior
4613 instead of fixing up proc_handle.
4614 (have_threads_callback, have_threads): New functions.
4615 (thread_db_wait): Remove dead proc_handle.pid check. Only
4616 translate PTIDs if we have registered threads. Check for new
4617 threads if we have none.
4618 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4619 (find_new_threads_callback): Only enable event reporting if TID == 0.
4620 (same_ptid_callback): New.
4621 (thread_db_get_thread_local_address): Check for new threads.
4622 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4623 or to_post_startup_inferior.
4624
4625 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4626
4627 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4628 is always active if SOFTWARE_SINGLE_STEP_P is true.
4629 (resume): Use gdbarch_software_single_step[_p] instead of
4630 SOFTWARE_SINGLE_STEP[_P].
4631 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4632
4633 * gdbarch.sh (software_single_step): Remove target macro.
4634 * gdbarch.h, gdbarch.c: Regenerate.
4635
4636 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4637
4638 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4639 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4640 (struct gdbarch_swap, struct gdbarch_swap_registration,
4641 struct gdbarch_swap_registry, gdbarch_swap_registry,
4642 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4643 current_gdbarch_swap_in_hack): Remove.
4644 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4645 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4646 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4647 (deprecated_current_gdbarch_select_hack): Likewise.
4648 * gdbarch.h, gdbarch.c: Regenerate.
4649
4650 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4651
4652 * infrun.c (clear_proceed_status): Clean up stop_registers.
4653 (normal_stop): Allocate regcache for stop_registers.
4654 (struct inferior_status): Remove stop_registers member.
4655 (save_inferior_status): Do not save stop_registers.
4656 (restore_inferior_status): Do not restore stop_registers.
4657 (discard_inferior_status): Do not discard stop_registers.
4658 (build_infrun): Remove.
4659 (_initialize_infrun): Do not swap stop_registers.
4660
4661 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4662
4663 * remote.c (remote_address_masked): If remote_address_size is zero,
4664 default to target address size.
4665 (build_remote_gdbarch_data): Remove.
4666 (_initialize_remote): Do not swap remote_address_size.
4667
4668 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4669
4670 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4671 builtin_type_char, builtin_type_short, builtin_type_int,
4672 builtin_type_long, builtin_type_signed_char,
4673 builtin_type_unsigned_char, builtin_type_unsigned_short,
4674 builtin_type_unsigned_int, builtin_type_unsigned_long,
4675 builtin_type_float, builtin_type_double, builtin_type_long_double,
4676 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4677 builtin_type_bool, builtin_type_long_long,
4678 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4679 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4680 variable declaration with compatibility macro.
4681 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4682 builtin_type_char, builtin_type_short, builtin_type_int,
4683 builtin_type_long, builtin_type_signed_char,
4684 builtin_type_unsigned_char, builtin_type_unsigned_short,
4685 builtin_type_unsigned_int, builtin_type_unsigned_long,
4686 builtin_type_float, builtin_type_double, builtin_type_long_double,
4687 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4688 builtin_type_bool, builtin_type_long_long,
4689 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4690 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4691 (build_gdbtypes): Remove.
4692 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4693 opaque-type-resolution command here. Do not call
4694 deprecated_register_gdbarch_swap.
4695
4696 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4697
4698 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4699 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4700 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4701
4702 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4703 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4704 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4705 (build_parse): Remove.
4706 (_initialize_parse): Do not call build_parse. Do not register
4707 msym_ types for gdbarch-swapping.
4708
4709 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4710 instead of creating private type.
4711
4712 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4713 (_initialize_xcoffread): Do not initialized them.
4714 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4715
4716 * mdebugread.c (nodebug_func_symbol_type): Remove.
4717 (nodebug_var_symbol_type): Remove.
4718 (_initialize_mdebugread): Do not initialize them.
4719 (parse_symbol): Use builtin nodebug_ type instead of them.
4720 (parse_procedure): Likewise.
4721
4722 2007-06-21 Chris Dearman <chris@mips.com>
4723
4724 * printcmd.c (do_one_display): If display/i, start with an initial
4725 line feed to avoid bad layout if there is a branch delay slot.
4726
4727 2007-06-21 Nigel Stephens <nigel@mips.com>
4728 Maciej W. Rozycki <macro@mips.com>
4729
4730 * disasm.c (gdb_print_insn): Return the number of branch delay
4731 slot instructions too.
4732 * disasm.h (gdb_print_insn): Update prototype.
4733 * printcmd.c (branch_delay_insns): New variable to record the
4734 number of delay slot instructions after disassembling a branch.
4735 (print_formatted): Record the number of branch delay slot
4736 instructions.
4737 (do_examine): When disassembling, if the last instruction
4738 disassembled has any branch delay slots, then bump the count so
4739 that they get disassembled too.
4740 * tui/tui-disasm.c (tui_disassemble): Update the call to
4741 gdb_print_insn().
4742 * NEWS: Document the new behaviour.
4743
4744 2007-06-21 Andreas Schwab <schwab@suse.de>
4745
4746 * regcache.c (write_pc_pid): Restore missing else.
4747
4748 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4749
4750 * regcache.c (regcache_print): Use get_current_regcache ()
4751 instead of current_regcache.
4752
4753 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4754
4755 PR 4606
4756 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4757 instead of bfd_make_section_anyway.
4758 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4759 when clearing SEC_LOAD.
4760
4761 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4762
4763 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4764 registers for big-endian.
4765
4766 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4767
4768 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4769 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4770 * gdbarch.c, gdbarch.h: Regenerate.
4771
4772 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4773
4774 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4775 gdbarch_believe_pcc_promotion.
4776 * stabsread.c (define_symbol): Likewise.
4777 Remove unnecessary definition.
4778 * coffread.c (process_coff_symbol): Remove unnecessary code.
4779 * gdbarch.c, gdbarch.h: Regenerate.
4780
4781 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4782
4783 * configure.ac: Do not use ${objdir}.
4784 * configure: Regenerated.
4785
4786 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * gdbarch.sh (deprecated_register_size): Remove.
4789 * gdbarch.h, gdbarch.c: Regenerate.
4790
4791 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4792 by INT_REGISTER_SIZE.
4793 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4794 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4795 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4796 set_gdbarch_deprecated_register_size.
4797
4798 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4799
4800 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4801 gdbarch_deprecated_fp_regnum.
4802 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4803 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4804 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4805 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4806 (comment).
4807 * gdbarch.c, gdbarch.h: Regenerate.
4808
4809 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4810
4811 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4812 gdbarch_extract_return_value.
4813 * value.c (generic_use_struct_convention): Likewise (comment).
4814 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4815 * arch-utils.c (legacy_return_value): Likewise.
4816 * arch-utils.h (legacy_return_value): Likewise (comment).
4817 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4818 gdbarch_store_return_value.
4819 * stack.c (return_command): Likewise (comment).
4820 * arch-utils.h (legacy_return_value): Likewise (comment).
4821 * arch-utils.c (legacy_return_value): Likewise.
4822 * gdbarch.c, gdbarch.h: Regenerate.
4823
4824 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4825
4826 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4827 gdbarch_deprecated_use_struct_convention.
4828 * arch-utils.c (legacy_return_value): Likewise.
4829 * gdbarch.c, gdbarch.h: Regenerate.
4830
4831 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4832
4833 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4834 gdbarch_deprecated_function_start_offset.
4835 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4836 * linespec.c (minsym_found): Likewise.
4837 * infrun.c (handle_inferior_event): Likewise.
4838 * infcall.c (find_function_addr): Likewise.
4839 * cli/cli-cmds.c (disassemble_command): Likewise.
4840 * gdbarch.c, gdbarch.h: Regenerate.
4841
4842 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4843
4844 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4845 gdbarch_deprecated_reg_struct_has_addr.
4846 * infcall.c (call_function_by_hand): Likewise.
4847 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4848 * gdbarch_deprecated_reg_struct_has_addr_p.
4849 * infcall.c (call_function_by_hand): Likewise.
4850 * gdbarch.c, gdbarch.h: Regenerate.
4851
4852 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4853
4854 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4855 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4856 (sh_gdbarch_init): Remove
4857 set_gdbarch_deprecated_extract_struct_value_address.
4858 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4859 (sh64_gdbarch_init): Remove
4860 set_gdbarch_deprecated_extract_struct_value_address.
4861 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4862 (ia64_gdbarch_init): Remove
4863 set_gdbarch_deprecated_extract_struct_value_address.
4864 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4865 (frv_gdbarch_init): Remove
4866 set_gdbarch_deprecated_extract_struct_value_address.
4867 * gdbarch.c, gdbarch.h: Regenerate.
4868
4869 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4870
4871 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4872 * v850-tdep.c (v850_unwind_sp): Likewise.
4873 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4874 * stack.c (frame_info): Likewise.
4875 * stabsread.c (define_symbol): Likewise.
4876 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4877 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4878 (sh_unwind_sp): Likewise.
4879 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4880 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4881 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4882 (rs6000_frame_cache): Likewise.
4883 * rs6000-nat.c (store_register): Likewise.
4884 * remote-mips.c (mips_wait): Likewise.
4885 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4886 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4887 (ppc64_sysv_abi_push_dummy_call): Likewise.
4888 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4889 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4890 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4891 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4892 * m32r-rom.c (m32r_supply_register): Likewise.
4893 * frame.c (frame_sp_unwind): Likewise.
4894 * mips-tdep.c (mips_insn16_frame_cache)
4895 (mips_insn32_frame_cache): Likewise (comment).
4896 * m68klinux-nat.c (supply_gregset): Likewise.
4897 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4898 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4899 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4900 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4901 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4902 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4903 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4904 (cris_register_type, crisv32_register_type)
4905 (cris_dwarf2_frame_init_reg): Likewise.
4906 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4907 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4908 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4909 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4910
4911 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4912 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4913 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4914 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4915 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4916 * v850-tdep.c (v850_unwind_pc): Likewise.
4917 * stack.c (frame_info): Likewise.
4918 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4919 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4920 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4921 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4922 (sh_dsp_show_regs): Likewise.
4923 * shnbsd-tdep.c (shnbsd_supply_gregset)
4924 (shnbsd_collect_gregset): Likewise.
4925 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4926 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4927 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4928 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4929 (6000_register_reggroup_p, rs6000_unwind_pc)
4930 (rs6000_frame_cache): Likewise.
4931 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4932 (rs6000_store_inferior_registers): Likewise.
4933 * remote-mips.c (mips_wait, mips_load): Likewise.
4934 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4935 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4936 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4937 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4938 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4939 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4940 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4941 (store_ppc_registers, fill_gregset): Likewise.
4942 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4943 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4944 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4945 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4946 * m68klinux-nat.c (supply_gregset): Likewise.
4947 * irix5-nat.c (fill_gregset): Likewise.
4948 * i386-tdep.c (i386_unwind_pc): Likewise.
4949 * i386-linux-nat.c (i386_linux_resume): Likewise.
4950 * frame.c (get_prev_frame_1): Likewise.
4951 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4952 * dbug-rom.c (dbug_supply_register): Likewise.
4953 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4954 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4955 (cris_register_type, crisv32_register_type, crisv32_register_name)
4956 (cris_dwarf2_frame_init_reg, find_step_target)
4957 (cris_software_single_step, cris_supply_gregset)
4958 (cris_regnums): Likewise.
4959 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4960 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4961 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4962 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4963 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4964
4965 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4966 * dbug-rom.c (dbug_supply_register): Likewise.
4967 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4968 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4969 * win32-nat.c (win32_resume): Likewise.
4970 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4971 * m68k-tdep.c (m68k_register_type): Likewise.
4972 * m68klinux-nat.c (supply_gregset): Likewise.
4973
4974 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4975 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4976 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4977 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4978 (fv_reg_base_num, dr_reg_base_num): Likewise.
4979 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4980 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4981 (sh64_extract_return_value, sh64_store_return_value)
4982 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4983 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4984 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4985 (invalidate_cache): Likewise.
4986 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4987 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4988 (mipsnbsd_fill_fpreg): Likewise.
4989 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4990 (mipsnbsd_store_inferior_registers): Likewise.
4991 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4992 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4993 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4994 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4995 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4996 (fill_fpregset): Likewise.
4997 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4998 * i386-tdep.h (struct_return): Likewise (comment).
4999 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5000 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5001 (go32_store_registers): Likewise.
5002 * alpha-tdep.c (alpha_next_pc): Likewise.
5003 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5004 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5005 (alphabsd_store_inferior_registers): Likewise.
5006 * core-regset.c (fetch_core_registers): Likewise.
5007 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5008
5009 * gdbarch.c, gdbarch.h: Regenerate.
5010
5011 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5012
5013 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5014 * dbxread.c (start_psymtab): Check HAVE_ELF.
5015 (aout_sym_fns): Likewise.
5016 * elfread.c (elf_symfile_segments): New.
5017 (elf_sym_fns): Add elf_symfile_segments.
5018 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5019 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5020 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5021 * somread.c (som_sym_fns): Use default_symfile_segments.
5022 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5023 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5024 (default_symfile_segments): New function.
5025 (syms_from_objfile): Update call to find_sym_fns.
5026 (symfile_get_segment_data, free_symfile_segment_data): New.
5027 (symfile_map_offsets_to_segments): New.
5028 (symfile_find_segment_sections): New.
5029 * symfile.h (struct symfile_segment_data): New.
5030 (struct sym_fns): Add sym_segments.
5031 (default_symfile_segments, symfile_get_segment_data)
5032 (free_symfile_segment_data): New prototypes.
5033 (symfile_map_offsets_to_segments): Likewise.
5034 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5035 * Makefile.in (COMMON_OBS): Remove elfread.o.
5036 (elf_internal_h): New.
5037 (elfread.o): Update.
5038 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5039 compiled.
5040 * config.in, configure: Regenerated.
5041 * NEWS: Mention qOffsets changes.
5042
5043 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5044
5045 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5046 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5047 Replace global variable declaration with compatibility macro.
5048 (struct builtin_m2_type): New data type.
5049 (builtin_m2_type): Add prototype.
5050 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5051 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5052 Remove global variables.
5053 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5054 (build_m2_types): New function.
5055 (m2_type_data): New variable.
5056 (builtin_m2_type): New function.
5057 (_initialize_m2_language): Do not build data types. Register
5058 m2_type_data per-gdbarch data.
5059
5060 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5061
5062 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5063 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5064 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5065 builtin_type_f_real_s8, builtin_type_f_real_s16,
5066 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5067 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5068 variable declaration with compatibility macro.
5069 (struct builtin_f_type): New data type.
5070 (builtin_f_type): Add prototype.
5071 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5072 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5073 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5074 builtin_type_f_real_s8, builtin_type_f_real_s16,
5075 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5076 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5077 (f_language_arch_info): Use builtin_f_type instead of variables.
5078 (build_fortran_types): Build builtin_f_type structure instead of
5079 setting global type variables.
5080 (f_type_data): New variable.
5081 (builtin_f_type): New function.
5082 (_initialize_f_language): Do not call build_fortran_types. Do not
5083 swap global type variables. Register f_type_data per-gdbarch data.
5084
5085 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5086
5087 * f-lang.c (_initialize_f_language): Do not initialize or
5088 swap builtin_type_string.
5089
5090 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5091
5092 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5093 value_of_builtin_frame_reg): Remove.
5094 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5095 inactive call to value_of_builtin_frame_reg.
5096
5097 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5098
5099 * gdbarch.sh (bfd_vma_bit): Remove.
5100 * gdbarch.c, gdbarch.h: Regenerate.
5101
5102 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5103 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5104 (build_gdbtypes): Do not initialize it.
5105 (_initialize_gdbtypes): Do not swap it.
5106
5107 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5108
5109 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5110 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5111 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5112 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5113 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5114 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5115 builtin_type_vec64, builtin_type_vec128): Remove.
5116 (init_simd_type): Remove.
5117 (init_vector_type): Make global.
5118 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5119 (build_gdbtypes): Do not build vector types.
5120 (_initialize_gdbtypes): Do not swap vector types.
5121 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5122 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5123 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5124 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5125 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5126 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5127 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5128 (init_vector_type): Add prototype.
5129
5130 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5131 i386_sse_type members.
5132 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5133 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5134 (i386_init_types): Do not build vector types.
5135 (i386_mmx_type, i386_sse_type): New functions.
5136 (i386_register_type): Call them instead of using global variables.
5137 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5138 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5139 of using global variable.
5140
5141 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5142 and ppc_builtin_type_vec128 members.
5143 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5144 (rs6000_builtin_type_vec128): Likewise.
5145 (rs6000_register_type): Call them instead of using builtin_type_vec64
5146 and builtin_type_vec128.
5147 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5148
5149 * spu-tdep.c (struct gdbarch_tdep): New data type.
5150 (spu_builtin_type_vec128): Remove variable.
5151 (spu_builtin_type_vec128): New function.
5152 (spu_register_type): Call it instead of using global variable.
5153 (spu_gdbarch_init): Allocate tdep structure.
5154 (spu_init_vector_type): Remove function.
5155 (_initialize_spu_tdep): Do not call it.
5156
5157 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5158
5159 * amd64-tdep.c (struct amd64_register_info): Remove.
5160 (amd64_register_info): Remove.
5161 (amd64_register_names): New static variable.
5162 (AMD64_NUM_REGS): Use amd64_register_names instead of
5163 amd64_register_info.
5164 (amd64_register_name): Likewise.
5165 (amd64_register_type): Do not refer to amd64_register_info.
5166
5167 * s390-tdep.c (struct s390_register_info): Remove.
5168 (s390_register_info): Remove.
5169 (s390_register_name): Do not refer to s390_register_info.
5170 (s390_register_type): Likewise.
5171
5172 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5173 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5174 (sparc64_register_names, sparc64_pseudo_register_names): New.
5175 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5176 sparc64_register_names and sparc64_pseudo_register_names instead of
5177 sparc64_register_info and sparc64_pseudo_register_info.
5178 (sparc64_register_name): Likewise.
5179 (sparc64_register_type): Do not refer to sparc64_register_info
5180 and sparc64_pseudo_register_info.
5181
5182 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5183
5184 * c-lang.c (cplus_builtin_types): Remove.
5185 (enum cplus_primitive_types): New data type.
5186 (cplus_language_arch_info): New function.
5187 (cplus_language_defn): Set la_language_arch_info member. Do not set
5188 la_builtin_type_vector and string_char_type members.
5189
5190 * f-lang.c (f_builtin_types): Remove.
5191 (enum f_primitive_types): New data type.
5192 (f_language_arch_info): New function.
5193 (f_language_de): Set la_language_arch_info member. Do not set
5194 la_builtin_type_vector and string_char_type members.
5195
5196 * m2-lang.c (m2_builtin_types): Remove.
5197 (enum m2_primitive_types): New data type.
5198 (m2_language_arch_info): New function.
5199 (m2_language_defn): Set la_language_arch_info member. Do not set
5200 la_builtin_type_vector and string_char_type members.
5201
5202 * objc-lang.c (objc_builtin_types): Remove.
5203 (objc_language): Set la_language_arch_info member. Do not set
5204 la_builtin_type_vector and string_char_type members.
5205
5206 * p-lang.c (pascal_builtin_types): Remove.
5207 (enum pascal_primitive_types): New data type.
5208 (pascal_language_arch_info): New function.
5209 (pascal_language_defn): Set la_language_arch_info member. Do not set
5210 la_builtin_type_vector and string_char_type members.
5211
5212 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5213
5214 * regcache.c (struct regcache): Add ptid_t member.
5215 (regcache_xmalloc): Initialize it.
5216 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5217 (regcache_dup): Likewise.
5218 (regcache_dup_no_passthrough): Likewise.
5219 (current_regcache): Make static.
5220 (registers_ptid): Remove variable.
5221 (get_thread_regcache): New function.
5222 (get_current_regcache): New function.
5223 (registers_changed): Implement by freeing current regcache.
5224 (regcache_raw_read): Do not refer to current_regcache. Set
5225 inferior_ptid to regcache->ptid while calling target routines.
5226 (regcache_raw_write): Likewise.
5227 (regcache_raw_supply): Do not refer to current_regcache.
5228 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5229 (write_pc_pid): Likewise.
5230 (build_regcache): Remove.
5231 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5232 or deprecated_register_gdbarch_swap. Do not initialize
5233 registers_ptid.
5234 * regcache.h (get_current_regcache): Add prototype.
5235 (get_thread_regcache): Likewise.
5236 (current_regcache): Remove declaration.
5237
5238 * corelow.c (core_open): Replace current_regcache by
5239 get_current_regcache ().
5240 * frame.c (frame_pop): Likewise.
5241 (put_frame_register): Likewise.
5242 (get_current_frame, create_new_frame): Likewise.
5243 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5244 * stack.c (return_command): Likewise.
5245 * infcall.c (call_function_by_hand): Likewise.
5246 * infrun.c (resume): Likewise.
5247 (save_inferior_status, restore_inferior_status): Likewise.
5248 * linux-fork.c (fork_load_infrun_state): Likewise.
5249 (fork_save_infrun_state): Likewise.
5250 * win32-nat.c (win32_resume): Likewise.
5251 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5252 * monitor.c (monitor_wait): Likewise.
5253 * remote.c (remote_wait): Likewise.
5254 * remote-mips.c (mips_wait): Likewise.
5255
5256 * bsd-kvm.c (bsd_kvm_open): Likewise
5257 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5258 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5259 * i386-linux-nat.c (i386_linux_resume): Likewise.
5260 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5261 (ia64_linux_stopped_data_address): Likewise.
5262
5263 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5264 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5265 * mep-tdep.c (current_me_module, current_options): Likewise.
5266 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5267
5268 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5269 regcache instead of current_regcache. Call target_fetch_registers.
5270 (linux_nat_corefile_thread_callback): Update call site.
5271 (linux_nat_do_registers): Likewise.
5272 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5273 of current_regcache.
5274 (procfs_make_note_section): Likewise.
5275 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5276 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5277 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5278 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5279
5280 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5281
5282 * regcache.c (read_register, read_register_pid): Remove.
5283 (write_register, write_register_pid): Likewise.
5284 * regcache.h (read_register, read_register_pid): Remove prototype.
5285 (write_register, write_register_pid): Likewise.
5286
5287 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5288
5289 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5290 (write_pc): Likewise. Remove default implementation, add predicate.
5291 * gdbarch.c, gdbarch.h: Regenerate.
5292 * regcache.c (read_pc_pid): Use current regcache instead of calling
5293 read_register_pid.
5294 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5295 case inline.
5296 (generic_target_write_pc): Remove.
5297 * inferior.h (generic_target_write_pc): Remove.
5298 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5300 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5301 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5302 * sh-tdep.c (sh_gdbarch_init): Likewise.
5303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5304
5305 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5306 argument. Use REGCACHE instead of calling read_register_pid.
5307 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5308 * hppa-tdep.c (hppa_read_pc): Likewise.
5309 * hppa-tdep.h (hppa_read_pc): Likewise.
5310 * ia64-tdep.c (ia64_read_pc): Likewise.
5311 * m32r-tdep.c (m32r_read_pc): Likewise.
5312 * mep-tdep.c (mep_read_pc): Likewise.
5313 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5314 * spu-tdep.c (spu_read_pc): Likewise.
5315
5316 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5317 argument. Use REGCACHE instead of calling write_register_pid.
5318 * avr-tdep.c (avr_write_pc): Likewise.
5319 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5320 * hppa-tdep.c (hppa_write_pc): Likewise.
5321 * hppa-tdep.h (hppa_write_pc): Likewise.
5322 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5323 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5324 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5325 * ia64-tdep.c (ia64_write_pc): Likewise.
5326 * ia64-tdep.h (ia64_write_pc): Likewise.
5327 * m32r-tdep.c (m32r_write_pc): Likewise.
5328 * m88k-tdep.c (m88k_write_pc): Likewise.
5329 * mep-tdep.c (mep_write_pc): Likewise.
5330 * mips-tdep.c (mips_write_pc): Likewise.
5331 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5332 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5333 * sparc-tdep.c (sparc_write_pc): Likewise.
5334 * spu-tdep.c (spu_write_pc): Likewise.
5335
5336 * mips-tdep.c (read_signed_register): Remove.
5337 (read_signed_register_pid): Likewise.
5338 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5339 Use REGCACHE instead of calling read_signed_register_pid.
5340
5341 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5342
5343 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5344 * gdbarch.c, gdbarch.h: Regenerate.
5345 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5346 (push_dummy_code): Likewise. Pass it to callee.
5347 (call_function_by_hand): Pass current regcache to push_dummy_code.
5348
5349 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5350 argument. Use it instead of current_regcache.
5351
5352 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5353 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5354
5355 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5356
5357 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5358 * gdbarch.c, gdbarch.h: Regenerate.
5359 * infrun.c (handle_inferior_event): Pass current frame to
5360 gdbarch_get_longjmp_target.
5361
5362 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5363 Read registers from FRAME instead of using read_register.
5364 Use get_frame_arch instead of current_gdbarch.
5365 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5366 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5367 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5368 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5369 (mips64_linux_get_longjmp_target): Likewise.
5370 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5371
5372 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5373
5374 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5375 * gdbarch.c, gdbarch.h: Regenerate.
5376 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5377 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5378 * infrun.c (handle_inferior_event): Pass current frame to
5379 gdbarch_skip_trampoline_code and skip_language_trampoline.
5380
5381 * language.c (unk_lang_trampoline): Add FRAME argument.
5382 (skip_language_trampoline): Add FRAME argument. Pass it to
5383 skip_trampoline callback.
5384 * language.h: Add forward declaration of struct frame_info.
5385 (struct language_defn): Add FRAME argument to skip_trampoline.
5386 (skip_language_trampoline): Add FRAME argument.
5387 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5388 to skip_trampoline callback.
5389 * cp-abi.h: Add forward declaration of struct frame_info.
5390 (cplus_skip_trampoline): Add FRAME argument.
5391 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5392 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5393 to gdbarch_skip_trampoline_code.
5394 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5395 to gdbarch_skip_trampoline_code.
5396
5397 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5398 * symtab.h (find_solib_trampoline_target): Likewise.
5399 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5400 find_solib_trampoline_target.
5401
5402 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5403 from FRAME instead of calling read_register.
5404
5405 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5406 argument. Read registers from FRAME instead of using read_register.
5407 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5408 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5409
5410 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5411 argument.
5412
5413 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5414
5415 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5416 registers from FRAME instead of using read_signed_register.
5417
5418 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5419 argument.
5420 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5421 instead of using read_register.
5422 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5423 ppc64_standard_linkage_target.
5424 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5425 Pass it to find_solib_trampoline_target. Read registers from FRAME
5426 instead of using read_register.
5427
5428 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5429 argument.
5430
5431 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5432
5433 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5434 FRAME argument.
5435 * gdbarch.c, gdbarch.h: Regenerate.
5436 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5437
5438 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5439 registers from FRAME instead of using read_register.
5440 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5441 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5442 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5443 argument by FRAME.
5444
5445 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5446 from FRAME instead of using read_register.
5447 (thumb_get_next_pc): Likewise.
5448 (arm_get_next_pc): Likewise.
5449 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5450 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5451 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5452 argument by FRAME.
5453
5454 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5455 from FRAME instead of using read_register.
5456 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5457 to find_step_target.
5458
5459 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5460 from FRAME instead of using read_register / read_signed_register.
5461 (extended_mips16_next_pc): Likewise.
5462 (mips16_next_pc): Likewise.
5463 (mips_next_pc): Likewise.
5464 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5465 to mips_next_pc. Use get_frame_pc instead of read_pc.
5466 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5467 argument by FRAME.
5468
5469 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5470 of current frame. Read registers from FRAME.
5471 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5472 branch_dest. Use get_frame_pc instead of read_pc.
5473 (rs6000_software_single_step): Likewise.
5474 (bl_to_blrl_insn_p): Do not call branch_dest.
5475 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5476 argument by FRAME.
5477
5478 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5479 Read registers from FRAME instead of current regcache.
5480 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5481 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5482 * sparc-tdep.c (sparc_address_from_register): Remove.
5483 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5484 GDBARCH. Pass FRAME to step_trap callback.
5485 (sparc_step_trap): Add FRAME argument.
5486 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5487 to sparc_analyze_control_transfer. Read registers from FRAME instead
5488 of calling sparc_address_from_register.
5489 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5490 step_trap callback.
5491 (sparc_address_from_register): Remove prototype.
5492 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5493 (sparcnbsd_step_trap): Add FRAME argument.
5494
5495 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5496 by FRAME. Read registers from FRAME instead of REGCACHE.
5497
5498 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5499
5500 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5501 instead of calling read_register.
5502
5503 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5504 calling write_register.
5505
5506 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5507 calling write_register.
5508
5509 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5510 instead of calling read_register.
5511 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5512 instead of calling read_register and write_register.
5513
5514 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5515 instead of current_regcache.
5516
5517 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5518 of calling write_register.
5519 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5520 parameter instead of current_regcache.
5521
5522 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5523 instead of calling read_register.
5524 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5525 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5526 (mips_n32n64_push_dummy_call): Likewise.
5527 (mips_o32_push_dummy_call): Likewise.
5528 (mips_o64_push_dummy_call): Likewise.
5529
5530 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5531 parameter instead of current_regcache.
5532
5533 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5534 Use it instead of read_register and write_register.
5535 (xtensa_register_read_masked): Likewise.
5536 (xtensa_pseudo_register_read): Update call.
5537 (xtensa_pseudo_register_write): Likewise.
5538 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5539 instead of calling read_register.
5540 (xtensa_push_dummy_call): Update comment.
5541
5542 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5543
5544 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5545 by frame_unwind_register_signed calls.
5546 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5547 frame allocations when called with NULL NEXT_FRAME parameter.
5548 (read_next_frame_reg): Remove.
5549
5550 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5551 instead of reading the FPSCR register.
5552 (sh_frame_cache): Pass unwound FPSCR register value to
5553 sh_analyze_prologue.
5554 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5555
5556 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5557 instead of reading the CTBP register.
5558 (v850_frame_cache): Pass unwound CTBP register value to
5559 v850_analyze_prologue.
5560
5561 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5562
5563 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5564 * sh-tdep.c (sh_show_regs): Likewise.
5565 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5566 (sh_generic_show_regs): Add FRAME parameter. Use register
5567 values from that frame instead of calling read_register.
5568 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5569 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5570 sh_dsp_show_regs): Likewise.
5571 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5572 sh64_show_regs): Likewise.
5573
5574 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5575
5576 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5577 current regcache instead of calling read_register.
5578
5579 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5580
5581 * mep-tdep.c (current_me_module): Read from current regcache
5582 instead of calling read_register.
5583 (current_options): Likewise.
5584
5585 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5586
5587 * cris-tdep.c (cris_stopped_data_address): Read register values
5588 from current frame instead of calling read_register.
5589 * frv-tdep.c (frv_stopped_data_address): Likewise.
5590
5591 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5592
5593 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5594 instead of write_register (PC_REGNUM, ...).
5595
5596 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5597
5598 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5599 explaining why the PC adjustment code is necessary.
5600
5601 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5602
5603 * m68k-tdep.h (enum m68k_flavour): New.
5604 (struct gdbarch_tdep): New fields
5605 float_return, flavour and fpregs_present.
5606 * m68k-tdep.c (m68k_register_type): Use
5607 fpregs_present and conditionalize floating
5608 registers type on flavour.
5609 (m68k_register_names): New.
5610 (m68k_register_name): Use the above.
5611 (m68k_convert_register_p): Consult fpregs_present.
5612 (m68k_register_to_value, m68k_value_to_register):
5613 Use register_type to obtain the type of floating
5614 point registers.
5615 (m68k_svr4_extract_return_value): Check tdep->float_return.
5616 Use register_type to get the type of floating
5617 point regiters.
5618 (m68k_svr4_store_return_value): Likewise.
5619 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5620 (m68k_analyze_register_saves): Likewise.
5621 (m68k_gdbarch_init): Extract infromation
5622 from XML description, if present. Guess coldfire by
5623 looking at the file, if present. Conditionalize
5624 setting of long double format. Set decr_pc_after_break
5625 to 2 on coldfire and fido. Enable XML-driven
5626 register description.
5627 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5628 size of tdep->fpreg_type, as opposed to hardcoded value.
5629 * Makefile.in (m68k-tdep.o): Update dependencies.
5630
5631 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5632
5633 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5634 qXfer:spu:write remote packet types.
5635
5636 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5637
5638 * xml-tdesc.c (tdesc_start_target): New.
5639 (target_attributes): New.
5640 (tdesc_elements): Use it.
5641 * features/gdb-target.dtd: Add #FIXED version attribute for
5642 <target>.
5643
5644 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5645
5646 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5647
5648 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5649
5650 * fork-child.c (fork_inferior): Update comment.
5651
5652 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5653
5654 * features/Makefile: Generate regformats for mips-linux and
5655 mips64-linux.
5656 * features/sort-regs.xsl: Correct typo.
5657 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5658 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5659 files.
5660
5661 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5662
5663 * config/mips/linux.mh (TDEP_XML): New.
5664 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5665 * mips-linux-nat.c (mips_linux_register_addr): Handle
5666 MIPS_RESTART_REGNUM.
5667 (mips64_linux_register_addr): Likewise.
5668 (super_xfer_partial, mips_linux_xfer_partial): New.
5669 (_initialize_mips_linux_nat): Add them to the target_ops.
5670 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5671 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5672 (mips_linux_o32_sigframe_init)
5673 (mips_linux_n32n64_sigframe_init): Likewise.
5674 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5675 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5676 "org.gnu.gdb.mips.linux" feature.
5677 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5678 (mips_linux_restart_reg_p): New prototype.
5679 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5680 initialization routine.
5681 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5682
5683 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5684
5685 * Makefile.in (mips-tdep.o): Update.
5686 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5687 (mips_n32_n64_aliases, mips_register_aliases): New.
5688 (mips_register_name): Call tdesc_register_name.
5689 (mips_tdesc_register_reggroup_p): New.
5690 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5691 (mips_gdbarch_init): Add target-described register support.
5692 Register aliases for register names.
5693 * target-descriptions.c (tdesc_register_name): Make global.
5694 (tdesc_register_in_reggroup_p): New function, broken out from
5695 tdesc_register_reggroup_p.
5696 (tdesc_register_reggroup_p): Use it.
5697 * target-descriptions.h (tdesc_register_name)
5698 (tdesc_register_in_reggroup_p): New prototypes.
5699 * NEWS: Correct formatting. Mention MIPS register support.
5700 * features/mips-cp0.xml, features/mips-fpu.xml,
5701 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5702 features/mips64-cpu.xml: New files.
5703
5704 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5705
5706 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5707 * valops.c (value_cast): Likewise.
5708 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5709 * ui-out.c (ui_out_field_core_addr): Likewise.
5710 * tracepoint.c (tracepoints_info): Likewise.
5711 * symtab.c (print_msymbol_info): Likewise.
5712 * solib-irix.c (irix_current_sos)
5713 (irix_open_symbol_file_object): Likewise.
5714 * remote.c (build_remote_gdbarch_data): Likewise.
5715 * prologue-value.c (make_pv_area): Likewise.
5716 * procfs.c (info_mappings_callback): Likewise.
5717 * printcmd.c (print_scalar_formatted)
5718 (deprecated_print_address_numeric): Likewise.
5719 * memattr.c (mem_info_command): Likewise.
5720 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5721 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5722 * exec.c (print_section_info): Likewise.
5723 * dwarf2read.c (read_subrange_type): Likewise.
5724 * dwarf2loc.c (find_location_expression): Likewise.
5725 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5726 (signed_address_type, execute_stack_op): Likewise.
5727 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5728 * gdbarch.c, gdbarch.h: Regenerate.
5729
5730 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5731
5732 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5733 * arch-utils.c (show_architecture): Likewise.
5734 * remote-mips.c (mips_open): Likewise
5735 * nto-tdep.c (nto_find_and_open_solib)
5736 (nto_init_solib_absolute_prefix): Likewise.
5737 * nto-procfs (procfs_open): Likewise.
5738 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5739 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5740 * gdbarch.c, gdbarch.h: Regenerate.
5741
5742 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5743
5744 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5745 * gdbtypes.c (build_flt): Likewise.
5746 * gdbarch.c, gdbarch.h: Regenerate.
5747
5748 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5749
5750 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5751 gdbarch_breakpoint_from_pc.
5752 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5753 * remote.c (remote_insert_breakpoint)
5754 (remote_insert_hw_breakpoint): Likewise.
5755 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5756 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5757 * breakpoint.h (bp_target_info): Likewise (comment).
5758 * breakpoint.c (read_memory_nobpt): Likewise.
5759 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5760 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5761 * gdbarch.c, gdbarch.h: Regenerate.
5762
5763 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5764
5765 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5766 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5767 * solib-pa64.c (read_dynamic_info): Likewise.
5768 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5769 * solib.c (info_sharedlibrary_command): Likewise.
5770 * s390-nat.c (SUBOFF): Likewise.
5771 * p-valprint.c (pascal_val_print): Likewise.
5772 * procfs.c (info_proc_mappings): Likewise.
5773 * printcmd.c (decode_format): Likewise.
5774 * nto-tdep.c (nto_truncate_ptr): Likewise.
5775 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5776 (mips64_linux_get_longjmp_target): Likewise.
5777 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5778 * jv-valprint.c (java_value_print): Likewise.
5779 * jv-lang.c (get_java_object_header_size): Likewise.
5780 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5781 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5782 (hppa_hpux_unwind_adjust_stub): Likewise.
5783 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5784 * gdbtypes.c (make_pointer_type, make_reference_type)
5785 (smash_to_memberptr_type): Likewise.
5786 * gdbarch.c, gdbarch.h: Regenerate.
5787
5788 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5789
5790 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5791 (print_gp_register_row): Stop before printing a register bigger
5792 than the ABI register size.
5793 (mips_print_registers_info): Update call to mips_print_register.
5794
5795 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5796
5797 * expression.h (enum exp_opcode): Document a register name for
5798 OP_REGISTER.
5799 * parse.c (write_dollar_variable): Write the register name for
5800 OP_REGISTER.
5801 (operator_length_standard): Expect the register name following
5802 OP_REGISTER.
5803 * ada-lang.c (resolve_subexp): Likewise.
5804 * ax-gdb.c (gen_expr): Likewise.
5805 * eval.c (evaluate_subexp_standard): Likewise.
5806 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5807 Likewise.
5808 * tracepoint.c (encode_actions): Likewise.
5809
5810 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5811
5812 * utils.c (set_screen_size): Use INT_MAX for default columns.
5813
5814 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5815
5816 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5817 qXfer:spu:write packet types.
5818
5819 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5820
5821 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5822 * gdbarch.c, gdbarch.h: Regenerate.
5823
5824 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5825
5826 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5827 gdbarch_stab_reg_to_regnum.
5828 * stabsread.c (define_symbol): Likewise.
5829 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5830 gdbarch_ecoff_reg_to_regnum.
5831 * mdebugread.c (parse_symbol): Likewise.
5832 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5833 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5834 gdbarch_dwarf_reg_to_regnum.
5835 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5836 * coffread.c (process_coff_symbol): Likewise.
5837 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5838 gdbarch_dwarf2_reg_to_regnum.
5839 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5840 (locexpr_describe_location): Likewise.
5841 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5842 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5843 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5844 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5845 * gdbarch.c, gdbarch.h: Regenerate.
5846
5847 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5848
5849 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5850 gdbarch_smash_text_address.
5851 * somread.c (som_symtab_read): Likewise.
5852 * elfread.c (record_minimal_symbol): Likewise.
5853 * dbxread.c (process_one_symbol): Likewise.
5854 * coffread.c (coff_symtab_read): Likewise.
5855 * gdbarch.c, gdbarch.h: Regenerate.
5856
5857 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5858
5859 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5860 * findvar.c (value_from_register): Likewise.
5861 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5862 * valops.c (value_assign): Likewise.
5863 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5864 gdbarch_convert_register_p.
5865 * findvar.c (value_from_register): Likewise.
5866 * valops.c (value_assign): Likewise.
5867 * gdbarch.c, gdbarch.h: Regenerate.
5868
5869 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5870
5871 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5872 gdbarch_register_sim_regno.
5873 * sim-regno.h (sim_regno): Likewise (comment).
5874 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5875 * gdbarch.c, gdbarch.h: Regenerate.
5876
5877 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5878
5879 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5880 gdbarch_virtual_frame_pointer.
5881 * tracepoint.c (encode_actions): Likewise.
5882 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5883 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5884 * gdbarch.c, gdbarch.h: Regenerate.
5885
5886 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5887
5888 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5889 * p-lang.c (pascal_create_fundamental_type): Likewise.
5890 * objc-lang.c (objc_create_fundamental_type): Likewise.
5891 * mdebugread.c (_initialize_mdebugread): Likewise.
5892 * m2-lang.c (m2_create_fundamental_type)
5893 (_initialize_m2_language): Likewise.
5894 * gdbtypes.c (build_gdbtypes): Likewise.
5895 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5896 * doublest.c (floatformat_from_length): Likewise.
5897 * c-lang.c (c_create_fundamental_type): Likewise.
5898 * ada-lang.c (ada_create_fundamental_type)
5899 (ada_language_arch_info): Likewise.
5900 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5901 * value.c (unpack_double): Likewise (comment).
5902 * gdbtypes.c (build_gdbtypes): Likewise.
5903 * doublest.c (floatformat_from_length): Likewise.
5904 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5905 * valarith.c (value_binop): Likewise.
5906 * p-lang.c (pascal_create_fundamental_type): Likewise.
5907 * objc-lang.c (objc_create_fundamental_type): Likewise.
5908 * mdebugread.c (_initialize_mdebugread): Likewise.
5909 * m2-lang.c (m2_create_fundamental_type): Likewise.
5910 * gdbtypes.c (build_gdbtypes): Likewise.
5911 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5912 * doublest.c (floatformat_from_length): Likewise.
5913 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5914 * c-lang.c (c_create_fundamental_type): Likewise.
5915 * ada-lex.l (processReal): Likewise.
5916 * ada-lang.c (ada_create_fundamental_type)
5917 (ada_language_arch_info): Likewise.
5918 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5919 * value.c (unpack_double): Likewise (comment).
5920 * gdbtypes.c (build_gdbtypes): Likewise.
5921 * doublest.c (floatformat_from_length): Likewise.
5922 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5923 gdbarch_long_double_bit.
5924 * p-lang.c (pascal_create_fundamental_type): Likewise.
5925 * objc-lang.c (objc_create_fundamental_type): Likewise.
5926 * m2-lang.c (m2_create_fundamental_type): Likewise.
5927 * gdbtypes.c (build_gdbtypes): Likewise.
5928 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5929 * doublest.c (floatformat_from_length): Likewise.
5930 * c-lang.c (c_create_fundamental_type): Likewise.
5931 * ada-lex.l (processReal): Likewise.
5932 * ada-lang.c (ada_create_fundamental_type)
5933 (ada_language_arch_info): Likewise.
5934 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5935 gdbarch_long_double_format.
5936 * gdbtypes.c (build_gdbtypes): Likewise.
5937 * doublest.c (floatformat_from_length): Likewise.
5938 * gdbarch.c, gdbarch.h: Regenerate.
5939
5940 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5941
5942 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5943 * ada-lang.c (ada_create_fundamental_type)
5944 (ada_language_arch_info): Likewise.
5945 * c-lang.c (c_create_fundamental_type): Likewise.
5946 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5947 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5948 * m2-lang.c (m2_create_fundamental_type): Likewise.
5949 * objc-lang.c (objc_create_fundamental_type): Likewise.
5950 * p-lang.c (pascal_create_fundamental_type): Likewise.
5951 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5952 * c-exp.y (parse_number): Likewise.
5953 * objc-exp.y (parse_number): Likewise.
5954 * ada-lex.l (processInt): Likewise.
5955 * f-exp.y (parse_number): Likewise.
5956 * p-exp.y (parse_number): Likewise.
5957 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5958 (gdbtypes_post_init, build_gdbtypes): Likewise.
5959 * p-lang.c (pascal_create_fundamental_type): Likewise.
5960 * parse.c (build_parse): Likewise.
5961 * xcoffread.c (_initialize_xcoffread): Likewise.
5962 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5963 (read_range_type): Likewise.
5964 * objc-lang.c (objc_create_fundamental_type): Likewise.
5965 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5966 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5967 (m2_create_fundamental_type): Likewise.
5968 * c-lang.c (c_create_fundamental_type): Likewise.
5969 * coffread.c (coff_read_enum_type): Likewise.
5970 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5971 * dwarf2read.c (new_symbol): Likewise.
5972 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5973 * c-exp.y (parse_number): Likewise.
5974 * objc-exp.y (parse_number): Likewise.
5975 * ada-lex.l (processInt): Likewise.
5976 * f-exp.y (parse_number): Likewise.
5977 * p-exp.y (parse_number): Likewise.
5978 * valarith.c (value_binop): Likewise.
5979 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5980 * ada-lang.c (ada_create_fundamental_type)
5981 (ada_language_arch_info): Likewise.
5982 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5983 * symfile.c (TARGET_LONG_BYTES): Likewise.
5984 * p-lang.c (pascal_create_fundamental_type): Likewise.
5985 * objc-lang.c (objc_create_fundamental_type): Likewise.
5986 * m2-lang.c (m2_create_fundamental_type): Likewise.
5987 * f-lang.c (f_create_fundamental_type): Likewise.
5988 * c-lang.c (c_create_fundamental_type): Likewise.
5989 * coffread.c (decode_base_type): Likewise.
5990 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5991 * c-exp.y (parse_number): Likewise.
5992 * objc-exp.y (parse_number): Likewise.
5993 * p-exp.y (parse_number): Likewise.
5994 * ada-lang.c (ada_create_fundamental_type)
5995 (ada_language_arch_info): Likewise.
5996 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5997 * stabsread.c (read_range_type): Likewise.
5998 * p-lang.c (pascal_create_fundamental_type): Likewise.
5999 * objc-lang.c (objc_create_fundamental_type): Likewise.
6000 * m2-lang.c (m2_create_fundamental_type): Likewise.
6001 * f-lang.c (f_create_fundamental_type): Likewise.
6002 * c-lang.c (c_create_fundamental_type): Likewise.
6003 * gdbarch.c, gdbarch.h: Regenerate.
6004
6005 2007-06-12 Andreas Schwab <schwab@suse.de>
6006
6007 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6008 (struct frame_unwind): Add dealloc_cache.
6009 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6010
6011 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6012 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6013 (libunwind_frame_unwind): Set dealloc_cache.
6014 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6015
6016 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6017 Markus Deuling <deuling@de.ibm.com>
6018
6019 * remote.c (remote_write_qxfer): New function.
6020 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6021 (remote_read_qxfer): Do not cache empty objects.
6022 (_initialize_remote): Add PACKET_qXfer_spu_read and
6023 PACKET_qXfer_spu_write.
6024
6025 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6026
6027 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6028 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6029
6030 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6031 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6032 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6033 * spu-tdep.c (infospucmdlist): New variable.
6034 (spu_register_name): Handle additional pseudo registers.
6035 (spu_register_type): Likewise.
6036 (spu_pseudo_register_read): Likewise.
6037 (spu_pseudo_register_write): Likewise.
6038 (spu_pseudo_register_read_spu): New function.
6039 (spu_pseudo_register_write_spu): Likewise.
6040 (info_spu_event_command): New function.
6041 (info_spu_signal_command): Likewise.
6042 (info_spu_mailbox_list): Likewise.
6043 (info_spu_mailbox_command): Likewise.
6044 (spu_mfc_get_bitfield): Likewise.
6045 (info_spu_dma_cmdlist): Likewise.
6046 (info_spu_dma_command): Likewise.
6047 (info_spu_proxydma_command): Likewise.
6048 (info_spu_command): Likewise.
6049 (_initialize_spu_tdep): Install "info spu" commands.
6050
6051 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6052
6053 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6054 accessing non-seekable spufs files.
6055
6056 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6057
6058 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6059 gdbarch_skip_trampoline_code.
6060 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6061 * objc-lang.c (objc_skip_trampoline)
6062 (objc_submethod_helper_data): Likewise.
6063 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6064 * infrun.c (handle_inferior_event): Likewise.
6065 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6066 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6067 gdbarch_in_solib_return_trampoline.
6068 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6069 * infrun.c (handle_inferior_event): Likewise.
6070 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6071 * gdbarch.c, gdbarch.h: Regenerate.
6072
6073 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6074
6075 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6076 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6077 * linespec.c (minsym_found): Likewise.
6078 * infrun.c (step_into_function): Likewise.
6079 * gdbarch.c, gdbarch.h: Regenerate.
6080
6081 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6082
6083 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6084 * valops.c (value_allocate_space_in_inferior): Likewise.
6085 * gdbarch.c, gdbarch.h: Regenerate.
6086
6087 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6088
6089 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6090 gdbarch_memory_insert_breakpoint.
6091 * mem-break.c (memory_insert_breakpoint): Likewise.
6092 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6093 gdbarch_memory_remove_breakpoint.
6094 * mem-break.c (memory_remove_breakpoint): Likewise.
6095 * gdbarch.c, gdbarch.h: Regenerate.
6096
6097 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6098
6099 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6100 gdbarch_fetch_tls_load_module_address.
6101 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6102 gdbarch_fetch_tls_load_module_address_p.
6103 * gdbarch.c, gdbarch.h: Regenerate.
6104
6105 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6106
6107 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6108 gdbarch_decr_pc_after_break.
6109 * tracepoint.c (trace_dump_command): Likewise.
6110 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6111 * linux-thread-db.c (check_event): Likewise.
6112 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6113 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6114 * frame.h: Likewise (comment).
6115 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6116 * aix-thread.c (aix_thread_wait): Likewise.
6117 * gdbarch.c, gdbarch.h: Regenerate.
6118
6119 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6120
6121 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6122 gdbarch_address_class_type_flags.
6123 * dwarf2read.c (read_tag_pointer_type): Likewise.
6124 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6125 gdbarch_address_class_type_flags_p.
6126 * dwarf2read.c (read_tag_pointer_type): Likewise.
6127 * gdbarch.c, gdbarch.h: Regenerate.
6128
6129 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6130
6131 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6132 * value.c (value_as_address): Likewise (comment).
6133 * remote-mips.c (common_breakpoint): Likewise.
6134 * regcache.c (read_pc_pid): Likewise.
6135 * printcmd.c (do_one_display): Likewise.
6136 * monitor.c (monitor_write_memory, monitor_read_memory)
6137 (monitor_insert_breakpoint): Likewise.
6138 * mips-tdep.c (heuristic_proc_start): Likewise.
6139 * infrun.c (insert_step_resume_breakpoint_at_frame)
6140 (insert_step_resume_breakpoint_at_caller): Likewise.
6141 * buildsym.c (record_line): Likewise.
6142 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6143 (arm_get_next_pc): Likewise.
6144 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6145 (store_regs): Likewise.
6146 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6147 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6148 * gdbarch.c, gdbarch.h: Regenerate.
6149
6150 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6151
6152 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6153 * tracepoint.c (scope_info): Likewise.
6154 * target.c (debug_print_register): Likewise.
6155 * stack.c (frame_info): Likewise.
6156 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6157 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6158 (sh64_media_print_registers_info)
6159 (sh64_compact_print_registers_info): Likewise.
6160 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6161 * remote-sim.c (gdbsim_fetch_register): Likewise.
6162 * remote.c (packet_reg): Likewise (comment).
6163 * reggroups.c (default_register_reggroup_p): Likewise.
6164 * regcache.c (regcache_dump): Likewise.
6165 * printcmd.c (address_info): Likewise.
6166 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6167 * mt-dep.c (mt_registers_info): Likewise.
6168 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6169 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6170 (mips_read_fp_register_double, mips_print_fp_register)
6171 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6172 (mips_register_sim_regno): Likewise.
6173 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6174 * inf-ptrace.c (inf_ptrace_fetch_register)
6175 (inf_ptrace_store_register): Likewise.
6176 * infcmd.c (default_print_registers_info): Likewise.
6177 * ia64-linux-nat.c (ia64_linux_fetch_register)
6178 (ia64_linux_store_register): Likewise.
6179 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6180 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6181 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6182 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6183 (hppa_hpux_store_register): Likewise.
6184 * findvar.c (locate_var_value): Likewise.
6185 * dwarf2loc.c (locexpr_describe_location): Likewise.
6186 * dwarf2-frame.c (execute_cfa_program): Likewise.
6187 * arm-tdep.c (arm_push_dummy_call): Likewise.
6188 * arch-utils.c (legacy_register_sim_regno): Likewise.
6189 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6190 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6191 * mi/mi-main.c (mi_cmd_data_list_register_names)
6192 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6193 (mi_cmd_data_write_register_values): Likewise.
6194 * gdbarch.c, gdbarch.h: Regenerate.
6195
6196 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6197
6198 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6199
6200 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6201
6202 * remote.c (process_g_packet): Don't check size.
6203 * gdbarch.sh: Remove register_bytes_ok.
6204 * gdbarch.c: Regenerated.
6205 * gdbarch.h: Regenerated.
6206 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6207 (m68k_register_bytes_ok): Remove.
6208 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6209
6210 2007-06-06 Andreas Schwab <schwab@suse.de>
6211
6212 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6213 (destroy_addr_space_name): Define.
6214 (libunwind_load): Get address of destroy_addr_space function.
6215 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6216 returning unsuccessfully.
6217 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6218 returning.
6219 (libunwind_sigtramp_frame_sniffer): Likewise.
6220 (libunwind_get_reg_special): Likewise.
6221
6222 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6223
6224 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6225 gdbarch_fetch_pointer_argument.
6226 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6227 * gdbarch.c, gdbarch.h: Regenerate.
6228
6229 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6230
6231 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6232 gdbarch_have_nonsteppable_watchpoint.
6233 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6234 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6235 gdbarch_cannot_step_breakpoint.
6236 * infrun.c (resume): Likewise.
6237 * gdbarch.c, gdbarch.h: Regenerate.
6238
6239 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6240
6241 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6242 * stack.c (print_frame_args): Likewise.
6243 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6244 * stack.c (print_args_stub, frame_info): Likewise.
6245 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6246 * stack.c (print_args_stub, frame_info): Likewise.
6247 * gdbarch.c, gdbarch.h: Regenerate.
6248
6249 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6250
6251 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6252 gdbarch_coff_make_msymbol_special.
6253 * coffread.c (coff_symtab_read): Likewise.
6254 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6255 gdbarch_elf_make_msymbol_special.
6256 * elfread.c (elf_symtab_read): Likewise.
6257 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6258 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6259 * gdbarch.c, gdbarch.h: Regenerate.
6260
6261 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6262
6263 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6264 gdbarch_frame_red_zone_size.
6265 * gdbarch.c, gdbarch.h: Regenerate.
6266
6267 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6268
6269 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6270 * infcall.c (call_function_by_hand): Likewise.
6271 * gcore.c (derive_stack_segment): Likewise.
6272 * frame.c (frame_id_inner): Likewise.
6273 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6274 * ada-lang.c (ensure_lval): Likewise.
6275 * gdbarch.c, gdbarch.h: Regenerate.
6276
6277 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6278
6279 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6280 gdbarch_address_to_pointer.
6281 * findvar.c (store_typed_address): Likewise.
6282 * gdbtypes.c (make_pointer_type): Likewise (comment).
6283 * procfs.c (procfs_address_to_host_pointer): Likewise.
6284 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6285 (value_of_builtin_frame_fp_reg): Likewise.
6286 (value_of_builtin_frame_pc_reg): Likewise.
6287 * utils.c (paddress): Likewise (comment).
6288 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6289 gdbarch_pointer_to_address.
6290 * findvar.c (extract_typed_address): Likewise.
6291 * gdbtypes.c (make_pointer_type): Likewise (comment).
6292 * valops.c (value_cast): Likewise (comment).
6293 * gdbarch.c, gdbarch.h: Regenerate.
6294
6295 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6296
6297 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6298 * infrun.c (handle_inferior_event): Likewise.
6299 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6300 gdbarch_get_longjmp_target_p.
6301 * breakpoint.c (breakpoint_re_set): Likewise.
6302 * infrun.c (handle_inferior_event): Likewise.
6303 * gdbarch.c, gdbarch.h: Regenerate.
6304
6305 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6306
6307 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6308 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6309 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6310 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6311 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6312 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6313 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6314 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6315 current_ex_event, child_get_current_exception_event): Remove.
6316 (hppa_hpux_inferior_created): Remove.
6317 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6318
6319 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6320 (deprecated_exception_support_initialized): Remove.
6321 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6322 (deprecated_exception_support_initialized): Remove.
6323 (breakpoint_init_inferior): Remove handling of non-zero
6324 deprecated_exception_catchpoints_are_fragile.
6325
6326 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6327 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6328 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6329 deprecated_hp_som_som_object_present.
6330 * eval.c (evaluate_subexp_standard): Likewise.
6331 * valops.c (value_cast): Likewise.
6332
6333 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6334 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6335 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6336
6337 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6338
6339 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6340 (struct objfile): Remove import_list, import_list_size,
6341 export_list, export_list_size members.
6342 (is_in_import_list): Remove prototype.
6343 * objfiles.c (is_in_import_list): Remove.
6344 * somread.c (init_import_symbols, init_export_symbols): Remove.
6345 (som_symfile_read): Do not call init_import_symbols. Do not
6346 set objfile->export_list and objfile->export_list_size.
6347
6348 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6349
6350 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6351 Use the original objfile if necessary.
6352
6353 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6354
6355 * defs.h (ldirname): New prototype.
6356 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6357 missing.
6358 * utils.c (ldirname): New function.
6359 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6360
6361 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6362
6363 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6364
6365 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6366
6367 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6368
6369 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6370
6371 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6372
6373 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6374
6375 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6376 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6377 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6378 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6379 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6380 ppc_linux_at_sigtramp_return_path): Remove.
6381
6382 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6383
6384 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6385 (xtensa_register_write_masked, xtensa_register_read_masked)
6386 (xtensa_extract_return_value, xtensa_store_return_value
6387 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6388 TARGET_BYTE_ORDER by gdbarch_byte_order.
6389 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6390 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6391 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6392 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6393 (sh64_push_dummy_call, sh64_extract_return_value)
6394 (sh64_store_return_value, sh64_register_convert_to_virtual)
6395 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6396 (sh64_pseudo_register_write, sh64_do_fp_register)
6397 (sh64_frame_prev_register): Likewise.
6398 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6399 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6400 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6401 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6402 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6403 * ppc-linux-nat.c (store_register): Likewise.
6404 * nto-tdep.c (nto_find_and_open_solib)
6405 (nto_init_solib_absolute_prefix): Likewise.
6406 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6407 (mips_convert_register_p, mips_eabi_push_dummy_call)
6408 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6409 (mips_o32_push_dummy_call, mips_o32_return_value)
6410 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6411 (mips_read_fp_register_single, mips_read_fp_register_double)
6412 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6413 (mips_breakpoint_from_pc): Likewise.
6414 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6415 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6416 (mips_linux_o32_sigframe_init): Likewise.
6417 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6418 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6419 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6420 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6421 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6422 * coffread.c (process_coff_symbol): Likewise.
6423 * arm-tdep.c (convert_from_extended, convert_to_extended)
6424 (gdb_print_insn_arm): Likewise.
6425
6426 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6427
6428 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6429 * i386-tdep.c (i386_dbx_reg_to_regnum)
6430 (i386_svr4_reg_to_regnum): Likewise.
6431 * inf-ptrace.c (inf_ptrace_fetch_registers)
6432 (inf_ptrace_store_registers): Likewise.
6433 * corelow.c (get_core_registers): Likewise.
6434 * i386-linux-nat.c (supply_gregset, fill_gregset)
6435 (i386_linux_fetch_inferior_registers)
6436 (i386_linux_store_inferior_registers): Likewise.
6437 * remote.c (init_remote_state,packet_reg_from_regnum)
6438 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6439 (remote_prepare_to_store,store_registers_using_G)
6440 (remote_store_registers,remote_arch_state): Likewise.
6441 * tracepoint.c (encode_actions): Likewise.
6442 * mi/mi-main.c (mi_cmd_data_list_register_names)
6443 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6444 (mi_cmd_data_write_register_values): Likewise.
6445 * tui/tui-regs.c (tui_show_register_group)
6446 (tui_show_register_group): Likewise.
6447 * xtensa-tdep.h (FP_ALIAS): Likewise.
6448 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6449 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6450 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6451 * win32-nat.c (do_win32_fetch_inferior_registers)
6452 (do_win32_store_inferior_registers,fetch_elf_core_registers
6453 * user-regs.h: Likewise (comment).
6454 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6455 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6456 * target-descriptions.h: Likewise (comment).
6457 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6458 * target.c (debug_print_register): Likewise.
6459 * stack.c (frame_info): Likewise.
6460 * stabsread.c (define_symbol): Likewise.
6461 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6462 (sh64_media_print_registers_info)
6463 (sh64_compact_print_registers_info): Likewise.
6464 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6465 * rs6000-nat.c (fetch_register,store_register): Likewise.
6466 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6467 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6468 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6469 * remote-m32r-sdi.c (m32r_fetch_registers)
6470 (m32r_store_registers): Likewise.
6471 * reggroups.c (default_register_reggroup_p): Likewise.
6472 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6473 (regcache_restore,regcache_dump): Likewise.
6474 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6475 * mips-tdep.c (mips_xfer_register,mips_register_name)
6476 (mips_register_reggroup_p,mips_pseudo_register_read)
6477 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6478 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6479 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6480 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6481 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6482 (print_gp_register_row,mips_print_registers_info)
6483 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6484 (mips_register_sim_regno): Likewise.
6485 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6486 (mips_linux_n32n64_sigframe_init): Likewise.
6487 * mips-linux-nat.c (mips_linux_register_addr)
6488 (mips64_linux_register_addr): Likewise.
6489 * findvar.c (value_of_register): Likewise.
6490 * infcmd.c (default_print_registers_info,registers_info)
6491 (print_vector_info,print_float_info): Likewise.
6492 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6493 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6494 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6495 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6496 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6497 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6498 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6499 (ia64_linux_store_registers): Likewise.
6500 * hpux-thread.c (hpux_thread_fetch_registers)
6501 (hpux_thread_store_registers): Likewise.
6502 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6503 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6504 (h8300_register_type): Likewise.
6505 * dwarf2-frame.c (dwarf2_frame_cache)
6506 (dwarf2_frame_state_alloc_regs): Likewise.
6507 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6508 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6509 (crisv32_cannot_store_register,cris_register_name): Likewise.
6510 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6511 * arch-utils.c (legacy_register_sim_regno)
6512 (legacy_virtual_frame_pointer): Likewise.
6513 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6514 * arm-tdep.h: Likewise (comment).
6515 * frv-tdep.c (frv_register_sim_regno): Likewise.
6516 * m68klinux-nat.c (old_fetch_inferior_registers)
6517 (old_store_inferior_registers): Likewise.
6518 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6519 * irix5-nat.c (fetch_core_registers): Likewise.
6520 * hppa-tdep.c (hppa_frame_cache): Likewise.
6521 * hppa-linux-nat.c (hppa_linux_register_addr)
6522 (hppa_linux_fetch_inferior_registers)
6523 (hppa_linux_store_inferior_registers): Likewise.
6524 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6525 (hppa_hpux_store_inferior_registers): Likewise.
6526 * amd64-nat.c (amd64_native_gregset_reg_offset)
6527 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6528 * dbug-rom.c (dbug_regname): Likewise.
6529 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6530 (HARD_PAGE_REGNUM (comment)): Likewise.
6531 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6532 * i386-tdep.c (i386_dbx_reg_to_regnum)
6533 (i386_svr4_reg_to_regnum): Likewise.
6534 * mi/mi-main.c (mi_cmd_data_list_register_names)
6535 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6536 (mi_cmd_data_write_register_values): Likewise.
6537 * gdbarch.c, gdbarch.h: Regenerate.
6538 * tui/tui-regs.c (tui_show_register_group): Likewise.
6539 * xtensa-tdep.h (FP_ALIAS): Likewise.
6540 * user-regs.h: Likewise (comment).
6541 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6542 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6543 * target-descriptions.h: Likewise (comment).
6544 * target.c (debug_print_register): Likewise.
6545 * stack.c (frame_info): Likewise.
6546 * stabsread.c (define_symbol): Likewise.
6547 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6548 (sh64_compact_print_registers_info): Likewise.
6549 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6550 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6551 (regcache_restore,regcache_dump): Likewise.
6552 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6553 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6554 (mips_stab_reg_to_regnum): Likewise.
6555 * findvar.c (value_of_register): Likewise.
6556 * infcmd.c (default_print_registers_info,registers_info)
6557 (print_vector_info,print_float_info): Likewise.
6558 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6559 * h8300-tdep.c (h8300_register_type): Likewise.
6560 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6561 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6562 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6563 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6564 * parse.c: Remove comment.
6565 * gdbarch.c, gdbarch.h: Regenerate
6566
6567 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6568
6569 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6570 gdbarch_cannot_fetch_register.
6571 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6572 * hppa-linux-nat.c (fetch_register): Likewise.
6573 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6574 * m68klinux-nat.c (fetch_register): Likewise.
6575 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6576 Likewise.
6577 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6578 gdbarch_cannot_store_register.
6579 * hppa-linux-nat.c (store_register): Likewise.
6580 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6581 * regcache.c (regcache_raw_write): Likewise.
6582 * m68klinux-nat.c (store_register): Likewise.
6583 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6584 * gdbarch.c, gdbarch.h: Regenerate.
6585
6586 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6587
6588 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6589 * gdbarch.c, gdbarch.h: Regenerate.
6590
6591 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6592
6593 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6594 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6595 * gdbarch.c, gdbarch.h: Regenerate.
6596
6597 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6598
6599 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6600 * ax-gdb.c (gen_bitfield_ref): Likewise.
6601 * mi/mi-main.c (get_register): Likewise.
6602 * findvar.c (default_value_from_register, extract_signed_integer)
6603 (extract_unsigned_integer, extract_long_unsigned_integer)
6604 (store_signed_integer, store_unsigned_integer): Likewise.
6605 * regcache.c (regcache_dump): Likewise.
6606 * value.c (lookup_internalvar, value_of_internalvar)
6607 (set_internalvar): Likewise.
6608 * defs.h: Likewise.
6609 * valprint.c (print_binary_chars, print_octal_chars)
6610 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6611 * infcmd.c (default_print_registers_info): Likewise.
6612 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6613 * stabsread.c (define_symbol): Likewise.
6614 * doublest.c (floatformat_from_length, floatformat_from_type)
6615 (extract_typed_floating, store_typed_floating): Likewise.
6616 * gdbarch.c, gdbarch.h: Regenerate.
6617
6618 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6619
6620 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6621 gdbarch_call_dummy_location.
6622 * infcall.c (call_function_by_hand): Likewise.
6623 * inferior.h: Change comment.
6624 * arch-utils.c: Change comment.
6625 * gdbarch.c, gdbarch.h: Regenerate.
6626
6627 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6628
6629 * solib-aix5.c: Delete.
6630 * Makefile.in (solib-aix5.o): Delete rule.
6631
6632 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6633
6634 * breakpoint.h (enum bpstat_what_main_action): Remove
6635 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6636 * infrun.c (process_event_stop_test): Do not check for it.
6637
6638 2007-05-22 Chris Dearman <chris@mips.com>
6639 Maciej W. Rozycki <macro@mips.com>
6640
6641 * ser-unix.c (show_serial_hwflow): New function.
6642 (hardwire_raw): Add hardware flow control support.
6643 (_initialize_ser_hardwire): Add "set/show remoteflow".
6644 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6645 * NEWS: Document the new command.
6646
6647 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6648
6649 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6650 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6651 define for i[[3456]]86-*-linux* native configurations.
6652 * config.in, configure: Regenerate.
6653
6654 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6655
6656 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6657 a core file. Add comment in the function description.
6658
6659 2007-05-18 Caroline Tice <ctice@apple.com>
6660
6661 * c-valprint.c (c_value_print): If the initialized field of the
6662 value struct is 0, print out "[uninitialized]" before the value.
6663 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6664 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6665 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6666 ctx->initialized appropriately. Verify no location op follows
6667 DW_OP_GNU_uninit.
6668 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6669 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6670 set_value_initialized.
6671 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6672 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6673 * value.c (struct value): New field, initialized.
6674 (allocate_value): Initialize new field.
6675 (set_value_initialized): New function.
6676 (value_initialized): New function.
6677 * value.h (value_initialized): New extern declaration.
6678 (set_value_initialized): Likewise.
6679
6680 2007-05-18 Caroline Tice <ctice@apple.com>
6681
6682 * MAINTAINERS (Write After Approval): Add self.
6683
6684 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6685
6686 * gdbtypes.c (make_reference_type): Preserve the type chain
6687 and set the length of all the variants of the pointer type.
6688
6689 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6690
6691 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6692 and set the length of all the variants of the pointer type.
6693
6694 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6695
6696 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6697 comment.
6698 (mips_o64_push_dummy_call): Reformat a comment.
6699
6700 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6701
6702 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6703 (score_prologue_frame_base_address): Return fp to keep gdb print
6704 local variables correctly when debugging information is stabs.
6705
6706 (score_analyze_prologue): For software watchpoint, fetch all the
6707 instructions from range [startaddr, pc] once and identify them locally
6708 to reduce memory access.
6709 (score_malloc_and_get_memblock, score_free_memblock)
6710 (score_adjust_memblock_ptr): New functions.
6711 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6712
6713 (score_target_can_use_watch, score_stopped_by_watch)
6714 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6715 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6716 New functions for remote & local hw-watchpoint and hw-breakpoint.
6717
6718 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6719
6720 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6721 declarations as well.
6722
6723 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6724
6725 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6726 * config/arm/tm-embed.h: Delete file.
6727
6728 * arm-tdep.h (arm_software_single_step): Declare.
6729 * arm-tdep.c (arm_software_single_step): Make global.
6730 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6731 from here to ...
6732 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6733 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6734 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6735 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6736
6737 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6738 allow defines to be overriden by TM file.
6739 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6740 change default to {0xbe,0xbe}.
6741 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6742 arm_obsd_thumb_be_breakpoint): New global variables.
6743 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6744 tdep->thumb_breakpoint_size.
6745 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6746 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6747 tdep->thumb_breakpoint_size.
6748
6749 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6750
6751 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6752
6753 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6754 saved-gpreg-size".
6755
6756 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6757 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6758 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6759 (mips_abi_regsize): Simplify.
6760 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6761 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6762 (mips_o32_return_value, mips_o64_push_dummy_call)
6763 (mips_o64_return_value): Propogate constant register sizes. Use the
6764 ABI register size instead of mips_stack_argsize.
6765 (mips_dump_tdep): Don't print mips_stack_argsize.
6766 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6767 settings.
6768
6769 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6770
6771 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6772 * config/mips/tm-linux.h: Delete.
6773 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6774 (mips_linux_in_dynsym_resolve_code): Make static. Use
6775 svr4_in_dynsym_resolve_code.
6776 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6777 set_solib_ops.
6778 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6779 global.
6780 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6781 * Makefile.in (mips-linux-tdep.o): Update.
6782 * solib.c (set_solib_ops): New.
6783 (current_target_so_ops): Update comment.
6784 * solib.h (set_solib_ops): New prototype.
6785
6786 2007-05-16 Chris Dearman <chris@mips.com>
6787
6788 * printcmd.c (do_examine): Fix typos in a comment.
6789
6790 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6791
6792 * configure.ac: Allow sysroots to be relocated under $prefix as
6793 well as $exec_prefix.
6794 * configure: Regenerate.
6795
6796 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6797
6798 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6799 (offsetof): Do not define.
6800 (find_stub_with_shl_get): Use numerical value 3 instead of
6801 symbolic value TYPE_PROCEDURE.
6802
6803 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6804
6805 * gdb_proc_service.h (paddr_t): Delete typedef.
6806 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6807 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6808 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6809 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6810 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6811 * Makefile.in (proc-service.o): Update.
6812
6813 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6814
6815 * Makefile.in (mips-tdep.o): Update.
6816 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6817 unwinder.
6818
6819 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6820
6821 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6822 instead of store_typed_address.
6823 * value.c (pack_long): New.
6824 (value_from_longest): Use it.
6825 * value.h (pack_long): New prototype.
6826
6827 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6828
6829 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6830 DW_EH_PE_signed if appropriate.
6831
6832 2007-05-14 Paul Brook <paul@codesourcery.com>
6833 Daniel Jacobowitz <dan@codesourcery.com>
6834
6835 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6836 function.
6837 (dwarf_decode_lines): Check for line info without a file.
6838
6839 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6840
6841 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6842 as hexadecimal.
6843
6844 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6845
6846 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6847 STRUCTOP_STRUCT.
6848 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6849 STRUCTOP_STRUCT.
6850 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6851
6852 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6853
6854 * gdbarch.sh (read_sp): Remove.
6855 * gdbarch.c, gdbarch.h: Regenerate.
6856 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6857
6858 * avr-tdep.c (avr_read_sp): Remove.
6859 (avr_unwind_sp): New function.
6860 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6861 * mips-tdep.c (mips_read_sp): Remove.
6862 (mips_unwind_sp): New function.
6863 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6864 * score-tdep.c (score_read_unsigned_register): Remove.
6865 (score_read_sp): Remove.
6866 (score_unwind_sp): New function.
6867 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6868
6869 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6870
6871 * buildsym.c (start_subfile): Handle absolute pathnames
6872 while comparing subfile names.
6873
6874 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6875
6876 * hppa-hpux-tdep.c: Include "regcache.h".
6877 * hppa-linux-tdep.c: Likewise.
6878 * hppa-tdep.c: Include "gdb_stdint.h".
6879 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6880 it to paddr_nz.
6881 * Makefile.in: Update dependencies.
6882
6883 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6884
6885 * blockframe.c: Remove obsolete comments.
6886 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6887 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6888 * hppa-tdep.h (enum hppa_regnum): Likewise.
6889 * mips-tdep.h: Likewise.
6890 * m68hc11-tdep.c: Likewise.
6891
6892 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6893
6894 * inferior.h (read_sp): Remove prototype.
6895 * regcache.c (read_sp): Remove.
6896 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6897 * infcall.c (call_function_by_hand): Likewise.
6898 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6899 of calling read_sp.
6900 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6901
6902 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6903
6904 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6905 instead of read_register and read_register_pid.
6906
6907 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6908 argument instead of PTID. Use regcache functions instead of
6909 read_register_pid.
6910 (ia64_linux_insert_watchpoint): Update call.
6911 (ia64_linux_stopped_data_address): Use regcache functions
6912 instead of read_register_pid and write_register_pid.
6913
6914 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6915
6916 * libunwind-frame.h (struct regcache): Add forward declaration.
6917 (libunwind_get_reg_special): Add REGCACHE argument.
6918 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6919 argument. Pass it to unw_init_remote_p.
6920
6921 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6922 libunwind_get_reg_special.
6923 (ia64_access_reg): Remove "write" case.
6924 (ia64_access_fpreg): Likewise. Read from next_frame passed
6925 as callback argument instead of from current_regcache.
6926 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6927 passed as callback argument instead of from current_regcache.
6928 (ia64_access_rse_fpreg): New function.
6929 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6930
6931 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6932
6933 * NEWS: Mention SPU overlay support.
6934
6935 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6936
6937 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6938
6939 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6940
6941 * breakpoint.c (remove_breakpoint): Do not remove software
6942 breakpoints in unmapped overlay sections.
6943
6944 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6945
6946 * spu-tdep.c: Include "observer.h".
6947 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6948 (spu_overlay_data): New variable.
6949 (struct spu_overlay_table): New type.
6950 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6951 spu_overlay_new_objfile): New functions.
6952 (spu_gdbarch_init): Install spu_overlay_update.
6953 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6954 allocate spu_overlay_data objfile data.
6955
6956 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6957
6958 * gdbarch.sh (overlay_update): New gdbarch function.
6959 (struct obj_section): Add forward declaration.
6960 * gdbarch.c, gdbarch.h: Regenerate.
6961
6962 * symfile.c (simple_overlay_update): Make global.
6963 (target_overlay_update): Remove variable.
6964 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6965 target_overlay_update.
6966 (overlay_load_command): Likewise.
6967 * symfile.h (struct obj_section): Add forward declaration.
6968 (simple_overlay_update): Add prototype.
6969
6970 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6971
6972 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6973
6974 * observer.sh: Add "struct objfile" forward declaration.
6975 * target.h (deprecated_target_new_objfile_hook): Remove.
6976 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6977 (clear_symtab_users): Call observer_notify_new_objfile.
6978 (symbol_file_add_with_addrs_or_offsets): Likewise.
6979 * rs6000-nat.c: Include "observer.h".
6980 (vmap_ldinfo): Call observer_notify_new_objfile.
6981 (xcoff_relocate_core): Likewise.
6982 * remote.c (remote_new_objfile_chain): Remove.
6983 (remote_new_objfile): Do not call remote_new_objfile_chain.
6984 (_initialize_remote): Use observer_attach_new_objfile.
6985 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6986 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6987 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6988 * aix-thread.c: Include "observer.h".
6989 (target_new_objfile_chain): Remove.
6990 (new_objfile): Do not call target_new_objfile_chain.
6991 (_initialize_aix_thread): Use observer_attach_new_objfile.
6992 * hpux-thread.c: Include "observer.h"
6993 (target_new_objfile_chain): Remove.
6994 (hpux_thread_new_objfile): Make static. Do not call
6995 target_new_objfile_chain.
6996 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6997 * linux-thread-db.c: Include "observer.h".
6998 (target_new_objfile_chain): Remove.
6999 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7000 (_initialize_thread_db): Use observer_attach_new_objfile.
7001 * sol-thread.c: Include "observer.h".
7002 (target_new_objfile_chain): Remove.
7003 (sol_thread_new_objfile): Make static. Do not call
7004 target_new_objfile_chain.
7005 (_initialize_sol_thread): Use observer_attach_new_objfile.
7006 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7007 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7008 $(observer_h).
7009
7010 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7011
7012 * gdbarch.sh (remote_translate_xfer_address): Remove.
7013 * gdbarch.h, gdbarch.c: Regenerate.
7014 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7015 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7016 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7017 call gdbarch_remote_translate_xfer_address.
7018 * frv-tdep.c (frv_gdbarch_init): Do not call
7019 set_gdbarch_remote_translate_xfer_address.
7020 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7021 (ia64_gdbarch_init): Do not install it.
7022
7023 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7024
7025 * NEWS: Mention change in handling the -tui option.
7026
7027 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7028
7029 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7030 typo.
7031
7032 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7033
7034 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7035 (breakpoint_inserted_here_p): Call it.
7036 (software_breakpoint_inserted_here_p): Likewise.
7037
7038 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7039
7040 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7041 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7042 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7043 (inf_ptrace_store_register): Likewise.
7044 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7045 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7046
7047 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7048
7049 * linux-nat.c (linux_trad_target): Adapt parameter list.
7050 * linux-nat.h (linux_trad_target): Likewise.
7051
7052 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7053
7054 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7055 (mips_linux_cannot_store_register): Likewise.
7056 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7057 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7058 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7059 (mips64_linux_register_addr): Likewise.
7060 (mips_linux_register_u_offset): Adapt parameter list. Pass
7061 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7062
7063 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7064 * config/mips/nm-linux.h: Delete file.
7065
7066 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7067
7068 * remote.c (remote_detach): Error out if remote can't detach.
7069
7070 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7071
7072 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7073 instruction's opcode in the "opcode" variable and declares new
7074 variable "closing_insn".
7075
7076 2007-05-10 Chris Dearman <chris@mips.com>
7077 Maciej W. Rozycki <macro@mips.com>
7078
7079 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7080 whitespace when setting a var_filename.
7081
7082 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7083
7084 * main.c (captured_main): Recognize -tui option and print an error
7085 message when the TUI is not configured.
7086
7087 2007-05-09 Andreas Schwab <schwab@suse.de>
7088
7089 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7090 set removed members.
7091 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7092
7093 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7094
7095 * gdbarch.sh (deprecated_store_struct_return): Remove.
7096 * gdbarch.c, gdbarch.h: Regenerate.
7097 * frv-tdep.c (frv_store_struct_return): Remove.
7098 (frv_gdbarch_init): Do not install it.
7099
7100 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7101
7102 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7103 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7104 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7105
7106 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7107
7108 * spu-linux-nat.c: Include "gdb_stdint.h".
7109 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7110 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7111 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7112 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7113 (spu_child_wait): Mark up string for translation.
7114
7115 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7116 Luis Machado <luisgpm@br.ibm.com>
7117
7118 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7119 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7120 BC_INSTRUCTION): Define.
7121 (deal_with_atomic_sequence): New function.
7122 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7123 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7124 gdbarch_software_single_step routine.
7125
7126 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7127
7128 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7129 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7130 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7131 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7132 spu_child_post_attach, spu_fetch_inferior_registers,
7133 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7134 memory addresses as ULONGEST, not CORE_ADDR.
7135
7136 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7137
7138 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7139 * gdbarch.h, gdbarch.c: Regenerate.
7140
7141 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7142 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7143 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7144
7145 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7146 Add REGCACHE argument. Use it instead of read/write_register.
7147 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7148
7149 * config/pa/tm-hppah.h: Delete file.
7150 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7151 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7152
7153 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7154
7155 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7156 * NEWS: Mention improved C++ thunk support.
7157 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7158 * cp-abi.c (cplus_skip_trampoline): New.
7159 * cp-abi.h (cplus_skip_trampoline): New prototype.
7160 (struct cp_abi_ops): Add skip_trampoline member.
7161 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7162 (init_gnuv3_ops): Set skip_trampoline.
7163
7164 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7165
7166 * rs6000-tdep.c (struct frame_extra_info): Delete.
7167
7168 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7169
7170 * linux-thread-db.c: Update some FIXME comments.
7171 (thread_db_xfer_partial): Delete.
7172 (init_thread_db_ops): Do not set to_xfer_partial.
7173
7174 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7175
7176 * inftarg.c, infptrace.c: Remove files.
7177 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7178 (inftarg.o, infptrace.o): Remove rules.
7179 * gdbcore.h (register_addr): Remove prototype.
7180 * inferior.h (kill_inferior, store_inferior_registers,
7181 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7182 call_ptrace, pre_fork_inferior): Remove prototypes.
7183 * target.h (child_xfer_memory, child_pid_to_exec_file,
7184 child_core_file_to_sym_file, child_post_attach,
7185 child_post_startup_inferior, child_acknowledge_created_inferior,
7186 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7187 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7188 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7189 child_follow_fork, child_reported_exec_events_per_exec_call,
7190 child_has_exited, child_thread_alive): Remove prototypes.
7191
7192 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7193
7194 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7195 (sparc_store_inferior_registers): Likewise.
7196 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7197 (sparc_fetch_inferior_registers): ... this.
7198 (store_inferior_registers): Rename to ...
7199 (sparc_store_inferior_registers): ... this.
7200 (sparc_target): Update callback names.
7201 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7202 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7203
7204 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7205
7206 * linux-nat.c (child_post_attach): Rename to ...
7207 (linux_child_post_attach): ... this. Make static.
7208 (child_follow_fork): Rename to ...
7209 (linux_child_follow_fork): ... this. Make static.
7210 (child_insert_fork_catchpoint): Rename to ...
7211 (linux_child_insert_fork_catchpoint): ... this. Make static.
7212 (child_insert_vfork_catchpoint): Rename to ...
7213 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7214 (child_insert_exec_catchpoint): Rename to ...
7215 (linux_child_insert_exec_catchpoint): ... this. Make static.
7216 (child_pid_to_exec_file): Rename to ...
7217 (linux_child_pid_to_exec_file): ... this. Make static.
7218 Add prototype.
7219 (linux_handle_extended_wait): Update call.
7220 (linux_xfer_partial): Update callback routine names.
7221
7222 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7223
7224 * configure.host (alpha*-*-osf[12]*): Remove support.
7225 * NEWS: Mention removed configurations.
7226
7227 * config/alpha/alpha-osf1.mh: Delete file.
7228 * config/alpha/alpha-osf2.mh: Delete file.
7229 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7230 and infptrace.o.
7231 * config/alpha/nm-osf.h: Delete file.
7232 * config/alpha/nm-osf2.h: Delete file.
7233 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7234 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7235 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7236
7237 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7238 (register_addr, kernel_u_size): Remove.
7239 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7240
7241 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7242
7243 * regcache.c (regcache_invalidate): New function.
7244 (register_cached): Remove.
7245 (set_register_cached): Remove.
7246 (deprecated_registers_fetched): Remove.
7247 (registers_changed): Use regcache_invalidate instead
7248 of set_register_cached.
7249 (regcache_raw_read): Update comment.
7250
7251 * regcache.h (regcache_invalidate): Add prototype.
7252 (register_cached): Remove.
7253 (set_register_cached): Remove.
7254 (deprecated_registers_fetched): Remove.
7255
7256 * findvar.c (value_of_register): Do not call register_cached.
7257 * frame.c (frame_register): Likewise.
7258 * tui/tui-regs.c (tui_get_register): Likewise.
7259
7260 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7261 (process_g_packet): Likewise.
7262 (remote_fetch_registers): Likewise.
7263 * remote-sim.c (gdbsim_fetch_register): Likewise.
7264 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7265 by regcache_invalidate.
7266 (mt_pseudo_register_write): Likewise.
7267 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7268
7269 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7270 call by loop over regcache_raw_supply (..., NULL).
7271
7272 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7273
7274 * target.h (struct target_ops): Add REGCACHE parameter to
7275 to_prepare_to_store.
7276 (target_prepare_to_store): Likewise.
7277 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7278 (update_current_target): Adapt prepare_to_store de_fault rule.
7279
7280 * regcache.c (regcache_raw_write): Pass regcache to
7281 target_prepare_to_store.
7282
7283 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7284 Do not call CHILD_PREPARE_TO_STORE.
7285 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7286 * procfs.c (procfs_prepare_to_store): Likewise.
7287
7288 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7289 * go32-nat.c (go32_prepare_to_store): Likewise.
7290 * monitor.c (monitor_prepare_to_store): Likewise.
7291 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7292 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7293 * remote-mips.c (mips_prepare_to_store): Likewise.
7294 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7295 * win32-nat.c (win32_prepare_to_store): Likewise.
7296
7297 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7298 Use it instead of current_regcache.
7299
7300 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7301 parameter. Pass it on to next target.
7302 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7303
7304 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7305
7306 * target.h (struct regcache): Add forward declaration.
7307 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7308 and to_store_registers target operations.
7309 (target_fetch_registers, target_store_registers): Update.
7310
7311 * regcache.c (regcache_raw_read): Replace register_cached by
7312 regcache_valid_p. Pass regcache to target_fetch_registers.
7313 (regcache_raw_write): Pass regcache to target_store_registers.
7314
7315 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7316 store_regs, store_wmmx_regs): Replace register_cached by
7317 regcache_valid_p.
7318
7319 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7320 to target_fetch_registers calls.
7321 * corelow.c (core_open): Likewise.
7322 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7323 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7324 ps_lsetfpregs): Likewise.
7325 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7326 ps_lsetfpregs): Likewise.
7327 * win32-nat.c (win32_resume): Likewise.
7328 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7329 to target_store_registers call.
7330 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7331
7332 * inferior.h (store_inferior_registers): Update prototype.
7333 (fetch_inferior_registers): Likewise.
7334 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7335 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7336 Update function pointer signatures.
7337
7338 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7339 use it instead of current_regcache, update calls.
7340 (aix_thread_store_registers): Likewise.
7341 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7342 (alphabsd_store_inferior_registers): Likewise.
7343 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7344 (amd64bsd_store_inferior_registers): Likewise.
7345 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7346 (amd64_linux_store_inferior_registers): Likewise.
7347 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7348 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7349 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7350 (arm_linux_fetch_inferior_registers): Likewise.
7351 (arm_linux_store_inferior_registers): Likewise.
7352 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7353 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7354 (store_register, store_regs, store_fp_register, store_fp_regs,
7355 armnbsd_store_registers): Likewise.
7356 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7357 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7358 (bsd_uthread_store_registers): Likewise.
7359 * corelow.c (get_core_registers): Likewise.
7360 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7361 go32_store_registers): Likewise.
7362 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7363 (hppabsd_store_registers): Likewise.
7364 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7365 (hppa_hpux_fetch_inferior_registers): Likewise.
7366 (hppa_hpux_store_register): Likewise.
7367 (hppa_hpux_store_inferior_registers): Likewise.
7368 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7369 (hppa_linux_fetch_inferior_registers): Likewise.
7370 (hppa_linux_store_inferior_registers): Likewise.
7371 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7372 (hpux_thread_store_registers): Likewise.
7373 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7374 (i386bsd_store_inferior_registers): Likewise.
7375 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7376 gnu_store_registers): Likewise.
7377 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7378 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7379 Likewise.
7380 (i386_linux_fetch_inferior_registers): Likewise.
7381 (i386_linux_store_inferior_registers): Likewise.
7382 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7383 (ia64_linux_fetch_registers): Likewise.
7384 (ia64_linux_store_register): Likewise.
7385 (ia64_linux_store_registers): Likewise.
7386 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7387 (inf_child_store_inferior_registers): Likewise.
7388 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7389 (inf_ptrace_fetch_registers): Likewise.
7390 (inf_ptrace_store_register): Likewise.
7391 (inf_ptrace_store_registers): Likewise.
7392 * infptrace.c (fetch_register, store_register): Likewise.
7393 (fetch_inferior_registers, store_inferior_registers): Likewise.
7394 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7395 (m32r_linux_fetch_inferior_registers): Likewise.
7396 (m32r_linux_store_inferior_registers): Likewise.
7397 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7398 (m68kbsd_store_inferior_registers): Likewise.
7399 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7400 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7401 fetch_fpregs, store_fpregs): Likewise.
7402 (m68k_linux_fetch_inferior_registers): Likewise.
7403 (m68k_linux_store_inferior_registers): Likewise.
7404 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7405 (m88kbsd_store_inferior_registers): Likewise.
7406 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7407 (mips64obsd_store_inferior_registers): Likewise.
7408 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7409 (mips64_linux_regsets_store_registers): Likewise.
7410 (mips64_linux_fetch_registers): Likewise.
7411 (mips64_linux_store_registers): Likewise.
7412 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7413 (mipsnbsd_store_inferior_registers): Likewise.
7414 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7415 (monitor_fetch_registers, monitor_store_registers): Likewise.
7416 * nto-procfs.c (procfs_fetch_registers): Likewise.
7417 (procfs_store_registers): Likewise.
7418 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7419 fetch_register, supply_vrregset, fetch_altivec_registers,
7420 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7421 (store_altivec_register, store_spe_register, store_register,
7422 fill_vrregset, store_altivec_registers, store_ppc_registers,
7423 ppc_linux_store_inferior_registers): Likewise.
7424 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7425 (ppcnbsd_store_inferior_registers): Likewise.
7426 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7427 (ppcobsd_store_registers): Likewise.
7428 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7429 * remote.c (fetch_register_using_p, process_g_packet,
7430 fetch_registers_using_g, remote_fetch_registers): Likewise.
7431 (store_register_using_P, store_registers_using_G,
7432 remote_store_registers): Likewise.
7433 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7434 m32r_store_register, m32r_store_register): Likewise.
7435 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7436 * remote-sim.c (gdbsim_fetch_register): Likewise.
7437 (gdbsim_store_register): Likewise.
7438 * rs6000-nat.c (fetch_register, store_register): Likewise.
7439 (rs6000_fetch_inferior_registers): Likewise.
7440 (rs6000_store_inferior_registers): Likewise.
7441 * s390-nat.c (fetch_regs, store_regs): Likewise.
7442 (fetch_fpregs, store_fpregs): Likewise.
7443 (s390_linux_fetch_inferior_registers): Likewise.
7444 (s390_linux_store_inferior_registers): Likewise.
7445 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7446 (shnbsd_store_inferior_registers): Likewise.
7447 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7448 (sol_thread_store_registers): Likewise.
7449 * sparc-nat.c (fetch_inferior_registers): Likewise.
7450 (store_inferior_registers): Likewise.
7451 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7452 (spu_store_inferior_registers): Likewise.
7453 * target.c (debug_print_register): Likewise.
7454 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7455 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7456 (vaxbsd_store_inferior_registers): Likewise.
7457 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7458 (win32_fetch_inferior_registers): Likewise.
7459 (win32_store_inferior_registers): Likewise.
7460
7461 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7462
7463 * gdbcore.h (struct regcache): Add forward declaration.
7464 (struct core_fns): Add REGCACHE argument to core_read_registers
7465 callback.
7466 * corelow.c (get_core_register_section): Add REGCACHE argument,
7467 use it instead of current_regcache, pass it to core_read_registers
7468 callback.
7469 (get_core_registers): Add current_regcache as parameter to
7470 get_core_register_section calls.
7471
7472 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7473 use it instead of current_regcache.
7474 * armnbsd-nat.c (fetch_core_registers): Likewise.
7475 (fetch_elfcore_registers): Likewise.
7476 * core-regset.c (fetch_core_registers): Likewise.
7477 * cris-tdep.c (fetch_core_registers): Likewise.
7478 * irix5-nat.c (fetch_core_registers): Likewise.
7479 * m68klinux-nat.c (fetch_core_registers): Likewise.
7480 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7481 * win32-nat.c (fetch_elf_core_registers): Likewise.
7482
7483 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7484
7485 * gregset.h (struct regcache): Add forward declaration.
7486 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7487 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7488 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7489 (fill_gregset): Add REGCACHE parameter.
7490 (fill_fpregset): Likewise.
7491 (fill_fpxregset): Likewise.
7492
7493 Update all definitions accordingly:
7494 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7495 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7496 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7497 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7498 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7499 (supply_gregset): Add REGCACHE parameter, use it instead of
7500 current_regcache. Make GREGSETP parameter const, adapt casts.
7501 (supply_fpregset): Add REGCACHE parameter, use it instead of
7502 current_regcache. Make FPREGSETP parameter const, adapt casts.
7503 (fill_gregset): Add REGCACHE parameter, use it instead of
7504 current_regcache.
7505 (fill_fpregset): Likewise.
7506
7507 Update all callers to pass in current_regcache as the new argument:
7508 * core-regset.c: Include "regcache.h".
7509 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7510 * procfs.c: Include "regcache.h".
7511 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7512 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7513 (procfs_do_thread_registers): Likewise.
7514 (procfs_make_note_section): Likewise.
7515 * proc-service.c: Include "regcache.h".
7516 (ps_lgetregs): Update fill_gregset call.
7517 (ps_lsetregs): Update supply_gregset call.
7518 (ps_lgetfpregs): Update fill_fpregset call.
7519 (ps_lsetfpregs): Update supply_fpregset call.
7520 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7521 supply_fpregset calls.
7522 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7523 (ps_lgetregs): Update fill_gregset call.
7524 (ps_lsetregs): Update supply_gregset call.
7525 (ps_lgetfpregs): Update fill_fpregset call.
7526 (ps_lsetfpregs): Update supply_fpregset call.
7527
7528 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7529 fill_fpregset, and fill_fpxregset calls.
7530 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7531 (store_regs): Update fill_gregset call.
7532 (fetch_fpregs): Update supply_fpregset call.
7533 (store_fpregs): Update fill_fpregset call.
7534 (fetch_fpxregs): Update supply_fpxregset call.
7535 (store_fpxregs): Update fill_fpxregset call.
7536 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7537 (store_regs): Update fill_gregset call.
7538 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7539 (store_regs): Update fill_gregset call.
7540 (fetch_fpregs): Update supply_fpregset call.
7541 (store_fpregs): Update fill_fpregset call.
7542 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7543 * s390-nat.c (fetch_regs): Update supply_gregset call.
7544 (store_regs): Update fill_gregset call.
7545 (fetch_fpregs): Update supply_fpregset call.
7546 (store_fpregs): Update fill_fpregset call.
7547
7548 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7549 dependencies.
7550
7551 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7552
7553 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7554 it instead of current_regcache.
7555 (parse_register_dump): Add REGCACHE parameter, pass it to
7556 supply_register callback.
7557 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7558 parse_register_dump.
7559 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7560 parse_register_dump and dumpregs callback.
7561 (monitor_wait): Pass current_regcache to parse_register_dump and
7562 monitor_dump_regs.
7563 (monitor_fetch_register): Pass current_regcache to
7564 monitor_supply_register.
7565 (monitor_fetch_registers): Pass current_regcache to
7566 monitor_dump_regs.
7567 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7568 supply_register and dumpregs callbacks.
7569 (monitor_supply_register, monitor_dump_reg_block): Update
7570 prototypes.
7571 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7572 it to monitor_supply_register.
7573 * dink32-rom.c (dink32_supply_register): Likewise.
7574 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7575 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7576 instead of current_regcache.
7577
7578 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7579
7580 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7581 Add REGCACHE parameter. Use it instead of current_regcache.
7582 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7583 i386nto_supply_gregset and i386nto_supply_fpregset.
7584 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7585 of current_regcache.
7586
7587 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7588 nto_supply_ helper functions.
7589 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7590
7591 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7592
7593 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7594 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7595 and regset_fill member function pointers.
7596 (nto_dummy_supply_regset): Adapt prototype.
7597
7598 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7599
7600 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7601 instead of current_regcache. Make REGS const.
7602 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7603 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7604 prototypes.
7605 * shnbsd-nat.c: Include "regcache.h".
7606 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7607 shnbsd_supply_reg.
7608 (shnbsd_store_inferior_registers): Pass current_regcache to
7609 shnbsd_fill_reg.
7610 * Makefile.in (shbsd-nat.o): Update dependencies.
7611
7612 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7613
7614 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7615 instead of current_regcache.
7616 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7617 Make GREGSETP const, remove superfluous casts.
7618 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7619 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7620 superfluous casts.
7621 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7622 (supply_64bit_reg): Likewise
7623 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7624 Make GREGSETP const, adapt casts accordingly.
7625 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7626 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7627 casts accordingly.
7628 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7629 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7630 helper routines.
7631 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7632 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7633 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7634 Adapt prototypes.
7635 * mips-linux-nat.c: Include "regcache.h".
7636 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7637 current_regcache to mips{64}_(supply|fill)_ helper routines.
7638 (mips64_linux_regsets_fetch_registers): Likewise.
7639 (mips64_linux_regsets_store_registers): Likewise.
7640
7641 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7642 REGCACHE argument; replace current_regcache. Make REGS const.
7643 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7644 replace current_regcache.
7645 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7646 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7647 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7648 mipsnbsd_store_inferior_registers): Pass current_regcache to
7649 mipsnbsd_(supply|fill)_... helper routines.
7650
7651 * Makefile.in (mips-linux-nat.o): Update dependencies.
7652
7653 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7654
7655 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7656 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7657 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7658 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7659 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7660 * i386gnu-nat.c (store_fpregs): Likewise.
7661 * i386v4-nat.c (fill_fpregset): Likewise.
7662 * go32-nat.c (store_register, go32_store_registers): Likewise.
7663
7664 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7665
7666 * cris-tdep.c (supply_gregset): Rename to ...
7667 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7668 instead of current_regcache.
7669 (fetch_core_registers): Update call. Pass current_regcache.
7670
7671 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7672
7673 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7674 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7675 Use it instead of current_regcache.
7676 (supply_fparegset): Rename to ...
7677 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7678 Use it instead of current_regcache.
7679 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7680 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7681
7682 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7683
7684 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7685 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7686 use it instead of current_regcache.
7687 * alpha-tdep.h (struct regcache): Add forward declaration.
7688 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7689 alpha_fill_fp_regs): Update prototypes.
7690
7691 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7692 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7693 * alpha-linux-nat.c: Include "regcache.h".
7694 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7695 current_regcache to alpha_supply/fill_ routines.
7696
7697 * alphabsd-tdep.c: Include "regcache.h".
7698 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7699 pass it to alpha_supply_ routines. Make REGS const.
7700 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7701 pass it to alpha_fill_ routines.
7702 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7703 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7704 alphabsd_fill_fpreg): Update prototypes.
7705
7706 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7707 fill_fpregset, alphabsd_fetch_inferior_registers,
7708 alphabsd_store_inferior_registers): Pass current_regcache to
7709 alphabsd_supply/fill_ routines.
7710
7711 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7712 dependencies.
7713
7714 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7715
7716 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7717 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7718 instead of current_regcache.
7719 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7720 REGCACHE parameter, pass it to supply_ routines.
7721 (aix_thread_fetch_registers): Pass current_regcache to
7722 fetch_regs_user_thread and fetch_regs_kernel_thread.
7723
7724 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7725 Add REGCACHE parameter, use it instead of current_regcache.
7726 Call regcache_valid_p instead of register_cached.
7727 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7728 Also, pass REGCACHE to fill_ routines.
7729 (aix_thread_store_registers): Pass current_regcache to
7730 store_regs_user_thread and store_regs_kernel_thread.
7731
7732 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7733
7734 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7735 pointed to by GREGSETP.
7736
7737 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7738
7739 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7740 of regcache_raw_read_signed.
7741 (fill_fpregset): Use regcache_raw_collect instead of
7742 regcache_raw_read.
7743
7744 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7745
7746 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7747 point arguments, test explicitly for use of the EABI32 ABI
7748 instead of inferring this condition from tests on register
7749 sizes.
7750
7751 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7752
7753 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7754 prior to allocating its location.
7755
7756 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7757
7758 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7759 based on mips_abi_regsize() whose result is known in advance.
7760 (mips_o64_push_dummy_call): Likewise.
7761
7762 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7763
7764 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7765 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7766
7767 * mips-linux-nat.c: Include "gregset.h".
7768 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7769 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7770 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7771 fill_fpregset): Move to mips-linux-nat.c.
7772
7773 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7774
7775 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7776
7777 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7778 (read_register): ... here.
7779 (deprecated_write_register_gen): Remove, inline ...
7780 (write_register): ... here.
7781 * regcache.h (deprecated_read_register_gen): Remove prototype.
7782 (deprecated_write_register_gen): Likewise.
7783
7784 * remote-sim.c (gdbsim_store_register): Replace call to
7785 deprecated_read_register_gen with regcache_cooked_read.
7786 * target.c (debug_print_register): Replace calls to
7787 deprecated_read_register_gen and read_register with
7788 regcache_cooked_read.
7789
7790 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7791
7792 * hpux-thread.c (hpux_thread_store_registers): Use
7793 regcache_raw_collect, not regcache_raw_read.
7794 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7795 not regcache_raw_write.
7796
7797 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7798
7799 * gdbarch.sh: Remove deprecated_register_byte.
7800 * gdbarch.c, gdbarch.h: Regenerate.
7801 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7802 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7803
7804 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7805 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7806 read-only register caches. Make REGCACHE parameter const.
7807 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7808
7809 * mi/mi-main.c (old_regs): Remove.
7810 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7811 (register_changed_p): Reimplement to compare two register caches.
7812 (mi_cmd_data_list_changed_registers): Update caller.
7813 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7814 * mi/mi-interp.c (mi_interpreter_init): Do not call
7815 mi_setup_architecture_data.
7816
7817 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7818
7819 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7820 inline definition at the places the macros are used.
7821 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7822
7823 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7824
7825 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7826 "gdb_string.h".
7827 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7828 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7829 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7830 (rs6000_aix_regset_from_core_section): New function.
7831 (rs6000_aix_init_osabi): Register it.
7832 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7833 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7834 * rs6000-nat.c (CoreRegs): Do not define type.
7835 (fetch_core_registers, rs6000_core_fns): Remove.
7836 (_initialize_core_rs6000): Do not register it. Rename to ...
7837 (_initialize_rs6000_nat): ... this.
7838 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7839
7840 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7841
7842 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7843 (dwarf2_read_address): Sign extend return address as required by
7844 target architecture.
7845
7846 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7847
7848 * solib-frv.c (lm_base): Bail out if the main executable has
7849 not been relocated.
7850
7851 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7852
7853 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7854 of FPCR register in fpregset.
7855
7856 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7857
7858 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7859 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7860
7861 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7862
7863 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7864 * rs6000-nat.c (rs6000_wait): New function.
7865 (_initialize_core_rs6000): Install it as to_wait target method.
7866 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7867
7868 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7869
7870 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7871 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7872 * rs6000-nat.c (super_create_inferior): New variable.
7873 (rs6000_create_inferior): Make static. Adapt argument list. Call
7874 original version of create_inferior via super_create_inferior.
7875 (_initialize_core_rs6000): Install to_create_inferior target method.
7876
7877 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7878
7879 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7880 (aix_thread_xfer_partial): ... this.
7881 (init_aix_thread_ops): Install to_xfer_partial instead
7882 of deprecated_xfer_memory target method.
7883
7884 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7885 and inftarg.o, add inf-ptrace.o.
7886 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7887 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7888 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7889 (fetch_inferior_registers): Rename to ...
7890 (rs6000_fetch_inferior_registers): ... this. Make static.
7891 (store_inferior_registers): Rename to ...
7892 (rs6000_store_inferior_registers): ... this. Make static.
7893 (read_word, child_xfer_memory): Remove.
7894 (rs6000_xfer_partial): New function.
7895 (kernel_u_size): Remove.
7896 (_initialize_core_rs6000): Add inf_ptrace-based target.
7897 * Makefile.in (rs6000-nat.o): Update dependencies.
7898
7899 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7900
7901 * inf-ptrace.c: Include "gdb_stdint.h".
7902 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7903 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7904 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7905 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7906 (inf_ptrace_store_register): Likewise.
7907 * Makefile.in (inf-ptrace.o): Update dependencies.
7908
7909 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7910
7911 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7912 * configure.tgt (rs6000-*-*): Likewise.
7913 * config/rs6000/aix4.mh: Delete file.
7914 * config/rs6000/aix4.mt: Delete file.
7915 * config/rs6000/rs6000.mh: Delete file.
7916 * config/rs6000/rs6000.mt: Delete file.
7917
7918 * config/powerpc/nm-aix.h: Delete file.
7919 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7920
7921 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7922
7923 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7924 Remove obsolete part of comment.
7925 (store_regs_user_thread): Use uint32_t temporaries when calling
7926 fill_sprs32.
7927 (store_regs_kernel_thread): Likewise. Add assertion to verify
7928 correct size of struct ptsprs members.
7929 (aix_thread_xfer_memory): Fix type of myaddr.
7930 (aix_thread_extra_thread_info): Fix compiler warning.
7931 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7932 (fetch_register, store_register): Adapt callers.
7933
7934 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7935
7936 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7937
7938 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7939
7940 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7941 and "regcache.h".
7942 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7943 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7944 (alpha_linux_regset_from_core_section): New function.
7945 (alpha_linux_init_abi): Install it.
7946 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7947 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7948 <sys/procfs.h>, and "gregset.h".
7949 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7950 Move from config/alpha/nm-linux.h.
7951 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7952 from alpha-nat.c.
7953 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7954 * alpha-nat.c: Remove #ifdef __linux__ section.
7955 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7956 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7957 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7958 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7959 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7960 (NATDEPFILES): Remove alpha-nat.o.
7961 * config/alpha/nm-linux.h: Delete file.
7962 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7963 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7964 (alpha-linux-tdep.o): Likewise.
7965
7966 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7967
7968 * mips-linux-nat.c: No longer include "gdbcore.h".
7969 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7970 (mips64_linux_register_addr): Likewise.
7971 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7972 mips64_linux_register_addr instead of register_addr.
7973 * mips-linux-tdep.c (mips_linux_register_addr,
7974 mips64_linux_register_addr): Move to mips-linux-nat.c.
7975 (register_addr): Remove.
7976 (register_addr_data, init_register_addr_data): Remove.
7977 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7978 (set_mips_linux_register_addr): Remove.
7979 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7980 * Makefile.in (mips-linux-nat.o): Update dependencies.
7981
7982 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7983
7984 * linux-nat.c (linux_register_u_offset): Remove.
7985 (linux_target_install_ops): New function.
7986 (linux_target): Use it.
7987 (linux_trad_target): New function.
7988 * linux-nat.h (linux_trad_target): Declare.
7989
7990 * alpha-linux-nat.c: Include "gdbcore.h".
7991 (alpha_linux_register_u_offset): New function.
7992 (_initialize_alpha_linux_nat): Use linux_trad_target.
7993
7994 * mips-linux-nat.c: Include "gdbcore.h".
7995 (mips_linux_register_u_offset): New function.
7996 (_initialize_mips_linux_nat): Use linux_trad_target.
7997
7998 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7999 * config/arm/nm-linux.h: Delete file.
8000
8001 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8002 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8003
8004 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8005 * config/ia64/nm-linux.h: Delete file.
8006
8007 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8008 * config/m32r/nm-linux.h: Delete file.
8009
8010 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8011 * config/m68k/nm-linux.h: Delete file.
8012
8013 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8014 * config/pa/nm-linux.h: Delete file.
8015
8016 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8017 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8018 * config/powerpc/nm-linux.h: Delete file.
8019
8020 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8021 * config/s390/nm-linux.h: Delete file.
8022
8023 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8024 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8025 * config/sparc/nm-linux.h: Delete file.
8026
8027 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8028 (mips-linux-nat.o): Likewise.
8029
8030 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8031
8032 * core-aout.c: Delete file.
8033 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8034 (core-aout.o): Delete rule.
8035 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8036
8037 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8038
8039 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8040 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8041 KERNEL_U_ADDR): Remove.
8042
8043 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8044 (cannot_fetch_register, cannot_store_register): Remove.
8045 (fetch_register): Inline cannot_fetch_register and register_addr.
8046 (store_register): Inline cannot_store_register and register_addr.
8047 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8048 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8049 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8050 Remove.
8051
8052 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8053 (fetch_register): Inline register_addr.
8054 (store_register): Inline register_addr.
8055 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8056 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8057 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8058
8059 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8060 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8061 REGISTER_U_ADDR): Remove.
8062
8063 * hppa-linux-nat.c (register_addr): Rename to ...
8064 (hppa_linux_register_addr): ... this. Make static.
8065 (fetch_register, store_register): Adapt callers.
8066 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8067
8068 * ppc-linux-nat.c (kernel_u_size): Remove.
8069 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8070
8071 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8072 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8073 (NAT_FILE): Remove.
8074 * config/vax/nm-vax.h: Delete file.
8075
8076 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8077
8078 * MAINTAINERS (Write After Approval): Add myself.
8079
8080 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8081
8082 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8083 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8084 (m68k_linux_sigcontext_reg_offset): Fix typo.
8085 (target_is_uclinux): New.
8086 (m68k_linux_inferior_created): New.
8087 (m68k_linux_get_sigtramp_info): Check for uClinux or
8088 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8089 uClinux.
8090 (_initialize_m68k_linux_tdep): Register
8091 m68k_linux_inferior_created.
8092
8093 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8094
8095 * win32-nat.c (win32_detach): Remove delete_command call.
8096 Resume inferior with win32_resume instead of win32_continue.
8097
8098 2007-04-19 Jerome Guitton <guitton@adacore.com>
8099
8100 * ser-mingw.c (fd_is_file): New function.
8101 (file_select_thread): New function.
8102 (ser_console_wait_handle): Add special handling for files.
8103
8104 2007-04-18 Denis Pilat <denis.pilat@st.com>
8105
8106 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8107 when missing from DW_TAG_subrange_type. Remove the handling of null
8108 return from die_type.
8109
8110 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8111
8112 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8113 change to rearrange some brackets.
8114 (mips_n32n64_push_dummy_call): Likewise.
8115 (mips_o32_push_dummy_call): Likewise.
8116 (mips_o64_push_dummy_call): Likewise.
8117
8118 2007-04-18 Denis Pilat <denis.pilat@st.com>
8119
8120 * infcmd.c (post_create_inferior): Start with a call to
8121 target_terminal_ours.
8122
8123 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8124
8125 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8126 brackets.
8127 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8128 expressions.
8129 (mips_o32_push_dummy_call): Likewise.
8130 (mips_o64_push_dummy_call): Likewise.
8131
8132 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8133
8134 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8135 comment.
8136
8137 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8138
8139 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8140 comment.
8141 (mips_o32_push_dummy_call): Likewise.
8142
8143 2007-04-17 Andreas Schwab <schwab@suse.de>
8144
8145 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8146 sal to be bigger than the end of the function.
8147
8148 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8149 Nigel Stephens <nigel@mips.com>
8150
8151 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8152 argument alignment requirements when calculating stack space
8153 required. When aligning an arg register to eight bytes
8154 boundary, align stack_offset too. Write floating-point
8155 arguments to the appropriate integer register if need go there.
8156 (mips_o64_push_dummy_call): Likewise.
8157
8158 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8159
8160 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8161 "sig" arguments, add "regcache" argument.
8162 * gdbarch.c, gdbarch.h: Regenerate.
8163
8164 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8165 (handle_inferior_event): Call remove_single_step_breakpoints directly
8166 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8167
8168 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8169 Remove handling of !insert_breakpoints_p case.
8170 * arm-tdep.c (arm_software_single_step): Likewise.
8171 * cris-tdep.c (cris_software_single_step): Likewise.
8172 * mips-tdep.c (mips_software_single_step): Likewise.
8173 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8174 * sparc-tdep.c (sparc_software_single_step): Likewise.
8175 * spu-tdep.c (spu_software_single_step): Likewise.
8176
8177 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8178 * mips-tdep.h (mips_software_single_step): Likewise.
8179 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8180 * sparc-tdep.h (sparc_software_single_step): Likewise.
8181
8182 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8183
8184 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8185 when removing single-step breakpoints.
8186
8187 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8188
8189 * varobj.h (varobj_set_frozen): New
8190 (varobj_get_frozen): New.
8191 (varobj_update): New parameter explicit.
8192 * varobj.c (struct varobj): New fields frozen
8193 and not_fetched.
8194 (varobj_set_frozen, varobj_get_frozen): New.
8195 (install_new_value): Don't fetch values for
8196 frozen variable object, or children thereof. Allow
8197 a frozen variable object to have non-fetched value.
8198 (varobj_update): Allow updating child variables.
8199 Don't traverse frozen children.
8200 (new_variable): Initialize the frozen field.
8201 (c_value_of_variable): Return NULL for frozen
8202 variable without any value yet.
8203 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8204 'explicit'.
8205 (mi_cmd_var_create): Output the 'frozen' field,
8206 as soon as testsuite is adjusted to expect that field.
8207 (mi_cmd_var_set_frozen): New.
8208 (mi_cmd_var_update): Pass the 'explicit' parameter to
8209 varobj_update_one.
8210 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8211 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8212
8213 2007-04-13 Paul Brook <paul@codesourcery.com>
8214
8215 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8216 ieee_double.
8217 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8218
8219 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8220
8221 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8222 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8223 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8224 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8225 * Makefile.in: Remove references to deleted files.
8226 * README: Do not mention deleted ROM monitor interfaces.
8227 * defs.h (enum language): Delete language_scm.
8228 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8229 (dump_subexp_body_standard): Likewise.
8230 * parse.c (operator_length_standard): Likewise.
8231 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8232 * remote-mips.c: Do not include remote-utils.h.
8233 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8234 throughout.
8235 * value.c: Do not include scm-lang.h.
8236 (unpack_long): Delete scm_unpack call.
8237 * config/h8300/h8300.mt, config/mips/embed.mt,
8238 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8239 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8240 deleted files.
8241 * NEWS: Mention removed files.
8242
8243 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8244
8245 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8246 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8247
8248 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8249
8250 * NEWS: Mention removal of HP aCC support.
8251
8252 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8253
8254 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8255 first entry for static executables.
8256 (breakpoint_addr): Delete unused variable.
8257 (elf_locate_base): Search for _r_debug in static executables.
8258 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8259 also.
8260
8261 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8262
8263 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8264 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8265 (mention): Remove bp_through_sigtramp support.
8266 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8267
8268 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8269
8270 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8271 shlib events.
8272
8273 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8274
8275 * infrun.c: Doc fixes.
8276 (handle_inferior_event): Clarify debug message.
8277 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8278
8279 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8280
8281 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8282
8283 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8284
8285 * config/m68k/tm-monitor.h: Delete file.
8286 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8287 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8288 call moved to ...
8289 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8290 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8291
8292 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8293
8294 * gdbarch.sh (software_single_step): Change the return type
8295 from void to int and reformatted some comments to <= 80
8296 columns.
8297 * gdbarch.c, gdbarch.h: Regenerated.
8298 * alpha-tdep.c (alpha_software_single_step): Likewise.
8299 * alpha-tdep.h (alpha_software_single_step): Likewise.
8300 * arm-tdep.c (arm_software_single_step): Likewise.
8301 * cris-tdep.c (cris_software_single_step): Likewise.
8302 * mips-tdep.c (mips_software_single_step): Likewise.
8303 * mips-tdep.h (mips_software_single_step): Likewise.
8304 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8305 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8306 * sparc-tdep.c (sparc_software_single_step): Likewise.
8307 * sparc-tdep.h (sparc_software_single_step): Likewise.
8308 * spu-tdep.c (spu_software_single_step): Likewise.
8309 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8310 and act accordingly.
8311
8312 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8313
8314 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8315 * configure: Regenerate.
8316 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8317
8318 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8319
8320 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8321
8322 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8323
8324 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8325 macros.
8326 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8327 distinct on the TYPE_STUB_SUPPORTED debug targets.
8328 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8329
8330 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8331
8332 * sparc-tdep.c (X_RS2): New macro.
8333 (sparc_skip_stack_check): New function.
8334 (sparc_analyze_prologue): Adjust PC past stack probing
8335 sequence if necessary.
8336
8337 2007-04-10 Andreas Schwab <schwab@suse.de>
8338
8339 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8340 register.
8341
8342 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8343
8344 * breakpoint.c (gdb_breakpoint_query): Really return an
8345 enum gdb_rc.
8346 (gdb_breakpoint): Likewise.
8347 * thread.c (gdb_list_thread_ids): Likewise.
8348 (gdb_thread_select): Likewise.
8349 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8350 (mi_cmd_thread_list_ids): Remove bogus initialization.
8351
8352 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8353
8354 * Makefile.in (SFILES): Remove hpacc-abi.c.
8355 (COMMON_OBS): Remove hpacc-abi.o.
8356 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8357 (hpacc-abi.o, hpread.o): Delete rules.
8358 * somread.c: Delete extern declarations from hpread.c.
8359 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8360 (som_symfile_finish): Do not call hpread_symfile_finish.
8361 (som_symfile_init): Do not call hpread_symfile_init.
8362 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8363 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8364 * hpacc-abi.c, hpread.c: Deleted.
8365
8366 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8367
8368 * solib-svr4.c (enable_break): Simplify return value.
8369 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8370
8371 2007-04-10 Andreas Schwab <schwab@suse.de>
8372
8373 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8374 l_ld_size, l_next_size, l_prev_size, l_name_size.
8375
8376 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8377 to extract addresses from link map.
8378 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8379 (LM_NEXT): Likewise.
8380 (LM_NAME): Likewise.
8381 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8382 (elf_locate_base): Likewise.
8383 (open_symbol_file_object): Likewise.
8384 (svr4_fetch_objfile_link_map): Likewise.
8385 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8386 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8387 l_ld_size.
8388 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8389 (svr4_lp64_fetch_link_map_offsets): Likewise.
8390
8391 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8392 removed members. Set l_ld_offset to -1 if not present.
8393
8394 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8395
8396 Pass stderr of program run with "target remote |"
8397 via gdb_stderr.
8398 * serial.c (serial_open): Set error_fd to -1.
8399 * serial.h (struct serial): New field error_fd.
8400 (struct serial_opts): New field avail.
8401 * ser-pipe.c (pipe_open): Create another pair
8402 of sockets. Pass stderr to gdb.
8403 * ser-mingw.c (pipe_windows_open): Pass
8404 PEX_STDERR_TO_PIPE to pex_run. Initialize
8405 sd->error_fd.
8406 (pipe_avail): New.
8407 (_initialize_ser_windows): Hook pipe_avail.
8408 * ser-base.c (generic_readchar): Check if there's
8409 anything in stderr channel and route that to gdb_stderr.
8410
8411 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8412
8413 * dbxread.c (read_ofile_symtab): Move current_objfile
8414 clearing to after end_stabs.
8415
8416 2007-04-01 Andreas Schwab <schwab@suse.de>
8417
8418 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8419 gdbarch instead of current_gdbarch.
8420
8421 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8422
8423 * varobj.c (varobj_create): Keep varobj value
8424 NULL when evaluating the type.
8425
8426 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8427
8428 * NEWS: Mention new Windows CE support.
8429
8430 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8431
8432 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8433 the obsoletion stanza.
8434 * NEWS: Mention deleted targets.
8435
8436 * config/sh/tm-wince.h: Remove.
8437 * config/sh/wince.mt: Remove.
8438 * config/mips/tm-wince.h: Remove.
8439 * config/mips/wince.mt: Remove.
8440
8441 * wince.c: Remove.
8442 * wince-stub.c: Remove.
8443 * wince-stub.h: Remove.
8444 * Makefile.in (wince.o): Remove rule.
8445 (wince-stub.o): Likewise.
8446
8447 * mips-tdep.c (mips_next_pc): Make static.
8448 * mips-tdep.h (mips_next_pc): Remove declaration.
8449 * arm-tdep.c (arm_pc_is_thumb): Make static.
8450 (thumb_get_next_pc): Likewise.
8451 (arm_get_next_pc): Likewise.
8452 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8453 (arm_pc_is_thumb): Likewise.
8454 (thumb_get_next_pc): Likewise.
8455 (arm_get_next_pc): Likewise.
8456
8457 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8458
8459 * MAINTAINERS: Remove d10v entry.
8460 * Makefile.in (SFILES): Remove dwarfread.c.
8461 (COMMON_OBS): Remove dwarfread.o.
8462 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8463 (remote-est.o, rom68k-rom.o): Delete.
8464 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8465 target est, target rom68k, and DWARF 1.
8466 * configure.tgt: Mark d10v as removed.
8467 * dwarf2read.c: Doc update.
8468 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8469 and lnsize.
8470 (elf_locate_sections): Do not set them.
8471 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8472 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8473 * config/m68k/monitor.mt (TDEPFILES): Prune.
8474 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8475 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8476
8477 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8478
8479 * doublest.c (convert_floatformat_to_doublest): Use
8480 floatformat_classify.
8481 (floatformat_is_nan): Rename to...
8482 (floatformat_classify): ...this. Return more information.
8483 * doublest.h (enum float_kind): New.
8484 (floatformat_is_nan): Replace prototype...
8485 (floatformat_classify): ...with this one.
8486 * valprint.c (print_floating): Use floatformat_classify. Handle
8487 infinity.
8488
8489 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8490
8491 * README: Mention ISO C library requirement.
8492
8493 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8494
8495 * Makefile.in (SFILES): Remove nlmread.c.
8496 (COMMON_OBS): Remove nlmread.o.
8497 (nlmread.o): Delete rule.
8498 * README: Delete reference to remote-st.c.
8499 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8500 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8501 GDB_OSABI_LYNXOS.
8502 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8503 (_initialize_i386_tdep): Do not reference them.
8504 * nlmread.c: Delete file.
8505 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8506 * target.c: Doc update.
8507 * thread.c: Delete commented include.
8508 * config/alpha/tm-alpha.h: Doc update.
8509
8510 2007-03-30 Chris Dearman <chris@mips.com>
8511
8512 * utils.c (string_to_core_addr): Comment typo.
8513
8514 2007-03-30 Chris Dearman <chris@mips.com>
8515
8516 * mips-tdep.c: Comment typo.
8517
8518 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8519
8520 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8521 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8522 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8523 * config/powerpc/nm-ppc64-linux.h: Remove file.
8524 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8525 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8526 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8527 * infptrace.c (call_ptrace): Likewise.
8528 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8529 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8530 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8531 (store_register): Likewise.
8532
8533 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8534
8535 * Makefile.in (varobj.o): Add missing dependency.
8536
8537 2007-03-29 Michael Snyder <msnyder@access-company.com>
8538
8539 * MAINTAINERS: Update my email address.
8540
8541 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8542
8543 Add support for exception handling with multiple versions of
8544 the Ada runtime:
8545 * ada-lang.c: Update general comments on how Ada exception catchpoints
8546 are implemented.
8547 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8548 (__gnat_raise_nodefer_with_msg): Delete.
8549 (ada_unhandled_exception_name_addr_ftype): New type.
8550 (exception_support_info): New type.
8551 (ada_unhandled_exception_name_addr): Add forward declaration.
8552 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8553 (default_exception_support_info): New constant.
8554 (exception_support_info_fallback): Likewise.
8555 (exception_info): New global variable.
8556 (ada_exception_support_info_sniffer): New function.
8557 (ada_executable_changed_observer): Likewise.
8558 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8559 ada_unhandled_exception_name_addr.
8560 (ada_unhandled_exception_name_addr): Reimplement to match the
8561 latest Ada runtime implementation.
8562 (error_breakpoint_runtime_sym_not_found): Delete.
8563 (ada_exception_sym_name): Get the exception sym name from
8564 exception_info rather than hardcoding it.
8565 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8566 Update error handling.
8567 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8568
8569 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8570
8571 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8572 (remote-st.o, uw-thread.o): Delete.
8573 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8574 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8575 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8576 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8577 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8578 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8579 rs6000-*-lynxos* to an obsoletion stanza.
8580 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8581 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8582 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8583 i[34567]86-*-netware*.
8584 * NEWS: Mention deleted targets.
8585
8586 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8587 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8588 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8589 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8590 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8591 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8592 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8593 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8594 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8595 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8596 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8597 config/rs6000/tm-rs6000ly.h: Delete files.
8598
8599 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8600
8601 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8602 * interps.c (clear_interpreter_hooks): Do not clear
8603 deprecated_registers_changed_hook.
8604 * regcache.c (registers_changed): Do not call it.
8605 * top.c (deprecated_registers_changed_hook): Do not define it.
8606 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8607 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8608 (tui_remove_hooks): Do not remove it.
8609 (tui_selected_frame_level_changed_hook): Check for negative level.
8610 Use get_selected_frame.
8611 (tui_registers_changed_hook): Deleted.
8612
8613 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8614
8615 * stabsread.c (add_undefined_type): Add extra parameter.
8616 Now handles nameless types separately.
8617 (struct nat): New type.
8618 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8619 New static variables.
8620 (read_type): Update calls to add_undefined_type.
8621 (add_undefined_type_noname): New function.
8622 (add_undefined_type_1): Renames from add_undefined_type.
8623 (cleanup_undefined_types_noname): New function.
8624 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8625 (cleanup_undefined_types): New handles nameless types separately.
8626 (_initialize_stabsread): Initialize our new static constants.
8627
8628 2007-03-29 Denis Pilat <denis.pilat@st.com>
8629
8630 * configure.ac: Test for signal.h.
8631 * configure, config.in: Regenerate.
8632
8633 2007-03-29 Denis Pilat <denis.pilat@st.com>
8634
8635 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8636 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8637
8638 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8639
8640 * arm-wince-tdep.c: New.
8641 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8642 (MT_CFLAGS): Delete.
8643 (TM_CLIBS): Delete.
8644 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8645 solib-legacy.o, solib-svr4.o, and remove wince.o.
8646 * configure.tgt (arm*-*-mingw32ce*): Add.
8647 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8648 (do_target_signal_to_host): Silence 'not used' warning.
8649 * config/arm/tm-wince.h: Remove.
8650
8651 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8652
8653 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8654 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8655
8656 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8657 * config/ia64/tm-linux.h: Remove file.
8658 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8659 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8660 legacy_pc_in_sigtramp.
8661 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8662 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8663 Remove func_name argument.
8664 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8665
8666 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8667 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8668 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8669 (HAVE_STEPPABLE_WATCHPOINT): Define.
8670
8671 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8672 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8673 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8674 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8675 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8676 target_insert_watchpoint, target_remove_watchpoint): Remove.
8677 (FETCH_INFERIOR_REGISTERS): Define.
8678 * ia64-linux-nat.c (ia64_register_addr): Make static.
8679 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8680 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8681 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8682 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8683 (ia64_linux_stopped_by_watchpoint): Make static.
8684 (ia64_linux_can_use_hw_breakpoint): New function.
8685 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8686 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8687 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8688
8689 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8690
8691 * linespec.c: Include language.h.
8692 (find_methods): Add language parameter. Call
8693 lookup_symbol_in_language. Pass language down.
8694 (add_matching_methods): Likewise. Call
8695 lookup_symbol_in_language.
8696 (add_constructors): Likewise.
8697 (find_method): Pass sym_class to collect_methods.
8698 (collect_methods): Add sym_class parameter. Pass language
8699 down.
8700 * symtab.c (lookup_symbol): Rename to ...
8701 (lookup_symbol_in_language): ... this. Add language
8702 parameter. Use passed language instead of current_language.
8703 (lookup_symbol): New as wrapper around
8704 lookup_symbol_in_language.
8705 (lookup_symbol_aux): Add language parameter. Use passed
8706 language instead of current_language.
8707 (search_symbols): Indent.
8708 * symtab.h (enum language): Forward declare.
8709 (lookup_symbol_in_language): Declare.
8710 (lookup_symbol): Update description.
8711 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8712 * ada-lang.c (restore_language): Remove.
8713 (lookup_symbol_in_language): Remove.
8714
8715 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8716
8717 * breakpoint.c (bpstat_num): Add int *num parameter.
8718 * breakpoint.h (bpstat_num): Likewise.
8719 * infcmd.c (continue_command): Adjust to new bpstat_num
8720 interface.
8721 (program_info): Likewise.
8722
8723 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8724
8725 * config/sh/tm-sh.h: Remove file.
8726 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8727 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8728 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8729 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8730
8731 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8732
8733 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8734 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8735 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8736 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8737 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8738 sequence if target_shortname is "remote".
8739
8740 2007-03-27 Anton Blanchard <anton@samba.org>
8741
8742 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8743 instead of wordsize when looking for the LR in a stack frame.
8744
8745 2007-03-27 Andreas Schwab <schwab@suse.de>
8746 Daniel Jacobowitz <dan@codesourcery.com>
8747
8748 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8749 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8750 argument. Update all callers.
8751 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8752 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8753 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8754 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8755 (dwarf2_frame_set_adjust_regnum): ...this.
8756 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8757 * rs6000-tdep.c: Include "dwarf2-frame.h".
8758 (rs6000_adjust_frame_regnum): Define.
8759 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8760 Register rs6000_adjust_frame_regnum.
8761
8762 * Makefile.in (rs6000-tdep.o): Update dependencies.
8763
8764 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8765
8766 * Makefile.in: Add support for a "pdf" target.
8767
8768 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8769
8770 * amd64-tdep.c (amd64_init_frame_cache): New function.
8771 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8772
8773 2007-03-26 Nigel Stephens <nigel@mips.com>
8774 Maciej W. Rozycki <macro@mips.com>
8775
8776 * ui-out.c (ui_out_field_core_addr): Truncate address to
8777 TARGET_ADDR_BIT size before printing.
8778
8779 2007-03-22 Nigel Stephens <nigel@mips.com>
8780 Maciej W. Rozycki <macro@mips.com>
8781
8782 * remote-mips.c (mips_xfer_memory): Update prototype.
8783
8784 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8785
8786 * symfile.h: #include "symtab.h"
8787
8788 2007-03-22 Denis Pilat <denis.pilat@st.com>
8789
8790 * utils.c (pagination_on_command, pagination_off_command):
8791 Remove useless prototypes.
8792
8793 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8794
8795 Fix PR pascal/2232.
8796 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8797 instead of TYPE_NAME for object base class name.
8798
8799
8800 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8801
8802 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8803 Specify frame type in calls to frame_func_unwind().
8804
8805 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8806
8807 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8808 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8809 (refine_prologue_limit): Delete.
8810 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8811 Assume lim_pc is set. Correct check for incomplete prologues.
8812 Do not skip clobbers of the frame pointer.
8813 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8814 sal.
8815
8816 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8817
8818 * frame.c (frame_pop): Check to see whether there's a frame to
8819 which we can pop first.
8820
8821 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8822
8823 * MAINTAINERS (Write After Approval): Add myself.
8824
8825 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8826
8827 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8828 (handle_inferior_event): Remove unnecessary braces.
8829 * breakpoint.c (bpstat_what): Remove wrong comment.
8830
8831 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8832
8833 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8834 (spu_gdbarch_init): Install it.
8835
8836 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8837
8838 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8839 object types, not 0.
8840
8841 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8842
8843 * spu-tdep.c (spu_frame_align): New function.
8844 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8845
8846 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8847
8848 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8849 (spu_software_single_step): Likewise.
8850 (spu_read_pc, spu_write_pc): New functions.
8851 (spu_gdbarch_init): Install them.
8852
8853 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8854
8855 * cli/cli-dump.c (struct callback_data): load_offset needs to
8856 have signed long type.
8857
8858 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8859
8860 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8861 Revert the previous change that had some unexpected side-effects
8862 on mips32.
8863 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8864 function to get the address of the calling instruction.
8865
8866 2007-03-07 Denis Pilat <denis.pilat@st.com>
8867
8868 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8869 get_selected_frame by deprecated_safe_get_selected_frame.
8870
8871 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8872
8873 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8874 "gdb_string.h". Don't include "nbsd-tdep.h".
8875 (SIZEOF_STRUCT_REG): Remove.
8876 (SHNBSD_SIZEOF_GREGS): New.
8877 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8878 (shnbsd_regset_from_core_section): New functions.
8879 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8880 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8881 shnbsd_supply_gregset, shnbsd_collect_gregset.
8882 (shnbsd_gregset): New variable.
8883 (shnbsd_init_abi): Set regset_from_core_section.
8884 (GDB_OSABI_NETBSD_CORE): New define.
8885 (shnbsd_core_osabi_sniffer): New function.
8886 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8887 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8888 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8889 nbsd-tdep.o.
8890 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8891
8892 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8893
8894 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8895 length of the types referenced by the new type CV ring.
8896
8897 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8898
8899 * frame.c (frame_pop, frame_observer_target_changed): Call
8900 reinit_frame_cache.
8901 (flush_cached_frames): Rename to reinit_frame_cache and delete
8902 old implementation.
8903 * frame.h (flush_cached_frames): Delete prototype and update comment.
8904
8905 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8906 reinit_frame_cache instead of flush_cached_frames. Do not call
8907 select_frame after reinit_frame_cache.
8908 * corelow.c (core_open): Likewise.
8909 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8910 * infrun.c (prepare_to_proceed, context_switch)
8911 (handle_inferior_event): Likewise.
8912 * linux-fork.c (fork_load_infrun_state): Likewise.
8913 * ocd.c (ocd_start_remote): Likewise.
8914 * remote-e7000.c (e7000_start_remote): Likewise.
8915 * remote-mips.c (device): Likewise.
8916 * thread.c (switch_to_thread): Likewise.
8917 * tracepoint.c (finish_tfind_command): Likewise.
8918 * gdbarch.c: Regenerated.
8919
8920 2007-02-28 Jerome Guitton <guitton@adacore.com>
8921 Joel Brobecker <brobecker@adacore.com>
8922
8923 * gdbtypes.c (check_typedef): Do not replace stub type if
8924 the resolved type is not defined in the same objfile.
8925
8926 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8927
8928 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8929
8930 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8931
8932 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8933 symbol for Ada units when the symbol is defined using 't' rather
8934 than 'Tt' as symbol descriptor.
8935
8936 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8937
8938 * config/mips/tm-nbsd.h: Delete file.
8939 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8940 * config/sh/tm-nbsd.h: Delete file.
8941 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8942
8943 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8944
8945 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8946 unused WRONG_PARAM value since it was recently deleted.
8947
8948 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8949
8950 * varobj.c (varobj_update): Free temporary vectors.
8951
8952 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8953
8954 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8955 * config/powerpc/tm-linux.h: Delete file.
8956 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8957 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8958 (TEXT_SEGMENT_BASE): Do not redefine.
8959 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8960 from config/rs6000/tm-rs6000.h.
8961 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8962 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8963 (TEXT_SEGMENT_BASE): Remove.
8964 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8965 (rs6000_in_solib_return_trampoline): Remove.
8966 (SKIP_TRAMPOLINE_CODE): Remove.
8967 (rs6000_skip_trampoline_code): Remove.
8968 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8969 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8970 (FP0_REGNUM): Remove.
8971 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8972 (rs6000_set_host_arch_hook): Remove.
8973 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8974 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8975 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8976 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8977 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8978 * rs6000-nat.c: Include "rs6000-tdep.h".
8979 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8980 (set_host_arch): Rename to ...
8981 (rs6000_create_inferior): ... this. Make public.
8982 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8983 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8984 (rs6000_create_inferior): Remove.
8985 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8986 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8987 set_gdbarch_in_solib_return_trampoline, and
8988 set_gdbarch_skip_trampoline_code.
8989 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8990 from config/rs6000/tm-rs6000.h.
8991
8992 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8993
8994 * buildsym.c (record_producer): Do nothing if no producer is provided.
8995
8996 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8997
8998 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8999 to check changelist is non-NULL. Call error if the frontend tries
9000 to update a non-root variable.
9001
9002 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9003
9004 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9005
9006 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9007 (dwarf2_frame_sniffer): Update.
9008 (dwarf2_signal_frame_this_id): New function.
9009 (dwarf2_signal_frame_unwind): Use it.
9010 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9011 * frame.c (frame_func_unwind): Add this_type argument.
9012 (get_frame_func): Update.
9013 (frame_unwind_address_in_block): Add this_type argument and check it.
9014 Fix a typo.
9015 (get_frame_address_in_block): Update.
9016 * frame.h (enum frame_type): Move higher in the file.
9017 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9018 argument.
9019
9020 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9021 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9022 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9023 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9024 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9025 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9026 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9027 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9028 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9029 frame_func_unwind and frame_unwind_address_in_block to specify
9030 the frame type. Use frame_unwind_address_in_block instead of
9031 frame_pc_unwind in sniffers.
9032
9033 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9034
9035 * frame.c (deprecated_selected_frame): Rename to...
9036 (selected_frame): ...this. Make static.
9037 (get_selected_frame, select_frame): Update.
9038 * frame.h (deprected_select_frame): Delete.
9039 (deprecated_safe_get_selected_frame): Update comments.
9040
9041 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9042 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9043 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9044 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9045 tui/tui.c: Replace references to deprecated_selected_frame.
9046
9047 2007-02-27 Fred Fish <fnf@specifix.com>
9048
9049 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9050 directly decrement the stack pointer, accumulate their operand into
9051 the stack offset, and mark the function as not being frameless.
9052
9053 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9054
9055 * arch-utils.c (selected_byte_order): New.
9056 * arch-utils.h (selected_byte_order): New prototype.
9057 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9058
9059 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9060
9061 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9062 (default_symfile_offsets): Check VMA here. Update section VMAs.
9063
9064 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9065
9066 * remote.c (init_remote_state): Add special handling for placeholder
9067 registers.
9068
9069 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9070
9071 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9072 (filenames_h): New variable.
9073 (clean): Clean up xml-builtin.c and stamp-xml.
9074 (arm-linux-nat.o): Update.
9075 * config/arm/linux.mh (TDEP_XML): Define.
9076 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9077 (arm_linux_has_wmmx_registers): New.
9078 (GET_THREAD_ID): Fix typo.
9079 (IWMMXT_REGS_SIZE): Define.
9080 (fetch_wmmx_regs, store_wmmx_regs): New.
9081 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9082 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9083 (super_xfer_partial, arm_linux_xfer_partial): New.
9084 (_initialize_arm_linux_nat): Use them.
9085 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9086 (xml_builtin_xfer_partial): New function.
9087 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9088 * NEWS: Update mention of iWMMXt support.
9089
9090 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9091
9092 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9093 if there are no FPA registers.
9094 (arm_dwarf_reg_to_regnum): New function.
9095 (arm_register_type, arm_register_name): Return minimal values for
9096 unsupported registers.
9097 (arm_register_sim_regno): Handle iWMMXt registers.
9098 (arm_gdbarch_init): Record missing FPA registers if indicated by
9099 a target description. Recognize iWMMXt registers. Only register
9100 "info float" for FPA. Use ARM_NUM_REGS. Register
9101 arm_dwarf_reg_to_regnum.
9102 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9103 constants.
9104 (struct gdbarch_tdep): Add have_fpa_registers.
9105 * features/xscale-iwmmxt.xml: Update capitalization.
9106 * regformats/arm-with-iwmmxt.dat: Regenerated.
9107
9108 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9109
9110 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9111
9112 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9113
9114 * MAINTAINERS (mep): New target.
9115
9116 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9117
9118 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9119 Richard Sandiford:
9120 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9121 (mep-tdep.o): New rule.
9122 * configure.tgt (mep-*-*): New target.
9123 * mep-tdep.c: New file.
9124 * config/mep/mep.mt: New file.
9125
9126 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9127
9128 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9129 BREAKPOINT_HIT and STOP_UNKNOWN.
9130
9131 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9132
9133 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9134
9135 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9136
9137 * gdb_expat.h (XMLCALL): Define if not already defined.
9138
9139 2007-02-20 Andreas Schwab <schwab@suse.de>
9140
9141 * Makefile.in (symfile.o): Update dependencies.
9142
9143 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9144
9145 * MAINTAINERS: Disable -Werror for cris simulator. Build
9146 sparc64-solaris2.10 instead of the broken sparc-elf.
9147 * solib-frv.c: Include "solib.h".
9148 * Makefile.in (solib-frv.o): Update.
9149 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9150 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9151 (xtensa_frame_this_id, xtensa_frame_prev_register)
9152 (xtensa_push_dummy_call): Use %p.
9153
9154 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9155
9156 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9157 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9158 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9159 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9160 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9161 (sparc-linux-tdep.o): Update.
9162
9163 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9164
9165 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9166 (xtensa_mask_t): Change mask field to be a separate array.
9167 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9168 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9169 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9170 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9171 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9172 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9173 (mask14, mask15): Rename to
9174 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9175 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9176 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9177 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9178 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9179 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9180 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9181 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9182 (xtensa_submask14, xtensa_submask15): New.
9183 (rmap): Follow strict aliasing rules doing static initialization.
9184
9185 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9186
9187 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9188 handling from here...
9189 (tdesc_register_type): ...to here.
9190 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9191 * features/arm-core.xml: Use code_ptr and data_ptr.
9192
9193 2007-02-13 Denis Pilat <denis.pilat@st.com>
9194
9195 * varobj.h (enum varobj_update_error): New enum.
9196 * varobj.c (struct varobj_root): Add is_valid member.
9197 (varobj_get_type): Check for invalid varobj.
9198 (varobj_get_attributes): Likewise.
9199 (variable_editable):Likewise.
9200 (varobj_update): Likewise. Use varobj_update_error.
9201 (new_root_variable): Set root varobj as valid by default.
9202 (varobj_invalidate): New function.
9203 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9204 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9205 Use varobj_update_error.
9206
9207 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9208
9209 Fix PR pascal/2223.
9210 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9211 Pascal language marker.
9212 * dwarf2read.c (set_cu_language): Likewise.
9213
9214 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9215
9216 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9217 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9218 instead of target_terminal_init since inferior_ptid isn't set yet.
9219
9220 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9221
9222 * MAINTAINERS (Write After Approval): Add myself.
9223
9224 2007-02-09 Fred Fish <fnf@specifix.com>
9225
9226 Based on work by Apple Computer, Inc.
9227 * event-top.c (async_request_quit): Call quit() whenever either
9228 quit_flag is set or immediate_quit is set.
9229
9230 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9231
9232 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9233 type to a pointer to const struct block.
9234 (ada_lookup_symbol_list): Don't cast away constness when calling
9235 remove_out_of_scope_renamings.
9236
9237 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9238
9239 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9240 address of 'filename'; it is always non null.
9241
9242 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9243
9244 * exec.c (add_to_section_table): Do not discard empty sections.
9245
9246 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9247
9248 * features/Makefile, features/arm-with-iwmmxt.xml,
9249 features/gdbserver-regs.xsl, features/number-regs.xsl,
9250 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9251 * regformats/arm-with-iwmmxt.dat: Generate.
9252 * NEWS: Mention iWMMXt.
9253
9254 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9255
9256 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9257 (xml-tdesc.o): Update.
9258 * xml-support.c: Add a comment.
9259 (gdb_xml_enums_boolean): New variable.
9260 (gdb_xml_parse_attr_enum): Use strcasecmp.
9261 * xml-support.h (gdb_xml_enums_boolean): Declare.
9262 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9263 next_regnum, and current_union.
9264 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9265 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9266 (field_attributes, union_children, reg_attributes, union_attributes)
9267 (vector_attributes, feature_attributes, feature_children): New.
9268 (target_children): Make static. Add <feature>.
9269 (tdesc_elements): Make static.
9270 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9271 (struct tdesc_feature, tdesc_feature_p): New types.
9272 (struct target_desc): Add features member.
9273 (struct tdesc_arch_data, tdesc_data): New.
9274 (target_find_description): Clarify error message. Warn about
9275 ignored register descriptions.
9276 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9277 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9278 (tdesc_data_cleanup, tdesc_numbered_register)
9279 (tdesc_numbered_register_choices, tdesc_find_register)
9280 (tdesc_register_name, tdesc_register_type)
9281 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9282 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9283 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9284 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9285 (tdesc_create_feature, tdesc_record_type): New.
9286 (free_target_description): Free features.
9287 (_initialize_target_descriptions): Initialize tdesc_data.
9288 * arch-utils.c (default_remote_register_number): New.
9289 * arch-utils.h (default_remote_register_number): New prototype.
9290 * target-descriptions.h (set_tdesc_pseudo_register_name)
9291 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9292 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9293 (tdesc_numbered_register, tdesc_numbered_register_choices)
9294 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9295 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9296 (tdesc_create_reg): Declare.
9297 * gdbarch.sh (remote_register_number): New entry.
9298 * gdbarch.c, gdbarch.h: Regenerate.
9299 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9300 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9301
9302 * arm-tdep.c (arm_register_aliases): New.
9303 (arm_register_name_strings): Rename to...
9304 (arm_register_names): ...this. Make const. Delete the old version.
9305 (current_option, arm_register_byte): Delete.
9306 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9307 (value_of_arm_user_reg): New.
9308 (arm_gdbarch_init): Verify any described registers. Call
9309 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9310 for standard register names.
9311 (_initialize_arm_tdep): Do not adjust arm_register_names.
9312 * user-regs.c (struct user_reg): Add baton member.
9313 (append_user_reg, user_reg_add_builtin, user_regs_init)
9314 (user_reg_add, value_of_user_reg): Use a baton for user
9315 register functions.
9316 * std-regs.c: Update.
9317 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9318 (user_reg_add): Add baton argument.
9319 * NEWS: Mention target description register support.
9320 * features/arm-core.xml, features/arm-fpa.xml: New.
9321 * eval.c (evaluate_subexp_standard): Allow ptype $register
9322 when the program is not running.
9323
9324 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9325
9326 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9327
9328 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9329
9330 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9331 info->disassembler_options to "any".
9332
9333 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9334
9335 * varobj.c (install_new_value): Only call value_get_print_value
9336 if changeable.
9337
9338 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9339
9340 Reported by timeless@gmail.com:
9341 * gdb/target.c (target_flash_erase): Do not return void value.
9342 (target_flash_done): Likewise.
9343 * gdb/cli/cli-cmds.c (source_command): Likewise.
9344
9345 2007-02-08 Fred Fish <fnf@specifix.com>
9346
9347 Based on work by Apple Computer, Inc.
9348 * event-top.c (handle_sigint): Set quit_flag.
9349 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9350 if quit_flag has already been reset.
9351
9352 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9353
9354 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9355 up.
9356
9357 2007-02-08 Fred Fish <fnf@specifix.com>
9358
9359 * defs.h (request_quit): Remove declaration.
9360 * utils.c (request_quit): Remove definition.
9361
9362 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9363 Jan Kratochvil <jan.kratochvil@redhat.com>
9364 Daniel Jacobowitz <dan@codesourcery.com>
9365
9366 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9367 (skip_prologue): Allow bl->blrl used by PIC code.
9368
9369 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9370 Daniel Jacobowitz <dan@codesourcery.com>
9371
9372 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9373 initialize tmp_obstack.
9374 * p-valprint.c (pascal_object_print_value_fields)
9375 (pascal_object_print_value): Likewise.
9376
9377 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9378
9379 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9380
9381 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9382
9383 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9384 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9385
9386 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9387
9388 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9389 (xml_cache): New.
9390 (tdesc_parse_xml): Cache expanded descriptions.
9391
9392 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9393
9394 * Makefile.in (XMLFILES): New.
9395 (COMMON_OBS): Add xml-builtin.o.
9396 (xml-builtin.c, stamp-xml): New rules.
9397 (xml-tdesc.o): Update.
9398 * features/feature_to_c.sh: New file.
9399 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9400 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9401 (gdb_xml_start_element): Initialize scope after possibly reallocating
9402 scopes. Move cleanup later. Handle the XInclude description
9403 specially.
9404 (gdb_xml_end_element): Only parse the body if there is a current element.
9405 Call XML_DefaultCurrent if there is no element.
9406 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9407 (struct xinclude_parsing_data, xinclude_start_include)
9408 (xinclude_end_include, xml_xinclude_default)
9409 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9410 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9411 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9412 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9413 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9414 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9415 XInclude directives. Use the compiled in DTD.
9416 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9417 directory name. Do not warn here.
9418 (file_read_description_xml): Update call. Warn here instead. Pass
9419 a dirname as baton.
9420 (fetch_available_features_from_target): New.
9421 (target_read_description_xml): Use it.
9422 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9423 to handle XInclude.
9424 * features/xinclude.dtd: New file.
9425
9426 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9427
9428 * linux-thread-db.c (check_for_thread_db): Return early if we have
9429 no libthread_db support.
9430
9431 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9432
9433 * mi/mi-parse.h: Include <sys/time.h>.
9434
9435 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9436
9437 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9438 instead of print_variable_value to print values.
9439
9440 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9441
9442 * mi/mi-main.c: Numerous formatting changes.
9443 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9444 removed in my previous change.
9445
9446 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9447
9448 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9449 Use 1000000L instead of 1000000.
9450
9451 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9452
9453 Based on work by Apple Computer, Inc.
9454
9455 * configure.ac: Test for sys/resource.h and getrusage.
9456 * configure, config.in: Regenerate.
9457
9458 * mi/mi-main.c: Include <sys/resource.h> if present.
9459 (rusage): Declare if HAVE_GETRUSAGE.
9460 (current_command_ts, do_timings): New static variables.
9461 (timestamp, print_diff_now, print_diff, timeval_diff):
9462 New static timing functions.
9463 (mi_cmd_enable_timings): New function for new MI command.
9464 (captured_mi_execute_command, mi_execute_async_cli_command):
9465 Call timing functions.
9466
9467 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9468 -enable-timings.
9469
9470 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9471
9472 * mi/mi-parse.h: (mi_timestamp): New structure.
9473 (mi_parse): Add mi_timestamp* member.
9474
9475 2007-02-02 Denis Pilat <denis.pilat@st.com>
9476
9477 * thread.c (make_cleanup_restore_current_thread): New function.
9478 (info_threads_command): Use of make_cleanup_restore_current_thread
9479 to restore the current thread and the selected frame.
9480 (restore_selected_frame): New function.
9481 (struct current_thread_cleanup): Add frame_id field.
9482 (do_restore_current_thread_cleanup): Add restoring of the selected
9483 frame.
9484 (make_cleanup_restore_current_thread): Likewise.
9485 (thread_apply_all_command): backup the selected frame while
9486 entering the function and restore it at exit.
9487 (thread_apply_command): Likewise.
9488
9489 2007-02-02 Denis Pilat <denis.pilat@st.com>
9490
9491 * MAINTAINERS (Write After Approval): Add myself to the list.
9492
9493 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9494
9495 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9496 (m32r_store_register): Ditto.
9497
9498 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9499
9500 * ser-mingw.c (pipe_windows_open)
9501 (pipe_windows_read, pipe_windows_write): Declare
9502 variables at the top of the function.
9503
9504 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9505
9506 * doublest.c (floatformat_from_length): Use the right element from
9507 gdbarch floatformats.
9508 (floatformat_from_type, extract_typed_floating)
9509 (store_typed_floating): Likewise.
9510 * doublest.h: Remove declarations for undefined floatformat arrays.
9511 * gdbarch.sh (float_format, double_format, long_double_format): Change
9512 to pairs.
9513 (pformat): Update for pairs.
9514 * gdbarch.c, gdbarch.h: Regenerated.
9515 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9516 (floatformats_ieee_double_littlebyte_bigword)
9517 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9518 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9519 (floatformats_vax_d): New variables.
9520 (builtin_type_ieee_single, builtin_type_ieee_double)
9521 (builtin_type_arm_ext, builtin_type_ia64_spill)
9522 (builtin_type_ia64_quad): Replace arrays with individual types.
9523 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9524 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9525 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9526 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9527 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9528 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9529 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9530 unused and endian-specific types.
9531 (recursive_dump_type): Update for floatformat pairs.
9532 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9533 (build_gdbtypes): Use build_flt.
9534 (_initialize_gdbtypes): Update set of initialized types.
9535 * gdbtypes.h: Update declarations to match gdbtypes.c.
9536 (struct main_type): Store a pointer to two floatformats.
9537 * arch-utils.c (default_float_format, default_double_format): Delete.
9538 * arch-utils.h (default_float_format, default_double_format): Delete.
9539
9540 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9541 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9542 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9543 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9544 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9545
9546 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9547
9548 * target.c (maintenance_print_target_stack): New function.
9549 (initialize_targets): Add new "maintenance print target-stack"
9550 command.
9551
9552 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9553
9554 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9555
9556 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9557
9558 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9559 (struct dwarf2_loclist_baton): Likewise.
9560
9561 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9562
9563 * cli/cli-script.c: Include breakpoint.h.
9564 (build_command_line): Require arguments only for if and while
9565 commands.
9566 (get_command_line, execute_user_command, execute_control_command):
9567 Fix wording of warning messages.
9568 (print_command_lines): Print breakpoint commands.
9569 (execute_control_command): Call commands_from_control_command to
9570 handle the `commands' command inside a body of a flow-control
9571 command.
9572 (read_next_line): Recognize the `commands' command and build a
9573 command line structure for it.
9574 (recurse_read_control_structure, read_command_lines): Handle
9575 `commands' similarly to `if' and `while'.
9576
9577 * breakpoint.c (get_number_trailer): Document the special meaning
9578 of NULL as the first argument PP.
9579 (commands_from_control_command): New function.
9580
9581 * breakpoint.h (commands_from_control_command): Add prototype.
9582
9583 * defs.h (commands_control): New enumerated value for enum
9584 command_control_type.
9585
9586 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9587
9588 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9589 (ada_exception_sal): Update accordingly.
9590
9591 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9592
9593 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9594 * NEWS: Describe CHAR array vs. string identifcation rules.
9595
9596 2007-01-25 Paul Brook <paul@codesourcery.com>
9597
9598 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9599
9600 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9601
9602 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9603 expression is empty, bother to return the 'optimized out' value we
9604 construct. (Thanks to Carl Burch.)
9605
9606 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9607
9608 * varobj.c (c_value_of_root, c_value_of_child)
9609 (cplus_describe_child): Don't call release_value.
9610
9611 2007-01-24 Thiemo Seufer <ths@mips.com>
9612
9613 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9614 initialization.
9615
9616 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9617
9618 Refactor getting children name, value and type access
9619 for varobjs in C++.
9620 * varobj.c (get_type_deref): Remove.
9621 (adjust_value_for_child_access): New.
9622 (c_number_of_children): Use the above.
9623 (c_describe_child): Likewise.
9624 (enum accessibility): New.
9625 (match_accessibility): New function.
9626 (cplus_describe_child): New function.
9627 (cplus_name_of_child, cplus_value_of_child)
9628 (cplus_type_of_child): Reimplement in terms
9629 of cplus_describe_child.
9630 (cplus_number_of_children): Use
9631 adjust_value_for_child_access.
9632
9633 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9634
9635 Fix computation of the 'editable' attribute and
9636 value changeability for for references.
9637 * varobj.c (get_value_type): New function.
9638 (c_variable_editable): Use get_value_type.
9639 (varobj_value_is_changeable): Likewise.
9640
9641 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9642
9643 * source.c (find_and_open_source): Try rewriting the source
9644 path inside filename if dirname is NULL.
9645
9646 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9647
9648 * dwarf2read.c (add_partial_symbol): Create an extra partial
9649 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9650 (new_symbol): Likewise for symbols.
9651
9652 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9653
9654 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9655
9656 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9657
9658 * value.c (value_primitive_field): Copy the full 'location'
9659 contents, instead of assuming that copying ADDRESS will
9660 bring over everything in the union. Remove obsolete comment.
9661
9662 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9663
9664 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9665 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9666 (m32c_m16c_pointer_to_address): Separate code from declarations.
9667
9668 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9669
9670 * target.c (update_current_target): Correct typo.
9671
9672 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9673
9674 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9675 declaration.
9676
9677 2007-01-11 Andrew Cagney <cagney@redhat.com>
9678 Daniel Jacobowitz <dan@codesourcery.com>
9679 Jan Kratochvil <jan.kratochvil@redhat.com>
9680
9681 * dwarf2-frame.c (execute_cfa_program): New support of
9682 `DW_CFA_GNU_negative_offset_extended'.
9683
9684 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9685
9686 * NEWS: Mention flash support for "load" and new remote packets.
9687
9688 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9689
9690 * breakpoint.c (delete_command): Skip redundant loop iterations.
9691
9692 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9693
9694 * gdbarch.sh (register_type): Update comment.
9695 * gdbarch.h: Regenerated.
9696 * arch-utils.c (generic_register_size): Call register_type.
9697 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9698 * m32c-tdep.c (check_for_saved): Likewise.
9699 * mips-tdep.c (mips_print_register, print_gp_register_row)
9700 (mips_print_registers_info): Likewise.
9701 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9702 Likewise.
9703 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9704 (sh64_do_register, sh64_print_register)
9705 (sh64_media_print_registers_info): Likewise.
9706 * tui/tui-regs.c (tui_register_format): Likewise.
9707
9708 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9709
9710 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9711
9712 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9713 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9714 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9715 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9716 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9717 (make_symbol_completion_list): Likewise.
9718
9719 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9720 Daniel Jacobowitz <dan@codesourcery.com>
9721
9722 * buildsym.c (end_symtab): Use preallocated symtab if available.
9723 Fill in SYMBOL_SYMTAB.
9724 * buildsym.h (struct subfile): Add symtab member.
9725 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9726 (struct file_entry): Add symtab.
9727 (free_cu_line_header): New function.
9728 (read_file_scope): Use it. Save line_header in the cu. Process
9729 lines before DIEs.
9730 (add_file_name): Initialize new symtab member.
9731 (dwarf_decode_lines): Create symtabs for included files.
9732 (new_symbol): Set SYMBOL_SYMTAB.
9733 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9734 (search_symbols): Likewise.
9735 * symtab.h (struct symbol): Add symtab member.
9736 (SYMBOL_SYMTAB): Define.
9737
9738 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9739
9740 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9741
9742 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9743
9744 * arch-utils.c (show_endian): Correct reversed condition.
9745
9746 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9747
9748 * MAINTAINERS (Write After Approval): Add myself.
9749
9750 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9751 Vladimir Prus <vladimir@codesourcery.com>
9752
9753 Fix 'selected frame' varobjs.
9754 * varobj.c (struct varobj): Remove the error field.
9755 (varobj_set_value): Don't check var->error.
9756 (install_new_value): Don't set var->error.
9757 (varobj_update): Always pass the new value
9758 of the root via install_new_value.
9759 (create_child): Don't set error field.
9760 (new_variable): Likewise.
9761 (c_value_of_root): Always reevaluate the value
9762 of selected frame varobjs in the selected frame.
9763 Don't call reinit_frame_cache.
9764
9765 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9766
9767 * source.c (_initialize_source): Improve the help text of
9768 the substitute-path commands.
9769
9770 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9771
9772 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9773 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9774 (frv_skip_prologue): Remove prototypes.
9775 (frv_adjust_breakpoint_address): Renamed from
9776 frv_gdbarch_adjust_breakpoint_address.
9777 (frv_gdbarch_init): Adjust.
9778
9779 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9780
9781 * gdbarch.sh (deprecated_extract_return_value)
9782 (deprecated_store_return_value): Remove.
9783 (extract_return_value, store_return_value): Remove default values.
9784 * gdbarch.c, gdbarch.h: Regenerate.
9785 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9786 (legacy_store_return_value): Remove.
9787 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9788 Remove.
9789
9790 * mi/mi-main.c: Remove obsolete comment.
9791
9792 * regcache.c, regcache.h (deprecated_register_bytes)
9793 (deprecated_read_register_bytes)
9794 (deprecated_write_register_bytes): Remove.
9795
9796 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9797 Don't forget to move destination pointer.
9798
9799 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9800
9801 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9802
9803 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9804
9805 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9806 past entry function with recent newlib.
9807
9808 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9809
9810 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9811 introduction. Specify -var-update more exactly.
9812
9813 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9814
9815 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9816
9817 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9818
9819 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9820 the Global Maintainers' invitation to be a global maintainer.
9821
9822 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9823
9824 * infrun.c (singlestep_pc): New variable.
9825 (resume): Set singlestep_pc.
9826 (context_switch): Add a debugging message. Flush the frame cache.
9827 (handle_inferior_event): Add debugging messages. Handle thread
9828 hops when a software single step has completed. Let context_switch
9829 handle flushing the frame cache.
9830
9831 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9832
9833 * NEWS: Mention target descriptions, "set tdesc filename",
9834 "unset tdesc filename", "show tdesc filename", and
9835 qXfer:features:read.
9836 * arch-utils.c (choose_architecture_for_target): New function.
9837 (gdbarch_info_fill): Call it.
9838 * target-descriptions.c (struct property): Make members non-const.
9839 (struct target_desc): Add arch member.
9840 (target_description_filename): New variable.
9841 (target_find_description): Try via XML first.
9842 (tdesc_architecture): New.
9843 (free_target_description, make_cleanup_free_target_description): New.
9844 (set_tdesc_property): Call xstrdup.
9845 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9846 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9847 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9848 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9849 * target-descriptions.h (tdesc_architecture)
9850 (make_cleanup_free_target_description, set_tdesc_architecture): New
9851 prototypes.
9852 * Makefile.in (SFILES): Add xml-tdesc.c.
9853 (COMMON_OBS): Add xml-tdesc.o.
9854 (target-descriptions.o): Update.
9855 (xml-tdesc.o): New rule.
9856 * xml-tdesc.c, xml-tdesc.h: New files.
9857 * remote.c (PACKET_qXfer_features): New enum.
9858 (remote_protocol_features): Add qXfer:features:read.
9859 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9860 (_initialize_remote): Register qXfer:features:read.
9861 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9862 * features/gdb-target.dtd: New file.
9863
9864 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9865
9866 * copyright.sh: Clarify error.
9867
9868 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9869
9870 * symtab.c (matching_bfd_sections): Fix VMA matching for
9871 prelinked objects.
9872
9873 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9876 nested symbols.
9877
9878 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9879
9880 Updated copyright notices for most files.
9881
9882 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9883
9884 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9885
9886 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9887
9888 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9889 exec_prefix.
9890 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9891 '${prefix}'.
9892 * configure, config.in: Regenerate.
9893 * defs.h (debug_file_directory): Declare.
9894 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9895 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9896 relocate it if DEBUGDIR_RELOCATABLE.
9897 * symfile.c (debug_file_directory): Make non-static.
9898 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9899 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9900 (_initialize_symfile): Don't initialize debug_file_directory here.
9901
9902 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9903
9904 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9905 statements.
9906
9907 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9908
9909 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9910 frame_unwind_register to recurse.
9911 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9912 (alpha_heuristic_frame_prev_register): Likewise.
9913 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9914 * m32c-tdep.c (m32c_prev_register): Likewise.
9915 * frame.c (frame_register_unwind_location): Remove FIXME.
9916
9917 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9918 Eli Zaretskii <eliz@gnu.org>
9919
9920 * copyright.sh: New file.
9921
9922 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9923
9924 * configure.ac: Check for XML_StopParser.
9925 * xml-support.c (gdb_xml_body_text): Check for an error.
9926 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9927 (gdb_xml_end_element_wrapper): Likewise.
9928 * config.in, configure: Regenerated.
9929
9930 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9931
9932 * varobj.c (install_new_value): Always update print_value.
9933 (value_get_print_value): Immediately return NULL for missing
9934 values.
9935
9936 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9937
9938 * configure.ac: Tighten pattern for extracting value of
9939 DEPRECATED_TM_FILE from the target makefile fragment.
9940 * configure: Regenerated.
9941
9942 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9943
9944 * linux-nat.c (struct simple_pid_list): Add status.
9945 (add_to_pid_list): Record the PID's status.
9946 (linux_record_stopped_pid): Likewise. Make static.
9947 (pull_pid_from_list): Return the saved status.
9948 (linux_nat_handle_extended): Deleted.
9949 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9950 Make static. Handle non-SIGSTOP for a new thread's first signal.
9951 (flush_callback): Handle unexpected pending signals.
9952 (linux_nat_wait): Update calls to changed functions.
9953 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9954 Remove prototypes for newly static functions.
9955
9956 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9957
9958 * gdbarch.sh (value_from_register): New gdbarch function.
9959 * gdbarch.c, gdbarch.h: Regenerate.
9960 * findvar.c (default_value_from_register): New function.
9961 (value_from_register): Use gdbarch_value_from_register.
9962 * value.h (default_value_from_register): Declare.
9963 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9964 spu_value_to_register): Remove.
9965 (spu_value_from_register): New function.
9966 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9967 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9968 Call set_gdbarch_value_from_register.
9969 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9970 s390_value_to_register): Remove.
9971 (s390_value_from_register): New function.
9972 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9973 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9974 Call set_gdbarch_value_from_register.
9975
9976 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9977
9978 * NEWS: Add "set sysroot" and "show sysroot".
9979 * solib.c (solib_absolute_prefix): Delete. Replace
9980 all uses with gdb_sysroot.
9981 (_initialize_solib): Add "set sysroot" and "show sysroot".
9982 Make "solib-absolute-prefix" an alias to it.
9983
9984 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9985
9986 * frame.c (get_frame_register_bytes): New function.
9987 (put_frame_register_bytes): Likewise.
9988 * frame.h (get_frame_register_bytes): Declare.
9989 (put_frame_register_bytes): Likewise.
9990 * findvar.c (value_from_register): Always construct lval_register
9991 values. Use get_frame_register_bytes.
9992 * valops.c (value_assign): Use get_frame_register_bytes and
9993 put_frame_register_bytes.
9994
9995 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9996
9997 * MAINTAINERS: Update Stan Shebs' email address.
9998
9999 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10000
10001 * ada-lang.c (is_known_support_routine): Improve the implementation.
10002
10003 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10004
10005 * ada-lang.c: Add include of source.h.
10006 (is_known_support_routine): Improve the check verifying that the file
10007 associated to this frame exists.
10008 * Makefile.in (ada-lang.o): Add dependency on source.h.
10009
10010 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10011
10012 * ax-general.c (ax_const_l): Select proper opcode for the given
10013 value.
10014
10015 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10016
10017 * varobj.c (c_value_of_root): Don't select frame if variable
10018 object is out of scope.
10019
10020 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10021
10022 * varobj.c (struct varobj): New member print_value.
10023 (install_new_value): Compare last printed value with current one
10024 instead of contents.
10025 (new_variable): Initialize var->print_value to NULL.
10026 (free_variable): Free var->print_value.
10027 (value_get_print_value): New function derived from
10028 c_value_of_variable.
10029 (c_value_of_variable): Use value_get_print_value.
10030
10031 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10032
10033 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10034
10035 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10036
10037 * NEWS: Add entries for new catch commands.
10038
10039 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10040
10041 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10042 (add_partial_symbol): Correct identification of external references.
10043 (process_structure_scope): Likewise.
10044 (read_partial_die): Handle DW_AT_byte_size attribute.
10045
10046 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10047
10048 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10049
10050 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10051
10052 * varobj.c (get_type_deref): Fix variable objects for references to
10053 pointers.
10054
10055 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10056
10057 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10058 with no symbols.
10059
10060 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10061
10062 * memory-map.c (struct_memory_map_parsing_data): Remove most
10063 members. Make property_name an array.
10064 (free_memory_map_parsing_data, memory_map_start_element)
10065 (memory_map_end_element, memory_map_character_data): Delete.
10066 (memory_map_start_memory, memory_map_end_memory)
10067 (memory_map_start_property, memory_map_end_property): New functions.
10068 (property_attributes, memory_children, memory_type_enum)
10069 (memory_attributes, memory_map_children, memory_map_elements): New.
10070 (parse_memory_map): Rewrite.
10071 * xml-support.c (debug_xml): New.
10072 (xml_get_required_attribute, xml_get_integer_attribute)
10073 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10074 Delete.
10075 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10076 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10077 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10078 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10079 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10080 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10081 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10082 New.
10083 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10084 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10085 (enum gdb_xml_element_flag, struct gdb_xml_element)
10086 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10087 (struct gdb_xml_enum): New.
10088 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10089 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10090 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10091 (xml_get_required_attribute, xml_get_integer_attribute)
10092 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10093 * Makefile.in (xml_support_h, xml-support.o): Update.
10094
10095 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10096
10097 * Makefile.in (eval.o): Update dependencies.
10098 * eval.c: Include "ui-out.h" and "exceptions.h".
10099 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10100 Use value_zero if an error occurs when avoiding side effects.
10101 * varobj.c (c_value_of_root): Initialize new_val.
10102
10103 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10104
10105 * varobj.c (varobj_list_children): Stop if the number of children is
10106 unknown.
10107 (c_number_of_children):
10108
10109 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10110
10111 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10112 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10113 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10114 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10115 sizeof, instead of hardcoded constants.
10116
10117 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10118
10119 * CONTRIBUTE: Use sourceware.org.
10120
10121 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10122
10123 * buildsym.c (start_subfile): Handle producer.
10124 (record_producer): New function.
10125 * buildsym.h (struct subfile): Include producer.
10126 (record_producer): New prototype.
10127 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10128 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10129 armcc_cfa_offsets_reversed.
10130 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10131 (dwarf2_frame_find_quirks): New function.
10132 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10133 (decode_frame_entry_1): Record the CIE version. Record the
10134 augmentation. Skip armcc augmentations.
10135 * dwarf2read.c (read_file_scope): Save the producer.
10136 * symtab.h (struct symtab): Rename unused version member to
10137 producer.
10138
10139 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10140
10141 * configure.ac (build_warnings): Use -Wall and
10142 -Wdeclaration-after-statement.
10143 * configure: Regenerated.
10144
10145 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10146
10147 Simplify access to variours properties of child
10148 variable objects in C.
10149 * varobj.c (value_struct_element_index): New function.
10150 (c_describe_child): New function.
10151 (c_name_of_child, c_value_of_child)
10152 (c_type_of_child): Rewrite to use c_describe_child.
10153
10154 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10155
10156 gdb/
10157 * varobj.c: Include "vec.h".
10158 (varobj_p): New typedef, declare vector of those.
10159 (struct varobj): Use vector for the 'children' member.
10160 (child_exists): Remove.
10161 (save_child_in_parent): Remove.
10162 (remove_child_from_parent): Remove.
10163 (struct varobj_child): Remove.
10164 (struct vstack): Remove.
10165 (vpush, vpop): Remove.
10166 (varobj_list_children): Adjust to work work vector.
10167 (varobj_update): Likewise. Use vectors for
10168 working stack and result.
10169 (delete_variable_1): Likewise.
10170 * Makefile.in (varobj.o): Update dependencies.
10171
10172 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10173
10174 Port from Apple's version.
10175 gdb/
10176 * varobj.c (type_changeable): Rename to...
10177 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10178 (is_root_p): New function. Use it everywhere.
10179
10180 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10181
10182 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10183 then plain 'fixup'.
10184
10185 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10186
10187 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10188
10189 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10190
10191 * hpread.c (hpread_type_lookup): Fix compilation failure.
10192
10193 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10194
10195 * NEWS: New port to S+core.
10196 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10197 Add myself.
10198
10199 * Makefile.in: Add dependencies for S+core files.
10200 * configure.tgt (score*, score-*-*): Add S+core target.
10201 * config/score/embed.mt: New file.
10202 * score-tdep.c: New file.
10203 * score-tdep.h: New file.
10204
10205 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10206
10207 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10208 the appropriate type rather than a bogus void type.
10209
10210 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10211
10212 * ada-lang.h (ada_find_printable_frame): Remove.
10213 (ada_exception_catchpoint_p, ada_decode_exception_location)
10214 (ada_decode_assert_location): Add declaration.
10215 * ada-lang.c: Add include of annotate.h and valprint.h.
10216 (exception_catchpoint_kind): New enum.
10217 (function_name_from_pc, is_known_support_routine)
10218 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10219 (ada_exception_name_addr_1, ada_exception_name_addr)
10220 (print_it_exception, print_one_exception, print_mention_exception)
10221 (print_it_catch_exception, print_one_catch_exception)
10222 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10223 (print_it_catch_exception_unhandled)
10224 (print_one_catch_exception_unhandled)
10225 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10226 (print_one_catch_assert, print_mention_catch_assert)
10227 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10228 (ada_get_next_arg, catch_ada_exception_command_split)
10229 (ada_exception_sym_name, ada_exception_sym_name)
10230 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10231 (ada_parse_catchpoint_condition, ada_exception_sal)
10232 (ada_decode_exception_location)
10233 (ada_decode_assert_location): New function.
10234 (catch_exception_unhandled_breakpoint_ops): New global variable.
10235 (catch_assert_breakpoint_ops): New global variable.
10236 * breakpoint.c: Add include of ada-lang.h.
10237 (print_one_breakpoint): Do not print the condition for Ada
10238 exception catchpoints.
10239 (create_ada_exception_breakpoint): New function.
10240 (catch_ada_exception_command, catch_assert_command): New function.
10241 (catch_command_1): Add support for the new "catch exception" and
10242 "catch assert" commands.
10243 (_initialize_breakpoint): Add help description for the new catch
10244 commands.
10245 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10246 valprint.h.
10247 (breakpoint.o): Add dependency on ada-lang.h.
10248
10249 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10250
10251 * coffread.c (cs_to_section): If bfd_section is found, always
10252 return its section index.
10253 (coff_symtab_read): Determine the minimal_symbol_type using the
10254 bfd_section flags.
10255
10256 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10257 Daniel Jacobowitz <dan@codesourcery.com>
10258
10259 * Makefile.in (top.o): Update.
10260 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10261 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10262 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10263 New.
10264 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10265
10266 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10267
10268 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10269 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10270
10271 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10272
10273 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10274 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10275 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10276 greater than or equal to zero.
10277 * m2-typeprint.c (m2_array): Likewise.
10278 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10279 * gdbtypes.c (copy_type_recursive): Correct == typo.
10280 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10281 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10282 greater than zero.
10283 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10284 (default_macro_scope): Remove unused variable.
10285 * prologue-value.h (pv_area_find_reg): Don't name an argument
10286 "register".
10287 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10288 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10289 type.
10290 (cleanup_sigint_signal_handler): Remove casts.
10291 * valprint.c (val_print): Use a volatile local for the modified
10292 argument.
10293 * varobj.c (languages): Remove extra array dimension.
10294 (varobj_create): Correct access to languages array.
10295 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10296 missing braces.
10297 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10298 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10299 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10300 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10301 (mi_cmd_data_write_memory): Likewise.
10302 * signals/signals.c (target_signal_to_string): Cast to int before
10303 comparing.
10304 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10305 Update all callers.
10306
10307 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10308
10309 * NEWS: Mention pointer to member improvements.
10310 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10311 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10312 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10313 * c-typeprint.c (c_print_type): Update for new type codes.
10314 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10315 (c_type_print_base): Likewise.
10316 (c_type_print_args): Rewrite.
10317 * c-valprint.c (c_val_print): Update for new type codes. Remove
10318 support for references to members. Treat methods like functions.
10319 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10320 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10321 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10322 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10323 (struct cp_abi_ops): Add corresponding members.
10324 * cp-valprint.c (cp_print_class_method): Delete.
10325 (cp_find_class_member): New function.
10326 (cp_print_class_member): Use it. Simplify support for bogus
10327 member pointers.
10328 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10329 lookup_methodptr_type.
10330 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10331 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10332 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10333 pointer support.
10334 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10335 references returned by user defined operators.
10336 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10337 (f_type_print_varspec_suffix): Remove support for member pointers.
10338 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10339 and adjusted.
10340 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10341 (lookup_methodptr_type): New.
10342 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10343 (recursive_dump_type): Update for new types.
10344 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10345 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10346 (lookup_memberptr_type, lookup_methodptr_type)
10347 (smash_to_memberptr_type): New prototypes.
10348 (smash_to_method_type): Formatting fix.
10349 (lookup_member_type, smash_to_member_type): Delete prototypes.
10350 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10351 Do not rely on debug information for the vptr or the method's
10352 enclosing type. Handle function descriptors for IA64.
10353 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10354 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10355 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10356 (gnuv3_method_ptr_to_value): New.
10357 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10358 * hpread.c (hpread_type_lookup): Update for new types.
10359 * infcall.c (value_arg_coerce): Likewise.
10360 * m2-typeprint.c (m2_print_type): Remove explicit support
10361 for member pointers.
10362 * m2-valprint.c (m2_val_print): Likewise.
10363 * p-typeprint.c (pascal_type_print_varspec_prefix)
10364 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10365 * p-valprint.c (pascal_val_print): Likewise.
10366 (pascal_object_print_class_method, pascal_object_print_class_member):
10367 Delete.
10368 * p-lang.h (pascal_object_print_class_method)
10369 (pascal_object_print_class_member): Delete prototypes.
10370 * stabsread.c (read_type): Update for new types.
10371 * typeprint.c (print_type_scalar): Likewise.
10372 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10373 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10374 argument. Construct a pointer to member if the address of a
10375 function or data member is requested.
10376 (value_cast_pointers): Don't modify the input value.
10377 (value_cast): Adjust pointer to member handling for new types.
10378 Allow null pointer to member constants. Don't modify the input
10379 value.
10380 (value_ind): Remove pointer to member check. Handle function
10381 descriptors for function pointers.
10382 (value_struct_elt, value_find_oload_method_list, check_field):
10383 Remove pointer to member checks.
10384 * value.c (unpack_long): Allow pointers to data members.
10385 (value_from_longest): Allow member pointers.
10386 * value.h (value_aggregate_elt): Add want_address.
10387 * varobj.c (c_variable_editable): Remove check for members.
10388 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10389 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10390 in virtual tables.
10391 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10392 * c-lang.h (cp_print_class_method): Delete prototype.
10393 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10394 * mips-tdep.c (mips_gdbarch_init): Likewise.
10395 * gdbarch.c, gdbarch.h: Regenerated.
10396
10397 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10398
10399 * rs6000-tdep.c (rs6000_use_struct_convention)
10400 (rs6000_extract_return_value, rs6000_store_return_value)
10401 (rs6000_extract_struct_value_address): Remove.
10402 (rs6000_return_value): New function.
10403 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10404 store_return_value, deprecated_extract_struct_value_address and
10405 deprecated_use_struct_convention. Use rs6000_return_value
10406 instead.
10407
10408 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10409
10410 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10411 -display-disable, -display-enable, -display-insert and
10412 -display-list.
10413
10414 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10415
10416 * breakpoint.c (remove_breakpoint): Remove dead code.
10417
10418 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10419
10420 * varobj.c: Include block.h.
10421 (c_value_of_root): Check scope within nested statements.
10422
10423 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10424
10425 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10426 regcache_cooked_write_signed instead of
10427 deprecated_write_register_bytes.
10428
10429 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10430
10431 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10432
10433 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10434
10435 Followed the Start of New Year Procedure:
10436 * ChangeLog-2006: New file, containing all the entries for 2006.
10437 * ChangeLog: Removed all 2006 entries, and changed the reference
10438 to the previous ChangeLog to point to ChangeLog 2006.
10439 * top.c (print_gdb_version): Update copyright year.
10440
10441 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10442
10443 * Makefile.in (remote-sds.o): Remove.
10444 * remote-sds.c: Delete.
10445
10446 For older changes see ChangeLog-2006.
10447 \f
10448 Local Variables:
10449 mode: change-log
10450 left-margin: 8
10451 fill-column: 74
10452 version-control: never
10453 coding: utf-8
10454 End: