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