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