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