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