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