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