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