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