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