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