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