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