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