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