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