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