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