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