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