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