gas/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
97ab0fdd
MR
12007-09-20 Maciej W. Rozycki <macro@mips.com>
2
3 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
4 (mips16_in_function_epilogue_p): Likewise.
5 (mips_in_function_epilogue_p): Likewise.
6 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
7
01fe12f6
JB
82007-09-19 Joel Brobecker <brobecker@adacore.com>
9
10 * configure.ac: Add check for "etext".
11 * configure, config.in: Regenerate.
12 * maint.c (TEXTEND): Only define if either _etext or etext
13 are available.
14 Disable the profiling functionality if TEXTEND is not defined.
15
aa6c981f
DJ
162007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17
18 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
19 address register. Correct the call to frame_id_build.
20 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
21 is invalid.
22
39312971
JB
232007-09-18 Joel Brobecker <brobecker@adacore.com>
24
25 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
26 the linetable past the function end.
27
558dc30a
JW
282007-09-18 James E. Wilson <wilson@specifix.com>
29
30 * MAINTAINERS: Update my email address.
31
60e2c248
JG
322007-09-18 Jerome Guitton <guitton@adacore.com>
33
34 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
35 (inf_ttrace_delete_dying_threads_callback): New function.
36 (inf_ttrace_resume): After resuming the execution, iterate over
37 the dying threads to delete them for the thread list.
38 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
39 mark the corresponding thread as dying instead of removing it
40 from the thread list.
41 (inf_ttrace_thread_alive): return 0 for dying threads.
42
f4c1edd8
JB
432007-09-17 Joel Brobecker <brobecker@adacore.com>
44
45 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
46 that return_frame is not null.
47
8d4e36ba
JB
482007-09-17 Joel Brobecker <brobecker@adacore.com>
49
50 * solib-svr4.c: Add include of "auxv.h".
51 (enable_break): Use the AT_BASE auxiliary entry if available.
52 * Makefile.in (solib-svr4.o): Update dependencies.
53
f9ed52be
JB
542007-09-17 Joel Brobecker <brobecker@adacore.com>
55
56 * NEWS: Create a new section for the next release branch.
57 Rename the section of the current branch, now that it has
58 been cut.
59
eff4f95e
JG
602007-09-17 Jerome Guitton <guitton@adacore.com>
61
62 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
63 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
64
084344da
VP
652007-09-16 Vladimir Prus <vladimir@codesourcery.com>
66
67 * mi/mi-cmds.c (mi_cmds): Register -list-features.
68 * mi/mi-cmds.h (mi_cmd_list_features): New.
69 * mi/mi-main.c (mi_cmd_list_features): New.
70
50c7215d 712007-09-11 Joel Brobecker <brobecker@adacore.com>
72
73 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
74 * version.in: Bump version to 6.7.50-20070911-cvs.
75
4d8453a5
DJ
762007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
77
78 * thread.c (free_thread): Do not delete the step resume breakpoint
79 right away.
80
4eb0ad19
DJ
812007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
82
83 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
84 * corelow.c (core_read_description): New.
85 (init_core_ops): Set to_read_description.
86 * gdbarch.sh: Add gdbarch_core_read_description.
87 * mips-linux-tdep.c (mips_linux_core_read_description): New.
88 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
89 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
90 (mips_register_g_packet_guesses): Use them.
91 (_initialize_mips_tdep): Initialize them.
92 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
93 * gdbarch.h, gdbarch.c: Regenerated.
94
6a6b96b9
UW
952007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
96
97 * infrun.c (stepping_past_breakpoint): New global variable.
98 (stepping_past_breakpoint_ptid): Likewise.
99 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
100 Only switch threads if we need to single-step over a breakpoint hit
101 in the previously selected thread. If stepping, remember previous
102 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
103 switch_to_thread instead of copying its contents.
104 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
105 prepare_to_proceed returns true.
106 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
107 (context_switch): Call switch_to_thread.
108 (handle_inferior_event): Switch back to previous thread if requested
109 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
110 * gdbthread.h (switch_to_thread): Add prototype.
111 * thread.c (switch_to_thread): Make global.
112
b20a3440
PM
1132007-09-07 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
114
115 * p-valprint.c: Fix 7 ARI reported problems.
116 (pascal_val_print): Fix one operator at end of line issue.
117 Use paddress function to remove use of
118 deprecated_print_address_numeric function (2 times).
119 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
120 (pascal_value_print): Fix 3 operator at end of line issues.
121
faa95490
DJ
1222007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
123
124 PR gdb/2103
125 * arm-tdep.c (arm_in_call_stub): Delete.
126 (arm_skip_stub): Handle from_arm and from_thumb stubs.
127
f0027ce2
DJ
1282007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
129
130 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
131 types.
132
ea37ba09
DJ
1332007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
134 Jim Blandy <jimb@codesourcery.com>
135
136 * NEWS: Update description of string changes. Mention print/s.
137 * c-valprint.c (textual_element_type): New.
138 (c_val_print): Use it. Do not skip address printing for pointers
139 with a string format.
140 (c_value_print): Doc update.
141 * dwarf2read.c (read_array_type): Use make_vector_type.
142 * gdbtypes.c (make_vector_type): New.
143 (init_vector_type): Use it.
144 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
145 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
146 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
147 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
148 (make_vector_type): New.
149 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
150 Call the language print routine for string format.
151 (print_scalar_formatted): Call val_print for string format. Handle
152 unsigned original types for char format.
153 (validate_format): Do not reject string format.
154 * stabsread.c (read_type): Use make_vector_type.
155 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
156
8fb822e0
MS
1572007-09-04 Michael Snyder <msnyder@access-company.com>
158
fcd776e5
MS
159 * expprint.c (print_subexp_standard): Check strchr for null.
160 * Makefile.in (expprint.o): Depend on gdb_assert.h.
161
7d63ec12
MS
162 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
163
8fb822e0
MS
164 * stabsread.c (patch_block_status): Guard against null.
165 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
166
2025a643
DJ
1672007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
168
169 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
170 in internal error message.
171
de1b3c3d
PA
1722007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
173 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * infcmd.c (post_create_inferior): Update comment.
176 (run_command_1): Always call post_create_inferior with 0 as
177 from_tty.
178
179 * i386-cygwin-tdep.h: New.
180 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
181 (win32_xfer_shared_library): Make it extern.
182
183 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
184 i386-cygwin-tdep.h.
185 (win32_so_ops): Delete.
186 (get_relocated_section_addrs): Delete.
187 (solib_symbols_add): Delete.
188 (register_loaded_dll): Delete.
189 (win32_make_so): New.
190 (handle_load_dll): Use win32_make_so.
191 (win32_free_so): Free the passed in so.
192 (win32_relocate_section_addresses): Delete.
193 (win32_solib_create_inferior_hook): Delete.
194 (handle_unload_dll): Don't add PE offset here. Free so with
195 win32_free_so instead of free_so.
196 (win32_special_symbol_handling): Delete.
197 (get_win32_debug_event): Remove unneeded calls. Set state to
198 TARGET_WAITKIND_LOADED on a dll unload.
199 (do_initial_win32_stuff): Clear cygwin_load_start and
200 cygwin_load_end.
201 (map_code_section_args): Delete.
202 (dll_code_sections_add): Delete.
203 (core_section_load_dll_symbols): Delete.
204 (win32_xfer_shared_libraries): New.
205 (win32_current_sos): Delete.
206 (win32_xfer_partial): New.
207 (open_symbol_file_object): Delete.
208 (in_dynsym_resolve_code): Delete.
209 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
210 of win32_ops. Remove win32_so_ops settings. Don't set
211 current_target_so_ops here.
212
213 * Makefile.in (i386_cygwin_tdep_h): New variable.
214 (i386-cygwin-tdep.o): Update dependencies.
215 (win32-nat.o): Update dependencies.
216
de584861
PA
2172007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
218 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * gdbarch.sh (core_xfer_shared_libraries): New.
221
222 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
223
224 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
225
226 * xml-support.c (gdb_xml_parse): Debug output tweaks.
227 (xml_escape_text): New.
228 * xml-support.h (xml_escape_text): Declare.
229
230 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
231 * config/i386/cygwin.mt (TDEPFILES): ... here.
232
233 * win32-nat.c: (fetch_elf_core_registers): Delete.
234 (win32_elf_core_fn): Delete.
235 (_initialize_core_win32): Delete.
236
237 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
238 "xml-support.h" and "gdbcore.h".
239 (i386_win32_gregset_reg_offset): New.
240 (I386_WIN32_SIZEOF_GREGSET): New.
241 (i386_win32_regset_from_core_section): New.
242 (win32_xfer_shared_library): New.
243 (struct cpms_data): New.
244 (core_process_module_section): New.
245 (win32_core_xfer_shared_libraries): New.
246 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
247 gregset_num_regs, sizeof_gregset members of tdep. Register
248 regset_from_core_section and core_xfer_shared_libraries callbacks.
249
250 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
251 * gdbarch.h, gdbarch.c: Regenerate.
252
7160c4c3
PA
2532007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
254
255 * corelow.c (core_xfer_partial): Pass writebuf to
256 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
257
6dc13412
PA
2582007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
259
260 * arm-tdep.h (arm_skip_stub): Declare.
261 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
262 "gdbcore.h".
263 (arm_pe_skip_trampoline_code): New function.
264 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
265 gdbarch_skip_trampoline_code callback.
266 * Makefile.in (arm-wince-tdep.o): Update dependencies.
267
ca8385e5
DJ
2682007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
269
270 * MAINTAINERS: Move Fred Fish to Past Maintainers.
271
5c39566f
DJ
2722007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
273
274 * configure.ac: Add --with-expat.
275 * configure: Regenerated.
276
6a30b0a5
AS
2772007-09-03 Andreas Schwab <schwab@suse.de>
278
279 * configure.ac: Accept --with-system-readline.
280 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
281 * configure: Regenerate.
282 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
283 substituted values.
284 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
285
edff0c0a
DJ
2862007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
287 Daniel Jacobowitz <dan@codesourcery.com>
288
289 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
290
0b93d57c
JK
2912007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
294
b8533aec
DJ
2952007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
296
297 * top.c (print_gdb_version): Update for GPL version 3.
298
f5db8714
JK
2992007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
300
301 * NEWS: Mention the build-id .debug files verification.
302
d99148ef
JK
3032007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
304
305 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
306
77069918
JK
3072007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
308
309 * Makefile.in (symfile.o): Update dependencies.
310 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
311 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
312 (struct build_id): New structure.
313 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
314 (find_separate_debug_file): New variable BUILD_ID.
315 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
316
202ddcaa
VP
3172007-08-31 Vladimir Prus <vladimir@codesourcery.com>
318
319 * varobj.c (struct varobj): Fix comment
320 for the type member not to lie when it can be
321 NULL.
322
02142340
VP
3232007-08-31 Vladimir Prus <vladimir@codesourcery.com>
324
325 Implement -var-info-path-expression.
326
327 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
328 Declare.
329 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
330 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
331 * varobj.c (struct varobj): New field 'path_expr'.
332 (c_path_expr_of_child, cplus_path_expr_of_child)
333 (java_path_expr_of_child): New.
334 (struct language_specific): New field path_expr_of_child.
335 (varobj_create): Initialize the path_expr field.
336 (varobj_get_path_expr): New.
337 (new_variable): Initialize the path_expr field.
338 (free_variable): Free the path_expr field.
339 (adjust_value_for_children_access): New parameter
340 WAS_TYPE.
341 (c_number_of_children): Adjust.
342 (c_describe_child): New parameter CFULL_EXPRESSION.
343 Compute full expression.
344 (c_value_of_child, c_type_of_child): Adjust.
345 (cplus_number_of_children): Adjust.
346 (cplus_describe_child): New parameter CFULL_EXPRESSION.
347 Compute full expression.
348 (cplus_name_of_child, cplus_value_of_child)
349 (cplus_type_of_child): Adjust.
350 * varobj.h (varobj_get_path_expr): Declare.
351
bccc275a
VP
3522007-08-31 Vladimir Prus <vladimir@codesourcery.com>
353
354 * mi/mi-cmd-var.c (print_varobj): If a varobj
355 type is NULL, don't try to print it.
356
f2db237a
AM
3572007-08-30 Alan Modra <amodra@bigpond.net.au>
358
359 * ppc-linux-nat.c (right_fill_reg): Delete.
360 (supply_gregset): Use ppc_supply_gregset.
361 (supply_fpregset): Use ppc_supply_fpregset.
362 (fill_gregset): Use ppc_collect_gregset.
363 (fill_fpregset): Use ppc_collect_fpregset.
364 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
365 (right_supply_register, ppc_linux_supply_gregset): Delete.
366 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
367 (ppc_linux_supply_fpregset): Delete.
368 (ppc_linux_collect_gregset): New function.
369 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
370 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
371 ppc_linux_supply_gregset, and ppc_collect_gregset.
372 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
373 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
374 (ppc_linux_regset_from_core_section): Update.
375 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
376 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
377 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
378 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
379 (ppcobsd_collect_gregset): Likewise.
380 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
381 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
382 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
383 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
384 (rs6000_aix64_reg_offsets): Likewise.
385 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
386 ppc_floating_point_unit_p.
387 (rs6000_aix_collect_regset): Similarly.
388 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
389 when regsize is larger than regcache register size.
390 (ppc_collect_reg): Similarly zero pad when regsize is larger than
391 regcache register size.
392 (ppc_greg_offset): New function, split out from..
393 (ppc_supply_gregset): ..here. Separate code handling all regs from
394 single reg case. Correct xer offset.
395 (ppc_fpreg_offset): New function, split out from..
396 (ppc_supply_fpregset): ..here. Separate code handling all regs from
397 single reg case.
398 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
399 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
400 a fp unit, instead return if no fp.
401
fe5aea2e
JB
4022007-08-29 Jim Blandy <jimb@codesourcery.com>
403
404 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
405 this code has not been compiled for two years.
406
13ce7133
MS
4072007-08-29 Michael Snyder <msnyder@access-company.com>
408
409 * event-top.c (gdb_readline2): Return after EOF.
410
fd4a0f2f
JB
4112007-08-29 Joel Brobecker <brobecker@adacore.com>
412
413 * symtab.c: Remove a function that has been commented out 3 years ago.
414
d037d088
CD
4152007-08-29 Randolph Chung <tausq@debian.org>
416
417 * hppa-tdep.c (hppa32_cannot_fetch_register)
418 (hppa64_cannot_fetch_register): New functions.
419 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
420 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
421
19d378fc
MS
4222007-08-28 Michael Snyder <msnyder@access-company.com>
423
57cdecd2
MS
424 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
425 check for null before calling check_typedef.
426
19d378fc
MS
427 * NEWS: Mention Coverity bug fixes.
428
36acd84e
UW
4292007-08-27 Markus Deuling <deuling@de.ibm.com>
430
431 * spu-tdep.c (spu_pointer_to_address): New function.
432 (spu_integer_to_address): Likewise.
433 (spu_gdbarch_init): Add spu_pointer_to_address and
434 spu_integer_to_address to gdbarch.
435
8ad7c2b9
PA
4362007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
437
438 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
439
4de6a07e
JB
4402007-08-23 Joel Brobecker <brobecker@adacore.com>
441
442 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
443 that contains the GDB license.
444 * copying.awk: Adjust to the GPLv3 wording.
445 * copying.c: Regenerate.
446
07aed0eb
JB
4472007-08-23 Joel Brobecker <brobecker@adacore.com>
448
01d4100f 449 * copying.awk: Protoization, and i18n markup.
07aed0eb 450
50efebf8
JB
4512007-08-23 Joel Brobecker <brobecker@adacore.com>
452
453 * config/djgpp/djconfig.sh: Switch license to GPLv3.
454 * copyright.sh: Likewise.
455 * gdb-events.sh: Likewise.
456 * gdb_gcore.sh: Likewise.
457 * gdb_mbuild.sh: Likewise.
458 * gdbarch.sh: Likewise.
459 * observer.sh: Likewise.
460 * features/feature_to_c.sh: Likewise.
461 * regformats/regdat.sh: Likewise.
462
4632007-08-23 Joel Brobecker <brobecker@adacore.com>
a9762ec7
JB
464
465 Switch the license of all .c files to GPLv3.
466 Switch the license of all .h files to GPLv3.
467 Switch the license of all .cc files to GPLv3.
468
5a0e3bd0
JB
4692007-08-23 Joel Brobecker <brobecker@adacore.com>
470
471 * configure.ac: Switch license to GPLv3.
472
609ca2b9
DJ
4732007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
474
475 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
476 determine the file's FPU type.
477
8d26208a
DJ
4782007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
479
480 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
481 (mips_n32n64_push_dummy_call): Always increment float_argreg along
482 with argreg. Use mips_n32n64_fp_arg_chunk_p.
483
65728c26
DJ
4842007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
485
486 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
487 Fix formatting.
488 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
489 (elf_lookup_lib_symbol): Fix formatting.
490
a2ca50ae
MS
4912007-08-21 Michael Snyder <msnyder@access-company.com>
492
6b2d86bd
MS
493 * dbxread.c (read_dbx_symtab): Guard null deref.
494 Break up long line.
495
a2ca50ae
MS
496 * valops.c (find_overload_match): Guard against NULL.
497
54e116dd
DJ
4982007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
499
500 * MAINTAINERS (Patch Champions): Remove self.
501
f429d7d0
DJ
5022007-08-21 Chris Smith <chris.smith@st.com>
503
504 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
505 line.
506
a2ca50ae 5072007-08-18 Michael Snyder <msnyder@access-company.com>
a287cea6 508
31e9f6b6
MS
509 * stabsread.c (dbx_lookup_type): Memory leak.
510
32107cd5
MS
511 * event-loop.c (delete_async_signal_handler): Move pointer null
512 test to before pointer dereference.
513
44db85f8
MS
514 * ui-out.c (append_header_to_list): Possible cut and paste error.
515
a287cea6
MS
516 * MAINTAINERS: white space tweak.
517
0bd9908d
MS
5182007-08-17 Michael Snyder <msnyder@access-company.com>
519
f91162e1
MS
520 * stack.c (print_frame): Memory leak.
521
1e8189fb
MS
522 * completer.c (filename_completer): Avoid memory leak.
523 Remove unnecessary nested block.
524
348038cd
MS
525 * c-exp.y (parse_number): Memory leak.
526
1f20ed91
MS
527 * completer.c (location_completer): Must free 'fn_list', except
528 in the one case where it is returned (as 'list').
529
74dddad3
MS
530 * varobj.c (value_of_root): Memory leak.
531
0bd9908d
MS
532 * gdbtypes.h (virtual_base_list): Remove export decl.
533 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
534 (virtual_base_index): Memory leak.
535 (virtual_base_index_skip_primaries): Ditto.
536
bdb4c075
MG
5372007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
538
539 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
540 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
541 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
542 (xtensa_read_register): New function.
543 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
544 (xtensa_insn_kind): New types.
545 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
546 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
547 (xtensa_verify_config, xtensa_pseudo_register_read)
548 (xtensa_pseudo_register_write, xtensa_extract_return_value)
549 (xtensa_store_return_value)
550 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
551 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
552 (xtensa_frame_this_id, xtensa_frame_prev_register)
553 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
554 (call0_frame_cache, call0_frame_get_reg_at_entry)
555 (call0_classify_opcode, call0_track_op)
556 (call0_analyze_prologue, call0_frame_cache): New functions.
557
198757a8
VP
5582007-08-17 Vladimir Prus <vladimir@codesourcery.com>
559
560 * breakpoint.c (bpstat_free): New.
561 (bpstat_clear): Use bpstat_free.
562 (delete_breakpoint): Document why we cannot
563 remove bpstats from stop_bpstat.
564 * breakpoint.h (bpstat_free): Declare.
565
dc66ab8a
MS
5662007-08-16 Michael Snyder <msnyder@access-company.com>
567
568 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
569
40c8aaa9
JB
5702007-08-15 Paul Hilfinger <hilfinger@adacore.com>
571 Joel Brobecker <brobecker@adacore.com>
572
573 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
574
ee90b9ab
JB
5752007-08-15 Paul Hilfinger <hilfinger@adacore.com>
576 Joel Brobecker <brobecker@adacore.com>
577
578 * ada-lang.c (possible_user_operator_p): Alternative fix to last
579 checkin guarding against NULL.
580
5b6fe301
MS
5812007-08-14 Michael Snyder <msnyder@access-company.com>
582
e5908723
MS
583 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
584 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
585 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
586 go at beginning of new line.
587
08ef48c5
MS
588 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
589 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
590 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
591 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
592 tui-winsource.h, tui.c, tui.h: Function declarations and
593 definitions, wrap long lines.
594
ef5eab5a
MS
595 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
596 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
597 Reformat block comments to GNU standard.
598
1cc6d956
MS
599 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
600 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
601 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
602 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
603 tui.c, tui.h: Comment reformatting to coding standard (capitals,
604 spaces after periods, etc).
605
5b6fe301
MS
606 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
607 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
608 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
609 tui-winsource.h: Whitespace changes, fix pointer declarations
610 to be consistant.
611
64a1bf19
JB
6122007-08-14 Joel Brobecker <brobecker@adacore.com>
613 Michael Snyder <msnyder@access-company.com>
614
615 * ada-lang.c (field_alignment): Guard against NULL.
616
e933291e
JB
6172007-08-14 Joel Brobecker <brobecker@adacore.com>
618
619 * MAINTAINERS (Global Maintainers): Add self.
620
348144ba
MS
6212007-08-14 Michael Snyder <msnyder@access-company.com>
622
068acb6c
MS
623 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
624
6d307763
MS
625 * ada-lang.c (possible_user_operator_p): Guard against NULL.
626
348144ba
MS
627 * varobj.c (cplus_describe_child): Guard against null.
628 Use "NULL" instead of "0" to initialize pointers.
629
b8926edc
DJ
6302007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
631
632 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
633 to match any gdbarch with matching OSABI. Set default ABI and FPU
634 after running the OSABI handler.
635
cdd6623c
DJ
6362007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
637
638 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
639 * config/i386/linux.mt (TDEPFILES): ...to here.
640
cb851954
VP
6412007-08-14 Vladimir Prus <vladimir@codesourcery.com>
642
cb851954
VP
643 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
644 the 'silent' parameter and code to implement that.
645 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
646 prototype.
647 * win32-nat.c: Adjust.
648 * solib.c: Adjust.
649
e14a792b
VP
6502007-08-14 Vladimir Prus <vladimir@codesourcery.com>
651
e14a792b
VP
652 * breakpoint.c (update_breakpoints_after_exec): Don't
653 set address to zero.
654
be8ca11b
MS
6552007-08-13 Michael Snyder <msnyder@access-company.com>
656
ac3eeb49
MS
657 * valops.c: Whitespace clean-up.
658
81b7c67a
MS
659 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
660
f5b73fbb
MS
661 * event-top.c (command_line_handler): Memory leak.
662
b538c234
MS
663 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
664 No need to make copy.
665
be8ca11b
MS
666 * source.c (find_source_lines): Require symtab 's'.
667
489f0516
MS
6682007-08-11 Michael Snyder <msnyder@access-company.com>
669
670 * completer.c: Spelling fix in comments.
671
9c3f90bd
MS
6722007-08-10 Michael Snyder <msnyder@access-company.com>
673
687d6395 674 * gdbtypes.c: Coding standard cleanup.
7ba81444
MS
675 * gdbtypes.c: Comment/whitespace cleanup.
676
6aef78af
MS
677 * stabsread.c (read_huge_number): Attempt to compute value before
678 values that it depends on.
679
46be51c4
MS
680 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
681 (decode_objc): Use "NULL" instead of 0.
682 (find_method): Ditto.
683 (decode_all_digits): Ditto.
684 (decode_dollar): Ditto.
685
412bbd6c
MS
686 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
687
76bd6e0b
MS
688 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
689
518f9d3c
MS
690 * solib-svr4.c (enable_break): Don't free tmp_pathname until
691 after closing bfd.
692
9c3f90bd
MS
693 * completer.c: Comment/whitespace cleanup.
694
adee0206
JB
6952007-08-10 Joel Brobecker <brobecker@adacore.com>
696
697 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
698
6992007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
9f8e6999
MG
700
701 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
702 allocated file descriptors.
703
271a27b8
JB
7042007-08-10 Joel Brobecker <brobecker@adacore.com>
705
706 * Makefile.in: Minor cleanup throughout; add some missing variables,
707 add some missing rules, remove some rules that are no longer needed,
708 and fix the dependencies in several rules.
709
57da7796
LC
7102007-08-10 Ludovic Courtès <ludo@gnu.org>
711
d4310edb
LC
712 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
713 (scm_lang_h, scm_tags_h): New.
714 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
715 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
716 * defs.h (enum language): Add `language_scm'.
717
57da7796
LC
718 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
719 opening.
720
93c06293
LC
7212007-08-09 Ludovic Courtès <ludo@gnu.org>
722
723 * MAINTAINERS (Write After Approval): Add myself.
724
0997b535
MS
7252007-08-09 Michael Snyder <msnyder@access-company.com>
726
727 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
728
4fec86cf
JB
7292007-08-09 Joel Brobecker <brobecker@adacore.com>
730
731 * solib-som.c (som_relocate_section_addresses): Stop saving
732 the $CODE$ section in the so_list structure.
733
7b871568
MG
7342007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
735
736 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
737 (xtensa_register_group_t): Add entries for coprocessors.
738 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
739 (xtensa_add_reggroups): Likewise.
740 (xtensa_register_reggroup_p): Likewise.
741 (xtensa_coprocessor_register_group): New function.
742 (xtensa_cp): New.
743
652aaa24
JK
7442007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
745
746 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
747
decbce07
MS
7482007-08-08 Michael Snyder <msnyder@access-company.com>
749
6217bf3e
MS
750 * target.c (target_read_string): Guard against null.
751
6225abfa
MS
752 * varobj.c (value_of_root): Move alloc after return to avoid leak.
753
3e40160c 754 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3277c0e0 755 (tui_set_layout_for_display_command): Mem leak.
3e40160c 756
91d2803c
MS
757 * top.c (command_line_input): Memory leak.
758
ea5bf0a1
MS
759 * solib-svr4.c (open_symbol_file_object): Memory leak.
760 (svr4_current_sos): Ditto.
761 (enable_break): Ditto.
762
34e2dfde
MS
763 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
764
decbce07
MS
765 * dwarf2read.c (add_partial_symbol): Memory leak.
766
4cdfadb1
MS
7672007-08-06 Michael Snyder <msnyder@access-company.com>
768
769 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
770
b1ddacc7
JB
7712007-08-05 Jim Blandy <jimb@codesourcery.com>
772
773 * macroexp.c (init_buffer): Remove testing code that overrides the
774 caller's length guess.
775 (gather_arguments): Use a larger initial size, now that the vector
776 growth code has been exercised.
777
5d9643ba
PA
7782007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
779
780 * solib-target.c (solib_target_relocate_section_addresses): Add
781 orig_delta to addr_high.
782
27e06d3e
MS
7832007-08-04 Michael Snyder <msnyder@access-company.com>
784
1ed489bd
MS
785 * remote-fileio.c (remote_fileio_func_write): Memory leak.
786
c1f5197e
MS
787 * breakpoint.c (print_one_breakpoint): Off by one error.
788
27e06d3e
MS
789 * tracepoint.c (add_register): Off by one error.
790 (stringify_collection_list): Free malloc buffer.
791
03b4bca2
MS
7922007-08-03 Michael Snyder <msnyder@access-company.com>
793
474d0d0c
MS
794 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
795 stop memory leak, straighten out cleanups.
796
03b4bca2
MS
797 * jv-lang.c (java_link_class_type): Guard against NULL.
798
423c0af8
MS
7992007-08-02 Michael Snyder <msnyder@access-company.com>
800
f9780d5b
MS
801 * gdbtypes.c (create_set_type): Test should only be done within
802 the preceeding if block. Otherwise, variable is uninitialized.
803
423c0af8
MS
804 * gdbtypes.c (check_typedef): Guard NULL.
805
c0645fb5
MS
8062007-08-01 Michael Snyder <msnyder@access-company.com>
807
3cebf8d8
MS
808 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
809 avoid dereference in lookup_cmd_1.
810
c0645fb5
MS
811 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
812 clean up long lines.
813 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
814 (tui_alloc_win_info): Ditto.
815 (tui_add_content_elements): Ditto.
816 * tui/tui-file.c (tui_file_magic): Ditto.
817
abe34c35
MS
8182007-07-31 Michael Snyder <msnyder@access-company.com>
819
967af18d
MS
820 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
821 True and false paths are mutually exclusive.
822
40742ab6
MS
823 * event-top.c (command_line_handler): Add pedantic return.
824
7c6e0d48
MS
825 * f-valprint.c (info_common_command): Bail out to prevent null
826 pointer deref. Break up a long line.
827
c7b1adc9
MS
828 * exec.c (xfer_memory): Remove redundant condition from 'if'.
829
73780b3c
MS
830 * symfile.c (reread_separate_symbols): Free xmalloced memory.
831
abe34c35
MS
832 * printcmd.c (build_address_symbolic): Remove dead code and dead
833 variable.
834
e48883f7
DJ
8352007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
836
837 * linespec.c (minsym_found): Advance to the next line if possible.
838
57204837
PA
8392007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
840
841 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
842 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
843 solib-svr4.o, and add solib-target.o
844
fed8b01e
MS
8452007-07-27 Michael Snyder <msnyder@access-company.com>
846
847 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
848
9ceb0b4c
MR
8492007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
850
851 * MAINTAINERS (Write After Approval): Add myself.
852
c80a96a8
MR
8532007-07-26 Maciej W. Rozycki <macro@mips.com>
854
855 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
856 for include files.
857
5b311828
MR
8582007-07-25 Maciej W. Rozycki <macro@mips.com>
859
860 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
861
f52df7d9 8622007-07-24 Michael Snyder <msnyder@access-company.com>
55765a25 863
f52df7d9
MS
864 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
865 'buffer' must cover both branches that call strcmp (Coverity).
55765a25 866
f52df7d9 867 * stack.c (print_frame_args): Check return value of lookup_symbol.
747f3d18
MS
868
869 * ax-gdb.c (find_field): Guard against null ptr.
870
69ae91d3
UW
8712007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
872
873 * regformats/reg-spu.dat: Fix order of npc, id registers.
874
98646950
UW
8752007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
876
877 * target.c (memory_xfer_partial): Accesses to unmapped overlay
878 sections should always go to the executable file.
879
193774b3
MR
8802004-07-20 Chris Dearman <chris@mips.com>
881
882 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
883 prologue instructions.
884
ce1f96de
MR
8852007-07-20 Maciej W. Rozycki <macro@mips.com>
886
887 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
888 a direct test.
889
bcf1ea1e
MR
8902007-07-20 Chris Dearman <chris@mips.com>
891 Maciej W. Rozycki <macro@mips.com>
892
893 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
894 description.
895
255e7678
DJ
8962007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
897 Daniel Jacobowitz <dan@codesourcery.com>
898
899 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
900 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
901 printf.
902 * NEWS: Mention gdbserver DLL support.
903
a8c50c1f
DJ
9042007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
905
906 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
907
2e024c20
L
9082007-07-16 H.J. Lu <hongjiu.lu@intel.com>
909
910 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
911 warning bug.
912
f219aedc
KB
9132007-07-13 Kevin Buettner <kevinb@redhat.com>
914
915 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
916 instruction case.
917
1ba3e7a3
KB
9182007-07-12 Kevin Buettner <kevinb@redhat.com>
919
920 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
921 (mep_analyze_prologue): Add case for BRA instruction.
922
f1e55806
UW
9232007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
924
925 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
926
d9f71b56
NR
9272007-07-10 Nick Roberts <nickrob@snap.net.nz>
928
929 * breakpoint.c: Include "top.h".
930 (breakpoint_1): Don't set convenience variable $_ if server prefix
931 is used.
932 (_initialize_breakpoint): Describe this behaviour in command help.
933
358eb95e
PA
9342007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
935
936 * solib-target.c (library_list_start_segment): Cast address to
937 CORE_ADDR.
938
a4e7b2e7
MK
9392007-07-06 Mark Kettenis <kettenis@gnu.org>
940
941 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
942 for terminated processes.
943
2ed23f5f
MS
9442007-07-05 Michael Snyder <msnyder@access-company.com>
945
946 * event-top.c (cli_command_loop): Prompt string can (and should)
947 be freed after call to readline (Coverity). Also move local var
948 declarations into block where they are used.
949
950 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
951 should) be freed after call to readline (Coverity). Also move
952 local var declarations into block where they are used.
953
a25694b4
AS
9542007-07-03 Andreas Schwab <schwab@suse.de>
955
956 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
957 /proc/../stat.
958
2bbe3cc1
DJ
9592007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
960 Thiago Bauermann <bauerman@br.ibm.com>
961 Joseph S. Myers <joseph@codesourcery.com>
962 Daniel Jacobowitz <dan@codesourcery.com>
963
964 * remote.c (remote_check_symbols): Use
965 gdbarch_convert_from_func_ptr_addr.
966 * infcall.c (find_function_addr): Handle function descriptors
967 without debugging information.
968 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
969 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
970 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
971 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
972 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
973 allow SEC_CODE and SEC_DATA.
974 (enable_break): Update calls. Pass current_target to solib_add.
975 Use gdbarch_convert_from_func_ptr_addr.
976
9f43d28c
DJ
9772007-07-03 Ilko Iliev <iliev@ronetix.at>
978 Daniel Jacobowitz <dan@codesourcery.com>
979
980 * symfile.c (print_transfer_performance): Avoid integer overflow.
981 Use larger units.
982
3a40aaa0
UW
9832007-07-03 Markus Deuling <deuling@de.ibm.com>
984
985 * cp-namespace.c (lookup_symbol_file): Add block to
986 lookup_symbol_global call.
987 * Makefile.in (solist_h): Add dependency on symtab header.
988 (symtab.o): Add dependency on solist header.
989 * solib.c (solib_global_lookup): New function.
990 * solib-svr4.c (scan_dyntag): Likewise.
991 (elf_locate_base): Call helper routine scan_dyntag.
992 (elf_lookup_lib_symbol): New function.
993 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
994 * solist.h (symtab.h): New include.
995 (struct target_so_ops): New member lookup_lib_global_symbol.
996 (solib_global_lookup): New prototype.
997 * symtab.c: New include solist.h.
998 (lookup_objfile_from_block): New function.
999 (lookup_global_symbol_from_objfile): New function.
1000 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1001 (lookup_symbol_global): Call library-specific lookup procedure.
1002 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1003
1004 * NEWS: Document framework.
1005
c8c12293
DJ
10062007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1007
1008 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1009 to NULL.
1010
1011 * cli/cli-script.c (build_command_line): Update NULL check.
1012
7877e977
MS
10132007-07-02 Michael Snyder <msnyder@access-company.com>
1014
1015 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1016
cfa9d6d9
DJ
10172007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1018
1019 * Makefile.in (XMLFILES): Add library-list.dtd.
1020 (ALLDEPFILES): Add solib-target.o.
1021 (solib-target.o): New rule.
1022 * remote.c (PACKET_qXfer_libraries): New constant.
1023 (remote_protocol_features): Add qXfer:libraries:read.
1024 (remote_wait): Recognize library stop replies.
1025 (remote_async_wait): Likewise. Fix typo.
1026 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1027 (init_remote_async_ops): Fix typo.
1028 (_initialize_remote): Register "set remote library-info-packet".
1029 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1030 * solib-target.c: New file.
1031 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1032 of textsection.
1033 (info_sharedlibrary_command): Likewise.
1034 (solib_add_library, solib_remove_library): New.
1035 * solist.h (struct so_list): Replace textsection with addr_low and
1036 addr_high.
1037 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1038 * NEWS: Describe new qXfer:libraries:read and shared library
1039 event support.
1040 * features/library-list.dtd: New.
1041
b0f4b84b
DJ
10422007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1043
1044 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1045 (start_remote): Use STOP_QUIETLY_REMOTE.
1046 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1047 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1048 Update to match shared library event breakpoint support. Only
1049 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1050 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1051 * fork-child.c (startup_inferior): Do not set
1052 inferior_ignoring_startup_exec_events
1053 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1054 declaration.
1055 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1056
9bbf65bb
UW
10572007-07-02 Markus Deuling <deuling@de.ibm.com>
1058
1059 * breakpoint.c (insert_bp_location): Remove dead code
1060 (DISABLE_UNSETTABLE_BREAK).
1061 (disable_breakpoints_in_shlibs)
1062 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1063
a4954f26
DJ
10642007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1065
1066 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1067 Call insert_bp_location.
1068
b48516f9
L
10692007-07-01 H.J. Lu <hongjiu.lu@intel.com>
1070
1071 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1072 alias warning bug.
1073
96225718
DJ
10742007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1075
1076 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1077 objfiles.
1078
1b05479a
DJ
10792007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1080
1081 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1082 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1083 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1084 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1085 to display_gdb_prompt.
1086
5ad3a4ca
DJ
10872007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1088
1089 PR symtab/2161
1090 * target.c (memory_xfer_partial): Do not continue past targets with
1091 all memory.
1092
4ed77933
AS
10932007-06-30 Andreas Schwab <schwab@suse.de>
1094
4713453b
AS
1095 * m68k-tdep.c (m68k_ps_type): New.
1096 (m68k_init_types): New.
1097 (m68k_register_type): Use m68k_ps_type for PS register.
1098 (_initialize_m68k_tdep): Call m68k_init_types.
1099
4ed77933
AS
1100 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1101 from the generic m68k arch.
1102
dd3526aa
MS
11032007-06-28 Michael Snyder <msnyder@access-company.com>
1104
f08312c2
MS
1105 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1106 (Coverity).
1107
a787bedf
MS
1108 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1109 gdb_assert before using return value of find_thread_pid (Coverity).
1110
77accacd
MS
1111 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1112
dd3526aa
MS
1113 * cli/cli-script.c (build_command_line): Add null pointer guard
1114 (Coverity).
1115
4105de34
DJ
11162007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
1117
1118 * linux-thread-db.c (thread_db_attach): Delete.
1119 (thread_db_detach): Typo fix. Call target_mourn_inferior
1120 instead of fixing up proc_handle.
1121 (have_threads_callback, have_threads): New functions.
1122 (thread_db_wait): Remove dead proc_handle.pid check. Only
1123 translate PTIDs if we have registered threads. Check for new
1124 threads if we have none.
1125 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1126 (find_new_threads_callback): Only enable event reporting if TID == 0.
1127 (same_ptid_callback): New.
1128 (thread_db_get_thread_local_address): Check for new threads.
1129 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1130 or to_post_startup_inferior.
1131
1c0fdd0e
UW
11322007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1133
1134 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1135 is always active if SOFTWARE_SINGLE_STEP_P is true.
1136 (resume): Use gdbarch_software_single_step[_p] instead of
1137 SOFTWARE_SINGLE_STEP[_P].
1138 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1139
1140 * gdbarch.sh (software_single_step): Remove target macro.
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142
e487cc15
UW
11432007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1144
1145 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1146 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1147 (struct gdbarch_swap, struct gdbarch_swap_registration,
1148 struct gdbarch_swap_registry, gdbarch_swap_registry,
1149 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1150 current_gdbarch_swap_in_hack): Remove.
1151 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1152 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1153 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1154 (deprecated_current_gdbarch_select_hack): Likewise.
1155 * gdbarch.h, gdbarch.c: Regenerate.
1156
d5c31457
UW
11572007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1158
1159 * infrun.c (clear_proceed_status): Clean up stop_registers.
1160 (normal_stop): Allocate regcache for stop_registers.
1161 (struct inferior_status): Remove stop_registers member.
1162 (save_inferior_status): Do not save stop_registers.
1163 (restore_inferior_status): Do not restore stop_registers.
1164 (discard_inferior_status): Do not discard stop_registers.
1165 (build_infrun): Remove.
1166 (_initialize_infrun): Do not swap stop_registers.
1167
911c95a5
UW
11682007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1169
1170 * remote.c (remote_address_masked): If remote_address_size is zero,
1171 default to target address size.
1172 (build_remote_gdbarch_data): Remove.
1173 (_initialize_remote): Do not swap remote_address_size.
1174
5674de60
UW
11752007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1176
1177 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1178 builtin_type_char, builtin_type_short, builtin_type_int,
1179 builtin_type_long, builtin_type_signed_char,
1180 builtin_type_unsigned_char, builtin_type_unsigned_short,
1181 builtin_type_unsigned_int, builtin_type_unsigned_long,
1182 builtin_type_float, builtin_type_double, builtin_type_long_double,
1183 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1184 builtin_type_bool, builtin_type_long_long,
1185 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1186 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1187 variable declaration with compatibility macro.
1188 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1189 builtin_type_char, builtin_type_short, builtin_type_int,
1190 builtin_type_long, builtin_type_signed_char,
1191 builtin_type_unsigned_char, builtin_type_unsigned_short,
1192 builtin_type_unsigned_int, builtin_type_unsigned_long,
1193 builtin_type_float, builtin_type_double, builtin_type_long_double,
1194 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1195 builtin_type_bool, builtin_type_long_long,
1196 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1197 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1198 (build_gdbtypes): Remove.
1199 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1200 opaque-type-resolution command here. Do not call
1201 deprecated_register_gdbarch_swap.
1202
64c50499
UW
12032007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1204
1205 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1206 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1207 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1208
1209 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1210 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1211 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1212 (build_parse): Remove.
1213 (_initialize_parse): Do not call build_parse. Do not register
1214 msym_ types for gdbarch-swapping.
1215
1216 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1217 instead of creating private type.
1218
1219 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1220 (_initialize_xcoffread): Do not initialized them.
1221 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1222
1223 * mdebugread.c (nodebug_func_symbol_type): Remove.
1224 (nodebug_var_symbol_type): Remove.
1225 (_initialize_mdebugread): Do not initialize them.
1226 (parse_symbol): Use builtin nodebug_ type instead of them.
1227 (parse_procedure): Likewise.
1228
6a2eb474
MR
12292007-06-21 Chris Dearman <chris@mips.com>
1230
1231 * printcmd.c (do_one_display): If display/i, start with an initial
1232 line feed to avoid bad layout if there is a branch delay slot.
1233
a4642986
MR
12342007-06-21 Nigel Stephens <nigel@mips.com>
1235 Maciej W. Rozycki <macro@mips.com>
1236
1237 * disasm.c (gdb_print_insn): Return the number of branch delay
1238 slot instructions too.
1239 * disasm.h (gdb_print_insn): Update prototype.
1240 * printcmd.c (branch_delay_insns): New variable to record the
1241 number of delay slot instructions after disassembling a branch.
1242 (print_formatted): Record the number of branch delay slot
1243 instructions.
1244 (do_examine): When disassembling, if the last instruction
1245 disassembled has any branch delay slots, then bump the count so
1246 that they get disassembled too.
1247 * tui/tui-disasm.c (tui_disassemble): Update the call to
1248 gdb_print_insn().
1249 * NEWS: Document the new behaviour.
1250
ade28716
AS
12512007-06-21 Andreas Schwab <schwab@suse.de>
1252
1253 * regcache.c (write_pc_pid): Restore missing else.
1254
28c38f10
UW
12552007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
1256
1257 * regcache.c (regcache_print): Use get_current_regcache ()
1258 instead of current_regcache.
1259
52b57208
L
12602007-06-20 H.J. Lu <hongjiu.lu@intel.com>
1261
1262 PR 4606
1263 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1264 instead of bfd_make_section_anyway.
1265 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1266 when clearing SEC_LOAD.
1267
8bf8793c
JM
12682007-06-19 Joseph Myers <joseph@codesourcery.com>
1269
1270 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1271 registers for big-endian.
1272
7f5c84d3
UW
12732007-06-19 Markus Deuling <deuling@de.ibm.com>
1274
1275 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1276 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1277 * gdbarch.c, gdbarch.h: Regenerate.
1278
f73e88f9
UW
12792007-06-19 Markus Deuling <deuling@de.ibm.com>
1280
1281 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1282 gdbarch_believe_pcc_promotion.
1283 * stabsread.c (define_symbol): Likewise.
1284 Remove unnecessary definition.
1285 * coffread.c (process_coff_symbol): Remove unnecessary code.
1286 * gdbarch.c, gdbarch.h: Regenerate.
1287
cab58a69
DJ
12882007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
1289
1290 * configure.ac: Do not use ${objdir}.
1291 * configure: Regenerated.
1292
f0c9063c
UW
12932007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
1294
1295 * gdbarch.sh (deprecated_register_size): Remove.
1296 * gdbarch.h, gdbarch.c: Regenerate.
1297
1298 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1299 by INT_REGISTER_SIZE.
1300 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1301 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1302 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1303 set_gdbarch_deprecated_register_size.
1304
064f5156
UW
13052007-06-18 Markus Deuling <deuling@de.ibm.com>
1306
1307 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1308 gdbarch_deprecated_fp_regnum.
1309 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1310 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1311 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1312 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1313 (comment).
1314 * gdbarch.c, gdbarch.h: Regenerate.
1315
13162007-06-18 Markus Deuling <deuling@de.ibm.com>
1317
1318 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1319 gdbarch_extract_return_value.
1320 * value.c (generic_use_struct_convention): Likewise (comment).
1321 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1322 * arch-utils.c (legacy_return_value): Likewise.
1323 * arch-utils.h (legacy_return_value): Likewise (comment).
1324 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1325 gdbarch_store_return_value.
1326 * stack.c (return_command): Likewise (comment).
1327 * arch-utils.h (legacy_return_value): Likewise (comment).
1328 * arch-utils.c (legacy_return_value): Likewise.
1329 * gdbarch.c, gdbarch.h: Regenerate.
1330
b187c476
UW
13312007-06-18 Markus Deuling <deuling@de.ibm.com>
1332
1333 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1334 gdbarch_deprecated_use_struct_convention.
1335 * arch-utils.c (legacy_return_value): Likewise.
1336 * gdbarch.c, gdbarch.h: Regenerate.
1337
cbf3b44a
UW
13382007-06-18 Markus Deuling <deuling@de.ibm.com>
1339
1340 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1341 gdbarch_deprecated_function_start_offset.
1342 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1343 * linespec.c (minsym_found): Likewise.
1344 * infrun.c (handle_inferior_event): Likewise.
1345 * infcall.c (find_function_addr): Likewise.
1346 * cli/cli-cmds.c (disassemble_command): Likewise.
1347 * gdbarch.c, gdbarch.h: Regenerate.
1348
bceb6e50
UW
13492007-06-18 Markus Deuling <deuling@de.ibm.com>
1350
1351 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1352 gdbarch_deprecated_reg_struct_has_addr.
1353 * infcall.c (call_function_by_hand): Likewise.
1354 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1355 * gdbarch_deprecated_reg_struct_has_addr_p.
1356 * infcall.c (call_function_by_hand): Likewise.
1357 * gdbarch.c, gdbarch.h: Regenerate.
1358
8ed6a7ba
UW
13592007-06-18 Markus Deuling <deuling@de.ibm.com>
1360
1361 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1362 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1363 (sh_gdbarch_init): Remove
1364 set_gdbarch_deprecated_extract_struct_value_address.
1365 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1366 (sh64_gdbarch_init): Remove
1367 set_gdbarch_deprecated_extract_struct_value_address.
1368 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1369 (ia64_gdbarch_init): Remove
1370 set_gdbarch_deprecated_extract_struct_value_address.
1371 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1372 (frv_gdbarch_init): Remove
1373 set_gdbarch_deprecated_extract_struct_value_address.
1374 * gdbarch.c, gdbarch.h: Regenerate.
1375
3e8c568d
UW
13762007-06-18 Markus Deuling <deuling@de.ibm.com>
1377
1378 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1379 * v850-tdep.c (v850_unwind_sp): Likewise.
1380 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1381 * stack.c (frame_info): Likewise.
1382 * stabsread.c (define_symbol): Likewise.
1383 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1384 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1385 (sh_unwind_sp): Likewise.
1386 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1387 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1388 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1389 (rs6000_frame_cache): Likewise.
1390 * rs6000-nat.c (store_register): Likewise.
1391 * remote-mips.c (mips_wait): Likewise.
1392 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1393 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1394 (ppc64_sysv_abi_push_dummy_call): Likewise.
1395 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1396 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1397 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1398 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1399 * m32r-rom.c (m32r_supply_register): Likewise.
1400 * frame.c (frame_sp_unwind): Likewise.
1401 * mips-tdep.c (mips_insn16_frame_cache)
1402 (mips_insn32_frame_cache): Likewise (comment).
1403 * m68klinux-nat.c (supply_gregset): Likewise.
1404 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1405 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1406 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1407 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1408 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1409 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1410 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1411 (cris_register_type, crisv32_register_type)
1412 (cris_dwarf2_frame_init_reg): Likewise.
1413 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1414 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1415 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1416 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1417
1418 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1419 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1420 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1421 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1422 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1423 * v850-tdep.c (v850_unwind_pc): Likewise.
1424 * stack.c (frame_info): Likewise.
1425 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1426 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1427 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1428 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1429 (sh_dsp_show_regs): Likewise.
1430 * shnbsd-tdep.c (shnbsd_supply_gregset)
1431 (shnbsd_collect_gregset): Likewise.
1432 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1433 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1434 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1435 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1436 (6000_register_reggroup_p, rs6000_unwind_pc)
1437 (rs6000_frame_cache): Likewise.
1438 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1439 (rs6000_store_inferior_registers): Likewise.
1440 * remote-mips.c (mips_wait, mips_load): Likewise.
1441 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1442 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1443 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1444 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1445 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1446 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1447 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1448 (store_ppc_registers, fill_gregset): Likewise.
1449 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1450 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1451 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1452 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1453 * m68klinux-nat.c (supply_gregset): Likewise.
1454 * irix5-nat.c (fill_gregset): Likewise.
1455 * i386-tdep.c (i386_unwind_pc): Likewise.
1456 * i386-linux-nat.c (i386_linux_resume): Likewise.
1457 * frame.c (get_prev_frame_1): Likewise.
1458 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1459 * dbug-rom.c (dbug_supply_register): Likewise.
1460 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1461 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1462 (cris_register_type, crisv32_register_type, crisv32_register_name)
1463 (cris_dwarf2_frame_init_reg, find_step_target)
1464 (cris_software_single_step, cris_supply_gregset)
1465 (cris_regnums): Likewise.
1466 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1467 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1468 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1469 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1470 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1471
1472 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1473 * dbug-rom.c (dbug_supply_register): Likewise.
1474 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1475 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1476 * win32-nat.c (win32_resume): Likewise.
1477 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1478 * m68k-tdep.c (m68k_register_type): Likewise.
1479 * m68klinux-nat.c (supply_gregset): Likewise.
1480
1481 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1482 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1483 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1484 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1485 (fv_reg_base_num, dr_reg_base_num): Likewise.
1486 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1487 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1488 (sh64_extract_return_value, sh64_store_return_value)
1489 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1490 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1491 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1492 (invalidate_cache): Likewise.
1493 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1494 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1495 (mipsnbsd_fill_fpreg): Likewise.
1496 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1497 (mipsnbsd_store_inferior_registers): Likewise.
1498 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1499 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1500 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1501 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1502 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1503 (fill_fpregset): Likewise.
1504 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1505 * i386-tdep.h (struct_return): Likewise (comment).
1506 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1507 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1508 (go32_store_registers): Likewise.
1509 * alpha-tdep.c (alpha_next_pc): Likewise.
1510 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1511 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1512 (alphabsd_store_inferior_registers): Likewise.
1513 * core-regset.c (fetch_core_registers): Likewise.
1514 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1515
1516 * gdbarch.c, gdbarch.h: Regenerate.
1517
31d99776
DJ
15182007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
1519
1520 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1521 * dbxread.c (start_psymtab): Check HAVE_ELF.
1522 (aout_sym_fns): Likewise.
1523 * elfread.c (elf_symfile_segments): New.
1524 (elf_sym_fns): Add elf_symfile_segments.
1525 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1526 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1527 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1528 * somread.c (som_sym_fns): Use default_symfile_segments.
1529 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1530 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1531 (default_symfile_segments): New function.
1532 (syms_from_objfile): Update call to find_sym_fns.
1533 (symfile_get_segment_data, free_symfile_segment_data): New.
1534 (symfile_map_offsets_to_segments): New.
1535 (symfile_find_segment_sections): New.
1536 * symfile.h (struct symfile_segment_data): New.
1537 (struct sym_fns): Add sym_segments.
1538 (default_symfile_segments, symfile_get_segment_data)
1539 (free_symfile_segment_data): New prototypes.
1540 (symfile_map_offsets_to_segments): Likewise.
1541 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1542 * Makefile.in (COMMON_OBS): Remove elfread.o.
1543 (elf_internal_h): New.
1544 (elfread.o): Update.
1545 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1546 compiled.
1547 * config.in, configure: Regenerated.
1548 * NEWS: Mention qOffsets changes.
1549
5760b90a
UW
15502007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1551
1552 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1553 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1554 Replace global variable declaration with compatibility macro.
1555 (struct builtin_m2_type): New data type.
1556 (builtin_m2_type): Add prototype.
1557 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1558 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1559 Remove global variables.
1560 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1561 (build_m2_types): New function.
1562 (m2_type_data): New variable.
1563 (builtin_m2_type): New function.
1564 (_initialize_m2_language): Do not build data types. Register
1565 m2_type_data per-gdbarch data.
1566
54ef06c7
UW
15672007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1568
1569 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1570 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1571 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1572 builtin_type_f_real_s8, builtin_type_f_real_s16,
1573 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1574 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1575 variable declaration with compatibility macro.
1576 (struct builtin_f_type): New data type.
1577 (builtin_f_type): Add prototype.
1578 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1579 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1580 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1581 builtin_type_f_real_s8, builtin_type_f_real_s16,
1582 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1583 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1584 (f_language_arch_info): Use builtin_f_type instead of variables.
1585 (build_fortran_types): Build builtin_f_type structure instead of
1586 setting global type variables.
1587 (f_type_data): New variable.
1588 (builtin_f_type): New function.
1589 (_initialize_f_language): Do not call build_fortran_types. Do not
1590 swap global type variables. Register f_type_data per-gdbarch data.
1591
92e0cef4
UW
15922007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1593
1594 * f-lang.c (_initialize_f_language): Do not initialize or
1595 swap builtin_type_string.
1596
5d8140d1
UW
15972007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1598
0e7b1906
UW
1599 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1600 value_of_builtin_frame_reg): Remove.
1601 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1602 inactive call to value_of_builtin_frame_reg.
1603
16042007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1605
1606 * gdbarch.sh (bfd_vma_bit): Remove.
5d8140d1
UW
1607 * gdbarch.c, gdbarch.h: Regenerate.
1608
1609 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1610 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1611 (build_gdbtypes): Do not initialize it.
1612 (_initialize_gdbtypes): Do not swap it.
1613
794ac428
UW
16142007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1615
1616 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1617 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1618 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1619 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1620 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1621 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1622 builtin_type_vec64, builtin_type_vec128): Remove.
1623 (init_simd_type): Remove.
1624 (init_vector_type): Make global.
1625 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1626 (build_gdbtypes): Do not build vector types.
1627 (_initialize_gdbtypes): Do not swap vector types.
1628 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1629 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1630 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1631 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1632 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1633 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1634 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1635 (init_vector_type): Add prototype.
1636
1637 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1638 i386_sse_type members.
1639 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1640 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1641 (i386_init_types): Do not build vector types.
1642 (i386_mmx_type, i386_sse_type): New functions.
1643 (i386_register_type): Call them instead of using global variables.
1644 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1645 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1646 of using global variable.
1647
1648 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1649 and ppc_builtin_type_vec128 members.
1650 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1651 (rs6000_builtin_type_vec128): Likewise.
1652 (rs6000_register_type): Call them instead of using builtin_type_vec64
1653 and builtin_type_vec128.
1654 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1655
1656 * spu-tdep.c (struct gdbarch_tdep): New data type.
1657 (spu_builtin_type_vec128): Remove variable.
1658 (spu_builtin_type_vec128): New function.
1659 (spu_register_type): Call it instead of using global variable.
1660 (spu_gdbarch_init): Allocate tdep structure.
1661 (spu_init_vector_type): Remove function.
1662 (_initialize_spu_tdep): Do not call it.
1663
6707b003
UW
16642007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1665
1666 * amd64-tdep.c (struct amd64_register_info): Remove.
1667 (amd64_register_info): Remove.
1668 (amd64_register_names): New static variable.
1669 (AMD64_NUM_REGS): Use amd64_register_names instead of
1670 amd64_register_info.
1671 (amd64_register_name): Likewise.
1672 (amd64_register_type): Do not refer to amd64_register_info.
1673
1674 * s390-tdep.c (struct s390_register_info): Remove.
1675 (s390_register_info): Remove.
1676 (s390_register_name): Do not refer to s390_register_info.
1677 (s390_register_type): Likewise.
1678
1679 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1680 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1681 (sparc64_register_names, sparc64_pseudo_register_names): New.
1682 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1683 sparc64_register_names and sparc64_pseudo_register_names instead of
1684 sparc64_register_info and sparc64_pseudo_register_info.
1685 (sparc64_register_name): Likewise.
1686 (sparc64_register_type): Do not refer to sparc64_register_info
1687 and sparc64_pseudo_register_info.
1688
cad351d1
UW
16892007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1690
1691 * c-lang.c (cplus_builtin_types): Remove.
1692 (enum cplus_primitive_types): New data type.
1693 (cplus_language_arch_info): New function.
1694 (cplus_language_defn): Set la_language_arch_info member. Do not set
1695 la_builtin_type_vector and string_char_type members.
1696
1697 * f-lang.c (f_builtin_types): Remove.
1698 (enum f_primitive_types): New data type.
1699 (f_language_arch_info): New function.
1700 (f_language_de): Set la_language_arch_info member. Do not set
1701 la_builtin_type_vector and string_char_type members.
1702
1703 * m2-lang.c (m2_builtin_types): Remove.
1704 (enum m2_primitive_types): New data type.
1705 (m2_language_arch_info): New function.
1706 (m2_language_defn): Set la_language_arch_info member. Do not set
1707 la_builtin_type_vector and string_char_type members.
1708
1709 * objc-lang.c (objc_builtin_types): Remove.
1710 (objc_language): Set la_language_arch_info member. Do not set
1711 la_builtin_type_vector and string_char_type members.
1712
1713 * p-lang.c (pascal_builtin_types): Remove.
1714 (enum pascal_primitive_types): New data type.
1715 (pascal_language_arch_info): New function.
1716 (pascal_language_defn): Set la_language_arch_info member. Do not set
1717 la_builtin_type_vector and string_char_type members.
1718
594f7785
UW
17192007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1720
1721 * regcache.c (struct regcache): Add ptid_t member.
1722 (regcache_xmalloc): Initialize it.
1723 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1724 (regcache_dup): Likewise.
1725 (regcache_dup_no_passthrough): Likewise.
1726 (current_regcache): Make static.
1727 (registers_ptid): Remove variable.
1728 (get_thread_regcache): New function.
1729 (get_current_regcache): New function.
1730 (registers_changed): Implement by freeing current regcache.
1731 (regcache_raw_read): Do not refer to current_regcache. Set
1732 inferior_ptid to regcache->ptid while calling target routines.
1733 (regcache_raw_write): Likewise.
1734 (regcache_raw_supply): Do not refer to current_regcache.
1735 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1736 (write_pc_pid): Likewise.
1737 (build_regcache): Remove.
1738 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1739 or deprecated_register_gdbarch_swap. Do not initialize
1740 registers_ptid.
1741 * regcache.h (get_current_regcache): Add prototype.
1742 (get_thread_regcache): Likewise.
1743 (current_regcache): Remove declaration.
1744
1745 * corelow.c (core_open): Replace current_regcache by
1746 get_current_regcache ().
1747 * frame.c (frame_pop): Likewise.
1748 (put_frame_register): Likewise.
1749 (get_current_frame, create_new_frame): Likewise.
1750 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1751 * stack.c (return_command): Likewise.
1752 * infcall.c (call_function_by_hand): Likewise.
1753 * infrun.c (resume): Likewise.
1754 (save_inferior_status, restore_inferior_status): Likewise.
1755 * linux-fork.c (fork_load_infrun_state): Likewise.
1756 (fork_save_infrun_state): Likewise.
1757 * win32-nat.c (win32_resume): Likewise.
1758 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1759 * monitor.c (monitor_wait): Likewise.
1760 * remote.c (remote_wait): Likewise.
1761 * remote-mips.c (mips_wait): Likewise.
1762
1763 * bsd-kvm.c (bsd_kvm_open): Likewise
1764 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1765 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1766 * i386-linux-nat.c (i386_linux_resume): Likewise.
1767 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1768 (ia64_linux_stopped_data_address): Likewise.
1769
1770 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1771 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1772 * mep-tdep.c (current_me_module, current_options): Likewise.
1773 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1774
1775 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1776 regcache instead of current_regcache. Call target_fetch_registers.
1777 (linux_nat_corefile_thread_callback): Update call site.
1778 (linux_nat_do_registers): Likewise.
1779 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1780 of current_regcache.
1781 (procfs_make_note_section): Likewise.
1782 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1783 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1784 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1785 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1786
51a7a212
UW
17872007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1788
1789 * regcache.c (read_register, read_register_pid): Remove.
1790 (write_register, write_register_pid): Likewise.
1791 * regcache.h (read_register, read_register_pid): Remove prototype.
1792 (write_register, write_register_pid): Likewise.
1793
61a1198a
UW
17942007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1795
1796 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1797 (write_pc): Likewise. Remove default implementation, add predicate.
1798 * gdbarch.c, gdbarch.h: Regenerate.
1799 * regcache.c (read_pc_pid): Use current regcache instead of calling
1800 read_register_pid.
1801 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1802 case inline.
1803 (generic_target_write_pc): Remove.
1804 * inferior.h (generic_target_write_pc): Remove.
1805 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1807 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1808 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1809 * sh-tdep.c (sh_gdbarch_init): Likewise.
1810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1811
1812 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1813 argument. Use REGCACHE instead of calling read_register_pid.
1814 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1815 * hppa-tdep.c (hppa_read_pc): Likewise.
1816 * hppa-tdep.h (hppa_read_pc): Likewise.
1817 * ia64-tdep.c (ia64_read_pc): Likewise.
1818 * m32r-tdep.c (m32r_read_pc): Likewise.
1819 * mep-tdep.c (mep_read_pc): Likewise.
1820 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1821 * spu-tdep.c (spu_read_pc): Likewise.
1822
1823 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1824 argument. Use REGCACHE instead of calling write_register_pid.
1825 * avr-tdep.c (avr_write_pc): Likewise.
1826 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1827 * hppa-tdep.c (hppa_write_pc): Likewise.
1828 * hppa-tdep.h (hppa_write_pc): Likewise.
1829 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1830 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1831 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1832 * ia64-tdep.c (ia64_write_pc): Likewise.
1833 * ia64-tdep.h (ia64_write_pc): Likewise.
1834 * m32r-tdep.c (m32r_write_pc): Likewise.
1835 * m88k-tdep.c (m88k_write_pc): Likewise.
1836 * mep-tdep.c (mep_write_pc): Likewise.
1837 * mips-tdep.c (mips_write_pc): Likewise.
1838 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1839 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1840 * sparc-tdep.c (sparc_write_pc): Likewise.
1841 * spu-tdep.c (spu_write_pc): Likewise.
1842
1843 * mips-tdep.c (read_signed_register): Remove.
1844 (read_signed_register_pid): Likewise.
1845 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1846 Use REGCACHE instead of calling read_signed_register_pid.
1847
e4fd649a
UW
18482007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1849
1850 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1851 * gdbarch.c, gdbarch.h: Regenerate.
1852 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1853 (push_dummy_code): Likewise. Pass it to callee.
1854 (call_function_by_hand): Pass current regcache to push_dummy_code.
1855
1856 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1857 argument. Use it instead of current_regcache.
1858
1859 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1860 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1861
60ade65d
UW
18622007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1863
1864 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1865 * gdbarch.c, gdbarch.h: Regenerate.
1866 * infrun.c (handle_inferior_event): Pass current frame to
1867 gdbarch_get_longjmp_target.
1868
1869 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1870 Read registers from FRAME instead of using read_register.
1871 Use get_frame_arch instead of current_gdbarch.
1872 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1873 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1874 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1875 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1876 (mips64_linux_get_longjmp_target): Likewise.
1877 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1878
52f729a7
UW
18792007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1880
1881 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1882 * gdbarch.c, gdbarch.h: Regenerate.
1883 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1884 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1885 * infrun.c (handle_inferior_event): Pass current frame to
1886 gdbarch_skip_trampoline_code and skip_language_trampoline.
1887
1888 * language.c (unk_lang_trampoline): Add FRAME argument.
1889 (skip_language_trampoline): Add FRAME argument. Pass it to
1890 skip_trampoline callback.
1891 * language.h: Add forward declaration of struct frame_info.
1892 (struct language_defn): Add FRAME argument to skip_trampoline.
1893 (skip_language_trampoline): Add FRAME argument.
1894 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1895 to skip_trampoline callback.
1896 * cp-abi.h: Add forward declaration of struct frame_info.
1897 (cplus_skip_trampoline): Add FRAME argument.
1898 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1899 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1900 to gdbarch_skip_trampoline_code.
1901 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1902 to gdbarch_skip_trampoline_code.
1903
1904 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1905 * symtab.h (find_solib_trampoline_target): Likewise.
1906 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1907 find_solib_trampoline_target.
1908
1909 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1910 from FRAME instead of calling read_register.
1911
1912 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1913 argument. Read registers from FRAME instead of using read_register.
1914 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1915 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1916
1917 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1918 argument.
1919
1920 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1921
1922 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1923 registers from FRAME instead of using read_signed_register.
1924
1925 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1926 argument.
1927 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1928 instead of using read_register.
1929 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1930 ppc64_standard_linkage_target.
1931 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1932 Pass it to find_solib_trampoline_target. Read registers from FRAME
1933 instead of using read_register.
1934
1935 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1936 argument.
1937
0b1b3e42
UW
19382007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1939
1940 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1941 FRAME argument.
1942 * gdbarch.c, gdbarch.h: Regenerate.
1943 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1944
1945 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1946 registers from FRAME instead of using read_register.
1947 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1948 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1949 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1950 argument by FRAME.
1951
1952 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1953 from FRAME instead of using read_register.
1954 (thumb_get_next_pc): Likewise.
1955 (arm_get_next_pc): Likewise.
1956 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1957 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1958 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1959 argument by FRAME.
1960
1961 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1962 from FRAME instead of using read_register.
1963 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1964 to find_step_target.
1965
1966 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1967 from FRAME instead of using read_register / read_signed_register.
1968 (extended_mips16_next_pc): Likewise.
1969 (mips16_next_pc): Likewise.
1970 (mips_next_pc): Likewise.
1971 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1972 to mips_next_pc. Use get_frame_pc instead of read_pc.
1973 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1974 argument by FRAME.
1975
1976 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1977 of current frame. Read registers from FRAME.
1978 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1979 branch_dest. Use get_frame_pc instead of read_pc.
1980 (rs6000_software_single_step): Likewise.
1981 (bl_to_blrl_insn_p): Do not call branch_dest.
1982 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1983 argument by FRAME.
1984
1985 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1986 Read registers from FRAME instead of current regcache.
1987 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1988 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1989 * sparc-tdep.c (sparc_address_from_register): Remove.
1990 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1991 GDBARCH. Pass FRAME to step_trap callback.
1992 (sparc_step_trap): Add FRAME argument.
1993 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1994 to sparc_analyze_control_transfer. Read registers from FRAME instead
1995 of calling sparc_address_from_register.
1996 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1997 step_trap callback.
1998 (sparc_address_from_register): Remove prototype.
1999 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2000 (sparcnbsd_step_trap): Add FRAME argument.
2001
2002 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2003 by FRAME. Read registers from FRAME instead of REGCACHE.
2004
9c9acae0
UW
20052007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2006
2007 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2008 instead of calling read_register.
2009
2010 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2011 calling write_register.
2012
2013 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2014 calling write_register.
2015
2016 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2017 instead of calling read_register.
2018 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2019 instead of calling read_register and write_register.
2020
2021 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2022 instead of current_regcache.
2023
2024 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2025 of calling write_register.
2026 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2027 parameter instead of current_regcache.
2028
2029 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2030 instead of calling read_register.
2031 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2032 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2033 (mips_n32n64_push_dummy_call): Likewise.
2034 (mips_o32_push_dummy_call): Likewise.
2035 (mips_o64_push_dummy_call): Likewise.
2036
2037 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2038 parameter instead of current_regcache.
2039
2040 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2041 Use it instead of read_register and write_register.
2042 (xtensa_register_read_masked): Likewise.
2043 (xtensa_pseudo_register_read): Update call.
2044 (xtensa_pseudo_register_write): Likewise.
2045 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2046 instead of calling read_register.
2047 (xtensa_push_dummy_call): Update comment.
2048
d2ca4222
UW
20492007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2050
2051 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2052 by frame_unwind_register_signed calls.
2053 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2054 frame allocations when called with NULL NEXT_FRAME parameter.
2055 (read_next_frame_reg): Remove.
2056
2057 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2058 instead of reading the FPSCR register.
2059 (sh_frame_cache): Pass unwound FPSCR register value to
2060 sh_analyze_prologue.
2061 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2062
2063 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2064 instead of reading the CTBP register.
2065 (v850_frame_cache): Pass unwound CTBP register value to
2066 v850_analyze_prologue.
2067
c458d6db
UW
20682007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2069
2070 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2071 * sh-tdep.c (sh_show_regs): Likewise.
2072 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2073 (sh_generic_show_regs): Add FRAME parameter. Use register
2074 values from that frame instead of calling read_register.
2075 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2076 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2077 sh_dsp_show_regs): Likewise.
2078 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2079 sh64_show_regs): Likewise.
2080
a9614958
UW
20812007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2082
2083 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2084 current regcache instead of calling read_register.
2085
3d1a74ac
UW
20862007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2087
2088 * mep-tdep.c (current_me_module): Read from current regcache
2089 instead of calling read_register.
2090 (current_options): Likewise.
2091
1b5a9a8f
UW
20922007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2093
2094 * cris-tdep.c (cris_stopped_data_address): Read register values
2095 from current frame instead of calling read_register.
2096 * frv-tdep.c (frv_stopped_data_address): Likewise.
2097
982db460
UW
20982007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2099
2100 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2101 instead of write_register (PC_REGNUM, ...).
2102
b4397864
UW
21032007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2104
2105 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2106 explaining why the PC adjustment code is necessary.
2107
8ed86d01
VP
21082007-06-15 Vladimir Prus <vladimir@codesourcery.com>
2109
2110 * m68k-tdep.h (enum m68k_flavour): New.
2111 (struct gdbarch_tdep): New fields
2112 float_return, flavour and fpregs_present.
2113 * m68k-tdep.c (m68k_register_type): Use
2114 fpregs_present and conditionalize floating
2115 registers type on flavour.
2116 (m68k_register_names): New.
2117 (m68k_register_name): Use the above.
2118 (m68k_convert_register_p): Consult fpregs_present.
2119 (m68k_register_to_value, m68k_value_to_register):
2120 Use register_type to obtain the type of floating
2121 point registers.
2122 (m68k_svr4_extract_return_value): Check tdep->float_return.
2123 Use register_type to get the type of floating
2124 point regiters.
2125 (m68k_svr4_store_return_value): Likewise.
2126 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2127 (m68k_analyze_register_saves): Likewise.
2128 (m68k_gdbarch_init): Extract infromation
2129 from XML description, if present. Guess coldfire by
2130 looking at the file, if present. Conditionalize
2131 setting of long double format. Set decr_pc_after_break
2132 to 2 on coldfire and fido. Enable XML-driven
2133 register description.
2134 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2135 size of tdep->fpreg_type, as opposed to hardcoded value.
2136 * Makefile.in (m68k-tdep.o): Update dependencies.
2137
83cc5c53
UW
21382007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2139
2140 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2141 qXfer:spu:write remote packet types.
2142
1780a0ed
DJ
21432007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2144
2145 * xml-tdesc.c (tdesc_start_target): New.
2146 (target_attributes): New.
2147 (tdesc_elements): Use it.
2148 * features/gdb-target.dtd: Add #FIXED version attribute for
2149 <target>.
2150
98a29c7e
DJ
21512007-06-13 Arthur Huillet <arthur.huillet@free.fr>
2152
2153 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2154
9dcbb931
DJ
21552007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
2156
2157 * fork-child.c (fork_inferior): Update comment.
2158
117ce543
DJ
21592007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2160
2161 * features/Makefile: Generate regformats for mips-linux and
2162 mips64-linux.
2163 * features/sort-regs.xsl: Correct typo.
2164 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2165 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2166 files.
2167
822b6570
DJ
21682007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2169
2170 * config/mips/linux.mh (TDEP_XML): New.
2171 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2172 * mips-linux-nat.c (mips_linux_register_addr): Handle
2173 MIPS_RESTART_REGNUM.
2174 (mips64_linux_register_addr): Likewise.
2175 (super_xfer_partial, mips_linux_xfer_partial): New.
2176 (_initialize_mips_linux_nat): Add them to the target_ops.
2177 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2178 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2179 (mips_linux_o32_sigframe_init)
2180 (mips_linux_n32n64_sigframe_init): Likewise.
2181 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2182 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2183 "org.gnu.gdb.mips.linux" feature.
2184 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2185 (mips_linux_restart_reg_p): New prototype.
2186 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2187 initialization routine.
2188 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2189
f8b73d13
DJ
21902007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2191
2192 * Makefile.in (mips-tdep.o): Update.
2193 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2194 (mips_n32_n64_aliases, mips_register_aliases): New.
2195 (mips_register_name): Call tdesc_register_name.
2196 (mips_tdesc_register_reggroup_p): New.
2197 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2198 (mips_gdbarch_init): Add target-described register support.
2199 Register aliases for register names.
2200 * target-descriptions.c (tdesc_register_name): Make global.
2201 (tdesc_register_in_reggroup_p): New function, broken out from
2202 tdesc_register_reggroup_p.
2203 (tdesc_register_reggroup_p): Use it.
2204 * target-descriptions.h (tdesc_register_name)
2205 (tdesc_register_in_reggroup_p): New prototypes.
2206 * NEWS: Correct formatting. Mention MIPS register support.
2207 * features/mips-cp0.xml, features/mips-fpu.xml,
2208 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2209 features/mips64-cpu.xml: New files.
2210
17a912b6
UW
22112007-06-13 Markus Deuling <deuling@de.ibm.com>
2212
2213 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2214 * valops.c (value_cast): Likewise.
2215 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2216 * ui-out.c (ui_out_field_core_addr): Likewise.
2217 * tracepoint.c (tracepoints_info): Likewise.
2218 * symtab.c (print_msymbol_info): Likewise.
2219 * solib-irix.c (irix_current_sos)
2220 (irix_open_symbol_file_object): Likewise.
2221 * remote.c (build_remote_gdbarch_data): Likewise.
2222 * prologue-value.c (make_pv_area): Likewise.
2223 * procfs.c (info_mappings_callback): Likewise.
2224 * printcmd.c (print_scalar_formatted)
2225 (deprecated_print_address_numeric): Likewise.
2226 * memattr.c (mem_info_command): Likewise.
2227 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2228 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2229 * exec.c (print_section_info): Likewise.
2230 * dwarf2read.c (read_subrange_type): Likewise.
2231 * dwarf2loc.c (find_location_expression): Likewise.
2232 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2233 (signed_address_type, execute_stack_op): Likewise.
2234 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2235 * gdbarch.c, gdbarch.h: Regenerate.
2236
1143fffb
UW
22372007-06-13 Markus Deuling <deuling@de.ibm.com>
2238
2239 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2240 * arch-utils.c (show_architecture): Likewise.
2241 * remote-mips.c (mips_open): Likewise
2242 * nto-tdep.c (nto_find_and_open_solib)
2243 (nto_init_solib_absolute_prefix): Likewise.
2244 * nto-procfs (procfs_open): Likewise.
2245 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2246 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2247 * gdbarch.c, gdbarch.h: Regenerate.
2248
4fe99ffb
UW
22492007-06-13 Markus Deuling <deuling@de.ibm.com>
2250
2251 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2252 * gdbtypes.c (build_flt): Likewise.
2253 * gdbarch.c, gdbarch.h: Regenerate.
2254
3b3b875c
UW
22552007-06-13 Markus Deuling <deuling@de.ibm.com>
2256
2257 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2258 gdbarch_breakpoint_from_pc.
2259 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2260 * remote.c (remote_insert_breakpoint)
2261 (remote_insert_hw_breakpoint): Likewise.
2262 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2263 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2264 * breakpoint.h (bp_target_info): Likewise (comment).
2265 * breakpoint.c (read_memory_nobpt): Likewise.
2266 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2267 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2268 * gdbarch.c, gdbarch.h: Regenerate.
2269
819844ad
UW
22702007-06-13 Markus Deuling <deuling@de.ibm.com>
2271
2272 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2273 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2274 * solib-pa64.c (read_dynamic_info): Likewise.
2275 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2276 * solib.c (info_sharedlibrary_command): Likewise.
2277 * s390-nat.c (SUBOFF): Likewise.
2278 * p-valprint.c (pascal_val_print): Likewise.
2279 * procfs.c (info_proc_mappings): Likewise.
2280 * printcmd.c (decode_format): Likewise.
2281 * nto-tdep.c (nto_truncate_ptr): Likewise.
2282 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2283 (mips64_linux_get_longjmp_target): Likewise.
2284 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2285 * jv-valprint.c (java_value_print): Likewise.
2286 * jv-lang.c (get_java_object_header_size): Likewise.
2287 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2288 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2289 (hppa_hpux_unwind_adjust_stub): Likewise.
2290 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2291 * gdbtypes.c (make_pointer_type, make_reference_type)
2292 (smash_to_memberptr_type): Likewise.
2293 * gdbarch.c, gdbarch.h: Regenerate.
2294
0cc93a06
DJ
22952007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2296
2297 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2298 (print_gp_register_row): Stop before printing a register bigger
2299 than the ABI register size.
2300 (mips_print_registers_info): Update call to mips_print_register.
2301
67f3407f
DJ
23022007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2303
2304 * expression.h (enum exp_opcode): Document a register name for
2305 OP_REGISTER.
2306 * parse.c (write_dollar_variable): Write the register name for
2307 OP_REGISTER.
2308 (operator_length_standard): Expect the register name following
2309 OP_REGISTER.
2310 * ada-lang.c (resolve_subexp): Likewise.
2311 * ax-gdb.c (gen_expr): Likewise.
2312 * eval.c (evaluate_subexp_standard): Likewise.
2313 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2314 Likewise.
2315 * tracepoint.c (encode_actions): Likewise.
2316
0caa462c
DJ
23172007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
2318
2319 * utils.c (set_screen_size): Use INT_MAX for default columns.
2320
4de6483e
UW
23212007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2322
2323 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2324 qXfer:spu:write packet types.
2325
cafad45b
UW
23262007-06-12 Markus Deuling <deuling@de.ibm.com>
2327
2328 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2329 * gdbarch.c, gdbarch.h: Regenerate.
2330
055d23b8
UW
23312007-06-12 Markus Deuling <deuling@de.ibm.com>
2332
2333 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2334 gdbarch_stab_reg_to_regnum.
2335 * stabsread.c (define_symbol): Likewise.
2336 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2337 gdbarch_ecoff_reg_to_regnum.
2338 * mdebugread.c (parse_symbol): Likewise.
2339 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2340 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2341 gdbarch_dwarf_reg_to_regnum.
2342 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2343 * coffread.c (process_coff_symbol): Likewise.
2344 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2345 gdbarch_dwarf2_reg_to_regnum.
2346 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2347 (locexpr_describe_location): Likewise.
2348 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2349 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2350 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2351 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2352 * gdbarch.c, gdbarch.h: Regenerate.
2353
260edbc2
UW
23542007-06-12 Markus Deuling <deuling@de.ibm.com>
2355
2356 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2357 gdbarch_smash_text_address.
2358 * somread.c (som_symtab_read): Likewise.
2359 * elfread.c (record_minimal_symbol): Likewise.
2360 * dbxread.c (process_one_symbol): Likewise.
2361 * coffread.c (coff_symtab_read): Likewise.
2362 * gdbarch.c, gdbarch.h: Regenerate.
2363
c1afe53d
UW
23642007-06-12 Markus Deuling <deuling@de.ibm.com>
2365
2366 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2367 * findvar.c (value_from_register): Likewise.
2368 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2369 * valops.c (value_assign): Likewise.
2370 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2371 gdbarch_convert_register_p.
2372 * findvar.c (value_from_register): Likewise.
2373 * valops.c (value_assign): Likewise.
2374 * gdbarch.c, gdbarch.h: Regenerate.
2375
474c1661
UW
23762007-06-12 Markus Deuling <deuling@de.ibm.com>
2377
2378 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2379 gdbarch_register_sim_regno.
2380 * sim-regno.h (sim_regno): Likewise (comment).
2381 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2382 * gdbarch.c, gdbarch.h: Regenerate.
2383
c7bb205c
UW
23842007-06-12 Markus Deuling <deuling@de.ibm.com>
2385
2386 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2387 gdbarch_virtual_frame_pointer.
2388 * tracepoint.c (encode_actions): Likewise.
2389 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2390 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2391 * gdbarch.c, gdbarch.h: Regenerate.
2392
ea06eb3d
UW
23932007-06-12 Markus Deuling <deuling@de.ibm.com>
2394
2395 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2396 * p-lang.c (pascal_create_fundamental_type): Likewise.
2397 * objc-lang.c (objc_create_fundamental_type): Likewise.
2398 * mdebugread.c (_initialize_mdebugread): Likewise.
2399 * m2-lang.c (m2_create_fundamental_type)
2400 (_initialize_m2_language): Likewise.
2401 * gdbtypes.c (build_gdbtypes): Likewise.
2402 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2403 * doublest.c (floatformat_from_length): Likewise.
2404 * c-lang.c (c_create_fundamental_type): Likewise.
2405 * ada-lang.c (ada_create_fundamental_type)
2406 (ada_language_arch_info): Likewise.
2407 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2408 * value.c (unpack_double): Likewise (comment).
2409 * gdbtypes.c (build_gdbtypes): Likewise.
2410 * doublest.c (floatformat_from_length): Likewise.
2411 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2412 * valarith.c (value_binop): Likewise.
2413 * p-lang.c (pascal_create_fundamental_type): Likewise.
2414 * objc-lang.c (objc_create_fundamental_type): Likewise.
2415 * mdebugread.c (_initialize_mdebugread): Likewise.
2416 * m2-lang.c (m2_create_fundamental_type): Likewise.
2417 * gdbtypes.c (build_gdbtypes): Likewise.
2418 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2419 * doublest.c (floatformat_from_length): Likewise.
2420 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2421 * c-lang.c (c_create_fundamental_type): Likewise.
2422 * ada-lex.l (processReal): Likewise.
2423 * ada-lang.c (ada_create_fundamental_type)
2424 (ada_language_arch_info): Likewise.
2425 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2426 * value.c (unpack_double): Likewise (comment).
2427 * gdbtypes.c (build_gdbtypes): Likewise.
2428 * doublest.c (floatformat_from_length): Likewise.
2429 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2430 gdbarch_long_double_bit.
2431 * p-lang.c (pascal_create_fundamental_type): Likewise.
2432 * objc-lang.c (objc_create_fundamental_type): Likewise.
2433 * m2-lang.c (m2_create_fundamental_type): Likewise.
2434 * gdbtypes.c (build_gdbtypes): Likewise.
2435 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2436 * doublest.c (floatformat_from_length): Likewise.
2437 * c-lang.c (c_create_fundamental_type): Likewise.
2438 * ada-lex.l (processReal): Likewise.
2439 * ada-lang.c (ada_create_fundamental_type)
2440 (ada_language_arch_info): Likewise.
2441 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2442 gdbarch_long_double_format.
2443 * gdbtypes.c (build_gdbtypes): Likewise.
2444 * doublest.c (floatformat_from_length): Likewise.
2445 * gdbarch.c, gdbarch.h: Regenerate.
2446
9a76efb6
UW
24472007-06-12 Markus Deuling <deuling@de.ibm.com>
2448
2449 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2450 * ada-lang.c (ada_create_fundamental_type)
2451 (ada_language_arch_info): Likewise.
2452 * c-lang.c (c_create_fundamental_type): Likewise.
2453 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2454 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2455 * m2-lang.c (m2_create_fundamental_type): Likewise.
2456 * objc-lang.c (objc_create_fundamental_type): Likewise.
2457 * p-lang.c (pascal_create_fundamental_type): Likewise.
2458 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2459 * c-exp.y (parse_number): Likewise.
2460 * objc-exp.y (parse_number): Likewise.
2461 * ada-lex.l (processInt): Likewise.
2462 * f-exp.y (parse_number): Likewise.
2463 * p-exp.y (parse_number): Likewise.
2464 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2465 (gdbtypes_post_init, build_gdbtypes): Likewise.
2466 * p-lang.c (pascal_create_fundamental_type): Likewise.
2467 * parse.c (build_parse): Likewise.
2468 * xcoffread.c (_initialize_xcoffread): Likewise.
2469 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2470 (read_range_type): Likewise.
2471 * objc-lang.c (objc_create_fundamental_type): Likewise.
2472 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2473 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2474 (m2_create_fundamental_type): Likewise.
2475 * c-lang.c (c_create_fundamental_type): Likewise.
2476 * coffread.c (coff_read_enum_type): Likewise.
2477 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2478 * dwarf2read.c (new_symbol): Likewise.
2479 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2480 * c-exp.y (parse_number): Likewise.
2481 * objc-exp.y (parse_number): Likewise.
2482 * ada-lex.l (processInt): Likewise.
2483 * f-exp.y (parse_number): Likewise.
2484 * p-exp.y (parse_number): Likewise.
2485 * valarith.c (value_binop): Likewise.
2486 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2487 * ada-lang.c (ada_create_fundamental_type)
2488 (ada_language_arch_info): Likewise.
2489 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2490 * symfile.c (TARGET_LONG_BYTES): Likewise.
2491 * p-lang.c (pascal_create_fundamental_type): Likewise.
2492 * objc-lang.c (objc_create_fundamental_type): Likewise.
2493 * m2-lang.c (m2_create_fundamental_type): Likewise.
2494 * f-lang.c (f_create_fundamental_type): Likewise.
2495 * c-lang.c (c_create_fundamental_type): Likewise.
2496 * coffread.c (decode_base_type): Likewise.
2497 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2498 * c-exp.y (parse_number): Likewise.
2499 * objc-exp.y (parse_number): Likewise.
2500 * p-exp.y (parse_number): Likewise.
2501 * ada-lang.c (ada_create_fundamental_type)
2502 (ada_language_arch_info): Likewise.
2503 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2504 * stabsread.c (read_range_type): Likewise.
2505 * p-lang.c (pascal_create_fundamental_type): Likewise.
2506 * objc-lang.c (objc_create_fundamental_type): Likewise.
2507 * m2-lang.c (m2_create_fundamental_type): Likewise.
2508 * f-lang.c (f_create_fundamental_type): Likewise.
2509 * c-lang.c (c_create_fundamental_type): Likewise.
2510 * gdbarch.c, gdbarch.h: Regenerate.
2511
272dfcfd
AS
25122007-06-12 Andreas Schwab <schwab@suse.de>
2513
2514 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2515 (struct frame_unwind): Add dealloc_cache.
2516 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2517
2518 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2519 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2520 (libunwind_frame_unwind): Set dealloc_cache.
2521 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2522
0e7f50da
UW
25232007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2524 Markus Deuling <deuling@de.ibm.com>
2525
2526 * remote.c (remote_write_qxfer): New function.
2527 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2528 (remote_read_qxfer): Do not cache empty objects.
2529 (_initialize_remote): Add PACKET_qXfer_spu_read and
2530 PACKET_qXfer_spu_write.
2531
23d964e7
UW
25322007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2533
2534 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2535 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2536
2537 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2538 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2539 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2540 * spu-tdep.c (infospucmdlist): New variable.
2541 (spu_register_name): Handle additional pseudo registers.
2542 (spu_register_type): Likewise.
2543 (spu_pseudo_register_read): Likewise.
2544 (spu_pseudo_register_write): Likewise.
2545 (spu_pseudo_register_read_spu): New function.
2546 (spu_pseudo_register_write_spu): Likewise.
2547 (info_spu_event_command): New function.
2548 (info_spu_signal_command): Likewise.
2549 (info_spu_mailbox_list): Likewise.
2550 (info_spu_mailbox_command): Likewise.
2551 (spu_mfc_get_bitfield): Likewise.
2552 (info_spu_dma_cmdlist): Likewise.
2553 (info_spu_dma_command): Likewise.
2554 (info_spu_proxydma_command): Likewise.
2555 (info_spu_command): Likewise.
2556 (_initialize_spu_tdep): Install "info spu" commands.
2557
374c1d38
UW
25582007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2559
2560 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2561 accessing non-seekable spufs files.
2562
e76f05fa
UW
25632007-06-09 Markus Deuling <deuling@de.ibm.com>
2564
2565 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2566 gdbarch_skip_trampoline_code.
2567 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2568 * objc-lang.c (objc_skip_trampoline)
2569 (objc_submethod_helper_data): Likewise.
2570 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2571 * infrun.c (handle_inferior_event): Likewise.
2572 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2573 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2574 gdbarch_in_solib_return_trampoline.
2575 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2576 * infrun.c (handle_inferior_event): Likewise.
2577 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2578 * gdbarch.c, gdbarch.h: Regenerate.
2579
a433963d
UW
25802007-06-09 Markus Deuling <deuling@de.ibm.com>
2581
2582 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2583 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2584 * linespec.c (minsym_found): Likewise.
2585 * infrun.c (step_into_function): Likewise.
2586 * gdbarch.c, gdbarch.h: Regenerate.
2587
aea8766f
UW
25882007-06-09 Markus Deuling <deuling@de.ibm.com>
2589
2590 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2591 * valops.c (value_allocate_space_in_inferior): Likewise.
2592 * gdbarch.c, gdbarch.h: Regenerate.
2593
8da95a30
UW
25942007-06-09 Markus Deuling <deuling@de.ibm.com>
2595
2596 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2597 gdbarch_memory_insert_breakpoint.
2598 * mem-break.c (memory_insert_breakpoint): Likewise.
2599 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2600 gdbarch_memory_remove_breakpoint.
2601 * mem-break.c (memory_remove_breakpoint): Likewise.
2602 * gdbarch.c, gdbarch.h: Regenerate.
2603
985969a9
UW
26042007-06-09 Markus Deuling <deuling@de.ibm.com>
2605
2606 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2607 gdbarch_fetch_tls_load_module_address.
2608 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2609 gdbarch_fetch_tls_load_module_address_p.
2610 * gdbarch.c, gdbarch.h: Regenerate.
2611
b798847d
UW
26122007-06-09 Markus Deuling <deuling@de.ibm.com>
2613
2614 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2615 gdbarch_decr_pc_after_break.
2616 * tracepoint.c (trace_dump_command): Likewise.
2617 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2618 * linux-thread-db.c (check_event): Likewise.
2619 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2620 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2621 * frame.h: Likewise (comment).
2622 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2623 * aix-thread.c (aix_thread_wait): Likewise.
2624 * gdbarch.c, gdbarch.h: Regenerate.
2625
849957d9
UW
26262007-06-09 Markus Deuling <deuling@de.ibm.com>
2627
2628 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2629 gdbarch_address_class_type_flags.
2630 * dwarf2read.c (read_tag_pointer_type): Likewise.
2631 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2632 gdbarch_address_class_type_flags_p.
2633 * dwarf2read.c (read_tag_pointer_type): Likewise.
2634 * gdbarch.c, gdbarch.h: Regenerate.
2635
bf6ae464
UW
26362007-06-09 Markus Deuling <deuling@de.ibm.com>
2637
2638 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2639 * value.c (value_as_address): Likewise (comment).
2640 * remote-mips.c (common_breakpoint): Likewise.
2641 * regcache.c (read_pc_pid): Likewise.
2642 * printcmd.c (do_one_display): Likewise.
2643 * monitor.c (monitor_write_memory, monitor_read_memory)
2644 (monitor_insert_breakpoint): Likewise.
2645 * mips-tdep.c (heuristic_proc_start): Likewise.
2646 * infrun.c (insert_step_resume_breakpoint_at_frame)
2647 (insert_step_resume_breakpoint_at_caller): Likewise.
2648 * buildsym.c (record_line): Likewise.
2649 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2650 (arm_get_next_pc): Likewise.
2651 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2652 (store_regs): Likewise.
2653 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2654 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2655 * gdbarch.c, gdbarch.h: Regenerate.
2656
c9f4d572
UW
26572007-06-09 Markus Deuling <deuling@de.ibm.com>
2658
2659 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2660 * tracepoint.c (scope_info): Likewise.
2661 * target.c (debug_print_register): Likewise.
2662 * stack.c (frame_info): Likewise.
2663 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2664 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2665 (sh64_media_print_registers_info)
2666 (sh64_compact_print_registers_info): Likewise.
2667 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2668 * remote-sim.c (gdbsim_fetch_register): Likewise.
2669 * remote.c (packet_reg): Likewise (comment).
2670 * reggroups.c (default_register_reggroup_p): Likewise.
2671 * regcache.c (regcache_dump): Likewise.
2672 * printcmd.c (address_info): Likewise.
2673 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2674 * mt-dep.c (mt_registers_info): Likewise.
2675 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2676 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2677 (mips_read_fp_register_double, mips_print_fp_register)
2678 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2679 (mips_register_sim_regno): Likewise.
2680 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2681 * inf-ptrace.c (inf_ptrace_fetch_register)
2682 (inf_ptrace_store_register): Likewise.
2683 * infcmd.c (default_print_registers_info): Likewise.
2684 * ia64-linux-nat.c (ia64_linux_fetch_register)
2685 (ia64_linux_store_register): Likewise.
2686 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2687 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2688 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2689 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2690 (hppa_hpux_store_register): Likewise.
2691 * findvar.c (locate_var_value): Likewise.
2692 * dwarf2loc.c (locexpr_describe_location): Likewise.
2693 * dwarf2-frame.c (execute_cfa_program): Likewise.
2694 * arm-tdep.c (arm_push_dummy_call): Likewise.
2695 * arch-utils.c (legacy_register_sim_regno): Likewise.
2696 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2697 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2698 * mi/mi-main.c (mi_cmd_data_list_register_names)
2699 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2700 (mi_cmd_data_write_register_values): Likewise.
2701 * gdbarch.c, gdbarch.h: Regenerate.
2702
1fc01e03
DJ
27032007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2704
2705 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2706
632110b1
VP
27072007-06-06 Vladimir Prus <vladimir@codesourcery.com>
2708
2709 * remote.c (process_g_packet): Don't check size.
2710 * gdbarch.sh: Remove register_bytes_ok.
2711 * gdbarch.c: Regenerated.
2712 * gdbarch.h: Regenerated.
2713 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2714 (m68k_register_bytes_ok): Remove.
2715 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2716
f43ae3f1
AS
27172007-06-06 Andreas Schwab <schwab@suse.de>
2718
2719 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2720 (destroy_addr_space_name): Define.
2721 (libunwind_load): Get address of destroy_addr_space function.
2722 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2723 returning unsuccessfully.
2724 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2725 returning.
2726 (libunwind_sigtramp_frame_sniffer): Likewise.
2727 (libunwind_get_reg_special): Likewise.
2728
d99344c0
UW
27292007-06-06 Markus Deuling <deuling@de.ibm.com>
2730
2731 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2732 gdbarch_fetch_pointer_argument.
2733 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2734 * gdbarch.c, gdbarch.h: Regenerate.
2735
e6cf7916
UW
27362007-06-06 Markus Deuling <deuling@de.ibm.com>
2737
2738 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2739 gdbarch_have_nonsteppable_watchpoint.
2740 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2741 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2742 gdbarch_cannot_step_breakpoint.
2743 * infrun.c (resume): Likewise.
2744 * gdbarch.c, gdbarch.h: Regenerate.
2745
bbcf301a
UW
27462007-06-06 Markus Deuling <deuling@de.ibm.com>
2747
2748 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2749 * stack.c (print_frame_args): Likewise.
2750 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2751 * stack.c (print_args_stub, frame_info): Likewise.
2752 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2753 * stack.c (print_args_stub, frame_info): Likewise.
2754 * gdbarch.c, gdbarch.h: Regenerate.
2755
95f1da47
UW
27562007-06-06 Markus Deuling <deuling@de.ibm.com>
2757
2758 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2759 gdbarch_coff_make_msymbol_special.
2760 * coffread.c (coff_symtab_read): Likewise.
2761 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2762 gdbarch_elf_make_msymbol_special.
2763 * elfread.c (elf_symtab_read): Likewise.
2764 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2765 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2766 * gdbarch.c, gdbarch.h: Regenerate.
2767
39e8369e
UW
27682007-06-06 Markus Deuling <deuling@de.ibm.com>
2769
2770 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2771 gdbarch_frame_red_zone_size.
2772 * gdbarch.c, gdbarch.h: Regenerate.
2773
4d1e7dd1
UW
27742007-06-06 Markus Deuling <deuling@de.ibm.com>
2775
2776 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2777 * infcall.c (call_function_by_hand): Likewise.
2778 * gcore.c (derive_stack_segment): Likewise.
2779 * frame.c (frame_id_inner): Likewise.
2780 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2781 * ada-lang.c (ensure_lval): Likewise.
2782 * gdbarch.c, gdbarch.h: Regenerate.
2783
76e71323
UW
27842007-06-06 Markus Deuling <deuling@de.ibm.com>
2785
2786 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2787 gdbarch_address_to_pointer.
2788 * findvar.c (store_typed_address): Likewise.
2789 * gdbtypes.c (make_pointer_type): Likewise (comment).
2790 * procfs.c (procfs_address_to_host_pointer): Likewise.
2791 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2792 (value_of_builtin_frame_fp_reg): Likewise.
2793 (value_of_builtin_frame_pc_reg): Likewise.
2794 * utils.c (paddress): Likewise (comment).
2795 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2796 gdbarch_pointer_to_address.
2797 * findvar.c (extract_typed_address): Likewise.
2798 * gdbtypes.c (make_pointer_type): Likewise (comment).
2799 * valops.c (value_cast): Likewise (comment).
2800 * gdbarch.c, gdbarch.h: Regenerate.
2801
91104499
UW
28022007-06-06 Markus Deuling <deuling@de.ibm.com>
2803
2804 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2805 * infrun.c (handle_inferior_event): Likewise.
2806 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2807 gdbarch_get_longjmp_target_p.
2808 * breakpoint.c (breakpoint_re_set): Likewise.
2809 * infrun.c (handle_inferior_event): Likewise.
2810 * gdbarch.c, gdbarch.h: Regenerate.
2811
d3e9c991
UW
28122007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2813
2814 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2815 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2816 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2817 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2818 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2819 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2820 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2821 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2822 current_ex_event, child_get_current_exception_event): Remove.
2823 (hppa_hpux_inferior_created): Remove.
2824 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2825
2826 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2827 (deprecated_exception_support_initialized): Remove.
2828 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2829 (deprecated_exception_support_initialized): Remove.
2830 (breakpoint_init_inferior): Remove handling of non-zero
2831 deprecated_exception_catchpoints_are_fragile.
2832
2833 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2834 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2835 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2836 deprecated_hp_som_som_object_present.
2837 * eval.c (evaluate_subexp_standard): Likewise.
2838 * valops.c (value_cast): Likewise.
2839
2840 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2841 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2842 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2843
5e787d22
UW
28442007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
2845
2846 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2847 (struct objfile): Remove import_list, import_list_size,
2848 export_list, export_list_size members.
2849 (is_in_import_list): Remove prototype.
2850 * objfiles.c (is_in_import_list): Remove.
2851 * somread.c (init_import_symbols, init_export_symbols): Remove.
2852 (som_symfile_read): Do not call init_import_symbols. Do not
2853 set objfile->export_list and objfile->export_list_size.
2854
93e7bd98
DJ
28552007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2856
2857 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2858 Use the original objfile if necessary.
2859
e1024ff1
DJ
28602007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
2861
2862 * defs.h (ldirname): New prototype.
2863 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2864 missing.
2865 * utils.c (ldirname): New function.
2866 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2867
ee82e879
UW
28682007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2869
2870 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2871
513f5903
JB
28722007-06-01 Joel Brobecker <brobecker@adacore.com>
2873
2874 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2875
52a75740
UW
28762007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2877
2878 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2879
c3fc7e62
UW
28802007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
2881
2882 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2883 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2884 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2885 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2886 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2887 ppc_linux_at_sigtramp_return_path): Remove.
2888
4c6b5505
UW
28892007-05-31 Markus Deuling <deuling@de.ibm.com>
2890
2891 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2892 (xtensa_register_write_masked, xtensa_register_read_masked)
2893 (xtensa_extract_return_value, xtensa_store_return_value
2894 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2895 TARGET_BYTE_ORDER by gdbarch_byte_order.
2896 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2897 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2898 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2899 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2900 (sh64_push_dummy_call, sh64_extract_return_value)
2901 (sh64_store_return_value, sh64_register_convert_to_virtual)
2902 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2903 (sh64_pseudo_register_write, sh64_do_fp_register)
2904 (sh64_frame_prev_register): Likewise.
2905 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2906 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2907 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2908 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2909 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2910 * ppc-linux-nat.c (store_register): Likewise.
2911 * nto-tdep.c (nto_find_and_open_solib)
2912 (nto_init_solib_absolute_prefix): Likewise.
2913 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2914 (mips_convert_register_p, mips_eabi_push_dummy_call)
2915 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2916 (mips_o32_push_dummy_call, mips_o32_return_value)
2917 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2918 (mips_read_fp_register_single, mips_read_fp_register_double)
2919 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2920 (mips_breakpoint_from_pc): Likewise.
2921 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2922 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2923 (mips_linux_o32_sigframe_init): Likewise.
2924 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2925 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2926 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2927 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2928 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2929 * coffread.c (process_coff_symbol): Likewise.
2930 * arm-tdep.c (convert_from_extended, convert_to_extended)
2931 (gdb_print_insn_arm): Likewise.
2932
f57d151a
UW
29332007-05-31 Markus Deuling <deuling@de.ibm.com>
2934
2935 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2936 * i386-tdep.c (i386_dbx_reg_to_regnum)
2937 (i386_svr4_reg_to_regnum): Likewise.
2938 * inf-ptrace.c (inf_ptrace_fetch_registers)
2939 (inf_ptrace_store_registers): Likewise.
2940 * corelow.c (get_core_registers): Likewise.
2941 * i386-linux-nat.c (supply_gregset, fill_gregset)
2942 (i386_linux_fetch_inferior_registers)
2943 (i386_linux_store_inferior_registers): Likewise.
2944 * remote.c (init_remote_state,packet_reg_from_regnum)
2945 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2946 (remote_prepare_to_store,store_registers_using_G)
2947 (remote_store_registers,remote_arch_state): Likewise.
2948 * tracepoint.c (encode_actions): Likewise.
2949 * mi/mi-main.c (mi_cmd_data_list_register_names)
2950 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2951 (mi_cmd_data_write_register_values): Likewise.
2952 * tui/tui-regs.c (tui_show_register_group)
2953 (tui_show_register_group): Likewise.
2954 * xtensa-tdep.h (FP_ALIAS): Likewise.
2955 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2956 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2957 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2958 * win32-nat.c (do_win32_fetch_inferior_registers)
2959 (do_win32_store_inferior_registers,fetch_elf_core_registers
2960 * user-regs.h: Likewise (comment).
2961 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2962 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2963 * target-descriptions.h: Likewise (comment).
2964 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2965 * target.c (debug_print_register): Likewise.
2966 * stack.c (frame_info): Likewise.
2967 * stabsread.c (define_symbol): Likewise.
2968 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2969 (sh64_media_print_registers_info)
2970 (sh64_compact_print_registers_info): Likewise.
2971 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2972 * rs6000-nat.c (fetch_register,store_register): Likewise.
2973 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2974 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2975 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2976 * remote-m32r-sdi.c (m32r_fetch_registers)
2977 (m32r_store_registers): Likewise.
2978 * reggroups.c (default_register_reggroup_p): Likewise.
2979 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2980 (regcache_restore,regcache_dump): Likewise.
2981 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2982 * mips-tdep.c (mips_xfer_register,mips_register_name)
2983 (mips_register_reggroup_p,mips_pseudo_register_read)
2984 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2985 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2986 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2987 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2988 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2989 (print_gp_register_row,mips_print_registers_info)
2990 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2991 (mips_register_sim_regno): Likewise.
2992 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2993 (mips_linux_n32n64_sigframe_init): Likewise.
2994 * mips-linux-nat.c (mips_linux_register_addr)
2995 (mips64_linux_register_addr): Likewise.
2996 * findvar.c (value_of_register): Likewise.
2997 * infcmd.c (default_print_registers_info,registers_info)
2998 (print_vector_info,print_float_info): Likewise.
2999 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3000 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3001 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3002 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3003 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3004 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3005 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3006 (ia64_linux_store_registers): Likewise.
3007 * hpux-thread.c (hpux_thread_fetch_registers)
3008 (hpux_thread_store_registers): Likewise.
3009 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3010 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3011 (h8300_register_type): Likewise.
3012 * dwarf2-frame.c (dwarf2_frame_cache)
3013 (dwarf2_frame_state_alloc_regs): Likewise.
3014 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3015 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3016 (crisv32_cannot_store_register,cris_register_name): Likewise.
3017 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3018 * arch-utils.c (legacy_register_sim_regno)
3019 (legacy_virtual_frame_pointer): Likewise.
3020 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3021 * arm-tdep.h: Likewise (comment).
3022 * frv-tdep.c (frv_register_sim_regno): Likewise.
3023 * m68klinux-nat.c (old_fetch_inferior_registers)
3024 (old_store_inferior_registers): Likewise.
3025 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3026 * irix5-nat.c (fetch_core_registers): Likewise.
3027 * hppa-tdep.c (hppa_frame_cache): Likewise.
3028 * hppa-linux-nat.c (hppa_linux_register_addr)
3029 (hppa_linux_fetch_inferior_registers)
3030 (hppa_linux_store_inferior_registers): Likewise.
3031 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3032 (hppa_hpux_store_inferior_registers): Likewise.
3033 * amd64-nat.c (amd64_native_gregset_reg_offset)
3034 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3035 * dbug-rom.c (dbug_regname): Likewise.
3036 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3037 (HARD_PAGE_REGNUM (comment)): Likewise.
3038 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3039 * i386-tdep.c (i386_dbx_reg_to_regnum)
3040 (i386_svr4_reg_to_regnum): Likewise.
3041 * mi/mi-main.c (mi_cmd_data_list_register_names)
3042 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3043 (mi_cmd_data_write_register_values): Likewise.
3044 * gdbarch.c, gdbarch.h: Regenerate.
3045 * tui/tui-regs.c (tui_show_register_group): Likewise.
3046 * xtensa-tdep.h (FP_ALIAS): Likewise.
3047 * user-regs.h: Likewise (comment).
3048 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3049 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3050 * target-descriptions.h: Likewise (comment).
3051 * target.c (debug_print_register): Likewise.
3052 * stack.c (frame_info): Likewise.
3053 * stabsread.c (define_symbol): Likewise.
3054 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3055 (sh64_compact_print_registers_info): Likewise.
3056 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3057 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3058 (regcache_restore,regcache_dump): Likewise.
3059 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3060 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3061 (mips_stab_reg_to_regnum): Likewise.
3062 * findvar.c (value_of_register): Likewise.
3063 * infcmd.c (default_print_registers_info,registers_info)
3064 (print_vector_info,print_float_info): Likewise.
3065 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3066 * h8300-tdep.c (h8300_register_type): Likewise.
3067 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3068 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3069 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3070 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3071 * parse.c: Remove comment.
3072 * gdbarch.c, gdbarch.h: Regenerate
3073
8d4c1ba3
UW
30742007-05-31 Markus Deuling <deuling@de.ibm.com>
3075
3076 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3077 gdbarch_cannot_fetch_register.
3078 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3079 * hppa-linux-nat.c (fetch_register): Likewise.
3080 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3081 * m68klinux-nat.c (fetch_register): Likewise.
3082 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3083 Likewise.
3084 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3085 gdbarch_cannot_store_register.
3086 * hppa-linux-nat.c (store_register): Likewise.
3087 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3088 * regcache.c (regcache_raw_write): Likewise.
3089 * m68klinux-nat.c (store_register): Likewise.
3090 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3091 * gdbarch.c, gdbarch.h: Regenerate.
3092
3f4844da
UW
30932007-05-31 Markus Deuling <deuling@de.ibm.com>
3094
3095 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3096 * gdbarch.c, gdbarch.h: Regenerate.
3097
6c6b19fd
UW
30982007-05-31 Markus Deuling <deuling@de.ibm.com>
3099
3100 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3101 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3102 * gdbarch.c, gdbarch.h: Regenerate.
3103
0d20ae72
UW
31042007-05-31 Markus Deuling <deuling@de.ibm.com>
3105
3106 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3107 * ax-gdb.c (gen_bitfield_ref): Likewise.
3108 * mi/mi-main.c (get_register): Likewise.
3109 * findvar.c (default_value_from_register, extract_signed_integer)
3110 (extract_unsigned_integer, extract_long_unsigned_integer)
3111 (store_signed_integer, store_unsigned_integer): Likewise.
3112 * regcache.c (regcache_dump): Likewise.
3113 * value.c (lookup_internalvar, value_of_internalvar)
3114 (set_internalvar): Likewise.
3115 * defs.h: Likewise.
3116 * valprint.c (print_binary_chars, print_octal_chars)
3117 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3118 * infcmd.c (default_print_registers_info): Likewise.
3119 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3120 * stabsread.c (define_symbol): Likewise.
3121 * doublest.c (floatformat_from_length, floatformat_from_type)
3122 (extract_typed_floating, store_typed_floating): Likewise.
3123 * gdbarch.c, gdbarch.h: Regenerate.
3124
faaf634c
UW
31252007-05-31 Markus Deuling <deuling@de.ibm.com>
3126
3127 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3128 gdbarch_call_dummy_location.
3129 * infcall.c (call_function_by_hand): Likewise.
3130 * inferior.h: Change comment.
3131 * arch-utils.c: Change comment.
3132 * gdbarch.c, gdbarch.h: Regenerate.
3133
8905984d
JB
31342007-05-28 Joel Brobecker <brobecker@adacore.com>
3135
3136 * solib-aix5.c: Delete.
3137 * Makefile.in (solib-aix5.o): Delete rule.
3138
ab14ee8d
DJ
31392007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
3140
3141 * breakpoint.h (enum bpstat_what_main_action): Remove
3142 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3143 * infrun.c (process_event_stop_test): Do not check for it.
3144
23776285
MR
31452007-05-22 Chris Dearman <chris@mips.com>
3146 Maciej W. Rozycki <macro@mips.com>
3147
3148 * ser-unix.c (show_serial_hwflow): New function.
3149 (hardwire_raw): Add hardware flow control support.
3150 (_initialize_ser_hardwire): Add "set/show remoteflow".
3151 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3152 * NEWS: Document the new command.
3153
eb368090
UW
31542007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3155
3156 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3157 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3158 define for i[[3456]]86-*-linux* native configurations.
3159 * config.in, configure: Regenerate.
3160
8d08c9ce
JB
31612007-05-19 Joel Brobecker <brobecker@adacore.com>
3162
3163 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3164 a core file. Add comment in the function description.
3165
42be36b3
CT
31662007-05-18 Caroline Tice <ctice@apple.com>
3167
3168 * c-valprint.c (c_value_print): If the initialized field of the
3169 value struct is 0, print out "[uninitialized]" before the value.
3170 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3171 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3172 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3173 ctx->initialized appropriately. Verify no location op follows
3174 DW_OP_GNU_uninit.
3175 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3176 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3177 set_value_initialized.
3178 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3179 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3180 * value.c (struct value): New field, initialized.
3181 (allocate_value): Initialize new field.
3182 (set_value_initialized): New function.
3183 (value_initialized): New function.
3184 * value.h (value_initialized): New extern declaration.
3185 (set_value_initialized): Likewise.
42be36b3 3186
a7c569c8
CT
31872007-05-18 Caroline Tice <ctice@apple.com>
3188
3189 * MAINTAINERS (Write After Approval): Add self.
3190
1e98b326
JB
31912007-05-17 Joel Brobecker <brobecker@adacore.com>
3192
3193 * gdbtypes.c (make_reference_type): Preserve the type chain
3194 and set the length of all the variants of the pointer type.
3195
053cb41b
JB
31962007-05-17 Joel Brobecker <brobecker@adacore.com>
3197
3198 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3199 and set the length of all the variants of the pointer type.
3200
436aafc4
MR
32012007-05-17 Maciej W. Rozycki <macro@mips.com>
3202
3203 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3204 comment.
3205 (mips_o64_push_dummy_call): Reformat a comment.
3206
98f4ab10
Q
32072007-05-17 Qinwei <qinwei@sunnorth.com.cn>
3208
3209 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3210 (score_prologue_frame_base_address): Return fp to keep gdb print
3211 local variables correctly when debugging information is stabs.
3212
3213 (score_analyze_prologue): For software watchpoint, fetch all the
3214 instructions from range [startaddr, pc] once and identify them locally
3215 to reduce memory access.
3216 (score_malloc_and_get_memblock, score_free_memblock)
3217 (score_adjust_memblock_ptr): New functions.
3218 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3219
3220 (score_target_can_use_watch, score_stopped_by_watch)
3221 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3222 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3223 New functions for remote & local hw-watchpoint and hw-breakpoint.
3224
60dfee72
AS
32252007-05-16 Alfred M. Szmidt <ams@gnu.org>
3226
3227 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3228 declarations as well.
3229
190dce09
UW
32302007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3231
3232 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3233 * config/arm/tm-embed.h: Delete file.
3234
3235 * arm-tdep.h (arm_software_single_step): Declare.
3236 * arm-tdep.c (arm_software_single_step): Make global.
3237 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3238 from here to ...
3239 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3240 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3241 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3242 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3243
3244 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3245 allow defines to be overriden by TM file.
3246 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3247 change default to {0xbe,0xbe}.
3248 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3249 arm_obsd_thumb_be_breakpoint): New global variables.
3250 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3251 tdep->thumb_breakpoint_size.
3252 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3253 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3254 tdep->thumb_breakpoint_size.
3255
3256 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3257
1a69e1e4
DJ
32582007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3259
3260 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3261 saved-gpreg-size".
3262
3263 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3264 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3265 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3266 (mips_abi_regsize): Simplify.
3267 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3268 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3269 (mips_o32_return_value, mips_o64_push_dummy_call)
3270 (mips_o64_return_value): Propogate constant register sizes. Use the
3271 ABI register size instead of mips_stack_argsize.
3272 (mips_dump_tdep): Don't print mips_stack_argsize.
3273 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3274 settings.
3275
7d522c90
DJ
32762007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
3277
3278 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3279 * config/mips/tm-linux.h: Delete.
3280 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3281 (mips_linux_in_dynsym_resolve_code): Make static. Use
3282 svr4_in_dynsym_resolve_code.
3283 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3284 set_solib_ops.
3285 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3286 global.
3287 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3288 * Makefile.in (mips-linux-tdep.o): Update.
3289 * solib.c (set_solib_ops): New.
3290 (current_target_so_ops): Update comment.
3291 * solib.h (set_solib_ops): New prototype.
3292
5d51a2db
MR
32932007-05-16 Chris Dearman <chris@mips.com>
3294
3295 * printcmd.c (do_examine): Fix typos in a comment.
3296
07abfebf
RS
32972007-05-16 Richard Sandiford <richard@codesourcery.com>
3298
3299 * configure.ac: Allow sysroots to be relocated under $prefix as
3300 well as $exec_prefix.
3301 * configure: Regenerate.
3302
f5ce4941
UW
33032007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3304
3305 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3306 (offsetof): Do not define.
3307 (find_stub_with_shl_get): Use numerical value 3 instead of
3308 symbolic value TYPE_PROCEDURE.
3309
76e1ee85
DJ
33102007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3311
3312 * gdb_proc_service.h (paddr_t): Delete typedef.
3313 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3314 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3315 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3316 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3317 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3318 * Makefile.in (proc-service.o): Update.
3319
2bd0c3d7
DJ
33202007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3321
3322 * Makefile.in (mips-tdep.o): Update.
3323 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3324 unwinder.
3325
14d06750
DJ
33262007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3327
3328 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3329 instead of store_typed_address.
3330 * value.c (pack_long): New.
3331 (value_from_longest): Use it.
3332 * value.h (pack_long): New prototype.
3333
f2fec864
DJ
33342007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3335
3336 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3337 DW_EH_PE_signed if appropriate.
3338
25e43795
DJ
33392007-05-14 Paul Brook <paul@codesourcery.com>
3340 Daniel Jacobowitz <dan@codesourcery.com>
3341
3342 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3343 function.
3344 (dwarf_decode_lines): Check for line info without a file.
3345
027c0295
DJ
33462007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3347
3348 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3349 as hexadecimal.
3350
dc5000e7
DJ
33512007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3352
3353 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3354 STRUCTOP_STRUCT.
3355 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3356 STRUCTOP_STRUCT.
3357 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3358
30244cd8
UW
33592007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3360
3361 * gdbarch.sh (read_sp): Remove.
3362 * gdbarch.c, gdbarch.h: Regenerate.
3363 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3364
3365 * avr-tdep.c (avr_read_sp): Remove.
3366 (avr_unwind_sp): New function.
3367 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3368 * mips-tdep.c (mips_read_sp): Remove.
3369 (mips_unwind_sp): New function.
3370 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3371 * score-tdep.c (score_read_unsigned_register): Remove.
3372 (score_read_sp): Remove.
3373 (score_unwind_sp): New function.
3374 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3375
84ba0adf
DJ
33762007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
3377
3378 * buildsym.c (start_subfile): Handle absolute pathnames
3379 while comparing subfile names.
3380
e7b17823
UW
33812007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3382
3383 * hppa-hpux-tdep.c: Include "regcache.h".
3384 * hppa-linux-tdep.c: Likewise.
3385 * hppa-tdep.c: Include "gdb_stdint.h".
3386 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3387 it to paddr_nz.
3388 * Makefile.in: Update dependencies.
3389
7157eed4
UW
33902007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3391
3392 * blockframe.c: Remove obsolete comments.
3393 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3394 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3395 * hppa-tdep.h (enum hppa_regnum): Likewise.
3396 * mips-tdep.h: Likewise.
3397 * m68hc11-tdep.c: Likewise.
3398
fb4443d8
UW
33992007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3400
3401 * inferior.h (read_sp): Remove prototype.
3402 * regcache.c (read_sp): Remove.
3403 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3404 * infcall.c (call_function_by_hand): Likewise.
3405 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3406 of calling read_sp.
3407 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3408
7b86a1b8
UW
34092007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3410
3411 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3412 instead of read_register and read_register_pid.
3413
3414 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3415 argument instead of PTID. Use regcache functions instead of
3416 read_register_pid.
3417 (ia64_linux_insert_watchpoint): Update call.
3418 (ia64_linux_stopped_data_address): Use regcache functions
3419 instead of read_register_pid and write_register_pid.
3420
45ecac4b
UW
34212007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3422
3423 * libunwind-frame.h (struct regcache): Add forward declaration.
3424 (libunwind_get_reg_special): Add REGCACHE argument.
3425 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3426 argument. Pass it to unw_init_remote_p.
3427
3428 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3429 libunwind_get_reg_special.
3430 (ia64_access_reg): Remove "write" case.
3431 (ia64_access_fpreg): Likewise. Read from next_frame passed
3432 as callback argument instead of from current_regcache.
3433 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3434 passed as callback argument instead of from current_regcache.
3435 (ia64_access_rse_fpreg): New function.
3436 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3437
0ca420ce
UW
34382007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3439
3440 * NEWS: Mention SPU overlay support.
3441
0a44cb36
UW
34422007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3443
3444 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3445
aa67235e
UW
34462007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3447
3448 * breakpoint.c (remove_breakpoint): Do not remove software
3449 breakpoints in unmapped overlay sections.
3450
dcf52cd8
UW
34512007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3452
3453 * spu-tdep.c: Include "observer.h".
3454 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3455 (spu_overlay_data): New variable.
3456 (struct spu_overlay_table): New type.
3457 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3458 spu_overlay_new_objfile): New functions.
3459 (spu_gdbarch_init): Install spu_overlay_update.
3460 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3461 allocate spu_overlay_data objfile data.
3462
1c772458
UW
34632007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3464
3465 * gdbarch.sh (overlay_update): New gdbarch function.
3466 (struct obj_section): Add forward declaration.
3467 * gdbarch.c, gdbarch.h: Regenerate.
3468
3469 * symfile.c (simple_overlay_update): Make global.
3470 (target_overlay_update): Remove variable.
3471 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3472 target_overlay_update.
3473 (overlay_load_command): Likewise.
3474 * symfile.h (struct obj_section): Add forward declaration.
3475 (simple_overlay_update): Add prototype.
3476
3477 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3478
06d3b283
UW
34792007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3480
3481 * observer.sh: Add "struct objfile" forward declaration.
3482 * target.h (deprecated_target_new_objfile_hook): Remove.
3483 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3484 (clear_symtab_users): Call observer_notify_new_objfile.
3485 (symbol_file_add_with_addrs_or_offsets): Likewise.
3486 * rs6000-nat.c: Include "observer.h".
3487 (vmap_ldinfo): Call observer_notify_new_objfile.
3488 (xcoff_relocate_core): Likewise.
3489 * remote.c (remote_new_objfile_chain): Remove.
3490 (remote_new_objfile): Do not call remote_new_objfile_chain.
3491 (_initialize_remote): Use observer_attach_new_objfile.
3492 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3493 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3494 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3495 * aix-thread.c: Include "observer.h".
3496 (target_new_objfile_chain): Remove.
3497 (new_objfile): Do not call target_new_objfile_chain.
3498 (_initialize_aix_thread): Use observer_attach_new_objfile.
3499 * hpux-thread.c: Include "observer.h"
3500 (target_new_objfile_chain): Remove.
3501 (hpux_thread_new_objfile): Make static. Do not call
3502 target_new_objfile_chain.
3503 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3504 * linux-thread-db.c: Include "observer.h".
3505 (target_new_objfile_chain): Remove.
3506 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3507 (_initialize_thread_db): Use observer_attach_new_objfile.
3508 * sol-thread.c: Include "observer.h".
3509 (target_new_objfile_chain): Remove.
3510 (sol_thread_new_objfile): Make static. Do not call
3511 target_new_objfile_chain.
3512 (_initialize_sol_thread): Use observer_attach_new_objfile.
3513 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3514 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3515 $(observer_h).
3516
93ce7684
UW
35172007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3518
3519 * gdbarch.sh (remote_translate_xfer_address): Remove.
3520 * gdbarch.h, gdbarch.c: Regenerate.
3521 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3522 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3523 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3524 call gdbarch_remote_translate_xfer_address.
3525 * frv-tdep.c (frv_gdbarch_init): Do not call
3526 set_gdbarch_remote_translate_xfer_address.
3527 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3528 (ia64_gdbarch_init): Do not install it.
3529
a6ec25f2
BW
35302007-05-11 Bob Wilson <bob.wilson@acm.org>
3531
3532 * NEWS: Mention change in handling the -tui option.
3533
2ef52e77
DJ
35342007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
3535
3536 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3537 typo.
3538
1aafd4da
UW
35392007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3540
3541 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3542 (breakpoint_inserted_here_p): Call it.
3543 (software_breakpoint_inserted_here_p): Likewise.
3544
7714d83a
UW
35452007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
3546
3547 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3548 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3549 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3550 (inf_ptrace_store_register): Likewise.
3551 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3552 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3553
3554 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3555
3556 * linux-nat.c (linux_trad_target): Adapt parameter list.
3557 * linux-nat.h (linux_trad_target): Likewise.
3558
3559 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3560
3561 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3562 (mips_linux_cannot_store_register): Likewise.
3563 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3564 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3565 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3566 (mips64_linux_register_addr): Likewise.
3567 (mips_linux_register_u_offset): Adapt parameter list. Pass
3568 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3569
3570 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3571 * config/mips/nm-linux.h: Delete file.
3572
4ddda9b5
PA
35732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
3574
3575 * remote.c (remote_detach): Error out if remote can't detach.
3576
24d45690
UW
35772007-05-10 Luis Machado <luisgpm@br.ibm.com>
3578
362f854e
PA
3579 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3580 instruction's opcode in the "opcode" variable and declares new
3581 variable "closing_insn".
24d45690 3582
1430be3e
MR
35832007-05-10 Chris Dearman <chris@mips.com>
3584 Maciej W. Rozycki <macro@mips.com>
3585
3586 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3587 whitespace when setting a var_filename.
3588
b0da54f1
BW
35892007-05-09 Bob Wilson <bob.wilson@acm.org>
3590
3591 * main.c (captured_main): Recognize -tui option and print an error
3592 message when the TUI is not configured.
3593
9a88e5ee
AS
35942007-05-09 Andreas Schwab <schwab@suse.de>
3595
3596 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3597 set removed members.
3598 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3599
fc0d8df4
UW
36002007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3601
3602 * gdbarch.sh (deprecated_store_struct_return): Remove.
3603 * gdbarch.c, gdbarch.h: Regenerate.
3604 * frv-tdep.c (frv_store_struct_return): Remove.
3605 (frv_gdbarch_init): Do not install it.
3606
179101d6
UW
36072007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3608
3609 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3610 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3611 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3612
b9efddcd
UW
36132007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3614
3615 * spu-linux-nat.c: Include "gdb_stdint.h".
3616 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3617 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3618 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3619 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3620 (spu_child_wait): Mark up string for translation.
3621
ce5eab59
UW
36222007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
3623 Luis Machado <luisgpm@br.ibm.com>
3624
3625 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3626 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3627 BC_INSTRUCTION): Define.
3628 (deal_with_atomic_sequence): New function.
3629 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3630 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3631 gdbarch_software_single_step routine.
3632
4179a487
UW
36332007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3634
3635 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3636 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3637 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3638 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3639 spu_child_post_attach, spu_fetch_inferior_registers,
3640 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3641 memory addresses as ULONGEST, not CORE_ADDR.
3642
6d350bb5
UW
36432007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
3644
3645 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3646 * gdbarch.h, gdbarch.c: Regenerate.
3647
3648 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3649 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3650 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3651
3652 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3653 Add REGCACHE argument. Use it instead of read/write_register.
3654 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3655
3656 * config/pa/tm-hppah.h: Delete file.
3657 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3658 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3659
b18be20d
DJ
36602007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3661
3662 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3663 * NEWS: Mention improved C++ thunk support.
3664 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3665 * cp-abi.c (cplus_skip_trampoline): New.
3666 * cp-abi.h (cplus_skip_trampoline): New prototype.
3667 (struct cp_abi_ops): Add skip_trampoline member.
3668 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3669 (init_gnuv3_ops): Set skip_trampoline.
3670
dda9b909
DJ
36712007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3672
3673 * rs6000-tdep.c (struct frame_extra_info): Delete.
3674
34091d9b
DJ
36752007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
3676
3677 * linux-thread-db.c: Update some FIXME comments.
3678 (thread_db_xfer_partial): Delete.
3679 (init_thread_db_ops): Do not set to_xfer_partial.
3680
1da33a4a
UW
36812007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3682
3683 * inftarg.c, infptrace.c: Remove files.
3684 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3685 (inftarg.o, infptrace.o): Remove rules.
3686 * gdbcore.h (register_addr): Remove prototype.
3687 * inferior.h (kill_inferior, store_inferior_registers,
3688 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3689 call_ptrace, pre_fork_inferior): Remove prototypes.
3690 * target.h (child_xfer_memory, child_pid_to_exec_file,
3691 child_core_file_to_sym_file, child_post_attach,
3692 child_post_startup_inferior, child_acknowledge_created_inferior,
3693 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3694 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3695 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3696 child_follow_fork, child_reported_exec_events_per_exec_call,
3697 child_has_exited, child_thread_alive): Remove prototypes.
3698
6f7a27d5
UW
36992007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3700
3701 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3702 (sparc_store_inferior_registers): Likewise.
3703 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3704 (sparc_fetch_inferior_registers): ... this.
3705 (store_inferior_registers): Rename to ...
3706 (sparc_store_inferior_registers): ... this.
3707 (sparc_target): Update callback names.
3708 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3709 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3710
6d8fd2b7
UW
37112007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3712
3713 * linux-nat.c (child_post_attach): Rename to ...
3714 (linux_child_post_attach): ... this. Make static.
3715 (child_follow_fork): Rename to ...
3716 (linux_child_follow_fork): ... this. Make static.
3717 (child_insert_fork_catchpoint): Rename to ...
3718 (linux_child_insert_fork_catchpoint): ... this. Make static.
3719 (child_insert_vfork_catchpoint): Rename to ...
3720 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3721 (child_insert_exec_catchpoint): Rename to ...
3722 (linux_child_insert_exec_catchpoint): ... this. Make static.
3723 (child_pid_to_exec_file): Rename to ...
3724 (linux_child_pid_to_exec_file): ... this. Make static.
3725 Add prototype.
3726 (linux_handle_extended_wait): Update call.
3727 (linux_xfer_partial): Update callback routine names.
3728
d08950c4
UW
37292007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3730
3731 * configure.host (alpha*-*-osf[12]*): Remove support.
3732 * NEWS: Mention removed configurations.
3733
3734 * config/alpha/alpha-osf1.mh: Delete file.
3735 * config/alpha/alpha-osf2.mh: Delete file.
3736 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3737 and infptrace.o.
3738 * config/alpha/nm-osf.h: Delete file.
3739 * config/alpha/nm-osf2.h: Delete file.
3740 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3741 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3742 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3743
3744 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3745 (register_addr, kernel_u_size): Remove.
3746 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3747
9c5ea4d9
UW
37482007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3749
3750 * regcache.c (regcache_invalidate): New function.
3751 (register_cached): Remove.
3752 (set_register_cached): Remove.
3753 (deprecated_registers_fetched): Remove.
3754 (registers_changed): Use regcache_invalidate instead
3755 of set_register_cached.
3756 (regcache_raw_read): Update comment.
3757
3758 * regcache.h (regcache_invalidate): Add prototype.
3759 (register_cached): Remove.
3760 (set_register_cached): Remove.
3761 (deprecated_registers_fetched): Remove.
3762
3763 * findvar.c (value_of_register): Do not call register_cached.
3764 * frame.c (frame_register): Likewise.
3765 * tui/tui-regs.c (tui_get_register): Likewise.
3766
3767 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3768 (process_g_packet): Likewise.
3769 (remote_fetch_registers): Likewise.
3770 * remote-sim.c (gdbsim_fetch_register): Likewise.
3771 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3772 by regcache_invalidate.
3773 (mt_pseudo_register_write): Likewise.
3774 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3775
3776 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3777 call by loop over regcache_raw_supply (..., NULL).
3778
316f2060
UW
37792007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3780
3781 * target.h (struct target_ops): Add REGCACHE parameter to
3782 to_prepare_to_store.
3783 (target_prepare_to_store): Likewise.
3784 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3785 (update_current_target): Adapt prepare_to_store de_fault rule.
3786
3787 * regcache.c (regcache_raw_write): Pass regcache to
3788 target_prepare_to_store.
3789
3790 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3791 Do not call CHILD_PREPARE_TO_STORE.
3792 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3793 * procfs.c (procfs_prepare_to_store): Likewise.
3794
3795 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3796 * go32-nat.c (go32_prepare_to_store): Likewise.
3797 * monitor.c (monitor_prepare_to_store): Likewise.
3798 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3799 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3800 * remote-mips.c (mips_prepare_to_store): Likewise.
3801 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3802 * win32-nat.c (win32_prepare_to_store): Likewise.
3803
3804 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3805 Use it instead of current_regcache.
3806
3807 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3808 parameter. Pass it on to next target.
3809 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3810
56be3814
UW
38112007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3812
3813 * target.h (struct regcache): Add forward declaration.
3814 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3815 and to_store_registers target operations.
3816 (target_fetch_registers, target_store_registers): Update.
3817
3818 * regcache.c (regcache_raw_read): Replace register_cached by
3819 regcache_valid_p. Pass regcache to target_fetch_registers.
3820 (regcache_raw_write): Pass regcache to target_store_registers.
3821
3822 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3823 store_regs, store_wmmx_regs): Replace register_cached by
3824 regcache_valid_p.
3825
3826 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3827 to target_fetch_registers calls.
3828 * corelow.c (core_open): Likewise.
3829 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3830 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3831 ps_lsetfpregs): Likewise.
3832 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3833 ps_lsetfpregs): Likewise.
3834 * win32-nat.c (win32_resume): Likewise.
3835 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3836 to target_store_registers call.
3837 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3838
3839 * inferior.h (store_inferior_registers): Update prototype.
3840 (fetch_inferior_registers): Likewise.
3841 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3842 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3843 Update function pointer signatures.
3844
3845 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3846 use it instead of current_regcache, update calls.
3847 (aix_thread_store_registers): Likewise.
3848 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3849 (alphabsd_store_inferior_registers): Likewise.
3850 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3851 (amd64bsd_store_inferior_registers): Likewise.
3852 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3853 (amd64_linux_store_inferior_registers): Likewise.
3854 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3855 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3856 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3857 (arm_linux_fetch_inferior_registers): Likewise.
3858 (arm_linux_store_inferior_registers): Likewise.
3859 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3860 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3861 (store_register, store_regs, store_fp_register, store_fp_regs,
3862 armnbsd_store_registers): Likewise.
3863 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3864 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3865 (bsd_uthread_store_registers): Likewise.
3866 * corelow.c (get_core_registers): Likewise.
3867 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3868 go32_store_registers): Likewise.
3869 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3870 (hppabsd_store_registers): Likewise.
3871 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3872 (hppa_hpux_fetch_inferior_registers): Likewise.
3873 (hppa_hpux_store_register): Likewise.
3874 (hppa_hpux_store_inferior_registers): Likewise.
3875 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3876 (hppa_linux_fetch_inferior_registers): Likewise.
3877 (hppa_linux_store_inferior_registers): Likewise.
3878 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3879 (hpux_thread_store_registers): Likewise.
3880 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3881 (i386bsd_store_inferior_registers): Likewise.
3882 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3883 gnu_store_registers): Likewise.
3884 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3885 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3886 Likewise.
3887 (i386_linux_fetch_inferior_registers): Likewise.
3888 (i386_linux_store_inferior_registers): Likewise.
3889 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3890 (ia64_linux_fetch_registers): Likewise.
3891 (ia64_linux_store_register): Likewise.
3892 (ia64_linux_store_registers): Likewise.
3893 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3894 (inf_child_store_inferior_registers): Likewise.
3895 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3896 (inf_ptrace_fetch_registers): Likewise.
3897 (inf_ptrace_store_register): Likewise.
3898 (inf_ptrace_store_registers): Likewise.
3899 * infptrace.c (fetch_register, store_register): Likewise.
3900 (fetch_inferior_registers, store_inferior_registers): Likewise.
3901 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3902 (m32r_linux_fetch_inferior_registers): Likewise.
3903 (m32r_linux_store_inferior_registers): Likewise.
3904 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3905 (m68kbsd_store_inferior_registers): Likewise.
3906 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3907 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3908 fetch_fpregs, store_fpregs): Likewise.
3909 (m68k_linux_fetch_inferior_registers): Likewise.
3910 (m68k_linux_store_inferior_registers): Likewise.
3911 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3912 (m88kbsd_store_inferior_registers): Likewise.
3913 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3914 (mips64obsd_store_inferior_registers): Likewise.
3915 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3916 (mips64_linux_regsets_store_registers): Likewise.
3917 (mips64_linux_fetch_registers): Likewise.
3918 (mips64_linux_store_registers): Likewise.
3919 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3920 (mipsnbsd_store_inferior_registers): Likewise.
3921 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3922 (monitor_fetch_registers, monitor_store_registers): Likewise.
3923 * nto-procfs.c (procfs_fetch_registers): Likewise.
3924 (procfs_store_registers): Likewise.
3925 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3926 fetch_register, supply_vrregset, fetch_altivec_registers,
3927 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3928 (store_altivec_register, store_spe_register, store_register,
3929 fill_vrregset, store_altivec_registers, store_ppc_registers,
3930 ppc_linux_store_inferior_registers): Likewise.
3931 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3932 (ppcnbsd_store_inferior_registers): Likewise.
3933 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3934 (ppcobsd_store_registers): Likewise.
3935 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3936 * remote.c (fetch_register_using_p, process_g_packet,
3937 fetch_registers_using_g, remote_fetch_registers): Likewise.
3938 (store_register_using_P, store_registers_using_G,
3939 remote_store_registers): Likewise.
3940 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3941 m32r_store_register, m32r_store_register): Likewise.
3942 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3943 * remote-sim.c (gdbsim_fetch_register): Likewise.
3944 (gdbsim_store_register): Likewise.
3945 * rs6000-nat.c (fetch_register, store_register): Likewise.
3946 (rs6000_fetch_inferior_registers): Likewise.
3947 (rs6000_store_inferior_registers): Likewise.
3948 * s390-nat.c (fetch_regs, store_regs): Likewise.
3949 (fetch_fpregs, store_fpregs): Likewise.
3950 (s390_linux_fetch_inferior_registers): Likewise.
3951 (s390_linux_store_inferior_registers): Likewise.
3952 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3953 (shnbsd_store_inferior_registers): Likewise.
3954 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3955 (sol_thread_store_registers): Likewise.
3956 * sparc-nat.c (fetch_inferior_registers): Likewise.
3957 (store_inferior_registers): Likewise.
3958 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3959 (spu_store_inferior_registers): Likewise.
3960 * target.c (debug_print_register): Likewise.
3961 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3962 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3963 (vaxbsd_store_inferior_registers): Likewise.
3964 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3965 (win32_fetch_inferior_registers): Likewise.
3966 (win32_store_inferior_registers): Likewise.
3967
9eefc95f
UW
39682007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3969
3970 * gdbcore.h (struct regcache): Add forward declaration.
3971 (struct core_fns): Add REGCACHE argument to core_read_registers
3972 callback.
3973 * corelow.c (get_core_register_section): Add REGCACHE argument,
3974 use it instead of current_regcache, pass it to core_read_registers
3975 callback.
3976 (get_core_registers): Add current_regcache as parameter to
3977 get_core_register_section calls.
3978
3979 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3980 use it instead of current_regcache.
3981 * armnbsd-nat.c (fetch_core_registers): Likewise.
3982 (fetch_elfcore_registers): Likewise.
3983 * core-regset.c (fetch_core_registers): Likewise.
3984 * cris-tdep.c (fetch_core_registers): Likewise.
3985 * irix5-nat.c (fetch_core_registers): Likewise.
3986 * m68klinux-nat.c (fetch_core_registers): Likewise.
3987 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3988 * win32-nat.c (fetch_elf_core_registers): Likewise.
3989
7f7fe91e
UW
39902007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3991
3992 * gregset.h (struct regcache): Add forward declaration.
3993 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3994 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3995 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3996 (fill_gregset): Add REGCACHE parameter.
3997 (fill_fpregset): Likewise.
3998 (fill_fpxregset): Likewise.
3999
4000 Update all definitions accordingly:
4001 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4002 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4003 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4004 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4005 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4006 (supply_gregset): Add REGCACHE parameter, use it instead of
4007 current_regcache. Make GREGSETP parameter const, adapt casts.
4008 (supply_fpregset): Add REGCACHE parameter, use it instead of
4009 current_regcache. Make FPREGSETP parameter const, adapt casts.
4010 (fill_gregset): Add REGCACHE parameter, use it instead of
4011 current_regcache.
4012 (fill_fpregset): Likewise.
4013
4014 Update all callers to pass in current_regcache as the new argument:
4015 * core-regset.c: Include "regcache.h".
4016 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4017 * procfs.c: Include "regcache.h".
4018 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4019 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4020 (procfs_do_thread_registers): Likewise.
4021 (procfs_make_note_section): Likewise.
4022 * proc-service.c: Include "regcache.h".
4023 (ps_lgetregs): Update fill_gregset call.
4024 (ps_lsetregs): Update supply_gregset call.
4025 (ps_lgetfpregs): Update fill_fpregset call.
4026 (ps_lsetfpregs): Update supply_fpregset call.
4027 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4028 supply_fpregset calls.
4029 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4030 (ps_lgetregs): Update fill_gregset call.
4031 (ps_lsetregs): Update supply_gregset call.
4032 (ps_lgetfpregs): Update fill_fpregset call.
4033 (ps_lsetfpregs): Update supply_fpregset call.
4034
4035 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4036 fill_fpregset, and fill_fpxregset calls.
4037 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4038 (store_regs): Update fill_gregset call.
4039 (fetch_fpregs): Update supply_fpregset call.
4040 (store_fpregs): Update fill_fpregset call.
4041 (fetch_fpxregs): Update supply_fpxregset call.
4042 (store_fpxregs): Update fill_fpxregset call.
4043 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4044 (store_regs): Update fill_gregset call.
4045 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4046 (store_regs): Update fill_gregset call.
4047 (fetch_fpregs): Update supply_fpregset call.
4048 (store_fpregs): Update fill_fpregset call.
4049 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4050 * s390-nat.c (fetch_regs): Update supply_gregset call.
4051 (store_regs): Update fill_gregset call.
4052 (fetch_fpregs): Update supply_fpregset call.
4053 (store_fpregs): Update fill_fpregset call.
4054
4055 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4056 dependencies.
4057
c410a84c
UW
40582007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4059
4060 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4061 it instead of current_regcache.
4062 (parse_register_dump): Add REGCACHE parameter, pass it to
4063 supply_register callback.
4064 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4065 parse_register_dump.
4066 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4067 parse_register_dump and dumpregs callback.
4068 (monitor_wait): Pass current_regcache to parse_register_dump and
4069 monitor_dump_regs.
4070 (monitor_fetch_register): Pass current_regcache to
4071 monitor_supply_register.
4072 (monitor_fetch_registers): Pass current_regcache to
4073 monitor_dump_regs.
4074 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4075 supply_register and dumpregs callbacks.
4076 (monitor_supply_register, monitor_dump_reg_block): Update
4077 prototypes.
4078 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4079 it to monitor_supply_register.
4080 * dink32-rom.c (dink32_supply_register): Likewise.
4081 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4082 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4083 instead of current_regcache.
4084
468e3d51
UW
40852007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4086
4087 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4088 Add REGCACHE parameter. Use it instead of current_regcache.
4089 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4090 i386nto_supply_gregset and i386nto_supply_fpregset.
4091 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4092 of current_regcache.
4093
4094 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4095 nto_supply_ helper functions.
4096 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4097
4098 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4099
4100 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4101 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4102 and regset_fill member function pointers.
4103 (nto_dummy_supply_regset): Adapt prototype.
4104
4e3269e3
UW
41052007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4106
4107 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4108 instead of current_regcache. Make REGS const.
4109 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4110 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4111 prototypes.
4112 * shnbsd-nat.c: Include "regcache.h".
4113 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4114 shnbsd_supply_reg.
4115 (shnbsd_store_inferior_registers): Pass current_regcache to
4116 shnbsd_fill_reg.
4117 * Makefile.in (shbsd-nat.o): Update dependencies.
4118
28f5035f
UW
41192007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4120
4121 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4122 instead of current_regcache.
4123 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4124 Make GREGSETP const, remove superfluous casts.
4125 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4126 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4127 superfluous casts.
4128 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4129 (supply_64bit_reg): Likewise
4130 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4131 Make GREGSETP const, adapt casts accordingly.
4132 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4133 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4134 casts accordingly.
4135 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4136 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4137 helper routines.
4138 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4139 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4140 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4141 Adapt prototypes.
4142 * mips-linux-nat.c: Include "regcache.h".
4143 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4144 current_regcache to mips{64}_(supply|fill)_ helper routines.
4145 (mips64_linux_regsets_fetch_registers): Likewise.
4146 (mips64_linux_regsets_store_registers): Likewise.
4147
4148 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4149 REGCACHE argument; replace current_regcache. Make REGS const.
4150 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4151 replace current_regcache.
4152 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4153 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4154 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4155 mipsnbsd_store_inferior_registers): Pass current_regcache to
4156 mipsnbsd_(supply|fill)_... helper routines.
4157
4158 * Makefile.in (mips-linux-nat.o): Update dependencies.
4159
26144df5
UW
41602007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4161
4162 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4163 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4164 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4165 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4166 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4167 * i386gnu-nat.c (store_fpregs): Likewise.
4168 * i386v4-nat.c (fill_fpregset): Likewise.
4169 * go32-nat.c (store_register, go32_store_registers): Likewise.
4170
c6b4e5a2
UW
41712007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4172
4173 * cris-tdep.c (supply_gregset): Rename to ...
4174 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4175 instead of current_regcache.
4176 (fetch_core_registers): Update call. Pass current_regcache.
4177
d683e2b7
UW
41782007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4179
4180 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4181 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4182 Use it instead of current_regcache.
4183 (supply_fparegset): Rename to ...
4184 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4185 Use it instead of current_regcache.
4186 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4187 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4188
390c1522
UW
41892007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4190
4191 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4192 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4193 use it instead of current_regcache.
4194 * alpha-tdep.h (struct regcache): Add forward declaration.
4195 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4196 alpha_fill_fp_regs): Update prototypes.
4197
4198 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4199 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4200 * alpha-linux-nat.c: Include "regcache.h".
4201 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4202 current_regcache to alpha_supply/fill_ routines.
4203
4204 * alphabsd-tdep.c: Include "regcache.h".
4205 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4206 pass it to alpha_supply_ routines. Make REGS const.
4207 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4208 pass it to alpha_fill_ routines.
4209 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4210 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4211 alphabsd_fill_fpreg): Update prototypes.
4212
4213 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4214 fill_fpregset, alphabsd_fetch_inferior_registers,
4215 alphabsd_store_inferior_registers): Pass current_regcache to
4216 alphabsd_supply/fill_ routines.
4217
4218 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4219 dependencies.
4220
647478e0
UW
42212007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4222
4223 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4224 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4225 instead of current_regcache.
4226 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4227 REGCACHE parameter, pass it to supply_ routines.
4228 (aix_thread_fetch_registers): Pass current_regcache to
4229 fetch_regs_user_thread and fetch_regs_kernel_thread.
4230
4231 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4232 Add REGCACHE parameter, use it instead of current_regcache.
4233 Call regcache_valid_p instead of register_cached.
4234 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4235 Also, pass REGCACHE to fill_ routines.
4236 (aix_thread_store_registers): Pass current_regcache to
4237 store_regs_user_thread and store_regs_kernel_thread.
4238
d817e083
UW
42392007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4240
4241 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4242 pointed to by GREGSETP.
4243
6a1872e4
UW
42442007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4245
4246 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4247 of regcache_raw_read_signed.
4248 (fill_fpregset): Use regcache_raw_collect instead of
4249 regcache_raw_read.
4250
6da397e0
KB
42512007-05-03 Kevin Buettner <kevinb@redhat.com>
4252
4253 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4254 point arguments, test explicitly for use of the EABI32 ABI
4255 instead of inferring this condition from tests on register
4256 sizes.
4257
2219d63c
KB
42582007-05-03 Kevin Buettner <kevinb@redhat.com>
4259
4260 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4261 prior to allocating its location.
4262
2afd3f0a
MR
42632007-05-02 Maciej W. Rozycki <macro@mips.com>
4264
4265 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4266 based on mips_abi_regsize() whose result is known in advance.
4267 (mips_o64_push_dummy_call): Likewise.
4268
3e00823e
UW
42692007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4270
4271 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4272 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4273
4274 * mips-linux-nat.c: Include "gregset.h".
4275 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4276 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4277 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4278 fill_fpregset): Move to mips-linux-nat.c.
4279
4280 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4281
81c4a259
UW
42822007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4283
4284 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4285 (read_register): ... here.
4286 (deprecated_write_register_gen): Remove, inline ...
4287 (write_register): ... here.
4288 * regcache.h (deprecated_read_register_gen): Remove prototype.
4289 (deprecated_write_register_gen): Likewise.
4290
4291 * remote-sim.c (gdbsim_store_register): Replace call to
4292 deprecated_read_register_gen with regcache_cooked_read.
4293 * target.c (debug_print_register): Replace calls to
4294 deprecated_read_register_gen and read_register with
4295 regcache_cooked_read.
4296
8bb42077
UW
42972007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4298
4299 * hpux-thread.c (hpux_thread_store_registers): Use
4300 regcache_raw_collect, not regcache_raw_read.
4301 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4302 not regcache_raw_write.
4303
6ed7ea50
UW
43042007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4305
4306 * gdbarch.sh: Remove deprecated_register_byte.
4307 * gdbarch.c, gdbarch.h: Regenerate.
4308 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4309 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4310
4311 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4312 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4313 read-only register caches. Make REGCACHE parameter const.
4314 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4315
4316 * mi/mi-main.c (old_regs): Remove.
4317 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4318 (register_changed_p): Reimplement to compare two register caches.
4319 (mi_cmd_data_list_changed_registers): Update caller.
4320 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4321 * mi/mi-interp.c (mi_interpreter_init): Do not call
4322 mi_setup_architecture_data.
4323
efc72ef5
UW
43242007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4325
4326 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4327 inline definition at the places the macros are used.
4328 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4329
7a61a01c
UW
43302007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4331
4332 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4333 "gdb_string.h".
4334 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4335 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4336 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4337 (rs6000_aix_regset_from_core_section): New function.
4338 (rs6000_aix_init_osabi): Register it.
4339 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4340 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4341 * rs6000-nat.c (CoreRegs): Do not define type.
4342 (fetch_core_registers, rs6000_core_fns): Remove.
4343 (_initialize_core_rs6000): Do not register it. Rename to ...
4344 (_initialize_rs6000_nat): ... this.
4345 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4346
ace186d4
KB
43472007-04-27 Kevin Buettner <kevinb@redhat.com>
4348
4349 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4350 (dwarf2_read_address): Sign extend return address as required by
4351 target architecture.
4352
89a7ee67
KB
43532007-04-27 Kevin Buettner <kevinb@redhat.com>
4354
4355 * solib-frv.c (lm_base): Bail out if the main executable has
4356 not been relocated.
4357
6afb1f32
UW
43582007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4359
4360 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4361 of FPCR register in fpregset.
4362
66a0218a
MR
43632007-04-27 Maciej W. Rozycki <macro@mips.com>
4364
4365 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4366 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4367
482f7fee
UW
43682007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4369
4370 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4371 * rs6000-nat.c (rs6000_wait): New function.
4372 (_initialize_core_rs6000): Install it as to_wait target method.
4373 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4374
1f480a5e
UW
43752007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4376
4377 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4378 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4379 * rs6000-nat.c (super_create_inferior): New variable.
4380 (rs6000_create_inferior): Make static. Adapt argument list. Call
4381 original version of create_inferior via super_create_inferior.
4382 (_initialize_core_rs6000): Install to_create_inferior target method.
4383
037a727e
UW
43842007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4385
4386 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4387 (aix_thread_xfer_partial): ... this.
4388 (init_aix_thread_ops): Install to_xfer_partial instead
4389 of deprecated_xfer_memory target method.
4390
4391 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4392 and inftarg.o, add inf-ptrace.o.
4393 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4394 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4395 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4396 (fetch_inferior_registers): Rename to ...
4397 (rs6000_fetch_inferior_registers): ... this. Make static.
4398 (store_inferior_registers): Rename to ...
4399 (rs6000_store_inferior_registers): ... this. Make static.
4400 (read_word, child_xfer_memory): Remove.
4401 (rs6000_xfer_partial): New function.
4402 (kernel_u_size): Remove.
4403 (_initialize_core_rs6000): Add inf_ptrace-based target.
4404 * Makefile.in (rs6000-nat.o): Update dependencies.
4405
f7dd0ed7
UW
44062007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4407
4408 * inf-ptrace.c: Include "gdb_stdint.h".
4409 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4410 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4411 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4412 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4413 (inf_ptrace_store_register): Likewise.
4414 * Makefile.in (inf-ptrace.o): Update dependencies.
4415
d9178763
UW
44162007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4417
4418 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4419 * configure.tgt (rs6000-*-*): Likewise.
4420 * config/rs6000/aix4.mh: Delete file.
4421 * config/rs6000/aix4.mt: Delete file.
4422 * config/rs6000/rs6000.mh: Delete file.
4423 * config/rs6000/rs6000.mt: Delete file.
4424
4425 * config/powerpc/nm-aix.h: Delete file.
4426 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4427
0d16ee5d
UW
44282007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4429
4430 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4431 Remove obsolete part of comment.
4432 (store_regs_user_thread): Use uint32_t temporaries when calling
4433 fill_sprs32.
4434 (store_regs_kernel_thread): Likewise. Add assertion to verify
4435 correct size of struct ptsprs members.
4436 (aix_thread_xfer_memory): Fix type of myaddr.
4437 (aix_thread_extra_thread_info): Fix compiler warning.
4438 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4439 (fetch_register, store_register): Adapt callers.
4440
1e8877aa
UW
44412007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
4442
4443 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4444
b02f9d57
UW
44452007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4446
4447 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4448 and "regcache.h".
4449 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4450 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4451 (alpha_linux_regset_from_core_section): New function.
4452 (alpha_linux_init_abi): Install it.
4453 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4454 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4455 <sys/procfs.h>, and "gregset.h".
4456 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4457 Move from config/alpha/nm-linux.h.
4458 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4459 from alpha-nat.c.
4460 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4461 * alpha-nat.c: Remove #ifdef __linux__ section.
4462 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4463 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4464 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4465 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4466 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4467 (NATDEPFILES): Remove alpha-nat.o.
4468 * config/alpha/nm-linux.h: Delete file.
4469 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4470 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4471 (alpha-linux-tdep.o): Likewise.
4472
dda0c97e
UW
44732007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4474
4475 * mips-linux-nat.c: No longer include "gdbcore.h".
4476 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4477 (mips64_linux_register_addr): Likewise.
4478 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4479 mips64_linux_register_addr instead of register_addr.
4480 * mips-linux-tdep.c (mips_linux_register_addr,
4481 mips64_linux_register_addr): Move to mips-linux-nat.c.
4482 (register_addr): Remove.
4483 (register_addr_data, init_register_addr_data): Remove.
4484 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4485 (set_mips_linux_register_addr): Remove.
4486 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4487 * Makefile.in (mips-linux-nat.o): Update dependencies.
4488
910122bf
UW
44892007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4490
4491 * linux-nat.c (linux_register_u_offset): Remove.
4492 (linux_target_install_ops): New function.
4493 (linux_target): Use it.
4494 (linux_trad_target): New function.
4495 * linux-nat.h (linux_trad_target): Declare.
4496
4497 * alpha-linux-nat.c: Include "gdbcore.h".
4498 (alpha_linux_register_u_offset): New function.
4499 (_initialize_alpha_linux_nat): Use linux_trad_target.
4500
4501 * mips-linux-nat.c: Include "gdbcore.h".
4502 (mips_linux_register_u_offset): New function.
4503 (_initialize_mips_linux_nat): Use linux_trad_target.
4504
4505 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4506 * config/arm/nm-linux.h: Delete file.
4507
4508 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4509 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4510
4511 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4512 * config/ia64/nm-linux.h: Delete file.
4513
4514 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4515 * config/m32r/nm-linux.h: Delete file.
4516
4517 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4518 * config/m68k/nm-linux.h: Delete file.
4519
4520 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4521 * config/pa/nm-linux.h: Delete file.
4522
4523 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4524 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4525 * config/powerpc/nm-linux.h: Delete file.
4526
4527 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4528 * config/s390/nm-linux.h: Delete file.
4529
4530 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4531 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4532 * config/sparc/nm-linux.h: Delete file.
4533
4534 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4535 (mips-linux-nat.o): Likewise.
4536
de732108
UW
45372007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
4538
4539 * core-aout.c: Delete file.
4540 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4541 (core-aout.o): Delete rule.
4542 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4543
4544 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4545
4546 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4547 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4548 KERNEL_U_ADDR): Remove.
4549
4550 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4551 (cannot_fetch_register, cannot_store_register): Remove.
4552 (fetch_register): Inline cannot_fetch_register and register_addr.
4553 (store_register): Inline cannot_store_register and register_addr.
4554 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4555 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4556 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4557 Remove.
4558
4559 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4560 (fetch_register): Inline register_addr.
4561 (store_register): Inline register_addr.
4562 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4563 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4564 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4565
4566 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4567 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4568 REGISTER_U_ADDR): Remove.
4569
4570 * hppa-linux-nat.c (register_addr): Rename to ...
4571 (hppa_linux_register_addr): ... this. Make static.
4572 (fetch_register, store_register): Adapt callers.
4573 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4574
4575 * ppc-linux-nat.c (kernel_u_size): Remove.
4576 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4577
4578 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4579 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4580 (NAT_FILE): Remove.
4581 * config/vax/nm-vax.h: Delete file.
4582
1f90c757
MS
45832007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4584
4585 * MAINTAINERS (Write After Approval): Add myself.
4586
bf1242a5
MS
45872007-04-20 Mark Shinwell <shinwell@codesourcery.com>
4588
4589 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4590 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4591 (m68k_linux_sigcontext_reg_offset): Fix typo.
4592 (target_is_uclinux): New.
4593 (m68k_linux_inferior_created): New.
4594 (m68k_linux_get_sigtramp_info): Check for uClinux or
4595 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4596 uClinux.
4597 (_initialize_m68k_linux_tdep): Register
4598 m68k_linux_inferior_created.
4599
96998ce7
PA
46002007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
4601
4602 * win32-nat.c (win32_detach): Remove delete_command call.
4603 Resume inferior with win32_resume instead of win32_continue.
4604
7e71daaa
JG
46052007-04-19 Jerome Guitton <guitton@adacore.com>
4606
4607 * ser-mingw.c (fd_is_file): New function.
4608 (file_select_thread): New function.
4609 (ser_console_wait_handle): Add special handling for files.
4610
3d1f72c2
DP
46112007-04-18 Denis Pilat <denis.pilat@st.com>
4612
4613 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4614 when missing from DW_TAG_subrange_type. Remove the handling of null
4615 return from die_type.
4616
9ecf7166
MR
46172007-04-18 Maciej W. Rozycki <macro@mips.com>
4618
4619 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4620 change to rearrange some brackets.
4621 (mips_n32n64_push_dummy_call): Likewise.
4622 (mips_o32_push_dummy_call): Likewise.
4623 (mips_o64_push_dummy_call): Likewise.
4624
b79599ff
DP
46252007-04-18 Denis Pilat <denis.pilat@st.com>
4626
4627 * infcmd.c (post_create_inferior): Start with a call to
3d1f72c2 4628 target_terminal_ours.
b79599ff 4629
06f9a1af
MR
46302007-04-17 Maciej W. Rozycki <macro@mips.com>
4631
4632 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4633 brackets.
4634 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4635 expressions.
4636 (mips_o32_push_dummy_call): Likewise.
4637 (mips_o64_push_dummy_call): Likewise.
4638
ad018eee
MR
46392007-04-17 Maciej W. Rozycki <macro@mips.com>
4640
4641 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4642 comment.
4643
e914cb17
MR
46442007-04-17 Maciej W. Rozycki <macro@mips.com>
4645
4646 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4647 comment.
4648 (mips_o32_push_dummy_call): Likewise.
4649
91934273
AS
46502007-04-17 Andreas Schwab <schwab@suse.de>
4651
4652 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4653 sal to be bigger than the end of the function.
4654
968b5391
MR
46552007-04-17 Maciej W. Rozycki <macro@mips.com>
4656 Nigel Stephens <nigel@mips.com>
4657
4658 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4659 argument alignment requirements when calculating stack space
4660 required. When aligning an arg register to eight bytes
4661 boundary, align stack_offset too. Write floating-point
4662 arguments to the appropriate integer register if need go there.
4663 (mips_o64_push_dummy_call): Likewise.
4664
e0cd558a
UW
46652007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4666
4667 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4668 "sig" arguments, add "regcache" argument.
4669 * gdbarch.c, gdbarch.h: Regenerate.
4670
4671 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4672 (handle_inferior_event): Call remove_single_step_breakpoints directly
4673 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4674
4675 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4676 Remove handling of !insert_breakpoints_p case.
4677 * arm-tdep.c (arm_software_single_step): Likewise.
4678 * cris-tdep.c (cris_software_single_step): Likewise.
4679 * mips-tdep.c (mips_software_single_step): Likewise.
4680 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4681 * sparc-tdep.c (sparc_software_single_step): Likewise.
4682 * spu-tdep.c (spu_software_single_step): Likewise.
4683
4684 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4685 * mips-tdep.h (mips_software_single_step): Likewise.
4686 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4687 * sparc-tdep.h (sparc_software_single_step): Likewise.
4688
06a86285
UW
46892007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
4690
4691 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4692 when removing single-step breakpoints.
4693
25d5ea92
VP
46942007-04-14 Vladimir Prus <vladimir@codesourcery.com>
4695
4696 * varobj.h (varobj_set_frozen): New
4697 (varobj_get_frozen): New.
4698 (varobj_update): New parameter explicit.
4699 * varobj.c (struct varobj): New fields frozen
4700 and not_fetched.
4701 (varobj_set_frozen, varobj_get_frozen): New.
4702 (install_new_value): Don't fetch values for
4703 frozen variable object, or children thereof. Allow
4704 a frozen variable object to have non-fetched value.
4705 (varobj_update): Allow updating child variables.
4706 Don't traverse frozen children.
4707 (new_variable): Initialize the frozen field.
4708 (c_value_of_variable): Return NULL for frozen
4709 variable without any value yet.
4710 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4711 'explicit'.
4712 (mi_cmd_var_create): Output the 'frozen' field,
4713 as soon as testsuite is adjusted to expect that field.
4714 (mi_cmd_var_set_frozen): New.
4715 (mi_cmd_var_update): Pass the 'explicit' parameter to
4716 varobj_update_one.
4717 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4718 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4719
6e3bbd1a
PB
47202007-04-13 Paul Brook <paul@codesourcery.com>
4721
4722 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4723 ieee_double.
4724 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4725
ea35711c
DJ
47262007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4727
4728 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4729 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4730 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4731 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4732 * Makefile.in: Remove references to deleted files.
4733 * README: Do not mention deleted ROM monitor interfaces.
4734 * defs.h (enum language): Delete language_scm.
4735 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4736 (dump_subexp_body_standard): Likewise.
4737 * parse.c (operator_length_standard): Likewise.
4738 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4739 * remote-mips.c: Do not include remote-utils.h.
4740 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4741 throughout.
4742 * value.c: Do not include scm-lang.h.
4743 (unpack_long): Delete scm_unpack call.
4744 * config/h8300/h8300.mt, config/mips/embed.mt,
4745 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4746 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4747 deleted files.
4748 * NEWS: Mention removed files.
4749
058b9c07
DJ
47502007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4751
4752 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4753 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4754
54d61198
DJ
47552007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4756
4757 * NEWS: Mention removal of HP aCC support.
4758
e499d0f1
DJ
47592007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4760
4761 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4762 first entry for static executables.
4763 (breakpoint_addr): Delete unused variable.
4764 (elf_locate_base): Search for _r_debug in static executables.
4765 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4766 also.
4767
4d5b2cd7
DJ
47682007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4769
4770 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4771 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4772 (mention): Remove bp_through_sigtramp support.
4773 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4774
46d57086
DJ
47752007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4776
4777 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4778 shlib events.
4779
d3169d93
DJ
47802007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
4781
4782 * infrun.c: Doc fixes.
4783 (handle_inferior_event): Clarify debug message.
4784 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4785
8c9e4384
UW
47862007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4789
9418f048
UW
47902007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
4791
4792 * config/m68k/tm-monitor.h: Delete file.
4793 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4794 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4795 call moved to ...
4796 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4797 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4798
e6590a1b
UW
47992007-04-12 Luis Machado <luisgpm@br.ibm.com>
4800
4801 * gdbarch.sh (software_single_step): Change the return type
4802 from void to int and reformatted some comments to <= 80
4803 columns.
4804 * gdbarch.c, gdbarch.h: Regenerated.
4805 * alpha-tdep.c (alpha_software_single_step): Likewise.
4806 * alpha-tdep.h (alpha_software_single_step): Likewise.
4807 * arm-tdep.c (arm_software_single_step): Likewise.
4808 * cris-tdep.c (cris_software_single_step): Likewise.
4809 * mips-tdep.c (mips_software_single_step): Likewise.
4810 * mips-tdep.h (mips_software_single_step): Likewise.
4811 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4812 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4813 * sparc-tdep.c (sparc_software_single_step): Likewise.
4814 * sparc-tdep.h (sparc_software_single_step): Likewise.
4815 * spu-tdep.c (spu_software_single_step): Likewise.
4816 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4817 and act accordingly.
4818
58b38ee2
SE
48192007-04-11 Steve Ellcey <sje@cup.hp.com>
4820
4821 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4822 * configure: Regenerate.
4823 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4824
70f575cc
JK
48252007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4826
4827 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4828
d77b6808
JK
48292007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4832 macros.
4833 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4834 distinct on the TYPE_STUB_SUPPORTED debug targets.
4835 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4836
b0b92586
JB
48372007-04-11 Joel Brobecker <brobecker@adacore.com>
4838
4839 * sparc-tdep.c (X_RS2): New macro.
4840 (sparc_skip_stack_check): New function.
4841 (sparc_analyze_prologue): Adjust PC past stack probing
4842 sequence if necessary.
4843
a489f789
AS
48442007-04-10 Andreas Schwab <schwab@suse.de>
4845
4846 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4847 register.
4848
b0b13bb4
DJ
48492007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4850
4851 * breakpoint.c (gdb_breakpoint_query): Really return an
4852 enum gdb_rc.
4853 (gdb_breakpoint): Likewise.
3f11755e
DJ
4854 * thread.c (gdb_list_thread_ids): Likewise.
4855 (gdb_thread_select): Likewise.
b0b13bb4
DJ
4856 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4857 (mi_cmd_thread_list_ids): Remove bogus initialization.
4858
1a92f856
DJ
48592007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4860
4861 * Makefile.in (SFILES): Remove hpacc-abi.c.
4862 (COMMON_OBS): Remove hpacc-abi.o.
4863 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4864 (hpacc-abi.o, hpread.o): Delete rules.
4865 * somread.c: Delete extern declarations from hpread.c.
4866 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4867 (som_symfile_finish): Do not call hpread_symfile_finish.
4868 (som_symfile_init): Do not call hpread_symfile_init.
4869 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4870 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4871 * hpacc-abi.c, hpread.c: Deleted.
4872
542c95c2
DJ
48732007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
4874
4875 * solib-svr4.c (enable_break): Simplify return value.
4876 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4877
cfaefc65
AS
48782007-04-10 Andreas Schwab <schwab@suse.de>
4879
4880 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4881 l_ld_size, l_next_size, l_prev_size, l_name_size.
4882
4883 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4884 to extract addresses from link map.
4885 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4886 (LM_NEXT): Likewise.
4887 (LM_NAME): Likewise.
4888 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4889 (elf_locate_base): Likewise.
4890 (open_symbol_file_object): Likewise.
4891 (svr4_fetch_objfile_link_map): Likewise.
4892 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4893 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4894 l_ld_size.
4895 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4896 (svr4_lp64_fetch_link_map_offsets): Likewise.
4897
4898 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4899 removed members. Set l_ld_offset to -1 if not present.
4900
65cc4390
VP
49012007-04-08 Vladimir Prus <vladimir@codesourcery.com>
4902
4903 Pass stderr of program run with "target remote |"
4904 via gdb_stderr.
4905 * serial.c (serial_open): Set error_fd to -1.
4906 * serial.h (struct serial): New field error_fd.
4907 (struct serial_opts): New field avail.
4908 * ser-pipe.c (pipe_open): Create another pair
4909 of sockets. Pass stderr to gdb.
4910 * ser-mingw.c (pipe_windows_open): Pass
4911 PEX_STDERR_TO_PIPE to pex_run. Initialize
4912 sd->error_fd.
4913 (pipe_avail): New.
4914 (_initialize_ser_windows): Hook pipe_avail.
4915 * ser-base.c (generic_readchar): Check if there's
4916 anything in stderr channel and route that to gdb_stderr.
4917
e9112110
PA
49182007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
4919
4920 * dbxread.c (read_ofile_symtab): Move current_objfile
4921 clearing to after end_stabs.
4922
7f68ac27
AS
49232007-04-01 Andreas Schwab <schwab@suse.de>
4924
4925 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4926 gdbarch instead of current_gdbarch.
4927
e55dccf0
VP
49282007-04-01 Vladimir Prus <vladimir@codesourcery.com>
4929
4930 * varobj.c (varobj_create): Keep varobj value
4931 NULL when evaluating the type.
4932
7c963485
PA
49332007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
4934
4935 * NEWS: Mention new Windows CE support.
4936
ad527d2e
PA
49372007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
4938
4939 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4940 the obsoletion stanza.
4941 * NEWS: Mention deleted targets.
4942
4943 * config/sh/tm-wince.h: Remove.
4944 * config/sh/wince.mt: Remove.
4945 * config/mips/tm-wince.h: Remove.
4946 * config/mips/wince.mt: Remove.
4947
4948 * wince.c: Remove.
4949 * wince-stub.c: Remove.
4950 * wince-stub.h: Remove.
4951 * Makefile.in (wince.o): Remove rule.
4952 (wince-stub.o): Likewise.
4953
4954 * mips-tdep.c (mips_next_pc): Make static.
4955 * mips-tdep.h (mips_next_pc): Remove declaration.
4956 * arm-tdep.c (arm_pc_is_thumb): Make static.
4957 (thumb_get_next_pc): Likewise.
4958 (arm_get_next_pc): Likewise.
4959 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4960 (arm_pc_is_thumb): Likewise.
4961 (thumb_get_next_pc): Likewise.
4962 (arm_get_next_pc): Likewise.
4963
7ce59000
DJ
49642007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4965
4966 * MAINTAINERS: Remove d10v entry.
4967 * Makefile.in (SFILES): Remove dwarfread.c.
4968 (COMMON_OBS): Remove dwarfread.o.
4969 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4970 (remote-est.o, rom68k-rom.o): Delete.
4971 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4972 target est, target rom68k, and DWARF 1.
4973 * configure.tgt: Mark d10v as removed.
4974 * dwarf2read.c: Doc update.
4975 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4976 and lnsize.
4977 (elf_locate_sections): Do not set them.
4978 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4979 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4980 * config/m68k/monitor.mt (TDEPFILES): Prune.
4981 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4982 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4983
20389057
DJ
49842007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4985
4986 * doublest.c (convert_floatformat_to_doublest): Use
4987 floatformat_classify.
4988 (floatformat_is_nan): Rename to...
4989 (floatformat_classify): ...this. Return more information.
4990 * doublest.h (enum float_kind): New.
4991 (floatformat_is_nan): Replace prototype...
4992 (floatformat_classify): ...with this one.
4993 * valprint.c (print_floating): Use floatformat_classify. Handle
4994 infinity.
4995
30b50213
DJ
49962007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4997
4998 * README: Mention ISO C library requirement.
4999
8807d78b
DJ
50002007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5001
5002 * Makefile.in (SFILES): Remove nlmread.c.
5003 (COMMON_OBS): Remove nlmread.o.
5004 (nlmread.o): Delete rule.
5005 * README: Delete reference to remote-st.c.
5006 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5007 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5008 GDB_OSABI_LYNXOS.
5009 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5010 (_initialize_i386_tdep): Do not reference them.
5011 * nlmread.c: Delete file.
5012 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5013 * target.c: Doc update.
5014 * thread.c: Delete commented include.
5015 * config/alpha/tm-alpha.h: Doc update.
5016
ced572fe
MR
50172007-03-30 Chris Dearman <chris@mips.com>
5018
5019 * utils.c (string_to_core_addr): Comment typo.
5020
8a9fc081
MR
50212007-03-30 Chris Dearman <chris@mips.com>
5022
5023 * mips-tdep.c: Comment typo.
5024
5f402660
UW
50252007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5026
5027 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5028 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5029 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5030 * config/powerpc/nm-ppc64-linux.h: Remove file.
5031 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5032 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5033 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5034 * infptrace.c (call_ptrace): Likewise.
5035 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5036 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5037 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5038 (store_register): Likewise.
5039
bbf90c81
JB
50402007-03-29 Joel Brobecker <brobecker@adacore.com>
5041
5042 * Makefile.in (varobj.o): Add missing dependency.
5043
243c053b
MS
50442007-03-29 Michael Snyder <msnyder@access-company.com>
5045
5046 * MAINTAINERS: Update my email address.
5047
0259addd
JB
50482007-03-29 Joel Brobecker <brobecker@adacore.com>
5049
5050 Add support for exception handling with multiple versions of
5051 the Ada runtime:
5052 * ada-lang.c: Update general comments on how Ada exception catchpoints
5053 are implemented.
5054 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5055 (__gnat_raise_nodefer_with_msg): Delete.
5056 (ada_unhandled_exception_name_addr_ftype): New type.
5057 (exception_support_info): New type.
5058 (ada_unhandled_exception_name_addr): Add forward declaration.
5059 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5060 (default_exception_support_info): New constant.
5061 (exception_support_info_fallback): Likewise.
5062 (exception_info): New global variable.
5063 (ada_exception_support_info_sniffer): New function.
5064 (ada_executable_changed_observer): Likewise.
5065 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5066 ada_unhandled_exception_name_addr.
5067 (ada_unhandled_exception_name_addr): Reimplement to match the
5068 latest Ada runtime implementation.
5069 (error_breakpoint_runtime_sym_not_found): Delete.
5070 (ada_exception_sym_name): Get the exception sym name from
5071 exception_info rather than hardcoding it.
5072 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5073 Update error handling.
5074 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5075
483367ee
DJ
50762007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5077
5078 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5079 (remote-st.o, uw-thread.o): Delete.
5080 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5081 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5082 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5083 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5084 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5085 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5086 rs6000-*-lynxos* to an obsoletion stanza.
5087 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5088 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5089 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5090 i[34567]86-*-netware*.
5091 * NEWS: Mention deleted targets.
5092
5093 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5094 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5095 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5096 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5097 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5098 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5099 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5100 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5101 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5102 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5103 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5104 config/rs6000/tm-rs6000ly.h: Delete files.
5105
3adda9d8
DJ
51062007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
5107
5108 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5109 * interps.c (clear_interpreter_hooks): Do not clear
5110 deprecated_registers_changed_hook.
5111 * regcache.c (registers_changed): Do not call it.
5112 * top.c (deprecated_registers_changed_hook): Do not define it.
5113 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5114 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5115 (tui_remove_hooks): Do not remove it.
5116 (tui_selected_frame_level_changed_hook): Check for negative level.
5117 Use get_selected_frame.
5118 (tui_registers_changed_hook): Deleted.
5119
bf362611
JB
51202007-03-29 Joel Brobecker <brobecker@adacore.com>
5121
5122 * stabsread.c (add_undefined_type): Add extra parameter.
5123 Now handles nameless types separately.
5124 (struct nat): New type.
5125 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5126 New static variables.
5127 (read_type): Update calls to add_undefined_type.
5128 (add_undefined_type_noname): New function.
5129 (add_undefined_type_1): Renames from add_undefined_type.
5130 (cleanup_undefined_types_noname): New function.
5131 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5132 (cleanup_undefined_types): New handles nameless types separately.
5133 (_initialize_stabsread): Initialize our new static constants.
5134
436868fb
DP
51352007-03-29 Denis Pilat <denis.pilat@st.com>
5136
5137 * configure.ac: Test for signal.h.
5138 * configure, config.in: Regenerate.
5139
aaf9e9fd
DP
51402007-03-29 Denis Pilat <denis.pilat@st.com>
5141
5142 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5143 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5144
68070c10
PA
51452007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
5146
5147 * arm-wince-tdep.c: New.
5148 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5149 (MT_CFLAGS): Delete.
5150 (TM_CLIBS): Delete.
5151 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5152 solib-legacy.o, solib-svr4.o, and remove wince.o.
5153 * configure.tgt (arm*-*-mingw32ce*): Add.
5154 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5155 (do_target_signal_to_host): Silence 'not used' warning.
5156 * config/arm/tm-wince.h: Remove.
5157
74174d2e
UW
51582007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
5159
5160 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5161 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5162
5163 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5164 * config/ia64/tm-linux.h: Remove file.
5165 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5166 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5167 legacy_pc_in_sigtramp.
5168 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5169 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5170 Remove func_name argument.
5171 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5172
5173 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5174 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5175 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5176 (HAVE_STEPPABLE_WATCHPOINT): Define.
5177
5178 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5179 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5180 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5181 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5182 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5183 target_insert_watchpoint, target_remove_watchpoint): Remove.
5184 (FETCH_INFERIOR_REGISTERS): Define.
5185 * ia64-linux-nat.c (ia64_register_addr): Make static.
5186 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5187 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5188 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5189 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5190 (ia64_linux_stopped_by_watchpoint): Make static.
5191 (ia64_linux_can_use_hw_breakpoint): New function.
5192 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5193 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5194 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5195
53c5240f
PA
51962007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
5197
5198 * linespec.c: Include language.h.
5199 (find_methods): Add language parameter. Call
5200 lookup_symbol_in_language. Pass language down.
5201 (add_matching_methods): Likewise. Call
5202 lookup_symbol_in_language.
5203 (add_constructors): Likewise.
5204 (find_method): Pass sym_class to collect_methods.
5205 (collect_methods): Add sym_class parameter. Pass language
5206 down.
5207 * symtab.c (lookup_symbol): Rename to ...
5208 (lookup_symbol_in_language): ... this. Add language
5209 parameter. Use passed language instead of current_language.
5210 (lookup_symbol): New as wrapper around
5211 lookup_symbol_in_language.
5212 (lookup_symbol_aux): Add language parameter. Use passed
5213 language instead of current_language.
5214 (search_symbols): Indent.
5215 * symtab.h (enum language): Forward declare.
5216 (lookup_symbol_in_language): Declare.
5217 (lookup_symbol): Update description.
5218 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5219 * ada-lang.c (restore_language): Remove.
5220 (lookup_symbol_in_language): Remove.
5221
8671a17b
PA
52222007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
5223
5224 * breakpoint.c (bpstat_num): Add int *num parameter.
5225 * breakpoint.h (bpstat_num): Likewise.
5226 * infcmd.c (continue_command): Adjust to new bpstat_num
5227 interface.
5228 (program_info): Likewise.
5229
214197f9
UW
52302007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5231
5232 * config/sh/tm-sh.h: Remove file.
5233 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5234 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5235 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5236 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5237
bac718a6
UW
52382007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5239
5240 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5241 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5242 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5243 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5244 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5245 sequence if target_shortname is "remote".
5246
de6a76fd
DJ
52472007-03-27 Anton Blanchard <anton@samba.org>
5248
5249 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5250 instead of wordsize when looking for the LR in a stack frame.
5251
4fc771b8
DJ
52522007-03-27 Andreas Schwab <schwab@suse.de>
5253 Daniel Jacobowitz <dan@codesourcery.com>
5254
5255 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5256 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5257 argument. Update all callers.
5258 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5259 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5260 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5261 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5262 (dwarf2_frame_set_adjust_regnum): ...this.
5263 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5264 * rs6000-tdep.c: Include "dwarf2-frame.h".
5265 (rs6000_adjust_frame_regnum): Define.
5266 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5267 Register rs6000_adjust_frame_regnum.
5268
5269 * Makefile.in (rs6000-tdep.o): Update dependencies.
5270
9453113a
DJ
52712007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
5272
5273 * Makefile.in: Add support for a "pdf" target.
5274
d2449ee8
DJ
52752007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
5276
5277 * amd64-tdep.c (amd64_init_frame_cache): New function.
5278 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5279
a72d8a8e
MR
52802007-03-26 Nigel Stephens <nigel@mips.com>
5281 Maciej W. Rozycki <macro@mips.com>
5282
5283 * ui-out.c (ui_out_field_core_addr): Truncate address to
5284 TARGET_ADDR_BIT size before printing.
5285
5200c3f3 52862007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 5287 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
5288
5289 * remote-mips.c (mips_xfer_memory): Update prototype.
5290
16708cba
JB
52912007-03-22 Joel Brobecker <brobecker@adacore.com>
5292
5293 * symfile.h: #include "symtab.h"
5294
0fe514e3
DP
52952007-03-22 Denis Pilat <denis.pilat@st.com>
5296
5297 * utils.c (pagination_on_command, pagination_off_command):
5298 Remove useless prototypes.
5299
4a52dc15
PM
53002007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
5301
5302 Fix PR pascal/2232.
5303 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5304 instead of TYPE_NAME for object base class name.
5305
5306
1c86fa97
KB
53072007-03-19 Kevin Buettner <kevinb@redhat.com>
5308
5309 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5310 Specify frame type in calls to frame_func_unwind().
5311
4e463ff5
DJ
53122007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
5313
5314 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5315 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5316 (refine_prologue_limit): Delete.
5317 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5318 Assume lim_pc is set. Correct check for incomplete prologues.
5319 Do not skip clobbers of the frame pointer.
5320 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5321 sal.
5322
348473d5
NF
53232007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5324
5325 * frame.c (frame_pop): Check to see whether there's a frame to
5326 which we can pop first.
5327
a2f9cf0d
NF
53282007-03-13 Nathan Froyd <froydnj@codesourcery.com>
5329
5330 * MAINTAINERS (Write After Approval): Add myself.
5331
569631c6
UW
53322007-03-09 Markus Deuling <deuling@de.ibm.com>
5333
5334 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5335 (handle_inferior_event): Remove unnecessary braces.
5336 * breakpoint.c (bpstat_what): Remove wrong comment.
5337
fe5febed
UW
53382007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
5339
5340 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5341 (spu_gdbarch_init): Install it.
5342
9dea8ca2
UW
53432007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5344
5345 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5346 object types, not 0.
5347
7b3dc0b7
UW
53482007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5349
5350 * spu-tdep.c (spu_frame_align): New function.
5351 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5352
118dfbaf
UW
53532007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5354
5355 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5356 (spu_software_single_step): Likewise.
5357 (spu_read_pc, spu_write_pc): New functions.
5358 (spu_gdbarch_init): Install them.
5359
29e4017d
UW
53602007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
5361
5362 * cli/cli-dump.c (struct callback_data): load_offset needs to
5363 have signed long type.
5364
6de5b849
JB
53652007-03-07 Joel Brobecker <brobecker@adacore.com>
5366
5367 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5368 Revert the previous change that had some unexpected side-effects
5369 on mips32.
5370 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5371 function to get the address of the calling instruction.
5372
7490ba4f
DP
53732007-03-07 Denis Pilat <denis.pilat@st.com>
5374
5375 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5376 get_selected_frame by deprecated_safe_get_selected_frame.
5377
861fb77c
MK
53782007-03-02 Mark Kettenis <kettenis@gnu.org>
5379
5380 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5381 "gdb_string.h". Don't include "nbsd-tdep.h".
5382 (SIZEOF_STRUCT_REG): Remove.
5383 (SHNBSD_SIZEOF_GREGS): New.
5384 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5385 (shnbsd_regset_from_core_section): New functions.
5386 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5387 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5388 shnbsd_supply_gregset, shnbsd_collect_gregset.
5389 (shnbsd_gregset): New variable.
5390 (shnbsd_init_abi): Set regset_from_core_section.
5391 (GDB_OSABI_NETBSD_CORE): New define.
5392 (shnbsd_core_osabi_sniffer): New function.
5393 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5394 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5395 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5396 nbsd-tdep.o.
5397 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5398
787cbe14
JB
53992007-02-28 Joel Brobecker <brobecker@adacore.com>
5400
5401 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5402 length of the types referenced by the new type CV ring.
5403
35f196d9
DJ
54042007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5405
5406 * frame.c (frame_pop, frame_observer_target_changed): Call
5407 reinit_frame_cache.
5408 (flush_cached_frames): Rename to reinit_frame_cache and delete
5409 old implementation.
5410 * frame.h (flush_cached_frames): Delete prototype and update comment.
5411
5412 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5413 reinit_frame_cache instead of flush_cached_frames. Do not call
5414 select_frame after reinit_frame_cache.
5415 * corelow.c (core_open): Likewise.
5416 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5417 * infrun.c (prepare_to_proceed, context_switch)
5418 (handle_inferior_event): Likewise.
5419 * linux-fork.c (fork_load_infrun_state): Likewise.
5420 * ocd.c (ocd_start_remote): Likewise.
5421 * remote-e7000.c (e7000_start_remote): Likewise.
5422 * remote-mips.c (device): Likewise.
5423 * thread.c (switch_to_thread): Likewise.
5424 * tracepoint.c (finish_tfind_command): Likewise.
5425 * gdbarch.c: Regenerated.
5426
c26f2453
JB
54272007-02-28 Jerome Guitton <guitton@adacore.com>
5428 Joel Brobecker <brobecker@adacore.com>
5429
5430 * gdbtypes.c (check_typedef): Do not replace stub type if
5431 the resolved type is not defined in the same objfile.
5432
7d900f1a
DJ
54332007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5434
5435 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5436
76038652 54372007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
5438
5439 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5440 symbol for Ada units when the symbol is defined using 't' rather
5441 than 'Tt' as symbol descriptor.
5442
d74fb156 54432007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
5444
5445 * config/mips/tm-nbsd.h: Delete file.
5446 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5447 * config/sh/tm-nbsd.h: Delete file.
5448 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5449
f8d225db
JB
54502007-02-28 Joel Brobecker <brobecker@adacore.com>
5451
5452 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5453 unused WRONG_PARAM value since it was recently deleted.
5454
1bbfb19a
NR
54552007-02-28 Vladimir Prus <vladimir@codesourcery.com>
5456
5457 * varobj.c (varobj_update): Free temporary vectors.
5458
6f7f3f0d
UW
54592007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5460
5461 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5462 * config/powerpc/tm-linux.h: Delete file.
5463 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5464 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5465 (TEXT_SEGMENT_BASE): Do not redefine.
5466 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5467 from config/rs6000/tm-rs6000.h.
5468 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5469 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5470 (TEXT_SEGMENT_BASE): Remove.
5471 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5472 (rs6000_in_solib_return_trampoline): Remove.
5473 (SKIP_TRAMPOLINE_CODE): Remove.
5474 (rs6000_skip_trampoline_code): Remove.
5475 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5476 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5477 (FP0_REGNUM): Remove.
5478 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5479 (rs6000_set_host_arch_hook): Remove.
5480 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5481 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5482 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5483 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5484 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5485 * rs6000-nat.c: Include "rs6000-tdep.h".
5486 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5487 (set_host_arch): Rename to ...
5488 (rs6000_create_inferior): ... this. Make public.
5489 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5490 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5491 (rs6000_create_inferior): Remove.
5492 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5493 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5494 set_gdbarch_in_solib_return_trampoline, and
5495 set_gdbarch_skip_trampoline_code.
5496 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5497 from config/rs6000/tm-rs6000.h.
5498
63050a44 54992007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
5500
5501 * buildsym.c (record_producer): Do nothing if no producer is provided.
5502
63050a44 55032007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
5504
5505 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5506 to check changelist is non-NULL. Call error if the frontend tries
5507 to update a non-root variable.
5508
5509 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5510
93d42b30
DJ
55112007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5512
5513 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5514 (dwarf2_frame_sniffer): Update.
5515 (dwarf2_signal_frame_this_id): New function.
5516 (dwarf2_signal_frame_unwind): Use it.
5517 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5518 * frame.c (frame_func_unwind): Add this_type argument.
5519 (get_frame_func): Update.
5520 (frame_unwind_address_in_block): Add this_type argument and check it.
5521 Fix a typo.
5522 (get_frame_address_in_block): Update.
5523 * frame.h (enum frame_type): Move higher in the file.
5524 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5525 argument.
5526
5527 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5528 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5529 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5530 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5531 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5532 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5533 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5534 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5535 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5536 frame_func_unwind and frame_unwind_address_in_block to specify
5537 the frame type. Use frame_unwind_address_in_block instead of
5538 frame_pc_unwind in sniffers.
5539
206415a3
DJ
55402007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5541
5542 * frame.c (deprecated_selected_frame): Rename to...
5543 (selected_frame): ...this. Make static.
5544 (get_selected_frame, select_frame): Update.
5545 * frame.h (deprected_select_frame): Delete.
5546 (deprecated_safe_get_selected_frame): Update comments.
5547
5548 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5549 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5550 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5551 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5552 tui/tui.c: Replace references to deprecated_selected_frame.
5553
7313566f
FF
55542007-02-27 Fred Fish <fnf@specifix.com>
5555
5556 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5557 directly decrement the stack pointer, accumulate their operand into
5558 the stack offset, and mark the function as not being frameless.
5559
b6d373df
DJ
55602007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5561
5562 * arch-utils.c (selected_byte_order): New.
5563 * arch-utils.h (selected_byte_order): New prototype.
5564 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5565
2711e456
DJ
55662007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5567
5568 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5569 (default_symfile_offsets): Check VMA here. Update section VMAs.
5570
baef701f
DJ
55712007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5572
5573 * remote.c (init_remote_state): Add special handling for placeholder
5574 registers.
5575
05a4558a
DJ
55762007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5577
5578 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5579 (filenames_h): New variable.
5580 (clean): Clean up xml-builtin.c and stamp-xml.
5581 (arm-linux-nat.o): Update.
5582 * config/arm/linux.mh (TDEP_XML): Define.
5583 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5584 (arm_linux_has_wmmx_registers): New.
5585 (GET_THREAD_ID): Fix typo.
5586 (IWMMXT_REGS_SIZE): Define.
5587 (fetch_wmmx_regs, store_wmmx_regs): New.
5588 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5589 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5590 (super_xfer_partial, arm_linux_xfer_partial): New.
5591 (_initialize_arm_linux_nat): Use them.
5592 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5593 (xml_builtin_xfer_partial): New function.
5594 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5595 * NEWS: Update mention of iWMMXt support.
5596
ff6f572f
DJ
55972007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5598
5599 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5600 if there are no FPA registers.
5601 (arm_dwarf_reg_to_regnum): New function.
5602 (arm_register_type, arm_register_name): Return minimal values for
5603 unsupported registers.
5604 (arm_register_sim_regno): Handle iWMMXt registers.
5605 (arm_gdbarch_init): Record missing FPA registers if indicated by
5606 a target description. Recognize iWMMXt registers. Only register
5607 "info float" for FPA. Use ARM_NUM_REGS. Register
5608 arm_dwarf_reg_to_regnum.
5609 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5610 constants.
5611 (struct gdbarch_tdep): Add have_fpa_registers.
5612 * features/xscale-iwmmxt.xml: Update capitalization.
5613 * regformats/arm-with-iwmmxt.dat: Regenerated.
5614
c077150c
KB
56152007-02-24 Kevin Buettner <kevinb@redhat.com>
5616
5617 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5618
01c996c1
KB
56192007-02-23 Kevin Buettner <kevinb@redhat.com>
5620
5621 * MAINTAINERS (mep): New target.
5622
aeb43123
KB
56232007-02-23 Kevin Buettner <kevinb@redhat.com>
5624
5625 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5626 Richard Sandiford:
5627 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5628 (mep-tdep.o): New rule.
5629 * configure.tgt (mep-*-*): New target.
5630 * mep-tdep.c: New file.
5631 * config/mep/mep.mt: New file.
5632
115d86cf
UW
56332007-02-22 Markus Deuling <deuling@de.ibm.com>
5634
5635 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5636 BREAKPOINT_HIT and STOP_UNKNOWN.
5637
fef862e5
UW
56382007-02-22 Markus Deuling <deuling@de.ibm.com>
5639
5640 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5641
9a7d5afb
JB
56422007-02-20 Joel Brobecker <brobecker@adacore.com>
5643
5644 * gdb_expat.h (XMLCALL): Define if not already defined.
5645
81de920d
AS
56462007-02-20 Andreas Schwab <schwab@suse.de>
5647
5648 * Makefile.in (symfile.o): Update dependencies.
5649
cb5c8c39
DJ
56502007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5651
5652 * MAINTAINERS: Disable -Werror for cris simulator. Build
5653 sparc64-solaris2.10 instead of the broken sparc-elf.
5654 * solib-frv.c: Include "solib.h".
5655 * Makefile.in (solib-frv.o): Update.
5656 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5657 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5658 (xtensa_frame_this_id, xtensa_frame_prev_register)
5659 (xtensa_push_dummy_call): Use %p.
5660
e6bb342a
DJ
56612007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5662
5663 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5664 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5665 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5666 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5667 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5668 (sparc-linux-tdep.o): Update.
5669
ff7a4c00
MG
56702007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
5671
5672 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5673 (xtensa_mask_t): Change mask field to be a separate array.
5674 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5675 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5676 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5677 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5678 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5679 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5680 (mask14, mask15): Rename to
5681 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5682 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5683 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5684 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5685 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5686 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5687 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5688 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5689 (xtensa_submask14, xtensa_submask15): New.
5690 (rmap): Follow strict aliasing rules doing static initialization.
5691
d9cc5895
DJ
56922007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
5693
5694 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5695 handling from here...
5696 (tdesc_register_type): ...to here.
5697 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5698 * features/arm-core.xml: Use code_ptr and data_ptr.
5699
8756216b
DP
57002007-02-13 Denis Pilat <denis.pilat@st.com>
5701
5702 * varobj.h (enum varobj_update_error): New enum.
5703 * varobj.c (struct varobj_root): Add is_valid member.
5704 (varobj_get_type): Check for invalid varobj.
5705 (varobj_get_attributes): Likewise.
5706 (variable_editable):Likewise.
5707 (varobj_update): Likewise. Use varobj_update_error.
5708 (new_root_variable): Set root varobj as valid by default.
5709 (varobj_invalidate): New function.
5710 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5711 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5712 Use varobj_update_error.
5713
fe8e67fd
PM
57142007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
5715
5716 Fix PR pascal/2223.
5717 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5718 Pascal language marker.
5719 * dwarf2read.c (set_cu_language): Likewise.
5720
c44537cf
CV
57212007-02-12 Corinna Vinschen <vinschen@redhat.com>
5722
5723 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5724 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5725 instead of target_terminal_init since inferior_ptid isn't set yet.
5726
20dad8ea
PA
57272007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
5728
5729 * MAINTAINERS (Write After Approval): Add myself.
5730
4ac94eda
FF
57312007-02-09 Fred Fish <fnf@specifix.com>
5732
5733 Based on work by Apple Computer, Inc.
5734 * event-top.c (async_request_quit): Call quit() whenever either
5735 quit_flag is set or immediate_quit is set.
5736
b260b6c1
GDR
57372007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5738
5739 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5740 type to a pointer to const struct block.
5741 (ada_lookup_symbol_list): Don't cast away constness when calling
5742 remove_out_of_scope_renamings.
5743
57442007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5745
5746 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5747 address of 'filename'; it is always non null.
5748
0f5d55d8
JB
57492007-02-09 Joel Brobecker <brobecker@adacore.com>
5750
5751 * exec.c (add_to_section_table): Do not discard empty sections.
5752
fb1e4ffc
DJ
57532007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5754
5755 * features/Makefile, features/arm-with-iwmmxt.xml,
5756 features/gdbserver-regs.xsl, features/number-regs.xsl,
5757 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5758 * regformats/arm-with-iwmmxt.dat: Generate.
5759 * NEWS: Mention iWMMXt.
5760
123dc839
DJ
57612007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5762
5763 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5764 (xml-tdesc.o): Update.
5765 * xml-support.c: Add a comment.
5766 (gdb_xml_enums_boolean): New variable.
5767 (gdb_xml_parse_attr_enum): Use strcasecmp.
5768 * xml-support.h (gdb_xml_enums_boolean): Declare.
5769 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5770 next_regnum, and current_union.
5771 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5772 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5773 (field_attributes, union_children, reg_attributes, union_attributes)
5774 (vector_attributes, feature_attributes, feature_children): New.
5775 (target_children): Make static. Add <feature>.
5776 (tdesc_elements): Make static.
5777 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5778 (struct tdesc_feature, tdesc_feature_p): New types.
5779 (struct target_desc): Add features member.
5780 (struct tdesc_arch_data, tdesc_data): New.
5781 (target_find_description): Clarify error message. Warn about
5782 ignored register descriptions.
5783 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5784 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5785 (tdesc_data_cleanup, tdesc_numbered_register)
5786 (tdesc_numbered_register_choices, tdesc_find_register)
5787 (tdesc_register_name, tdesc_register_type)
5788 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5789 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5790 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5791 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5792 (tdesc_create_feature, tdesc_record_type): New.
5793 (free_target_description): Free features.
5794 (_initialize_target_descriptions): Initialize tdesc_data.
5795 * arch-utils.c (default_remote_register_number): New.
5796 * arch-utils.h (default_remote_register_number): New prototype.
5797 * target-descriptions.h (set_tdesc_pseudo_register_name)
5798 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5799 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5800 (tdesc_numbered_register, tdesc_numbered_register_choices)
5801 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5802 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5803 (tdesc_create_reg): Declare.
5804 * gdbarch.sh (remote_register_number): New entry.
5805 * gdbarch.c, gdbarch.h: Regenerate.
5806 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5807 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5808
5809 * arm-tdep.c (arm_register_aliases): New.
5810 (arm_register_name_strings): Rename to...
5811 (arm_register_names): ...this. Make const. Delete the old version.
5812 (current_option, arm_register_byte): Delete.
5813 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5814 (value_of_arm_user_reg): New.
5815 (arm_gdbarch_init): Verify any described registers. Call
5816 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5817 for standard register names.
5818 (_initialize_arm_tdep): Do not adjust arm_register_names.
5819 * user-regs.c (struct user_reg): Add baton member.
5820 (append_user_reg, user_reg_add_builtin, user_regs_init)
5821 (user_reg_add, value_of_user_reg): Use a baton for user
5822 register functions.
5823 * std-regs.c: Update.
5824 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5825 (user_reg_add): Add baton argument.
5826 * NEWS: Mention target description register support.
5827 * features/arm-core.xml, features/arm-fpa.xml: New.
5828 * eval.c (evaluate_subexp_standard): Allow ptype $register
5829 when the program is not running.
5830
87604222
NR
58312007-02-09 Nick Roberts <nickrob@snap.net.nz>
5832
5833 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5834
ee4f0f76
DJ
58352007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5836
5837 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5838 info->disassembler_options to "any".
5839
7af9851d
DJ
58402007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5841
5842 * varobj.c (install_new_value): Only call value_get_print_value
5843 if changeable.
5844
8944021f
DJ
58452007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5846
5847 Reported by timeless@gmail.com:
5848 * gdb/target.c (target_flash_erase): Do not return void value.
5849 (target_flash_done): Likewise.
5850 * gdb/cli/cli-cmds.c (source_command): Likewise.
5851
58522007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 5853
4ac94eda 5854 Based on work by Apple Computer, Inc.
5f960e00
FF
5855 * event-top.c (handle_sigint): Set quit_flag.
5856 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5857 if quit_flag has already been reset.
5858
4998c1df
DJ
58592007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5860
5861 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5862 up.
5863
79da184e
FF
58642007-02-08 Fred Fish <fnf@specifix.com>
5865
5866 * defs.h (request_quit): Remove declaration.
5867 * utils.c (request_quit): Remove definition.
5868
3c77c82a
DJ
58692007-02-08 Joel Brobecker <brobecker@gnat.com>
5870 Jan Kratochvil <jan.kratochvil@redhat.com>
5871 Daniel Jacobowitz <dan@codesourcery.com>
5872
5873 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5874 (skip_prologue): Allow bl->blrl used by PIC code.
5875
c1b6e682
DJ
58762007-02-08 Mark Kettenis <kettenis@gnu.org>
5877 Daniel Jacobowitz <dan@codesourcery.com>
5878
5879 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5880 initialize tmp_obstack.
5881 * p-valprint.c (pascal_object_print_value_fields)
5882 (pascal_object_print_value): Likewise.
5883
fe5dedf4
DJ
58842007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
5885
5886 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5887
3e461478
MK
58882007-02-08 Mark Kettenis <kettenis@gnu.org>
5889
5890 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5891 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5892
fc6e0168
DJ
58932007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5894
5895 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5896 (xml_cache): New.
5897 (tdesc_parse_xml): Cache expanded descriptions.
5898
108546a0
DJ
58992007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5900
5901 * Makefile.in (XMLFILES): New.
5902 (COMMON_OBS): Add xml-builtin.o.
5903 (xml-builtin.c, stamp-xml): New rules.
5904 (xml-tdesc.o): Update.
5905 * features/feature_to_c.sh: New file.
5906 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5907 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5908 (gdb_xml_start_element): Initialize scope after possibly reallocating
5909 scopes. Move cleanup later. Handle the XInclude description
5910 specially.
5911 (gdb_xml_end_element): Only parse the body if there is a current element.
5912 Call XML_DefaultCurrent if there is no element.
5913 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5914 (struct xinclude_parsing_data, xinclude_start_include)
5915 (xinclude_end_include, xml_xinclude_default)
5916 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5917 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5918 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5919 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5920 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5921 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5922 XInclude directives. Use the compiled in DTD.
5923 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5924 directory name. Do not warn here.
5925 (file_read_description_xml): Update call. Warn here instead. Pass
5926 a dirname as baton.
5927 (fetch_available_features_from_target): New.
5928 (target_read_description_xml): Use it.
5929 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5930 to handle XInclude.
5931 * features/xinclude.dtd: New file.
5932
b5057acd
DJ
59332007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5934
5935 * linux-thread-db.c (check_for_thread_db): Return early if we have
5936 no libthread_db support.
5937
6a089cf2
DJ
59382007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
5939
5940 * mi/mi-parse.h: Include <sys/time.h>.
5941
9fbcbb40
NR
59422007-02-05 Nick Roberts <nickrob@snap.net.nz>
5943
5944 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5945 instead of print_variable_value to print values.
5946
b3d2152a
NR
59472007-02-03 Nick Roberts <nickrob@snap.net.nz>
5948
5949 * mi/mi-main.c: Numerous formatting changes.
5950 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5951 removed in my previous change.
5952
79f0a97a
NR
59532007-02-03 Eli Zaretskii <eliz@gnu.org>
5954
5955 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5956 Use 1000000L instead of 1000000.
5957
95a98c01 59582007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
5959
5960 Based on work by Apple Computer, Inc.
5961
5962 * configure.ac: Test for sys/resource.h and getrusage.
5963 * configure, config.in: Regenerate.
5964
5965 * mi/mi-main.c: Include <sys/resource.h> if present.
5966 (rusage): Declare if HAVE_GETRUSAGE.
5967 (current_command_ts, do_timings): New static variables.
5968 (timestamp, print_diff_now, print_diff, timeval_diff):
5969 New static timing functions.
5970 (mi_cmd_enable_timings): New function for new MI command.
5971 (captured_mi_execute_command, mi_execute_async_cli_command):
5972 Call timing functions.
5973
5974 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5975 -enable-timings.
5976
5977 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5978
5979 * mi/mi-parse.h: (mi_timestamp): New structure.
5980 (mi_parse): Add mi_timestamp* member.
5981
99b3d574
DP
59822007-02-02 Denis Pilat <denis.pilat@st.com>
5983
5984 * thread.c (make_cleanup_restore_current_thread): New function.
5985 (info_threads_command): Use of make_cleanup_restore_current_thread
5986 to restore the current thread and the selected frame.
5987 (restore_selected_frame): New function.
5988 (struct current_thread_cleanup): Add frame_id field.
5989 (do_restore_current_thread_cleanup): Add restoring of the selected
5990 frame.
5991 (make_cleanup_restore_current_thread): Likewise.
5992 (thread_apply_all_command): backup the selected frame while
5993 entering the function and restore it at exit.
5994 (thread_apply_command): Likewise.
5995
d3c598de
DP
59962007-02-02 Denis Pilat <denis.pilat@st.com>
5997
5998 * MAINTAINERS (Write After Approval): Add myself to the list.
5999
b69733ab 60002007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
6001
6002 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6003 (m32r_store_register): Ditto.
6004
b69733ab 60052007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
6006
6007 * ser-mingw.c (pipe_windows_open)
6008 (pipe_windows_read, pipe_windows_write): Declare
6009 variables at the top of the function.
6010
8da61cc4
DJ
60112007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6012
6013 * doublest.c (floatformat_from_length): Use the right element from
6014 gdbarch floatformats.
6015 (floatformat_from_type, extract_typed_floating)
6016 (store_typed_floating): Likewise.
6017 * doublest.h: Remove declarations for undefined floatformat arrays.
6018 * gdbarch.sh (float_format, double_format, long_double_format): Change
6019 to pairs.
6020 (pformat): Update for pairs.
6021 * gdbarch.c, gdbarch.h: Regenerated.
6022 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6023 (floatformats_ieee_double_littlebyte_bigword)
6024 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6025 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6026 (floatformats_vax_d): New variables.
6027 (builtin_type_ieee_single, builtin_type_ieee_double)
6028 (builtin_type_arm_ext, builtin_type_ia64_spill)
6029 (builtin_type_ia64_quad): Replace arrays with individual types.
6030 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6031 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6032 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6033 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6034 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6035 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6036 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6037 unused and endian-specific types.
6038 (recursive_dump_type): Update for floatformat pairs.
6039 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6040 (build_gdbtypes): Use build_flt.
6041 (_initialize_gdbtypes): Update set of initialized types.
6042 * gdbtypes.h: Update declarations to match gdbtypes.c.
6043 (struct main_type): Store a pointer to two floatformats.
6044 * arch-utils.c (default_float_format, default_double_format): Delete.
6045 * arch-utils.h (default_float_format, default_double_format): Delete.
6046
6047 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6048 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6049 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6050 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6051 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6052
87680a14
JB
60532007-01-29 Joel Brobecker <brobecker@adacore.com>
6054
6055 * target.c (maintenance_print_target_stack): New function.
6056 (initialize_targets): Add new "maintenance print target-stack"
6057 command.
6058
1c3d648d
MK
60592007-01-28 Mark Kettenis <kettenis@gnu.org>
6060
6061 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6062
607269ae
DJ
60632007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
6064
6065 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6066 (struct dwarf2_loclist_baton): Likewise.
6067
40c03ae8
EZ
60682007-01-27 Eli Zaretskii <eliz@gnu.org>
6069
6070 * cli/cli-script.c: Include breakpoint.h.
6071 (build_command_line): Require arguments only for if and while
6072 commands.
6073 (get_command_line, execute_user_command, execute_control_command):
6074 Fix wording of warning messages.
6075 (print_command_lines): Print breakpoint commands.
6076 (execute_control_command): Call commands_from_control_command to
6077 handle the `commands' command inside a body of a flow-control
6078 command.
6079 (read_next_line): Recognize the `commands' command and build a
6080 command line structure for it.
6081 (recurse_read_control_structure, read_command_lines): Handle
6082 `commands' similarly to `if' and `while'.
6083
6084 * breakpoint.c (get_number_trailer): Document the special meaning
6085 of NULL as the first argument PP.
6086 (commands_from_control_command): New function.
6087
6088 * breakpoint.h (commands_from_control_command): Add prototype.
6089
6090 * defs.h (commands_control): New enumerated value for enum
6091 command_control_type.
6092
4b9eee8c
JB
60932007-01-26 Joel Brobecker <brobecker@adacore.com>
6094
6095 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6096 (ada_exception_sal): Update accordingly.
6097
e1f48ead
JK
60982007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6099
6100 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6101 * NEWS: Describe CHAR array vs. string identifcation rules.
6102
e150acc7
PB
61032007-01-25 Paul Brook <paul@codesourcery.com>
6104
6105 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6106
10fb19b6
JB
61072007-01-24 Jim Blandy <jimb@codesourcery.com>
6108
6109 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6110 expression is empty, bother to return the 'optimized out' value we
6111 construct. (Thanks to Carl Burch.)
6112
85d93f1d
VP
61132007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6114
6115 * varobj.c (c_value_of_root, c_value_of_child)
6116 (cplus_describe_child): Don't call release_value.
6117
fcbd8a5c
TS
61182007-01-24 Thiemo Seufer <ths@mips.com>
6119
6120 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6121 initialization.
6122
2024f65a
VP
61232007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6124
6125 Refactor getting children name, value and type access
6126 for varobjs in C++.
6127 * varobj.c (get_type_deref): Remove.
6128 (adjust_value_for_child_access): New.
6129 (c_number_of_children): Use the above.
6130 (c_describe_child): Likewise.
6131 (enum accessibility): New.
6132 (match_accessibility): New function.
6133 (cplus_describe_child): New function.
6134 (cplus_name_of_child, cplus_value_of_child)
6135 (cplus_type_of_child): Reimplement in terms
6136 of cplus_describe_child.
6137 (cplus_number_of_children): Use
6138 adjust_value_for_child_access.
6139
6e2a9270
VP
61402007-01-24 Vladimir Prus <vladimir@codesourcery.com>
6141
6142 Fix computation of the 'editable' attribute and
6143 value changeability for for references.
6144 * varobj.c (get_value_type): New function.
6145 (c_variable_editable): Use get_value_type.
6146 (varobj_value_is_changeable): Likewise.
6147
56163ce1
JB
61482007-01-24 Joel Brobecker <brobecker@adacore.com>
6149
6150 * source.c (find_and_open_source): Try rewriting the source
6151 path inside filename if dirname is NULL.
6152
8c6860bb
JB
61532007-01-24 Joel Brobecker <brobecker@adacore.com>
6154
6155 * dwarf2read.c (add_partial_symbol): Create an extra partial
6156 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6157 (new_symbol): Likewise for symbols.
6158
6db6d2ca
NR
61592007-01-24 Nick Roberts <nickrob@snap.net.nz>
6160
6161 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6162
7d85ee02
VP
61632007-01-23 Vladimir Prus <vladimir@codesourcery.com>
6164
6165 * value.c (value_primitive_field): Copy the full 'location'
6166 contents, instead of assuming that copying ADDRESS will
6167 bring over everything in the union. Remove obsolete comment.
6168
f79b9530
DJ
61692007-01-23 Masaki Muranaka <monaka@monami-software.com>
6170
6171 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6172 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6173 (m32c_m16c_pointer_to_address): Separate code from declarations.
6174
08d8bcd7
DJ
61752007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
6176
6177 * target.c (update_current_target): Correct typo.
6178
57fdbbbe
CV
61792007-01-22 Masaki Muranaka <monaka@monami-software.com>
6180
6181 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6182 declaration.
6183
58894217
JK
61842007-01-11 Andrew Cagney <cagney@redhat.com>
6185 Daniel Jacobowitz <dan@codesourcery.com>
6186 Jan Kratochvil <jan.kratochvil@redhat.com>
6187
6188 * dwarf2-frame.c (execute_cfa_program): New support of
6189 `DW_CFA_GNU_negative_offset_extended'.
6190
9ebce043
DJ
61912007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6192
6193 * NEWS: Mention flash support for "load" and new remote packets.
6194
973d738b
DJ
61952007-01-21 Markus Deuling <deuling@de.ibm.com>
6196
6197 * breakpoint.c (delete_command): Skip redundant loop iterations.
6198
7b9ee6a8
DJ
61992007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6200
6201 * gdbarch.sh (register_type): Update comment.
6202 * gdbarch.h: Regenerated.
6203 * arch-utils.c (generic_register_size): Call register_type.
6204 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6205 * m32c-tdep.c (check_for_saved): Likewise.
6206 * mips-tdep.c (mips_print_register, print_gp_register_row)
6207 (mips_print_registers_info): Likewise.
6208 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6209 Likewise.
6210 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6211 (sh64_do_register, sh64_print_register)
6212 (sh64_media_print_registers_info): Likewise.
6213 * tui/tui-regs.c (tui_register_format): Likewise.
6214
11309657
DJ
62152007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
6216
6217 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6218
6219 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6220 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6221 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6222 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6223 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6224 (make_symbol_completion_list): Likewise.
6225
cb1df416
DJ
62262007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6227 Daniel Jacobowitz <dan@codesourcery.com>
6228
6229 * buildsym.c (end_symtab): Use preallocated symtab if available.
6230 Fill in SYMBOL_SYMTAB.
6231 * buildsym.h (struct subfile): Add symtab member.
6232 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6233 (struct file_entry): Add symtab.
6234 (free_cu_line_header): New function.
6235 (read_file_scope): Use it. Save line_header in the cu. Process
6236 lines before DIEs.
6237 (add_file_name): Initialize new symtab member.
6238 (dwarf_decode_lines): Create symtabs for included files.
6239 (new_symbol): Set SYMBOL_SYMTAB.
6240 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6241 (search_symbols): Likewise.
6242 * symtab.h (struct symbol): Add symtab member.
6243 (SYMBOL_SYMTAB): Define.
6244
727da900
DJ
62452007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6246
6247 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6248
7b6b9e83
DJ
62492007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
6250
6251 * arch-utils.c (show_endian): Correct reversed condition.
6252
e767400c
JK
62532007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6254
6255 * MAINTAINERS (Write After Approval): Add myself.
6256
b20d8971
VP
62572007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
6258 Vladimir Prus <vladimir@codesourcery.com>
6259
6260 Fix 'selected frame' varobjs.
6261 * varobj.c (struct varobj): Remove the error field.
6262 (varobj_set_value): Don't check var->error.
6263 (install_new_value): Don't set var->error.
6264 (varobj_update): Always pass the new value
6265 of the root via install_new_value.
6266 (create_child): Don't set error field.
6267 (new_variable): Likewise.
6268 (c_value_of_root): Always reevaluate the value
6269 of selected frame varobjs in the selected frame.
6270 Don't call reinit_frame_cache.
6271
7ef2b397
JB
62722007-01-15 Joel Brobecker <brobecker@adacore.com>
6273
6274 * source.c (_initialize_source): Improve the help text of
6275 the substitute-path commands.
6276
1208538e
MK
62772007-01-14 Mark Kettenis <kettenis@gnu.org>
6278
6279 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6280 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6281 (frv_skip_prologue): Remove prototypes.
6282 (frv_adjust_breakpoint_address): Renamed from
6283 frv_gdbarch_adjust_breakpoint_address.
6284 (frv_gdbarch_init): Adjust.
6285
765f065a
MK
62862007-01-13 Mark Kettenis <kettenis@gnu.org>
6287
5e66aab2
MK
6288 * gdbarch.sh (deprecated_extract_return_value)
6289 (deprecated_store_return_value): Remove.
6290 (extract_return_value, store_return_value): Remove default values.
6291 * gdbarch.c, gdbarch.h: Regenerate.
6292 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6293 (legacy_store_return_value): Remove.
6294 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6295 Remove.
6296
56178203
MK
6297 * mi/mi-main.c: Remove obsolete comment.
6298
23303b2e
MK
6299 * regcache.c, regcache.h (deprecated_register_bytes)
6300 (deprecated_read_register_bytes)
6301 (deprecated_write_register_bytes): Remove.
6302
765f065a
MK
6303 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6304 Don't forget to move destination pointer.
6305
610acfff
MK
63062007-01-01 Mark Kettenis <kettenis@gnu.org>
6307
6308 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6309
12102450
UW
63102007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
6311
6312 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6313 past entry function with recent newlib.
6314
c8b2f53c
VP
63152007-01-11 Vladimir Prus <vladimir@codesourcery.com>
6316
6317 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6318 introduction. Specify -var-update more exactly.
6319
d57df5e4
DJ
63202007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
6321
6322 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6323
03f597d5
JB
63242007-01-10 Jim Blandy <jimb@codesourcery.com>
6325
6326 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6327 the Global Maintainers' invitation to be a global maintainer.
6328
fd48f117
DJ
63292007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
6330
6331 * infrun.c (singlestep_pc): New variable.
6332 (resume): Set singlestep_pc.
6333 (context_switch): Add a debugging message. Flush the frame cache.
6334 (handle_inferior_event): Add debugging messages. Handle thread
6335 hops when a software single step has completed. Let context_switch
6336 handle flushing the frame cache.
6337
23181151
DJ
63382007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6339
6340 * NEWS: Mention target descriptions, "set tdesc filename",
6341 "unset tdesc filename", "show tdesc filename", and
6342 qXfer:features:read.
6343 * arch-utils.c (choose_architecture_for_target): New function.
6344 (gdbarch_info_fill): Call it.
6345 * target-descriptions.c (struct property): Make members non-const.
6346 (struct target_desc): Add arch member.
6347 (target_description_filename): New variable.
6348 (target_find_description): Try via XML first.
6349 (tdesc_architecture): New.
6350 (free_target_description, make_cleanup_free_target_description): New.
6351 (set_tdesc_property): Call xstrdup.
6352 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6353 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6354 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6355 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6356 * target-descriptions.h (tdesc_architecture)
6357 (make_cleanup_free_target_description, set_tdesc_architecture): New
6358 prototypes.
6359 * Makefile.in (SFILES): Add xml-tdesc.c.
6360 (COMMON_OBS): Add xml-tdesc.o.
6361 (target-descriptions.o): Update.
6362 (xml-tdesc.o): New rule.
6363 * xml-tdesc.c, xml-tdesc.h: New files.
6364 * remote.c (PACKET_qXfer_features): New enum.
6365 (remote_protocol_features): Add qXfer:features:read.
6366 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6367 (_initialize_remote): Register qXfer:features:read.
6368 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6369 * features/gdb-target.dtd: New file.
6370
3e9cb5f4
DJ
63712007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6372
6373 * copyright.sh: Clarify error.
6374
818f79f6
DJ
63752007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6376
6377 * symtab.c (matching_bfd_sections): Fix VMA matching for
6378 prelinked objects.
6379
f7a6bb70
DJ
63802007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6381
6382 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6383 nested symbols.
6384
20ac0504
DJ
63852007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6386
6387 Updated copyright notices for most files.
6388
85bb0718
DJ
63892007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6390
6391 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6392
aa28a74e
DJ
63932007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6394
6395 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6396 exec_prefix.
6397 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6398 '${prefix}'.
6399 * configure, config.in: Regenerate.
6400 * defs.h (debug_file_directory): Declare.
6401 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6402 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6403 relocate it if DEBUGDIR_RELOCATABLE.
6404 * symfile.c (debug_file_directory): Make non-static.
6405 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6406 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6407 (_initialize_symfile): Don't initialize debug_file_directory here.
6408
1cfd2c3e
JB
64092007-01-09 Jim Blandy <jimb@codesourcery.com>
6410
6411 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6412 statements.
6413
5efde112
DJ
64142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6415
6416 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6417 frame_unwind_register to recurse.
6418 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6419 (alpha_heuristic_frame_prev_register): Likewise.
6420 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6421 * m32c-tdep.c (m32c_prev_register): Likewise.
6422 * frame.c (frame_register_unwind_location): Remove FIXME.
6423
4de1f557
DJ
64242007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6425 Eli Zaretskii <eliz@gnu.org>
6426
6427 * copyright.sh: New file.
6428
ca4ca11e
DJ
64292007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6430
6431 * configure.ac: Check for XML_StopParser.
6432 * xml-support.c (gdb_xml_body_text): Check for an error.
6433 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6434 (gdb_xml_end_element_wrapper): Likewise.
6435 * config.in, configure: Regenerated.
6436
57e66780
DJ
64372007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6438
6439 * varobj.c (install_new_value): Always update print_value.
6440 (value_get_print_value): Immediately return NULL for missing
6441 values.
6442
b523a1fd
JB
64432007-01-08 Jim Blandy <jimb@codesourcery.com>
6444
6445 * configure.ac: Tighten pattern for extracting value of
6446 DEPRECATED_TM_FILE from the target makefile fragment.
6447 * configure: Regenerated.
6448
3d799a95
DJ
64492007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6450
6451 * linux-nat.c (struct simple_pid_list): Add status.
6452 (add_to_pid_list): Record the PID's status.
6453 (linux_record_stopped_pid): Likewise. Make static.
6454 (pull_pid_from_list): Return the saved status.
6455 (linux_nat_handle_extended): Deleted.
6456 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6457 Make static. Handle non-SIGSTOP for a new thread's first signal.
6458 (flush_callback): Handle unexpected pending signals.
6459 (linux_nat_wait): Update calls to changed functions.
6460 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6461 Remove prototypes for newly static functions.
6462
9acbedc0
UW
64632007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6464
6465 * gdbarch.sh (value_from_register): New gdbarch function.
6466 * gdbarch.c, gdbarch.h: Regenerate.
6467 * findvar.c (default_value_from_register): New function.
6468 (value_from_register): Use gdbarch_value_from_register.
6469 * value.h (default_value_from_register): Declare.
6470 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6471 spu_value_to_register): Remove.
6472 (spu_value_from_register): New function.
6473 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6474 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6475 Call set_gdbarch_value_from_register.
6476 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6477 s390_value_to_register): Remove.
6478 (s390_value_from_register): New function.
6479 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6480 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6481 Call set_gdbarch_value_from_register.
6482
f822c95b
DJ
64832007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
6484
6485 * NEWS: Add "set sysroot" and "show sysroot".
6486 * solib.c (solib_absolute_prefix): Delete. Replace
6487 all uses with gdb_sysroot.
6488 (_initialize_solib): Add "set sysroot" and "show sysroot".
6489 Make "solib-absolute-prefix" an alias to it.
6490
00fa51f6
UW
64912007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6492
6493 * frame.c (get_frame_register_bytes): New function.
6494 (put_frame_register_bytes): Likewise.
6495 * frame.h (get_frame_register_bytes): Declare.
6496 (put_frame_register_bytes): Likewise.
6497 * findvar.c (value_from_register): Always construct lval_register
6498 values. Use get_frame_register_bytes.
6499 * valops.c (value_assign): Use get_frame_register_bytes and
6500 put_frame_register_bytes.
6501
a95c9d06
JB
65022007-01-08 Jim Blandy <jimb@codesourcery.com>
6503
6504 * MAINTAINERS: Update Stan Shebs' email address.
6505
4ed6b5be
JB
65062007-01-07 Joel Brobecker <brobecker@adacore.com>
6507
6508 * ada-lang.c (is_known_support_routine): Improve the implementation.
6509
9bbc9174
JB
65102007-01-06 Joel Brobecker <brobecker@adacore.com>
6511
6512 * ada-lang.c: Add include of source.h.
6513 (is_known_support_routine): Improve the check verifying that the file
6514 associated to this frame exists.
6515 * Makefile.in (ada-lang.o): Add dependency on source.h.
6516
44a81774
JB
65172007-01-07 Jim Blandy <jimb@codesourcery.com>
6518
6519 * ax-general.c (ax_const_l): Select proper opcode for the given
6520 value.
6521
fcd19eb1 65222007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
6523
6524 * varobj.c (c_value_of_root): Don't select frame if variable
6525 object is out of scope.
6526
fcd19eb1 65272007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
6528
6529 * varobj.c (struct varobj): New member print_value.
6530 (install_new_value): Compare last printed value with current one
6531 instead of contents.
6532 (new_variable): Initialize var->print_value to NULL.
6533 (free_variable): Free var->print_value.
6534 (value_get_print_value): New function derived from
6535 c_value_of_variable.
6536 (c_value_of_variable): Use value_get_print_value.
6537
92a56b20
JB
65382007-01-05 Joel Brobecker <brobecker@adacore.com>
6539
6540 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6541
0e420bd8
JB
65422007-01-05 Joel Brobecker <brobecker@adacore.com>
6543
6544 * NEWS: Add entries for new catch commands.
6545
b69733ab 65462007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
6547
6548 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6549 (add_partial_symbol): Correct identification of external references.
6550 (process_structure_scope): Likewise.
6551 (read_partial_die): Handle DW_AT_byte_size attribute.
6552
65532007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
6554
6555 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6556
8e38af42
NR
65572007-01-05 Nick Roberts <nickrob@snap.net.nz>
6558
6559 * varobj.c (get_type_deref): Fix variable objects for references to
6560 pointers.
6561
d1c79ecd
DJ
65622007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6563
6564 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6565 with no symbols.
6566
e776119f
DJ
65672007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6568
6569 * memory-map.c (struct_memory_map_parsing_data): Remove most
6570 members. Make property_name an array.
6571 (free_memory_map_parsing_data, memory_map_start_element)
6572 (memory_map_end_element, memory_map_character_data): Delete.
6573 (memory_map_start_memory, memory_map_end_memory)
6574 (memory_map_start_property, memory_map_end_property): New functions.
6575 (property_attributes, memory_children, memory_type_enum)
6576 (memory_attributes, memory_map_children, memory_map_elements): New.
6577 (parse_memory_map): Rewrite.
6578 * xml-support.c (debug_xml): New.
6579 (xml_get_required_attribute, xml_get_integer_attribute)
6580 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6581 Delete.
6582 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6583 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6584 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6585 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6586 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6587 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6588 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6589 New.
6590 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6591 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6592 (enum gdb_xml_element_flag, struct gdb_xml_element)
6593 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6594 (struct gdb_xml_enum): New.
6595 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6596 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6597 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6598 (xml_get_required_attribute, xml_get_integer_attribute)
6599 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6600 * Makefile.in (xml_support_h, xml-support.o): Update.
6601
5e572bb4
DJ
66022007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6603
6604 * Makefile.in (eval.o): Update dependencies.
6605 * eval.c: Include "ui-out.h" and "exceptions.h".
6606 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6607 Use value_zero if an error occurs when avoiding side effects.
6608 * varobj.c (c_value_of_root): Initialize new_val.
6609
74a44383
DJ
66102007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6611
6612 * varobj.c (varobj_list_children): Stop if the number of children is
6613 unknown.
6614 (c_number_of_children):
6615
e8d2d628
MK
66162007-01-04 Mark Kettenis <kettenis@gnu.org>
6617
6618 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6619 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6620 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6621 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6622 sizeof, instead of hardcoded constants.
6623
c941839d
DJ
66242007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6625
6626 * CONTRIBUTE: Use sourceware.org.
6627
303b6f5d 66282007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 6629
303b6f5d
DJ
6630 * buildsym.c (start_subfile): Handle producer.
6631 (record_producer): New function.
6632 * buildsym.h (struct subfile): Include producer.
6633 (record_producer): New prototype.
6634 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6635 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6636 armcc_cfa_offsets_reversed.
6637 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6638 (dwarf2_frame_find_quirks): New function.
6639 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6640 (decode_frame_entry_1): Record the CIE version. Record the
6641 augmentation. Skip armcc augmentations.
6642 * dwarf2read.c (read_file_scope): Save the producer.
6643 * symtab.h (struct symtab): Rename unused version member to
6644 producer.
2d0720d9 6645
aa79a185
DJ
66462007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
6647
6648 * configure.ac (build_warnings): Use -Wall and
6649 -Wdeclaration-after-statement.
6650 * configure: Regenerated.
6651
bbec2603
VP
66522007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6653
6654 Simplify access to variours properties of child
6655 variable objects in C.
6656 * varobj.c (value_struct_element_index): New function.
6657 (c_describe_child): New function.
6658 (c_name_of_child, c_value_of_child)
6659 (c_type_of_child): Rewrite to use c_describe_child.
6660
28335dcc
VP
66612007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6662
6663 gdb/
6664 * varobj.c: Include "vec.h".
6665 (varobj_p): New typedef, declare vector of those.
6666 (struct varobj): Use vector for the 'children' member.
6667 (child_exists): Remove.
6668 (save_child_in_parent): Remove.
6669 (remove_child_from_parent): Remove.
6670 (struct varobj_child): Remove.
6671 (struct vstack): Remove.
6672 (vpush, vpop): Remove.
6673 (varobj_list_children): Adjust to work work vector.
6674 (varobj_update): Likewise. Use vectors for
6675 working stack and result.
6676 (delete_variable_1): Likewise.
6677 * Makefile.in (varobj.o): Update dependencies.
6678
b2c2bd75
VP
66792007-01-04 Vladimir Prus <vladimir@codesourcery.com>
6680
6681 Port from Apple's version.
6682 gdb/
6683 * varobj.c (type_changeable): Rename to...
6684 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6685 (is_root_p): New function. Use it everywhere.
6686
bdfb3870
JB
66872007-01-04 Jim Blandy <jimb@codesourcery.com>
6688
6689 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6690 then plain 'fixup'.
6691
5d15052e
JB
66922007-01-04 Joel Brobecker <brobecker@adacore.com>
6693
6694 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6695
53103997
JB
66962007-01-04 Joel Brobecker <brobecker@adacore.com>
6697
6698 * hpread.c (hpread_type_lookup): Fix compilation failure.
6699
27fd2f50
Q
67002007-01-04 Qinwei <qinwei@sunnorth.com.cn>
6701
6702 * NEWS: New port to S+core.
6703 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6704 Add myself.
6705
6706 * Makefile.in: Add dependencies for S+core files.
6707 * configure.tgt (score*, score-*-*): Add S+core target.
6708 * config/score/embed.mt: New file.
6709 * score-tdep.c: New file.
6710 * score-tdep.h: New file.
6711
a6cfbe68
JB
67122007-01-04 Joel Brobecker <brobecker@adacore.com>
6713
6714 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6715 the appropriate type rather than a bogus void type.
6716
67cf15b7 67172007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
6718
6719 * ada-lang.h (ada_find_printable_frame): Remove.
6720 (ada_exception_catchpoint_p, ada_decode_exception_location)
6721 (ada_decode_assert_location): Add declaration.
6722 * ada-lang.c: Add include of annotate.h and valprint.h.
6723 (exception_catchpoint_kind): New enum.
6724 (function_name_from_pc, is_known_support_routine)
6725 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6726 (ada_exception_name_addr_1, ada_exception_name_addr)
6727 (print_it_exception, print_one_exception, print_mention_exception)
6728 (print_it_catch_exception, print_one_catch_exception)
6729 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6730 (print_it_catch_exception_unhandled)
6731 (print_one_catch_exception_unhandled)
6732 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6733 (print_one_catch_assert, print_mention_catch_assert)
6734 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6735 (ada_get_next_arg, catch_ada_exception_command_split)
6736 (ada_exception_sym_name, ada_exception_sym_name)
6737 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6738 (ada_parse_catchpoint_condition, ada_exception_sal)
6739 (ada_decode_exception_location)
6740 (ada_decode_assert_location): New function.
6741 (catch_exception_unhandled_breakpoint_ops): New global variable.
6742 (catch_assert_breakpoint_ops): New global variable.
6743 * breakpoint.c: Add include of ada-lang.h.
6744 (print_one_breakpoint): Do not print the condition for Ada
6745 exception catchpoints.
6746 (create_ada_exception_breakpoint): New function.
6747 (catch_ada_exception_command, catch_assert_command): New function.
6748 (catch_command_1): Add support for the new "catch exception" and
6749 "catch assert" commands.
6750 (_initialize_breakpoint): Add help description for the new catch
6751 commands.
6752 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6753 valprint.h.
6754 (breakpoint.o): Add dependency on ada-lang.h.
6755
05cfdb42
DJ
67562007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
6757
6758 * coffread.c (cs_to_section): If bfd_section is found, always
6759 return its section index.
6760 (coff_symtab_read): Determine the minimal_symbol_type using the
6761 bfd_section flags.
6762
2e03ee74
DJ
67632007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6764 Daniel Jacobowitz <dan@codesourcery.com>
6765
6766 * Makefile.in (top.o): Update.
6767 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6768 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6769 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6770 New.
6771 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6772
1c63d086
MK
67732007-01-03 Mark Kettenis <kettenis@gnu.org>
6774
6775 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6776 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6777
d5d6fca5
DJ
67782007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6779
6780 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6781 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6782 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6783 greater than or equal to zero.
6784 * m2-typeprint.c (m2_array): Likewise.
6785 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6786 * gdbtypes.c (copy_type_recursive): Correct == typo.
6787 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6788 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6789 greater than zero.
6790 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6791 (default_macro_scope): Remove unused variable.
6792 * prologue-value.h (pv_area_find_reg): Don't name an argument
6793 "register".
6794 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6795 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6796 type.
6797 (cleanup_sigint_signal_handler): Remove casts.
6798 * valprint.c (val_print): Use a volatile local for the modified
6799 argument.
6800 * varobj.c (languages): Remove extra array dimension.
6801 (varobj_create): Correct access to languages array.
6802 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6803 missing braces.
6804 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6805 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6806 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6807 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6808 (mi_cmd_data_write_memory): Likewise.
6809 * signals/signals.c (target_signal_to_string): Cast to int before
6810 comparing.
6811 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6812 Update all callers.
6813
0d5de010
DJ
68142007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
6815
6816 * NEWS: Mention pointer to member improvements.
6817 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6818 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6819 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6820 * c-typeprint.c (c_print_type): Update for new type codes.
6821 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6822 (c_type_print_base): Likewise.
6823 (c_type_print_args): Rewrite.
6824 * c-valprint.c (c_val_print): Update for new type codes. Remove
6825 support for references to members. Treat methods like functions.
6826 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6827 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6828 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6829 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6830 (struct cp_abi_ops): Add corresponding members.
6831 * cp-valprint.c (cp_print_class_method): Delete.
6832 (cp_find_class_member): New function.
6833 (cp_print_class_member): Use it. Simplify support for bogus
6834 member pointers.
6835 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6836 lookup_methodptr_type.
6837 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6838 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6839 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6840 pointer support.
6841 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6842 references returned by user defined operators.
6843 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6844 (f_type_print_varspec_suffix): Remove support for member pointers.
6845 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6846 and adjusted.
6847 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6848 (lookup_methodptr_type): New.
6849 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6850 (recursive_dump_type): Update for new types.
6851 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6852 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6853 (lookup_memberptr_type, lookup_methodptr_type)
6854 (smash_to_memberptr_type): New prototypes.
6855 (smash_to_method_type): Formatting fix.
6856 (lookup_member_type, smash_to_member_type): Delete prototypes.
6857 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6858 Do not rely on debug information for the vptr or the method's
6859 enclosing type. Handle function descriptors for IA64.
6860 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6861 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6862 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6863 (gnuv3_method_ptr_to_value): New.
6864 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6865 * hpread.c (hpread_type_lookup): Update for new types.
6866 * infcall.c (value_arg_coerce): Likewise.
6867 * m2-typeprint.c (m2_print_type): Remove explicit support
6868 for member pointers.
6869 * m2-valprint.c (m2_val_print): Likewise.
6870 * p-typeprint.c (pascal_type_print_varspec_prefix)
6871 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6872 * p-valprint.c (pascal_val_print): Likewise.
6873 (pascal_object_print_class_method, pascal_object_print_class_member):
6874 Delete.
6875 * p-lang.h (pascal_object_print_class_method)
6876 (pascal_object_print_class_member): Delete prototypes.
6877 * stabsread.c (read_type): Update for new types.
6878 * typeprint.c (print_type_scalar): Likewise.
6879 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6880 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6881 argument. Construct a pointer to member if the address of a
6882 function or data member is requested.
6883 (value_cast_pointers): Don't modify the input value.
6884 (value_cast): Adjust pointer to member handling for new types.
6885 Allow null pointer to member constants. Don't modify the input
6886 value.
6887 (value_ind): Remove pointer to member check. Handle function
6888 descriptors for function pointers.
6889 (value_struct_elt, value_find_oload_method_list, check_field):
6890 Remove pointer to member checks.
6891 * value.c (unpack_long): Allow pointers to data members.
6892 (value_from_longest): Allow member pointers.
6893 * value.h (value_aggregate_elt): Add want_address.
6894 * varobj.c (c_variable_editable): Remove check for members.
6895 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6896 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6897 in virtual tables.
6898 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6899 * c-lang.h (cp_print_class_method): Delete prototype.
6900 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6901 * mips-tdep.c (mips_gdbarch_init): Likewise.
6902 * gdbarch.c, gdbarch.h: Regenerated.
6903
d217aaed
MK
69042007-01-01 Mark Kettenis <kettenis@gnu.org>
6905
6906 * rs6000-tdep.c (rs6000_use_struct_convention)
6907 (rs6000_extract_return_value, rs6000_store_return_value)
6908 (rs6000_extract_struct_value_address): Remove.
6909 (rs6000_return_value): New function.
6910 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6911 store_return_value, deprecated_extract_struct_value_address and
6912 deprecated_use_struct_convention. Use rs6000_return_value
6913 instead.
6914
02296b29
NR
69152007-01-02 Nick Roberts <nickrob@snap.net.nz>
6916
6917 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6918 -display-disable, -display-enable, -display-insert and
6919 -display-list.
6920
b69733ab 69212007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
6922
6923 * breakpoint.c (remove_breakpoint): Remove dead code.
6924
69252007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
6926
6927 * varobj.c: Include block.h.
6928 (c_value_of_root): Check scope within nested statements.
6929
9f3a1602
MK
69302007-01-01 Mark Kettenis <kettenis@gnu.org>
6931
6932 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6933 regcache_cooked_write_signed instead of
6934 deprecated_write_register_bytes.
6935
12349ccd
JB
69362007-01-01 Joel Brobecker <brobecker@adacore.com>
6937
6938 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6939
8c48ebcf
JB
69402007-01-01 Joel Brobecker <brobecker@adacore.com>
6941
6942 Followed the Start of New Year Procedure:
6943 * ChangeLog-2006: New file, containing all the entries for 2006.
6944 * ChangeLog: Removed all 2006 entries, and changed the reference
6945 to the previous ChangeLog to point to ChangeLog 2006.
6946 * top.c (print_gdb_version): Update copyright year.
6947
154927ff
MK
69482007-01-01 Mark Kettenis <kettenis@gnu.org>
6949
6950 * Makefile.in (remote-sds.o): Remove.
6951 * remote-sds.c: Delete.
6952
8c48ebcf 6953For older changes see ChangeLog-2006.
c906108c
SS
6954\f
6955Local Variables:
6956mode: change-log
6957left-margin: 8
6958fill-column: 74
6959version-control: never
57da7796 6960coding: utf-8
c906108c 6961End:
This page took 1.166919 seconds and 4 git commands to generate.