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