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