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