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