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