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