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