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