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