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