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