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