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