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