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