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