]> Git Repo - binutils.git/blob - gdb/ChangeLog
* alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
[binutils.git] / gdb / ChangeLog
1 2006-08-22  Mark Kettenis  <[email protected]>
2
3         * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
4         (alpha_push_dummy_call, alpha_extract_return_value)
5         (alpha_breakpoint_from_pc, alpha_read_insn)
6         (alpha_get_longjmp_target, alpha_supply_int_regs)
7         (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
8         (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
9         appropriate.
10
11         * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
12         (sparc64_fprs_type): New variables.
13         (sparc64_init_types): New function.:
14         (sparc64_register_info): Use appropriate flag types for %fsr and
15         %fprs.
16         (sparc64_pseudo_register_info): Use appropriate type for %pstate.
17         (_initialize_sparc64_tdep): New function.
18
19         * valprint.c (val_print_type_code_flags): Fix for bitfields larger
20         than 32 bits.
21
22         * gdbtypes.c (init_flags_type): Set all fields to zero instead of
23         just the first one.
24
25 2006-08-22  Daniel Jacobowitz  <[email protected]>
26
27         * Makefile.in (INTERNAL_CPPFLAGS): New.
28         (INTERNAL_CFLAGS_BASE): Use it.
29
30 2006-08-22  Michael Snyder  <[email protected]>
31
32         * MAINTAINERS: Update my email address.
33
34 2006-08-19  Daniel Jacobowitz  <[email protected]>
35
36         * Makefile.in (amd64_linux_tdep_h): New.
37         (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
38         * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
39         ORIG_RAX.
40         (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
41         * amd64-linux-tdep.c (amd64_linux_register_name)
42         (amd64_linux_register_type, amd64_linux_register_reggroup_p)
43         (amd64_linux_write_pc): New.
44         (amd64_linux_init_abi): Use them, and update num_regs.
45         * amd64-linux-tdep.h: New file.
46         * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
47         public.
48         * amd64-tdep.h (amd64_register_name, amd64_register_type): New
49         prototypes.
50
51         * regformats/reg-x86-64-linux.dat: New file.
52
53 2006-08-18  Daniel Jacobowitz  <[email protected]>
54
55         * infrun.c (handle_inferior_event): Check the current frame ID
56         before unwinding to the previous frame.
57
58 2006-08-18  Daniel Jacobowitz  <[email protected]>
59
60         * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
61         number in a comment.
62
63 2006-08-18  Mark Kettenis  <[email protected]>
64
65         * sparc-nat.c (sparc_xfer_wcookie): Signal EOF.  Tweak comment.
66
67 2006-08-18  Daniel Jacobowitz  <[email protected]>
68
69         * dwarf2read.c (quirk_gcc_member_function_pointer): New.
70         (read_structure_type): Call it.
71
72 2006-08-16  Daniel Jacobowitz  <[email protected]>
73
74         * NEWS: Mention "set trust-readonly-sections" fix.
75
76 2006-08-16  Daniel Jacobowitz  <[email protected]>
77
78         * remote.c, target.c: Strip trailing whitespace.
79
80 2006-08-15  Daniel Jacobowitz  <[email protected]>
81
82         PR remote/1966
83         * dcache.c (dcache_write_line): Use target_write.
84         (dcache_read_line): Use target_read.
85         * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
86         * symfile.c (struct load_section_data): Add new per-section
87         members.
88         (load_progress): New function.
89         (load_section_callback): Pass load_progress to the new
90         target_write_with_progress.
91         * target.c (current_xfer_partial, memory_xfer_partial): New.
92         (target_xfer_partial): New prototype.
93         (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
94         (do_xfer_memory, target_xfer_memory_partial)
95         (target_read_memory_partial, target_write_memory_partial): Delete.
96         (trust_readonly): Move higher in the file.
97         (update_current_target): Use current_xer_partial.
98         (target_xfer_partial): Use memory_xfer_partial.  Handle
99         TARGET_OBJECT_RAW_MEMORY specially.
100         (target_read_memory): Use target_read.
101         (target_write_memory): Use target_write.
102         (default_xfer_partial): Call to_xfer_partial directly.
103         (target_write_with_progress): New function, based on target_write.
104         (target_write): Call it.
105         * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
106         (target_write_with_progress): New prototype.
107         (do_xfer_memory, target_read_memory_partial)
108         (target_write_memory_partial): Delete prototypes.
109
110 2006-08-15  Daniel Jacobowitz  <[email protected]>
111
112         * remote.c (remote_write_bytes): Take a const buffer argument.
113         Do the checks from remote_xfer_memory.
114         (remote_read_bytes): Do the checks from remote_xfer_memory.
115         (remote_xfer_memory): Remove checks pushed into lower level
116         functions.
117         (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
118         directly.
119         * remote.h (remote_write_bytes): Update prototype.
120
121 2006-08-11  Andrew Stubbs  <[email protected]>
122
123         * NEWS: Add 'set trace-commands' command.
124
125 2006-08-10  Andrew Stubbs  <[email protected]>
126
127         * cli/cli-script.c (execute_user_command): Update command_next_depth
128         on user-command call.
129
130 2006-08-09  Joel Brobecker  <[email protected]>
131
132         * NEWS: Add entry for new substitute-path commands.
133
134 2006-08-08  Joel Brobecker  <[email protected]>
135
136         * source.c: #include gdb_assert.h.
137         (substitute_path_rule): New struct.
138         (substitute_path_rules): New static global variable.
139         (substitute_path_rule_matches): New function.
140         (get_substitute_path_rule): New function.
141         (rewrite_source_path): New function.
142         (find_and_open_source): Add source path rewriting support.
143         (strip_trailing_directory_separator): New function.
144         (find_substitute_path_rule): New function.
145         (add_substitute_path_rule): New function.
146         (delete_substitute_path_rule): New function.
147         (show_substitute_path_command): New function.
148         (unset_substitute_path_command): New function.
149         (set_substitute_path_command): New function.
150         (_initialize_source): Add new substitute-path commands.
151         * Makefile.in (source.o): Add dependency on gdb_assert.h.
152
153 2006-08-08  Joel Brobecker  <[email protected]>
154
155         * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
156         instructions.
157         (i386_analyze_struct_return): Likewise.
158         (i386_skip_probe): Likewise.
159         (i386_match_insn): Likewise.
160         (i386_analyze_frame_setup): Likewise.
161         (i386_analyze_register_saves): Likewise.
162         (i386_skip_prologue): Likewise.
163
164 2006-08-08  Joel Brobecker  <[email protected]>
165
166         * gdbcore.h (read_memory_nobpt): New function name instead of
167         deprecated_read_memory_nobpt.
168         * breakpoint.c (read_memory_nobpt): New function name instead
169         of deprecated_read_memory_nobpt.
170         Adjust calls to old deprecated_read_memory_nobpt accordingly.
171         * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
172         accordingly.
173         * alphanbsd-tdep.c: Likewise.
174         * frame.c: Likewise.
175         * frv-tdep.c: Likewise.
176         * hppa-linux-tdep.c: Likewise.
177         * hppa-tdep.c: Likewise.
178         * i386-linux-nat.c: Likewise.
179         * m68klinux-tdep.c: Likewise.
180         * mips-tdep.c: Likewise.
181         * s390-tdep.c: Likewise.
182
183 2006-08-08  Daniel Jacobowitz  <[email protected]>
184
185         * configure.ac: Check for expat.
186         * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
187         * Makefile.in (LIBEXPAT): New.
188         (CLIBS): Include $(LIBEXPAT).
189         * README: Mention expat.
190         * configure, config.in: Regenerated.
191
192 2006-08-08  Joel Sherrill <[email protected]>
193
194         * config/sparc/embed.mt: New file.
195         * configure.tgt (sparc-*-rtems*): Use embed.mt.
196
197 2006-08-08  Daniel Jacobowitz  <[email protected]>
198
199         * Makefile.in (objfiles.o, symfile.o): Update.
200         * objfiles.c: Include "expression.h" and "parser-defs.h".
201         (free_objfile): Clear global blocks.
202         * symfile.c: Include "parser-defs.h".
203         (clear_symtab_users): Clear global blocks.
204
205 2006-08-08  Thiemo Seufer  <[email protected]>
206
207         * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
208
209 2006-08-08  Vladimir Prus  <[email protected]>
210
211         * symfile.c (download_write_size): Remove.
212         (show_download_write_size): Remove.
213         (load_section_callback): Don't use download_write_size.
214         (_initialize_symfile): Don't register download_write_size.
215         * NEWS: Mention 'download-write-size' removal.
216
217 2006-08-06  Daniel Jacobowitz  <[email protected]>
218
219         * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
220         support for member pointers.
221
222 2006-08-02  Mark Kettenis  <[email protected]>
223
224         * arm-tdep.h: Add multiple inclusion protection.
225         (struct gdbarch): Add forward declaration.
226         (armobsd_regset_from_core_section): New prototype.
227         * armbsd-tdep.c: New file.
228         * armobsd-tdep.c: Include "gdb_string.h".
229         (armobsd_init_abi): Set regset_from_core_section.
230         (armobsd_core_osabi_sniffer): New function.
231         (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
232         * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
233         (armbsd-tdep.o): New dependency.
234         (armnbsd-tdep.o): Update dependencies.
235         * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
236
237 2006-08-02  Thiemo Seufer  <[email protected]>
238
239         * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
240         mismatch.
241         * tui/tui-stack.c (tui_show_frame_info): Likewise.
242
243 2006-08-01  Daniel Jacobowitz  <[email protected]>
244
245         * c-exp.y (type): Remove incorrect pointer to member case.
246         * objc-exp.y (type): Likewise.
247         * p-exp.y (type): Likewise.
248
249 2006-08-01  Mark Kettenis  <[email protected]>
250
251         * arm-tdep.h (enum struct_return): New.
252         (struct gdbarch_tdep): Add struct_return member.
253         * arm-tdep.c (arm_return_value): Return
254         RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
255         pcc_struct_return.
256         (arm_gdbarch_init): Default to reg_struct_return.
257         * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
258
259 2006-07-31  Mark Kettenis  <[email protected]>
260
261         * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
262         * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
263         <machine/pcb.h> and "bsd-kvm.h".
264         (alphabsd_supply_pcb): New function.
265         (_initialize_alphabsd_nat): Enable libkvm interface.
266         * Makefile.in (alphabsd-nat.o): Update dependencies.
267         * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
268         (LOADLIBES): New variable.
269         * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
270         (LOADLIBES): New variable.
271
272 2006-07-31  Fred Fish  <[email protected]>
273
274         * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
275         instead of calling frame_obstack_zalloc directly.
276         (arm_make_stub_cache): Ditto.
277         * frame-unwind.h: Ditto.
278         * frame.c (create_new_frame): Ditto.
279
280 2006-07-27  Bob Wilson  <[email protected]>
281
282         * MAINTAINERS (Write After Approval): Add myself.
283
284 2006-07-27  Bob Wilson  <[email protected]>
285
286         * main.c (captured_main): Print a newline after calling
287         print_gdb_version instead of waiting until after the symbol file
288         has been read.  Adjust error_pre_print, quit_pre_print, and
289         warning_pre_print values.
290
291 2006-07-27  Roger Sayle  <[email protected]>
292             Daniel Jacobowitz  <[email protected]>
293
294         * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
295
296 2006-07-27  Daniel Jacobowitz  <[email protected]>
297
298         * target.h (target_read_stralloc): New prototype.
299         * target.c (target_read_alloc_1): Renamed from target_read_alloc.
300         Take new PADDING argument.
301         (target_read_alloc): Use it.
302         (target_read_stralloc): New function.
303
304 2006-07-26  Daniel Jacobowitz  <[email protected]>
305
306         * remote.c (remote_protocol_features): Correct qPart to qXfer.
307
308 2006-07-25  Daniel Jacobowitz  <[email protected]>
309
310         * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
311         calls to C++ operator*.
312
313 2006-07-24  Roger Sayle  <[email protected]>
314             Daniel Jacobowitz  <[email protected]>
315
316         * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
317         (gdb_int64_bytes): Likewise.
318         (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
319         as first argument to extract_unsigned_integer to silence compiler
320         warnings.
321
322 2006-07-24  Frederic Riss  <[email protected]>
323
324         * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero 
325         field.
326         (dwarf2_locate_sections): Initialize 
327         dwarf2_per_objfile->has_section_at_zero.
328         (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero 
329         instead of HAS_RELOC test.
330         (read_partial_die): Ditto.
331
332 2006-07-24  Daniel Jacobowitz  <[email protected]>
333
334         * corefile.c (reopen_exec_file): Only check for an open exec file.
335         Use exec_file_attach.
336         * exec.c (exec_open): Make static.
337         (exec_file_command): Don't use target_preopen.  Query directly about
338         changing the file.
339         * gdbcore.h (exec_open): Remove prototype.
340
341 2006-07-24  Frederic Riss  <[email protected]>
342
343         * regcache.c (struct regcache): Make register_valid_p a signed char 
344         array.
345
346 2006-07-24  Jan Kratochvil  <[email protected]>
347             Daniel Jacobowitz  <[email protected]>
348
349         * linux-thread-db.c (thread_db_wait): Remove libthread_db
350         after exec events.
351
352 2006-07-24  Daniel Jacobowitz  <[email protected]>
353
354         * NEWS: Mention Windows cross debugging support.
355
356 2006-07-23  Daniel Jacobowitz  <[email protected]>
357
358         * linux-nat.c (linux_nat_add_target): Remove extern.
359         * linux-nat.h (thread_db_init): New prototype.
360
361 2006-07-22  Daniel Jacobowitz  <[email protected]>
362
363         * configure.tgt: Build gdbserver for Cygwin and mingw32.
364
365 2006-07-22  Daniel Jacobowitz  <[email protected]>
366
367         * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
368         * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
369         * config/i386/tm-cygwin.h: Delete file.
370
371 2006-07-22  Jan Kratochvil  <[email protected]>
372
373         * infrun.c (handle_inferior_event): Typo.
374
375 2006-07-21  Andrew Stubbs  <[email protected]>
376
377         * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
378         (source_script): New function.
379         (source_verbose_cleanup): New function.
380         (source_command): Move old contents to source_script.
381         Make function static. Parse -v option and call source_script.
382         (init_cli_cmds): Update source command help.
383         Add 'set trace-commands' command.
384         * cli/cli-script.c (command_next_depth): New static variable.
385         (suppress_next_print_command_trace): New static variable.
386         (reset_command_nest_depth): New function.
387         (print_command_trace): New function.
388         (execute_control_command): Split the continue_control and break_control
389         cases, add calls to print_command_trace and count the nest depth.
390         (while_command): Set suppress_next_print_command_trace.
391         (if_command): Likewise.
392         * top.c (execute_command): Call print_command_trace.
393         * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
394         (source_command): Change to source_script.
395         * main.c (captued_main): Use source_script instead of source_command.
396         * top.h (source_command): Change to source_script.
397         * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
398         * cli/cli-script.h (print_command_trace): Export.
399         (reset_command_nest_depth): Likewise.
400
401 2006-07-20  Daniel Jacobowitz  <[email protected]>
402
403         * eval.c (evaluate_struct_tuple): Skip static fields.
404
405 2006-07-19  Mark Kettenis  <[email protected]>
406
407         * alphaobsd-tdep.c: Include "obsd-tdep.h".
408         (alphaobsd_init_abi): Set skip_solib_resolver.
409         * Makefile.in (alphaobsd-tdep.o): Update dependencies.
410         * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
411
412         * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
413         from ELF flags for binaries produced by the GNU toolchain.
414
415 2006-07-18  Nathan Sidwell  <[email protected]>
416
417         * remote-fileio.c (remote_fileio_func_rename): Reorder to process
418         input buffer before reading memory.
419         (remote_fileio_func_stat): Likewise.
420
421 2006-07-18  Daniel Jacobowitz  <[email protected]>
422
423         * blockframe.c (find_pc_partial_function): Use the minimal symbol
424         size to control the cache entry, if available.
425         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
426         symbols with zero and non-zero sizes differently.
427
428 2006-07-18  Daniel Jacobowitz  <[email protected]>
429
430         * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
431         (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
432         (thread_db_fetch_registers, thread_db_store_registers)
433         (thread_db_thread_alive, thread_db_state_str): Delete.
434         (thread_db_load): Don't look up regset functions.
435         (thread_db_pid_to_str): Simplify.
436         (thread_db_extra_thread_info): New.
437         (init_thread_db_ops): Do not set to_fetch_registers,
438         to_store_registers, or to_thread_alive.  Set to_extra_thread_info.
439         * Makefile.in: Remove linux-thread-db.o rule.
440
441 2006-07-18  Mark Kettenis  <[email protected]>
442
443         * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
444         (armobsd_sigframe_init): New function.
445         (armobsd_sigframe): New variable.
446         (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
447         * Makefile.in (armobsd-tdep.o): Update dependencies.
448
449 2006-07-18  Denis PILAT  <[email protected]>
450
451         * monitor.c: Remove unused prototypes.
452
453 2006-07-18  Vladimir Prus  <[email protected]>
454
455         * target.c (tcomplain): Mark with ATTR_NORETURN.
456
457         * defs.h (print_transfer_performance): Improve comments.
458
459 2006-07-17  Mark Kettenis  <[email protected]>
460
461         * printcmd.c: Coding style fixes: add missing spaces in comments
462         and wrapping long lines.
463         (delete_display, enable_display_command, disable_display_command)
464         (printf_command, display_info, undisplay_command, free_display)
465         (display_command, x_command, address_info, set_command)
466         (inspect_command, call_command, print_command, print_command_1)
467         (validate_format, print_formatted, decode_format, sym_format):
468         Remove prototypes.
469         (x_command): Make static.
470         (printf_command): Convert error into internal consistency check.
471         (address_info): Avoid assignment within function call.
472         (printf_command): Avoid redundant cast.
473         * tracepoint.c (x_command): Remove extern prototype.
474
475         * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
476         * Makefile.in (armobsd-tdep.o): Update dependencies.
477         * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
478
479 2006-07-16  Mark Kettenis  <[email protected]>
480
481         * armobsd-tdep.c: New file.
482         * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
483         (armobsd-tdep.o): New dependency.
484         * config/arm/obsd.mt: New file.
485         * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
486
487         * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
488         * gdbarch.h, gdbarch.c: Re-generate.
489
490         * arm-tdep.c (arm_saved_pc_after_call): Delete.
491         (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
492
493 2006-07-16  Alfred M. Szmidt  <[email protected]>
494         
495         * gnu-nat.c: Undefine _process_user_ before including
496         <hurd/process_request.h>.
497         (gnu_resume): Supply missing argument to error().
498         (gnu_read_inferior): Add extra parenthesis around arithmetic
499         expression to silence warnings from GCC.
500         (gnu_write_inferior): Likewise.
501         (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
502
503 2006-07-16  Mark Kettenis  <[email protected]>
504
505         * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
506         svr4_ilp_fetch_link_map_offsets.
507
508 2006-07-15  Mark Kettenis  <[email protected]>
509
510         * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
511         * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
512         (DEPRECATED_TM_FILE): Remove.
513         * Makefile.in (armnbsd-tdep.o): Update dependencies.
514         
515 2006-07-14  Joel Brobecker  <[email protected]>
516
517         * PROBLEMS: Document threads/2137.
518
519 2006-07-13  Mark Kettenis  <[email protected]>
520
521         * config/alpha/tm-nbsd.h: Remove file.
522         * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
523
524 2006-07-13  Corinna Vinschen  <[email protected]>
525
526         * mips-tdep.c (mips_integer_to_address): Simplify be calling
527         extract_signed_integer directly.  Fix comment.
528
529 2006-07-13  Corinna Vinschen  <[email protected]>
530
531         * m32c-tdep.c (m32c_banked_register): New function.
532         (m32c_banked_read): Use m32c_banked_register function to evaluate
533         real register number.
534         (m32c_banked_write): Ditto.
535         (m32c_virtual_frame_pointer): New function.
536         (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
537
538 2006-07-13  Nathan Sidwell  <[email protected]>
539
540         * m68k-tdep.c (m68k_frame_align): New.
541         (m68k_gdbarch_init): Set frame_align here.
542
543 2006-07-13  Denis PILAT  <[email protected]>
544
545         * interps.c (interpreter_completer): Allocate one more item to the
546         'matches' list and set them all to 0 with a xcalloc.
547
548 2006-07-13  Nick Roberts  <[email protected]>
549
550         * annotate.c (annotate_frame_begin): Re-instate frame-begin
551         annotation for level 3 annotations.
552
553 2006-07-13  Paul N. Hilfinger  <[email protected]>
554             Daniel Jacobowitz  <[email protected]>
555
556         * infcall.c (value_arg_coerce): Use value_cast_pointers for
557         references.  Avoid value_cast to a reference type.  Don't silently
558         convert pointers to references.
559         * valops.c (value_cast_pointers): New, based on value_cast.
560         (value_cast): Use it.  Reject reference types.
561         (value_ref): New.
562         (typecmp): Use it.
563         * value.h (value_cast_pointers, value_ref): New prototypes.
564
565 2006-07-12  Daniel Jacobowitz  <[email protected]>
566
567         * remote.c (unpack_varlen_hex): Correct type of retval.
568         Reported by Zhigang Gong <[email protected]>.
569
570 2006-07-12  Daniel Jacobowitz  <[email protected]>
571
572         * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
573         or missing location list information.  Suggested by Jan
574         Kratochvil <[email protected]>.
575
576 2006-07-12  Daniel Jacobowitz  <[email protected]>
577
578         * Makefile.in (arm_linux_tdep_h): New variable.
579         (arm-linux-nat.o, arm-linux-tdep.o): Update.
580         * arm-linux-nat.c: Include "arm-linux-tdep.h".
581         (typeNone, typeSingle, typeDouble, typeExtended)
582         (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
583         (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
584         (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
585         (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
586         Delete.
587         (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
588         Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
589         and collect_nwfpe_register.
590         (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
591         new regset functions.
592         * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
593         (arm_apcs_32): New declaration.
594         (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
595         (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
596         (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
597         (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
598         (arm_linux_regset_from_core_section): New.
599         (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
600         * arm-linux-tdep.h: New file.
601         * arm-tdep.h (struct regset): Declare.
602         (struct gdbarch_tdep): Add gregset, fpregset members.
603         * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
604         core-regset.o.
605         * config/arm/linux.mt (TDEPFILES): Add corelow.o.
606
607 2006-07-12  Jan Kratochvil  <[email protected]>
608
609         * infrun.c (handle_inferior_event): Fixed typos in printf.
610
611 2006-07-12  Daniel Jacobowitz  <[email protected]>
612             Nathan Sidwell  <[email protected]>
613
614         * remote.c (REMOTE_ALIGN_WRITES): New.
615         (remote_write_bytes): Align large write packets.  Remove unused
616         payload_start variable.
617
618 2006-07-12  Daniel Jacobowitz  <[email protected]>
619
620         * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
621         (remote_supported_packet): Remove #if 0.
622         (remote_protocol_features): Add qPart:auxv:read.
623         (remote_unescape_input): New function.
624         (readchar): Don't mask off the high bit.
625         (read_frame): Use fputstrn_filtered for packet data.
626         (getpkt_sane): Return the number of bytes read or -1.  Use
627         fputstrn_unfiltered.
628         (remote_read_qxfer): New.
629         (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
630         (_initialize_remote): Update packet registration.
631         * defs.h (fputstrn_filtered): New prototype.
632         * utils.c (fputstrn_filtered): New.
633         * NEWS: Mention qXfer.
634
635 2006-07-12  Daniel Jacobowitz  <[email protected]>
636
637         * target.c (target_read): Stop if target_read_partial returns 0
638         when some bytes have already been read.
639         (target_write): Likewise for target_write_partial.
640         (target_read_partial, target_write_partial): Make static.
641         (target_read_alloc): New.
642         * target.h: Doc fixes.
643         (target_read_partial, target_write_partial): Delete prototypes.
644         (target_read_alloc): New prototype.
645
646         * auxv.c (target_auxv_read): Delete.
647         (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
648         * auxv.h (target_auxv_read): Delete prototype.
649         * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
650         * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
651         * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
652         * procfs.c (procfs_make_note_section): Likewise.
653         * remote.c (remote_xfer_partial): Don't loop here.
654         * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
655
656 2006-07-12  Daniel Jacobowitz  <[email protected]>
657
658         * arm-linux-tdep.c: Doc fixes.
659         (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
660         (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
661         (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
662         constants.
663         (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
664         the new signal frame layouts.
665
666 2006-07-12  Mike Frysinger  <[email protected]>:
667             Daniel Jacobowitz  <[email protected]>
668
669         * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
670         * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
671         * gdbarch.sh: Correct comment.
672
673 2006-07-12  Daniel Jacobowitz  <[email protected]>
674
675         * MAINTAINERS: Add Alfred Szmidt for the Hurd.
676
677 2006-07-11  Mark Kettenis  <[email protected]>
678
679         * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
680
681 2006-07-10  Mark Kettenis  <[email protected]>
682
683         * alphaobsd-tdep.c: New file.
684         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
685         handler for GDB_OSABI_OPENBSD_ELF.
686         * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
687         (alphaobsd-tdep.o): New target.
688         * config/alpha/obsd.mt: New file.
689         * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
690
691 2006-07-10  Richard Henderson  <[email protected]>
692
693         * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
694         * alpha-tdep.c (alpha_register_byte): Remove.
695         (alpha_extract_struct_value_address): Remove.
696         (alpha_return_value): New.
697         (alpha_return_in_memory_always): New.
698         (alpha_gdbarch_init): Set tdep->return_in_memory.  Don't call
699         set_gdbarch_deprecated_register_byte.  Do call set_gdbarch_return_value
700         instead of set_gdbarch_deprecated_use_struct_convention,
701         set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
702         or set_gdbarch_deprecated_extract_struct_value_address.
703         * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
704         alphafbsd_use_struct_convention, remove gcc_p argument.
705         (alphafbsd_init_abi): Set tdep->return_in_memory instead of
706         set_gdbarch_deprecated_use_struct_convention.
707
708 2006-07-09  Mark Kettenis  <[email protected]>
709
710         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
711         prototype.
712         * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
713         a.out-style core file format here.  Make global.
714         (alphanbsd_regset_from_core_section): Remove.
715         (alphanbsd_sigtramp_offset): Make static.
716         (alphanbsd_aout_init_abi): Remove.
717         (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
718         a.out style core files.
719         (_initialize_alphanbsd_tdep): Do not register a handler for
720         GDB_OSABI_NETBSD_AOUT.
721
722         * alphabsd-tdep.h: Tweak comments.
723         (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
724         * alphanbsd-tdep.c: Reorder includes.  Include "regset.h".
725         (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
726         (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
727         (alphanbsd_aout_supply_gregset): New functions.
728         (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
729         New variables.
730         (alphanbsd_regset_from_core_section)
731         (alphanbsd_aout_regset_from_core_section): New functions.
732         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
733         (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
734         (alphanbsd_init_abi): Set regset_from_core_section.
735         (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
736         functions.
737         (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
738         Use alphanbsd_aout_init_abi whre appropriate.  Don't call
739         deprecated_add_core_fns.
740         * Makefile.in (alphanbsd-tdep.o): Update dependencies.
741
742         * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
743         (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
744
745         * alphanbsd-tdep.c (alphanbsd_init_abi): Use
746         svr4_lp64_fetch_link_map_offsets instead of
747         nbsd_lp64_solib_svr4_fetch_link_map_offsets.
748
749 2006-07-06  Andrew Stubbs  <[email protected]>
750
751         * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
752         write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
753         write_exp_elt_intern): Zero initialize tmp.
754
755 2006-07-05  Daniel Jacobowitz  <[email protected]>
756
757         * remote.c (remote_xfer_partial): Remove KOD support.
758         * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
759         * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
760         * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
761         Remove KOD support.
762         * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
763         * NEWS: Mention KOD.
764         * kod.h, kod.c, kod-cisco.c: Delete files.
765
766 2006-07-04  Daniel Jacobowitz  <[email protected]>
767
768         * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
769
770 2006-07-03  Nathan J. Williams  <[email protected]>
771
772         * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
773         write_files is set.
774
775 2006-06-24  Eli Zaretskii  <[email protected]>
776
777         * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
778
779 2006-06-23  Daniel Jacobowitz  <[email protected]>
780
781         * arm-tdep.c (arm_register_type): Use unsigned types for registers.
782         Add special types for sp and pc.
783         * Makefile.in (arm-tdep.o): Update.
784
785 2006-06-22  Daniel Jacobowitz  <[email protected]>
786
787         * remote.c (remote_escape_output): New function.
788         (remote_write_bytes): Use remote_escape_output.
789
790 2006-06-21  Daniel Jacobowitz  <[email protected]>
791
792         * NEWS: Mention qSupported.
793         * remote.c (struct remote_state): Add explicit_packet_size.
794         (get_remote_packet_size): Check explicit_packet_size.
795         (get_memory_packet_size): Likewise.
796         (PACKET_qSupported): New enum value.
797         (struct protocol_feature, remote_supported_packet)
798         (remote_packet_size, remote_protocol_features)
799         (remote_query_supported): New.
800         (remote_open_1): Reset explicit_packet_size.  Call
801         remote_query_supported.
802         (_initialize_remote): Register qSupported.
803
804 2006-06-21  Andrew Stubbs  <[email protected]>
805
806         * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
807
808 2006-06-20  Joel Brobecker  <[email protected]>
809
810         * GDB 6.5 released from GDB 6.5 branch.
811
812 2006-06-19  Michael Snyder  <[email protected]>
813
814         * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
815         decide how many registers it takes to pass a floating point
816         argument, what matters is the size of a floating point register
817         (not the size of a general purpose register).
818         (mips_o32_push_dummy_call): Ditto.
819
820 2006-06-19  Kazuhiro Inaoka <[email protected]>
821
822         * configure.tgt: Add gdbserver support for m32r-linux.
823
824 2006-06-18  Mark Kettenis  <[email protected]>
825
826         * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
827
828 2006-06-15  Daniel Jacobowitz  <[email protected]>
829
830         * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
831         based on insert_step_resume_breakpoint_at_frame.
832         (handle_inferior_event): Update comments.  Use
833         insert_step_resume_breakpoint_at_caller.
834         (insert_step_resume_breakpoint_at_frame): Revise comments.
835
836 2006-06-14  Daniel Jacobowitz  <[email protected]>
837
838         * dwarf2read.c (read_unspecified_type): New function.
839         (read_type_die): Handle DW_TAG_unspecified_type.
840         (Committed by Julian Brown.)
841
842 2006-06-13  Daniel Jacobowitz  <[email protected]>
843
844         * symfile.c (load_command): Check for a changed executable before
845         "load".
846
847 2006-06-13  Fred Fish  <[email protected]>
848
849         * mips-tdep.c (mips_find_long_section): New function.
850         (mips_gdbarch_init): Use it to set long and pointer sizes.
851
852 2006-06-13  Nathan Sidwell  <[email protected]>
853
854         * remote-file.io.c (remote_fileio_func_system): Treat zero length
855         string as NULL.  Adjust for NULL pointer argument.
856         * doc/gdb.texinfo (system): Document behaviour with zero length
857         string.
858
859 2006-06-12  Daniel Jacobowitz  <[email protected]>
860
861         * remote.c (set_remote_protocol_packet_cmd)
862         (show_remote_protocol_packet_cmd): New prototypes.
863         (remote_set_cmdlist, remote_show_cmdlist): Move higher.
864         (struct packet_config): Make name and title const.
865         (add_packet_config_cmd): Remove unnecessary arguments.
866         (_initialize_remote): Update calls.
867
868 2006-06-10  Daniel Jacobowitz  <[email protected]>
869
870         * mingw-hdep.c (gdb_select): Always check for NULL fd sets
871         before calling FD_ISSET.  Correct check for exceptfds which
872         previously tested writefds.
873
874 2006-06-09  Daniel Jacobowitz  <[email protected]>
875             Julian Brown  <[email protected]>
876
877         * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
878
879 2006-06-09  Julian Brown  <[email protected]>
880
881         * MAINTAINERS (Write After Approval): Add myself.
882
883 2006-06-08  Michael Snyder  <[email protected]>
884
885         * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
886
887 2006-06-08  Nathan Sidwell  <[email protected]>
888
889         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
890         (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
891         conversion. Use M68K_NUM_REGS for number of regs.
892
893         * remote-fileio.c (remote_fileio_reset): New.
894         * remote-fileio.h (remote_fileio_reset): Prototype.
895         * remote.c (extended_remote_restart, remote_open_1): Call it.
896
897         * remote.c (remote_open_1): Do preopen tasks before
898         irreversably destroying state.
899
900 2006-06-08  Daniel Jacobowitz  <[email protected]>
901
902         * remote.c (struct remote_state): New type, only containing
903         buf and buf_size.
904         (remote_state): New variable.
905         (get_remote_state): New function.
906         (struct remote_arch_state): Renamed from struct remote_state.
907         Removed buf and buf_size.
908         (get_remote_arch_state): Renamed from get_remote_state.  All
909         necessary callers updated to call this function.
910         (init_remote_state): Initialize the architecture-specific state.
911         Update the target-specific state if necessary.
912         (get_remote_packet_size): New function.  All previous references
913         changed to use this accessor function.
914         (packet_reg_from_regnum, packet_reg_from_pnum): Take a
915         remote_arch_state instead of a remote_state.  All callers changed.
916         (_initialize_remote): Initialize the packet buffer here.
917
918 2006-06-06  Nathan Sidwell  <[email protected]>
919
920         * remote.c (remote_insert_watchpoint): Return -1, rather than
921         fatal error if packet is disabled.
922         (remote_remove_watchpoint, remote_insert_hw_breakpoint,
923         remote_remove_hw_breakpoint): Likewise.
924
925 2006-06-02  Nick Roberts  <[email protected]>
926
927         * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
928
929 2006-05-31  Michael Snyder  <[email protected]>
930
931         * mips-tdep.c: Comment tweaks.
932
933 2006-05-31  Daniel Jacobowitz  <[email protected]>
934
935         * Makefile.in (top_builddir): Update comments.
936         (INTL_DIR, INTL_SRC): Delete.
937         (INTL, INTL_DEPS, INTL_CFLAGS): Update.
938         * acinclude.m4: Include new gettext macros.
939         * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR.  Remove copied
940         CATALOGS code.
941         * aclocal.m4, configure: Regenerated.
942
943 2006-05-30  Daniel Jacobowitz  <[email protected]>
944
945         * Makefile.in (arm-linux-nat.o): Update dependencies.
946         * arm-linux-nat.c: Include "gdb_proc_service.h".
947         (PTRACE_GET_THREAD_AREA): Define.
948         (ps_get_thread_area): New function.
949
950 2006-05-28  Alexandre Oliva  <[email protected]>
951
952         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
953         DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
954         DWARF2_FRAME_REG_SAVED_VAL_EXP.
955         * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
956         val_offset_sf and val_expression.
957         (dwarf2_frame_prev_register): Handle the new reg rules.
958         (dwarf2_frame_this_id): Use pc instead of function entry point.
959
960 2006-05-28  Alexandre Oliva  <[email protected]>
961
962         * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
963         (dwarf2_frame_sniffer): Use it.
964         (decode_frame_entry_1): Set it according to augmentation "S".
965
966 2006-05-27  Joel Brobecker  <[email protected]>
967
968         From Peter Schauer <[email protected]>
969         * m2-typeprint.c (m2_record_fields): Move variable declarations
970         to the begining of the block.
971         
972 2006-05-23  Mark Mitchell  <[email protected]>
973
974         * mt-tdep.c (mt_register_name): Correct out-of-range logic to
975         include additional registers. 
976
977         * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
978         Iscramb2, Qscramb2, Qchannel2.
979         (mt_register_name): Likewise.
980         (mt_copro_register_type): Describe ZI2 and ZQ2.
981
982         * mt-tdep.c (mt_gdb_regnums): Define
983         MT_COPRO_PSEUDOREG_MAC_REGNUM.
984         (mt_register_name): Use it.
985         (mt_copro_register_type): Likewise.
986         (mt_register_type): Likewise.
987         (mt_pseudo_register_read): Likewise.  Read the MAC register, not
988         the coprocessor register.
989         (mt_pseudo_register_write): Likewise.
990
991 2006-05-21  Christopher Faylor  <[email protected]>
992
993         * win32-nat.c (cygwin_exceptions): New variable.
994         (handle_exception): Treat a cygwin exception like a normal exception if
995         cygwin_exceptions is true.
996         (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
997
998 2006-05-20  Gaius Mulley  <[email protected]>
999
1000         * NEWS: (Improved Modula-2 language support): New section.
1001
1002 2006-05-19  Joel Brobecker  <[email protected]>
1003
1004         * configure: Regenerate using proper version of autoconf.
1005
1006 2006-05-19  Fred Fish  <[email protected]>
1007
1008         * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
1009         * dwarfread.c: Fix spelling of 'unexpected'.
1010         * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
1011         * stack.c: Fix spelling of 'RETURN_VALUE'.
1012         
1013 2006-05-18  Paul Gilliam  <[email protected]
1014
1015         * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
1016
1017 2006-05-17  Daniel Jacobowitz  <[email protected]>
1018
1019         * dwarf2-frame.c: Include "value.h".
1020         (read_reg): Use unpack_long and register_type.
1021         * Makefile.in (dwarf2-frame.o): Update.
1022
1023 2006-05-17  Daniel Jacobowitz  <[email protected]>
1024
1025         * remote-rdp.c: Deleted.
1026         * NEWS: Mention removal of remote-rdp.c.
1027
1028         * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
1029         (remote-rdp.o): Delete.
1030         * README: Remove description of remote-rdp.c.
1031         * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
1032         * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
1033
1034 2006-05-16  Daniel Jacobowitz  <[email protected]>
1035
1036         * ser-e7kpc.c: Include <time.h> if it is available.
1037
1038 2006-05-16  Joel Brobecker  <[email protected]>
1039
1040         * version.in (version.in): Bump version number to 6.5.50 now
1041         that the gdb-6.5 branch has been created.
1042         * NEWS: Create a new section for changes that are included
1043         since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
1044         section.
1045
1046 2006-05-16  Jim Blandy  <[email protected]>
1047
1048         * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
1049         the Global Maintainers' invitation to be an authorized committer
1050         for the Modula-2 support.
1051
1052 2006-05-15  Mark Kettenis  <[email protected]>
1053
1054         * ppcobsd-nat.c: Include "gdb_assert.h".
1055         [PT_GETFPREGS] (getfpregs_supplies): New function.
1056         (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
1057         versions that have PT_GETFPREGS.
1058         (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
1059         ppcobsd_fpreg_offsets.
1060         * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
1061         Declare.
1062         * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
1063         variables.
1064         (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
1065         * Makefile.in (ppcobsd-nat.o): Update dependencies.
1066
1067 2006-05-15  Daniel Jacobowitz  <[email protected]>
1068
1069         * configure.ac: Use GCC_HEADER_STDINT.
1070         * acinclude.m4: Include stdint.m4.
1071         * Makefile.in (gdb_stdint_h): Define.
1072         (distclean): Remove gdb_stdint.h.
1073         (Makefile, stamp-h): Update rules to generate only the correct
1074         files.
1075         (gdb_stdint.h, stamp-int): New rules.
1076         * config.in, configure: Regenerated.
1077
1078 2006-05-15  Daniel Jacobowitz  <[email protected]>
1079
1080         * valprint.c: Include "exceptions.h".
1081         (val_print): If something goes wrong while printing, supply an
1082         error message.
1083
1084 2006-05-15  Peter O'Gorman  <[email protected]>
1085
1086         * source.c (get_current_source_symtab_and_line)
1087         (set_current_source_symtab_and_line): Use { 0 }.
1088         * cli/cli-cmds.c (list_command): Likewise.
1089
1090 2006-05-14  Nick Roberts  <[email protected]>
1091
1092         * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
1093         (gdbmi): Use new variable name gdb-pc-address.
1094         (gdbmi-frame-handler):  Use new variable name gdb-pc-address.
1095         Check that a match has been found.
1096
1097 2006-05-13  Gaius Mulley  <[email protected]>
1098
1099         * m2-lang.h: Added function extern prototypes for
1100         m2_is_long_set and get_long_set_bounds.
1101         * m2-typeprint.c: Complete replacement.
1102         (m2_print_type): Walk the Modula-2 type tree.
1103         (m2_type_name): New function.
1104         (m2_range): New function.
1105         (m2_typedef): New function.
1106         (m2_array): New function.
1107         (m2_pointer): New function.
1108         (m2_ref): New function.
1109         (m2_unknown): New function.
1110         (m2_union): New function.
1111         (m2_procedure): New function.
1112         (m2_print_bounds): New function.
1113         (m2_short_set): New function.
1114         (m2_is_long_set): New function.
1115         (m2_get_discrete_bounds): New function.
1116         (m2_is_long_set_of_type): New function.
1117         (m2_long_set): New function.
1118         (m2_record_fields): New function.
1119         (m2_enum): New function.
1120         * dwarf2read.c: Modified.
1121         (read_set_type): New function.
1122         (process_die): Call read_set_type.
1123         (read_base_type): Modifed.
1124         (set_cu_language): Added Modula-2 case clause.
1125         * m2-valprint.c: Complete replacement.
1126         (print_function_pointer_address): New function.
1127         (get_long_set_bounds): New function.
1128         (m2_print_long_set): New function.
1129         (print_unpacked_pointer): New function.
1130         (print_variable_at_address): New function.
1131         (m2_val_print): Replaced.
1132         * gdb/MAINTAINERS (Write After Approval): Added
1133         Gaius Mulley  <[email protected]>
1134
1135 2006-05-12  Mark Kettenis  <[email protected]>
1136
1137         * ppcnbsd-tdep.h: Update copyright year.  Include <stddef.h>
1138         (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1139         (ppcnbsd_fill_fpreg): Remove prototypes.
1140         (struct regset): Add forward declaration.
1141         (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
1142         * ppcnbsd-tdep.c: Update copyright year.  Include "gdbtypes.h",
1143         "regset.h" and "gdb_string.h".  Don't include "breakpoint.h",
1144         "value.h", target.h and nbsd-tdep.h".  Reorder includes.
1145         (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
1146         (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
1147         (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
1148         Remove macros.
1149         (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1150         (ppcnbsd_fill_fpreg): Remove functions.
1151         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1152         (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
1153         (ppcnbsd_reg_offsets): New variable.
1154         (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
1155         (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
1156         introduced in NetBSD 2.0.
1157         (ppcnbsd_sigtramp): Provide complete signal trampoline.
1158         (ppcnbsd2_sigtramp): New variable.
1159         (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
1160         svr4_ilp32_fetch_link_map_offsets.  Set regset_from_core_section.
1161         Add ppcnbs2_sigtramp unwinder.
1162         (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
1163         Initialize ppcnbsd_reg_offsets.
1164         * ppcnbsd-nat.c: Update copyright year.  Reorder includes.
1165         (getregs_supplies): Use regnum instead of regno.
1166         (getfpregs_supplies): Likewise.
1167         (ppcnbsd_fetch_inferior_registers): Likewise.  Call
1168         ppc_supply_gregset and ppc_suppply_fpregset instead of
1169         ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
1170         (ppcnbsd_store_inferior_registers): Likewise.  Call
1171         ppc_collect_gregset and ppc_collect_fpregset instead of
1172         ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
1173         (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
1174         (_initialize_ppcnbsd_nat): Add some whitespace.
1175         * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
1176         * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
1177         (NAT_FILE): Remove.
1178         * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1179
1180 2006-05-11  Alfred M. Szmidt  <[email protected]>
1181
1182         * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
1183
1184 2006-05-11  Fred Fish  <[email protected]>
1185
1186         * symtab.c (skip_prologue_using_sal): Handle single line functions
1187         like "foo(){}", which may optimize down to a single return inst.
1188
1189 2006-05-10  Steve Ellcey  <[email protected]>
1190
1191         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
1192         message.
1193
1194 2006-05-09  Andreas Schwab  <[email protected]>
1195
1196         * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
1197         (execute_cfa_program): Add parameter eh_frame_p.  Call
1198         dwarf2_frame_eh_frame_regnum when true.
1199         (dwarf2_frame_cache): Pass eh_frame_p from fde to
1200         execute_cfa_program.
1201         (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
1202         processing .eh_frame.  Copy eh_frame_p to the new fde.
1203         (struct dwarf2_frame_ops): Add eh_frame_regnum.
1204         (dwarf2_frame_set_eh_frame_regnum): Define.
1205         (dwarf2_frame_eh_frame_regnum): Define.
1206
1207         * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
1208         (dwarf2_frame_eh_frame_regnum): Declare.
1209
1210 2006-05-06  David S. Miller  <[email protected]>
1211
1212         * linux-nat.c (linux_nat_do_thread_registers): Check for
1213         NULL collect_regset method.
1214
1215 2006-05-06  Ulrich Weigand  <[email protected]>
1216
1217         * s390-tdep.c (s390_collect_regset): New function.
1218         (s390_gregset, s390x_gregset, s390_fpregset): Add it.
1219
1220 2006-05-06  Nick Roberts  <[email protected]>
1221
1222         * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
1223         symbol.
1224
1225 2006-05-05  Ulrich Weigand  <[email protected]>
1226
1227         * linux-nat.c (exit_lwp): Fix NULL pointer access.
1228         (linux_nat_handle_extended): New parameter STOPPING.
1229         (wait_lwp): Call it with STOPPING equals 1.
1230         (linux_nat_wait): Call it with STOPPING equals 0.
1231
1232 2006-05-05  Ulrich Weigand  <[email protected]>
1233
1234         * linux-nat.c (linux_nat_wait): Do not short-cut reporting
1235         of 'uninteresting' signals when single-stepping.
1236
1237 2006-05-05  Daniel Jacobowitz  <[email protected]>
1238
1239         * MAINTAINERS: Move NEWS to the documentation entry.
1240
1241 2006-05-05  David S. Miller  <[email protected]>
1242
1243         * linux-nat.c (linux_nat_do_thread_registers): Use the
1244         regset_from_core_section infrastructure if the target
1245         supports it.
1246         * Makefile.in: Update dependencies.
1247         * linux-thread-db.c (thread_db_store_registers): Use
1248         regcache_raw_collect.
1249
1250 2006-05-05:  Paul Gilliam  <[email protected]>
1251
1252         * ppc-linux-nat.c: Clean up types for ptrace.
1253         Replace (CORE_ADDR) with  (uintptr_t) to avoid the size difference
1254         between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
1255
1256 2006-05-05  Daniel Jacobowitz  <[email protected]>
1257
1258         * remote.c (remote_disconnect): Add TARGET argument.
1259         * target.c (debug_to_disconnect): Delete.
1260         (update_current_target): Do not inherit to_disconnect.
1261         (target_disconnect): Search for a target to implement to_disconnect.
1262         (setup_target_debug): Do not reference to_disconnect.
1263         * target.h (struct target_ops): Add target argument to
1264         to_disconnect.
1265
1266 2006-05-06  Fred Fish  <[email protected]>
1267
1268         * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
1269         structs or unions independent of ABI register size.
1270
1271 2006-05-06  Fred Fish  <[email protected]>
1272
1273         * mips-tdep.c (mips_o64_return_value): Replace stub that always
1274         returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1275
1276 2006-05-05  Daniel Jacobowitz  <[email protected]>
1277
1278         * mi/mi-main.c (captured_mi_execute_command): Check the return
1279         value of -interpreter-exec.
1280
1281 2006-05-03  Vladimir Prus  <[email protected]>
1282
1283         * varobj.c (c_value_of_variable): Ignore top-level references.
1284         (Committed by Jim Blandy.)
1285
1286 2006-04-30  Mark Kettenis  <[email protected]>
1287
1288         * breakpoint.c (insert_single_step_breakpoint): Make a failure to
1289         insert a single-step breakpoint an error instead of a warning.
1290
1291 2006-05-01  Nathan J. Williams  <[email protected]>
1292
1293         * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
1294         arguments from void * to gdb_byte *.
1295
1296 2006-04-26  Michael Snyder  <[email protected]>
1297
1298         * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
1299         command to "delete fork" (no hyphen), compatible with other
1300         "delete" commands.
1301         (info_forks_command): Accept a fork ID argument, for info
1302         on a single fork.  Report if no matching forks.
1303
1304 2006-04-25  Mark Kettenis  <[email protected]>
1305
1306         * breakpoint.c (remove_single_step_breakpoints): Bail out early if
1307         no breakpoints are inserted.
1308
1309         From Masaki MURANAKA <[email protected]>:
1310         * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
1311         type of last argument to `gdb_byte *'
1312
1313 2006-04-25  Jim Blandy  <[email protected]>
1314
1315         Add support for 'target remote |' on MinGW.
1316         * ser-mingw.c (struct pipe_state): New structure.
1317         (make_pipe_state, free_pipe_state, cleanup_pipe_state)
1318         (pipe_windows_open, pipe_windows_close, pipe_windows_read)
1319         (pipe_windows_write, pipe_wait_handle): New functions.
1320         (_initialize_ser_windows): Register a "pipe" interface based on
1321         them.
1322
1323 2006-04-24  Daniel Jacobowitz  <[email protected]>
1324
1325         * ser-mingw.c: Include <conio.h>.
1326         (struct ser_console_state, struct net_windows_state): Add exit_select,
1327         have_stopped, thread.
1328         (pipe_select_thread, console_select_thread)
1329         (net_windows_select_thread): Don't create a local state copy or
1330         close stop_select.  Exit on exit_select instead of stop_select.  Set
1331         have_stopped.
1332         (console_select_thread): Don't report control keypresses as pending
1333         input.
1334         (pipe_select_thread): Allow stop_select to interrupt sleeping.
1335         (set_console_wait_handle): Create exit_select and have_stopped.
1336         Save the thread handle.  Check _kbhit before starting a thread.
1337         (ser_console_done_wait_handle): New.
1338         (ser_console_close): Close new handles.  Wait for the thread to
1339         exit.
1340         (new_windows_select_thread): Assert that an event occurred.
1341         (net_windows_wait_handle): Check for pending input before starting
1342         a thread.
1343         (net_windows_done_wait_handle): New.
1344         (net_windows_open): Create exit_select and have_stopped.
1345         Save the thread handle.
1346         (net_windows_close): Close new handles.  Wait for the thread to
1347         exit.
1348         (_intiialize_ser_windows): Register done_wait_handle methods.
1349
1350         * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
1351         * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
1352         [USE_WIN32API] (serial_done_wait_handle): New prototype.
1353         * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
1354
1355 2006-04-23  Andreas Schwab  <[email protected]>
1356
1357         * rs6000-tdep.c: Include "reggroups.h" only once.
1358         * Makefile.in (rs6000-tdep.o): Update dependencies.
1359
1360 2006-04-21  Frederic Riss  <[email protected]>
1361
1362         * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
1363         compilation directory as last argument. 
1364         Always pass comp_dir as second argument to start_subfile and prepend
1365         dirname to the filename when necessary. 
1366         Remove now superfluous search for pre-existing subfile.
1367         (dwarf_decode_lines): Pass the compilation directory to
1368         dwarf2_start_subfile.
1369
1370 2006-04-20  Michael Snyder  <[email protected]>
1371
1372         * 2006-03-22  Jim Blandy  <[email protected]>
1373         Add support for the Renesas M32C and M16C.
1374
1375         * configure.tgt (m32c-*-*): New entry.
1376         * config/m32c/m32c.mt: New file.
1377         * m32c-tdep.c: New file.
1378         * Makefile.in (elf_m32c_h): New variable.
1379         (m32c-tdep.o): New rule.
1380         * NEWS: Mention new target.
1381         * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
1382
1383 2006-04-20  Michael Snyder  <[email protected]>
1384
1385         * remote.c: Fix spelling error in comment.
1386
1387 2006-04-20  Daniel Jacobowitz  <[email protected]>
1388
1389         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
1390         Correct type of VALUEP.  Reported by Jean-Rene Peulve
1391         <[email protected]>.
1392
1393 2006-04-19  Masaki Muranaka  <[email protected]>
1394
1395         * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
1396         netdb.h, netinet/in.h.
1397         (m32r_upload_command); Add calls WSAStartup().
1398         * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
1399         netinet/in.h.
1400
1401 2006-04-18  Daniel Jacobowitz  <[email protected]>
1402
1403         * breakpoint.c (deprecated_read_memory_nobpt): Update to use
1404         shadow_len.
1405         (insert_bp_location, reattach_breakpoints, remove_breakpoint)
1406         (delete_breakpoint): Update calls to changed methods.
1407         (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1408         (single_step_breakpoints, insert_single_step_breakpoint)
1409         (remove_single_step_breakpoints): New.
1410         * breakpoint.h (struct bp_target_info): New.
1411         (struct bp_location): Replace shadow_contents with
1412         target_info and overlay_target_info.
1413         (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1414         (insert_single_step_breakpoint, remove_single_step_breakpoints): New
1415         prototypes.
1416         * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
1417         (memory_insert_breakpoint, memory_remove_breakpoint): Update second
1418         argument.
1419         * mem-break.c (default_memory_insert_breakpoint): Update.  Set
1420         placed_address, placed_size, and shadow_len.
1421         (default_memory_remove_breakpoint): Update.  Don't use
1422         BREAKPOINT_FROM_PC.
1423         (memory_insert_breakpoint, memory_remove_breakpoint): Update.
1424         * target.c (update_current_target): Update prototypes for changed
1425         functions.
1426         (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
1427         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
1428         Update.
1429         * target.h: Forward declare struct bp_target_info.
1430         (struct target_ops): Use a bp_target_info argument for
1431         to_insert_breakpoint, to_remove_breakpoint,
1432         to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
1433         (target_insert_breakpoint, target_remove_breakpoint)
1434         (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
1435         (memory_insert_breakpoint, memory_remove_breakpoint)
1436         (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
1437         Update.
1438         * config/i386/nm-i386.h: Forward declare struct bp_target_info.
1439         (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
1440         (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
1441
1442         * gdbarch.c, gdbarch.h: Regenerated.
1443
1444         * alpha-tdep.c (alpha_software_single_step): Use
1445         insert_single_step_breakpoint and remove_single_step_breakpoints.
1446         Remove unused statics.
1447         * arm-tdep.c (arm_software_single_step): Likewise.  Add a note.
1448         * cris-tdep.c (cris_software_single_step): Likewise.
1449         * mips-tdep.c (mips_software_single_step): Likewise.
1450         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
1451         * sparc-tdep.c (sparc_software_single_step): Likewise.
1452         * wince.c (struct thread_info_struct): Remove step_prev.
1453         (undoSStep): Use remove_single_step_breakpoints.
1454         (wince_software_single_step): Use insert_single_step_breakpoint.
1455
1456         * corelow.c (ignore): Remove unneeded prototype.  Update arguments.
1457         * exec.c (ignore): Likewise.
1458         * sol-thread.c (ignore): Likewise.
1459
1460         * procfs.c (dbx_link_shadow_contents): Delete.
1461         (dbx_link_bpt): New.
1462         (procfs_mourn_inferior): Remove it if necessary.
1463         (remove_dbx_link_breakpoint): Use it.
1464         (insert_dbx_link_bpt_in_file): Set it.
1465         (procfs_init_inferior): Don't update dbx_link_bpt_addr.
1466         * rs6000-nat.c (exec_one_dummy_insn): Use
1467         deprecated_insert_raw_breakpoint and
1468         deprecated_remove_raw_breakpoint.
1469         * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
1470         (base_breakpoint): New.
1471         (disable_break): Use it.
1472         (enable_break): Set it.
1473
1474         * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
1475         Update.
1476         * ia64-tdep.c (ia64_memory_insert_breakpoint)
1477         (ia64_memory_remove_breakpoint): Likewise.
1478         * m32r-tdep.c (m32r_memory_insert_breakpoint)
1479         (m32r_memory_remove_breakpoint): Likewise.
1480         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1481         Likewise.  Remove unnecessary prototypes.  Use placed_address
1482         and placed_size.  Removed useless read from memory.
1483         * nto-procfs.c (procfs_insert_breakpoint)
1484         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1485         (procfs_remove_hw_breakpoint): Update.
1486         * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1487         * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1488         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1489         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
1490         * remote-e7000.c (e7000_insert_breakpoint)
1491         (e7000_remove_breakpoint): Likewise.
1492         * remote-m32r-sdi.c (m32r_insert_breakpoint)
1493         (m32r_remove_breakpoint): Likewise.
1494         * remote-mips.c (mips_insert_breakpoint)
1495         (mips_remove_breakpoint): Likewise.
1496         * remote-rdp.c (remote_rdp_insert_breakpoint)
1497         (remote_rdp_remove_breakpoint): Likewise.
1498         (rdp_step): Use deprecated_insert_raw_breakpoint and
1499         deprecated_remove_raw_breakpoint.
1500         * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
1501         Update.
1502         * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
1503         Delete.
1504         (init_gdbsim_ops): Use memory_insert_breakpoint and
1505         memory_remove_breakpoint.
1506         * remote-st.c (st2000_insert_breakpoint)
1507         (st2000_remove_breakpoint): Update.  Remove unused
1508         BREAKPOINT_FROM_PC.
1509         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1510         Update.  Use placed_address and placed_size.
1511         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
1512
1513 2006-04-12  Daniel Jacobowitz  <[email protected]>
1514
1515         * remote.c (extended_remote_restart): Pass the correct length
1516         to getpkt.
1517
1518 2006-04-11  Jim Blandy  <[email protected]>
1519
1520         * serial.c (serial_open): Check for special cases at the front of
1521         the "device" name before scanning for the ':' that would indicate
1522         an IP-based connection.
1523
1524 2006-04-10  Christopher Faylor  <[email protected]>
1525
1526         * win32-nat.c (open_symbol_file_object): New function.
1527         (in_dynsym_resolve_code): Ditto.
1528         (init_win32_ops): Fill in fields which ought not to be NULL.
1529
1530 2006-04-10  Christopher Faylor  <[email protected]>
1531
1532         * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1533         with saved context if __COPY_CONTEXT_SIZE is not defined.
1534         (handle_output_debug_string): Ditto.
1535
1536 2006-04-10  Daniel Jacobowitz  <[email protected]>
1537
1538         * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1539
1540 2006-04-09  David S. Miller  <[email protected]>
1541
1542         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1543         frame sniffer.
1544         * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1545         dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1546         that the latter can override.
1547         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1548
1549 2006-04-09  Ulrich Weigand  <[email protected]>
1550
1551         * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1552         (s390_store): Call pv_area_store to track stack slots.
1553         (s390_load): Call pv_area_fetch to track stack slots.
1554         (s390_check_for_saved): New function.
1555         (s390_analyze_prologue): Call pv_area_scan.  Allocate and free stack.
1556
1557 2006-04-09  Ulrich Weigand  <[email protected]>
1558
1559         * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1560         * s390-tdep.c: Include "prologue-value.h".
1561         (struct prologue_value): Remove.
1562         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1563         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1564         pv_logical_and, pv_is_identical, pv_is_register): Remove.
1565         (compute_x_addr): Remove, replace by ...
1566         (s390_addr): ... this new function.
1567         (struct s390_prologue_data): Use pv_t instead of prologue_value.
1568         (s390_store, s390_load): Likewise.
1569         (s390_prologue_frame_unwind_cache): Likewise.
1570         (s390_analyze_prologue): Likewise.  Also, simplify and combine
1571         several conditional statements.
1572
1573 2006-04-08  Jim Blandy  <[email protected]>
1574
1575         * Makefile.in (COMMON_OBS): List prologue-value.o.  (Omitted from
1576         last patch.)
1577
1578 2006-04-08  David S. Miller  <[email protected]>
1579
1580         * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1581         (sparc32_linux_init_abi): Hook it into tdep->step_trap.
1582         (sparc32_linux_core_gregset,
1583         sparc32_linux_supply_core_gregset,
1584         sparc32_linux_collect_core_gregset,
1585         sparc32_linux_supply_core_fpregset,
1586         sparc32_linux_collect_core_fpregset): New.
1587         (sparc32_linux_init_abi): Register them with generic sparc
1588         core regset infrastructure.
1589         * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1590         (sparc64_linux_init_abi): Hook it into tdep->step_trap.
1591         (sparc64_linux_core_gregset,
1592         sparc64_linux_supply_core_gregset,
1593         sparc64_linux_collect_core_gregset,
1594         sparc64_linux_supply_core_fpregset,
1595         sparc64_linux_collect_core_fpregset): New.
1596         (sparc64_linux_init_abi): Register them with generic sparc
1597         core regset infrastructure.     
1598         * Makefile.in: Update dependencies.
1599
1600 2006-04-07  David S. Miller  <[email protected]>
1601
1602         * linux-nat.c (linux_nat_thread_alive): Handle targets that
1603         do not implement PTRACE_PEEKUSER.
1604
1605 2006-04-07  Daniel Jacobowitz  <[email protected]>
1606
1607         * remote.c (remote_wait): Convert warning to error before
1608         parsing corrupt packets.
1609
1610 2006-04-07  Andrew Stubbs  <[email protected]>
1611
1612         * cli/cli-script.c (struct user_args): Add command field.
1613         (arg_cleanup): Free command string.
1614         (setup_user_args): Copy the command line before relying on it.
1615
1616 2006-04-06  Joel Brobecker  <[email protected]>
1617
1618         * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1619         of the "delete" command.
1620
1621 2006-04-06  Randolph Chung  <[email protected]>
1622
1623         * MAINTAINERS (Patch champions): Add myself.
1624
1625 2006-04-05  Andreas Schwab  <[email protected]>
1626
1627         * Makefile.in: Update dependencies.
1628
1629 2006-04-05  David S. Miller  <[email protected]>
1630
1631         * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1632         (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1633         * Makefile.in (sparc-tdep.o): Update dependencies.
1634         * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1635         window out of the correct stack frame.
1636         * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
1637         * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1638         argument.
1639         (dwarf2_frame_default_init_reg): Likewise.
1640         (dwarf2_frame_set_init_reg): Update init_reg arg.
1641         (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1642         ops->init_reg().
1643         (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1644         * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1645         * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1646         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1647         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1648         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1649         * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1650         (sparc32_frame_cache): Call it.
1651         (sparc32_dwarf2_struct_return_p): New function.
1652         (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1653         returns a structure and thus we have to indicate the return PC and
1654         NPC are 4 bytes later than usual.
1655         * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1656         dwarf2 frame sniffer.
1657         * Makefile.in (sparc-linux-tdep.o): Update dependencies.
1658         
1659 2006-04-04  David S. Miller  <[email protected]>
1660
1661         * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1662         * config/linux64.h (NATDEPFILES): Likewise
1663         * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1664         fill_fpregset): New.
1665         * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1666         fill_fpregset): New.
1667         * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1668         new includes.
1669         
1670 2006-04-04  Andreas Schwab  <[email protected]>
1671
1672         * Makefile.in (elf_common_h): Define.
1673
1674 2006-04-03  Andrew Stubbs  <[email protected]>
1675
1676         * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1677         (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1678
1679 2006-03-31  Andrew Stubbs  <[email protected]>
1680
1681         * value.h (struct internalvar): Add field 'endian'.
1682         * value.c (lookup_internalvar): Initialise endian.
1683         (value_of_internalvar): Flip the endian of built-in types if required.
1684         (set_internalvar): Set the endian.
1685         (show_convenience): Access the value through value_of_internalvar().
1686
1687 2006-03-30  Vladimir Prus  <[email protected]>
1688
1689         * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1690         instead of hardcoded integer literals.
1691
1692 2006-03-30  Daniel Jacobowitz  <[email protected]>
1693
1694         * cli/cli-script.c (insert_args): Handle NULL user_args.
1695
1696 2006-03-30  Daniel Jacobowitz  <[email protected]>
1697
1698         * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1699         the function at zero if we have no symbols.
1700
1701 2006-03-30  Adrien Kunysz  <[email protected]>
1702
1703         * i386-stub.c (getpacket): Fix array overflow.
1704         * m32r-stub.c (getpacket): Likewise.
1705         * m68k-stub.c (getpacket): Likewise.
1706         * sh-stub.c (getpacket): Likewise.
1707         * sparc-stub.c (getpacket): Likewise.
1708
1709 2006-03-30  Daniel Jacobowitz  <[email protected]>
1710  
1711         * frame.h (set_current_sal_from_frame): New prototype.
1712         * stack.c (set_current_sal_from_frame): Make global.
1713         * infrun.c (normal_stop): Call set_current_sal_from_frame.
1714
1715 2006-03-30  Daniel Jacobowitz  <[email protected]>
1716
1717         * linux-thread-db.c: Include "linux-nat.h".
1718         (check_for_thread_db): New function, split out from
1719         thread_db_new_objfile.  Remove dead check for active
1720         thread_db on inapplicable targets.
1721         (thread_db_new_objfile): Call check_for_thread_db.
1722         * Makefile.in (linux-thread-db.o): Update.
1723         * linux-nat.c (child_post_attach): Call check_for_thread_db.
1724         (linux_child_post_startup_inferior): Likewise.
1725         (lin_lwp_attach_lwp): Call target_post_attach instead of
1726         child_post_attach.
1727         * linux-nat.h (check_for_thread_db): New prototype.
1728
1729 2006-03-30  Daniel Jacobowitz  <[email protected]>
1730
1731         * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1732         (init_remote_state): Initialize the new fields.
1733         (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1734         (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1735         (remote_get_threadinfo, parse_threadlist_response)
1736         (remote_get_threadlist, remote_current_thread, remote_threads_info)
1737         (remote_threads_extra_info, extended_remote_restart, get_offsets)
1738         (remote_check_symbols, remote_open_1, remote_detach)
1739         (remove_vcont_probe, remote_vcont_resume, remote_resume)
1740         (remote_wait, remote_async_wait, fetch_register_using_p)
1741         (remote_fetch_registers, store_register_using_P)
1742         (remote_store_registers, check_binary_download, remote_write_bytes)
1743         (remote_read_bytes, remote_insert_breakpoint)
1744         (remote_remove_breakpoint, remote_insert_watchpoint)
1745         (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1746         (remote_remove_hw_breakpoint, compare_sections_command)
1747         (remote_xfer_partial, remote_rcmd, packet_command)
1748         (remote_get_thread_local_address): Use the global incoming buffer
1749         instead of alloca or xmalloc.  Limit outgoing packets to
1750         rs->remote_packet_size and incoming packets to rs->buf_size.
1751         Update calls to getpkt and remote_send.
1752         (remote_send): Take arguments by reference.
1753         (putpkt_binary): Eliminate junkbuf.  Use skip_frame.
1754         (skip_frame): New function.
1755         (read_frame): Take arguments by reference.  Expand the packet
1756         buffer instead of issuing an error.
1757         (getpkt, getpkt_sane): Take arguments by reference.
1758         * remote.h (getpkt): Update prototype and doc.
1759         * tracepoint.c (remote_get_noisy_reply): Take arguments by
1760         reference.
1761         (target_buf): Change from array to pointer.
1762         (target_buf_size): New variable.
1763         (remote_set_transparent_ranges): Update call to getpkt.
1764         (trace_start_command, trace_stop_command, trace_status_command):
1765         Update calls to remote_get_noisy_reply.
1766         (finish_tfind_command): Take arguments by reference.
1767         (trace_find_command, trace_find_pc_command)
1768         (trace_find_tracepoint_command, trace_find_line_command):
1769         (trace_find_range_command, trace_find_outside_command): Update
1770         calls to finish_tfind_command.
1771         (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1772
1773 2005-03-30  Randolph Chung  <[email protected]>
1774
1775         * hppa-linux-tdep.c: Include regset.h.
1776         (GR_REGNUM, TR_REGNUM, greg_map): New.
1777         (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1778         (hppa_linux_regset, hppa_linux_fpregset): New.
1779         (hppa_linux_regset_from_core_section): New.
1780         (hppa_linux_init_abi): Set regset_from_core_section.
1781         (_initialize_hppa_linux_tdep): Register osabi handler for
1782         64-bit Linux.
1783         * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1784         * config/pa/linux.mh: Stop using core-regset.o
1785
1786 2006-03-30  Randolph Chung  <[email protected]>
1787
1788         * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1789         (hppa_frame_cache): Use new function to find unwind entry.
1790         (hppa_frame_this_id): Likewise.
1791         (hppa_frame_unwind_sniffer): Likewise.
1792
1793 2006-03-29  Daniel Jacobowitz  <[email protected]>
1794
1795         * NEWS: Mention the removal of NLM.
1796
1797 2006-03-29  Steve Ellcey  <[email protected]>
1798
1799         * Makefile.in (nlm): Remove target.
1800         * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1801         * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1802         * configure: Regenerate.
1803         * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1804         * nlm: Remove directory.
1805
1806 2006-03-29  Daniel Jacobowitz  <[email protected]>
1807
1808         * Makefile.in (utils.o): Update.
1809         * top.c (in_user_command): New.
1810         (command_line_input): Use input_from_terminal_p.
1811         (input_from_terminal_p): Don't check caution.  Handle
1812         stdin == NULL for Insight.
1813         * top.h (in_user_command, caution): New declarations.
1814         * utils.c: Include "top.h".
1815         (query, defaulted_query): Check caution here.  Move the call
1816         to input_from_terminal_p higher.
1817         * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1818         the depth.  Update in_user_command if necessary.
1819         (execute_user_command): Don't clobber old_chain.  Set
1820         in_user_command.  Let do_restore_user_call_depth handle
1821         user_call_depth.
1822         (read_command_lines): Check whether to prompt before calling
1823         Insight hooks.
1824         * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1825         input_from_terminal_p check.
1826
1827 2006-03-29  Ulrich Weigand  <[email protected]>
1828
1829         * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1830         (s390_remove_watchpoint): Likewise.
1831
1832 2006-03-28  Jim Blandy  <[email protected]>
1833
1834         * prologue-value.c, prologue-value.h: New files.
1835         * Makefile.in (prologue_value_h): New variable.
1836         (HFILES_NO_SRCDIR): List prologue-value.h.
1837         (SFILES): List prologue-value.c.
1838         (COMMON_OBS): List prologue-value.o.
1839         (prologue-value.o): New rule.
1840
1841 2006-03-27  Michael Snyder  <[email protected]>
1842
1843         * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1844         xstormy16_pointer_to_address, xstormy16_address_to_pointer, 
1845         xstormy16_frame_prev_register): Change void* to gdb_byte*.
1846         (xstormy16_push_dummy_call): Add block-local char* val, 
1847         to avoid type conflict with outer scope variable.
1848
1849 2006-03-27  Andrew Stubbs  <[email protected]>
1850
1851         * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1852
1853 2006-03-27  Nick Roberts  <[email protected]>
1854
1855         * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1856         offsets for languages like Fortran.
1857
1858 2006-03-26  Randolph Chung  <[email protected]>
1859
1860         * config/pa/hppa64.mt: Use HPUX version of the tm file.
1861
1862 2006-03-25  Nick Roberts  <[email protected]>
1863
1864         * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1865         Try to deal with continuation line.
1866         (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1867         variable names.
1868         (gdb-break-list-regexp, gdb-stack-list-frames-regexp): 
1869         Future proof against new fields being added to MI output.
1870         (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1871         (gdbmi-frame-handler): Update to new variable name
1872         gdb-get-buffer-create.
1873         (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1874         frames which except the innermost (where execution has stopped).
1875
1876 2006-03-24  Randolph Chung  <[email protected]>
1877
1878         * solib-som.c (link_map_start): Don't error out if there is
1879         not yet a link map.
1880
1881 2006-03-24  Daniel Jacobowitz  <[email protected]>
1882
1883         * linux-nat.c (linux_ops_saved): New.
1884         (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1885         (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1886         (linux_nat_fetch_registers, linux_nat_store_registers)
1887         (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1888         (init_lwp_list): Don't set threaded.
1889         (add_lwp): Don't modify threaded.
1890         (delete_lwp): Don't mention non-threaded mode.
1891         (linux_nat_switch_fork): New.
1892         (linux_nat_attach): Update inferior_ptid.
1893         (linux_nat_wait): Handle num_lwps == 0 at entry.  Don't check
1894         threaded flag.
1895         (linux_nat_kill): Handle pending forks and saved forks.
1896         (linux_nat_mourn_inferior): Handle saved forks.
1897         (linux_nat_pid_to_str): Don't use the LWP form when there is
1898         only one thread.
1899         (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1900         (linux_nat_add_target): New.
1901         (_initialize_linux_nat): Don't initialize the linux native target
1902         here.
1903         * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1904         prototypes.
1905         * linux-fork.c: Include "linux-nat.h".
1906         (add_fork): Update initial PID.
1907         (fork_load_infrun_state): Call linux_nat_switch_fork.
1908         * Makefile.in (linux-fork.o): Update.
1909
1910         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1911         linux_nat_add_target instead of add_target.
1912         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1913         * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1914         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1915         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1916         * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1917         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1918         * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1919         * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1920         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1921         * s390-nat.c (_initialize_s390_nat): Likewise.
1922         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1923         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1924
1925 2006-03-24  Daniel Jacobowitz  <[email protected]>
1926
1927         * linux-fork.c: Include "gdb_assert.h".
1928         (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1929         Update the register cache and selected frame also.
1930         (linux_fork_mourn_inferior): Use fork_load_infrun_state.  Return
1931         to single fork mode if necessary.
1932         (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1933         * Makefile.in (linux_fork_h): New.
1934         (linux-fork.o, linux-nat.o): Update.
1935
1936 2006-03-23  Andreas Schwab  <[email protected]>
1937
1938         * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1939
1940 2006-03-18  Jim Blandy  <[email protected]>
1941
1942         * symtab.h (enum address_class): Doc fix.
1943
1944 2006-03-16  Michael Snyder  <[email protected]>
1945
1946         * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
1947         * target.c (push_target): Fix typo in comment.
1948         * remote.c (remote_watch_data_address): Fix typo in comment.
1949         * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1950
1951 2006-03-15  Kevin Buettner  <[email protected]>
1952
1953         * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1954         Include.
1955         (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1956         (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1957         (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1958         (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1959         (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1960         (frv_elf_fpregset_t): Define types.
1961         (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1962         (frv_linux_regset_from_core_section: New functions.
1963         (frv_linux_gregset, frv_linux_fpregset): New static globals.
1964         (frv_linux_init_abi): Register the `regset_from_core_section' method.
1965         * Makefile.in (frv-linux-tdep.o): Update dependencies.
1966         * solib-frv.c (frv_current_sos): Relocate main executable after
1967         loading core file.
1968         (frv_clear_solib): Clean up space associated with
1969         `main_executable_lm_info'.
1970         * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1971
1972 2006-03-15  Daniel Jacobowitz  <[email protected]>
1973
1974         * Makefile.in (mips_linux_tdep_h): New.
1975         (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1976         * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1977         <sys/ptrace.h>.
1978         (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1979         (mips64_linux_regsets_fetch_registers)
1980         (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1981         (mips64_linux_store_registers): New.
1982         (_initialize_mips_linux_nat): Override to_fetch_registers and
1983         to_store_registers.
1984         * mips-linux-tdep.h: New file.
1985         * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1986         (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1987         (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1988         (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1989         (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1990         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1991         (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1992         (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1993         (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1994         (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1995         (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1996         (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1997         (supply_32bit_reg): Use gdb_byte.
1998         (supply_64bit_reg): New.
1999         (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
2000         (mips_fill_fpregset, fetch_core_registers, supply_gregset)
2001         (fill_gregset, supply_fpregset): Update for renamed types.
2002         (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
2003         (mips64_fill_gregset): Make global.  Handle 32-bit register
2004         sizes.
2005         (mips64_fill_fpregset): Make global.  Use gdb_byte.  Handle
2006         FP regsets properly.
2007
2008 2006-03-15  Daniel Jacobowitz  <[email protected]>
2009
2010         * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
2011         (mips_fill_gregset): Renamed from fill_gregset.
2012         (mips_supply_fpregset): Renamed from supply_fpregset.
2013         (mips_fill_fpregset): Renamed from fill_fpregset.
2014         (fetch_core_registers): Update calls.
2015         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
2016         functions.
2017
2018 2006-03-15  Daniel Jacobowitz  <[email protected]>
2019
2020         * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2021
2022 2006-03-15  Daniel Jacobowitz  <[email protected]>
2023
2024         * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
2025         Correct arithmetic for 64-bit CORE_ADDR.
2026
2027 2006-03-15  Daniel Jacobowitz  <[email protected]>
2028
2029         * mips-linux-tdep.c: Include "floatformat.h".
2030         (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
2031         * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
2032         double.
2033         (print_gp_register_row): Don't print spaces before ignored
2034         or floating point registers.
2035         * Makefile.in (mips-linux-tdep.o): Update.
2036
2037 2006-03-15  Daniel Jacobowitz  <[email protected]>
2038
2039         * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
2040         for code addresses.
2041         (non_heuristic_proc_desc): Likewise.
2042
2043 2006-03-15  Daniel Jacobowitz  <[email protected]>
2044
2045         * mips-linux-nat.c: Include "gdb_proc_service.h".
2046         (PTRACE_GET_THREAD_AREA): Define.
2047         (ps_get_thread_area): New.
2048         * Makefile.in (mips-linux-nat.o): Update.
2049
2050 2006-03-13  Jim Blandy  <[email protected]>
2051
2052         * MAINTAINERS: Use my work address.
2053
2054 2006-03-09  Michael Snyder  <[email protected]>
2055
2056         * linux-nat.c (kill_inferior): Just call target_mourn_inferior
2057         instead of getting tricky for the multi-fork case.
2058         * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
2059         for each fork, and then use init_fork_list to delete them.
2060
2061 2006-03-08  Alexandre Oliva  <[email protected]>
2062
2063         * solib-svr4.c (svr4_current_sos): Move up initialization of
2064         l_addr, such that it clearly covers all cases.
2065
2066 2006-03-08  Andreas Schwab  <[email protected]>
2067
2068         * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
2069         libunwind_frame_prev_register to use a gdb_byte buffer and
2070         extract_unsigned_integer.
2071         (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
2072
2073         * libunwind-frame.c (libunwind_frame_prev_register): Change type
2074         of last argument to `gdb_byte *'
2075         * libunwind-frame.h: Adjust declaration.
2076
2077 2006-03-08  Paul Brook  <[email protected]>
2078
2079         * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
2080         (arm_frame_align): New function.
2081         (arm_gdbarch_init): Use it.
2082
2083 2006-03-03  Khem Raj <[email protected]>
2084
2085         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
2086         Committed by Andrew Cagney.
2087         
2088 2006-03-02  Corinna Vinschen  <[email protected]>
2089
2090         * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
2091         address to MDR register.
2092
2093 2006-03-01  Daniel Jacobowitz  <[email protected]>
2094
2095         * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
2096         calls.
2097
2098 2006-03-01  Randolph Chung  <[email protected]>
2099
2100         * somread.c (som_symfile_read): Update comment and remove unneeded 
2101         use of a deprecated variable.
2102
2103 2006-03-01  Randolph Chung  <[email protected]>
2104
2105         * hppa-tdep.h (unwind_table_entry): Update field names to match HP
2106         runtime specification.
2107         * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
2108         (unwind_command): Likewise.
2109
2110 2006-03-01  Randolph Chung  <[email protected]>
2111
2112         * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
2113         Pseudo_SP_Set in unwind record.
2114
2115 2006-03-01  Randolph Chung  <[email protected]>
2116
2117         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
2118         TDEP->is_elf to determine if we are working with a SOM binary.
2119         (null_symtab_and_line): Remove unused variable.
2120         * config/pa/hppa64.mt: Use tm-hppa.h.
2121         * config/pa/tm-hppa64.h: Remove file.
2122
2123 2006-03-01  Wu Zhou  <[email protected]>
2124
2125          * f-typeprint.c (f_type_print_base): Delete the redundant space.
2126
2127 2006-02-28  Kevin Buettner  <[email protected]>
2128
2129         * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
2130         * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
2131         Include.
2132         (am33_linux_sigframe_cache_init): New function.
2133         (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
2134         descriptions.
2135         (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
2136         (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
2137         (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
2138         (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
2139         (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
2140         (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
2141         (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
2142         (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
2143         (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
2144         New constants.
2145         (am33_linux_init_osabi): Register signal frame unwinders.
2146
2147 2006-02-28  Kevin Buettner  <[email protected]>
2148
2149         * mn10300-tdep.c (mn10300_analyze_prologue):  Implement backtrack
2150         out of pattern match by saving relevant state.  Fix stack size
2151         adjustment bug.
2152
2153 2006-02-28  Alexandre Oliva  <[email protected]>
2154
2155         * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
2156         l_ld_size fields.
2157         * solib-svr4.c (struct lm_info): Add l_addr field.
2158         (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
2159         (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
2160         (LM_DYNAMIC_FROM_LINK_MAP): New.
2161         (LM_ADDR_CHECK): New.  Use it instead of LM_ADDR.
2162         (svr4_current_sos): Initialize l_addr.  Adjust.
2163         (svr4_relocate_section_addresses): Adjust.
2164         (svr4_ilp32_fetch_link_map_offsets): Define new members.
2165         (svr4_lp64_fetch_link_map_offsets): Likewise.
2166         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2167         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
2168         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2169         * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
2170
2171 2006-02-26  David S. Miller  <[email protected]>
2172
2173         * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
2174         * config/sparc/linux64.mt (TDEPFILES): Likewise.
2175
2176 2006-02-27  Alan Modra  <[email protected]>
2177
2178         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
2179         (ppc_linux_remove_watchpoint): Likewise, and args.
2180
2181 2006-02-26  Mark Kettenis  <[email protected]>
2182
2183         * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
2184         "soft" interrupts.
2185
2186 2006-02-24  Charles Wilson  <[email protected]>
2187
2188         * gdb/defs.h: unconditionally include <fcntl.h>, and
2189         ensure that O_BINARY is defined.
2190         * gdb/solib.c(solib_open): ensure solib files are opened in
2191         binary mode.
2192         * gdb/corelow.c: Remove O_BINARY macro definition.
2193         * gdb/exec.c: Remove O_BINARY macro definition
2194         * gdb/remote-rdp.c: Remove O_BINARY macro definition
2195         * gdb/source.c: Remove O_BINARY macro definition
2196         * gdb/symfile.c: Remove O_BINARY macro definition
2197
2198 2006-02-24  Randolph Chung  <[email protected]>
2199
2200         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize 
2201         argreg.
2202         * solib-som.c (som_solib_remove_inferior_hook): Remove unused 
2203         function.
2204
2205 2006-02-24  Wu Zhou  <[email protected]>
2206
2207         * f-exp.y: Symbol '%' is not used as the modulus operator in
2208         Fortran.  Delete this from Fortran expression.
2209         It is now used by Fortran 90 and later to access the member
2210         of derived type.  Add this into Fortran expression.
2211         * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
2212         Print each elements in the derived type.
2213         * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
2214         level into the function definition to do indented printing.  And
2215         call fprintfi_filtered instead to do indented printing.
2216         (f_type_print_base): Replace fprintf_filtered with the indented
2217         version (fprintfi_filtered).
2218         (f_type_print_base): Call indented print_equivalent_f77_float_type.
2219         (f_type_print_base): Add code to handle TYPE_CODE_STRUCT.  Print
2220         the definition of the derived type.
2221
2222 2006-02-23  Daniel Jacobowitz  <[email protected]>
2223
2224         * gdb_curses.h: Provide a fallback prototype for tgetnum.
2225
2226 2006-02-23  Daniel Jacobowitz  <[email protected]>
2227
2228         * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
2229         also.
2230         (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
2231         (DOUBLEST_SCAN_FORMAT): New.
2232         * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
2233         (processReal): Use DOUBLEST_SCAN_FORMAT.
2234         * c-exp.y (parse_number): Likewise.
2235         * jv-exp.y (parse_number): Likewise.
2236         * objc-exp.y (parse_number): Likewise.
2237         * p-exp.y (parse_number): Likewise.
2238
2239 2006-02-23  Daniel Jacobowitz  <[email protected]>
2240
2241         * event-top.c (async_do_nothing, async_disconnect)
2242         (async_stop_sig, async_float_handler): Remove duplicated
2243         prototypes.
2244         (handle_sighup): Guard prototype with SIGHUP.
2245         (async_do_nothing): Guard function and prototype with
2246         SIGQUIT || SIGHUP.
2247         (async_disconnect): Guard prototype with SIGHUP.
2248         (async_stop_sig): Guard prototype with STOP_SIGNAL.
2249
2250 2006-02-23  Daniel Jacobowitz  <[email protected]>
2251
2252         * maint.c (maintenance_dump_me): Remove unnecessary prototype.
2253
2254 2006-02-23  Daniel Jacobowitz  <[email protected]>
2255
2256         * win32-termcap.c (tputs): Return 0.
2257
2258 2006-02-21  Mark Kettenis  <[email protected]>
2259
2260         * configure.ac: Introduce ---enable-werror, which adds -Werror to
2261         the compiler command line.  Enabled by default.  Disable with
2262         --disable-werror.
2263         * configure regenerate.
2264
2265 2006-02-21  Daniel Jacobowitz  <[email protected]>
2266
2267         * elfread.c (elf_symtab_read): Skip symbols which BFD considers
2268         special.
2269
2270 2006-02-21  Andrew Stubbs  <[email protected]>
2271
2272         * defs.h (directory_switch): Add prototype.
2273         * main.c (captured_main): Use directory_switch() instead of
2274         directory_command() to add directories from the -d switch.
2275         * source.c (directory_switch): New function.
2276         (add_path): Use buildargv() to parse spaces in filenames properly.
2277         Strip multiple trailing '/' rather than just one.
2278
2279 2006-02-21  Andrew Stubbs  <[email protected]>
2280
2281         * symfile.c (add_symbol_file_command): Use buildargv(), instead of
2282         hand decoding the command line, to allow use of quotes and spaces.
2283         (_initialize_symfile): Reorganize the help message for add-symbol-file
2284         such that 'help files' shows a better message.
2285
2286 2006-02-21  Andrew Stubbs  <[email protected]>
2287
2288         * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
2289         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
2290         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
2291         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2292
2293 2006-02-20  Daniel Jacobowitz  <[email protected]>
2294
2295         * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
2296         and __SIGRTMIN + 1.
2297
2298 2006-02-20  Daniel Jacobowitz  <[email protected]>
2299
2300         * remote.c: Add an enumeration for configurable remote
2301         packets.
2302         (remote_protocol_packets, set_remote_protocol_packet_cmd)
2303         (show_remote_protocol_packet_cmd): New.
2304         (remote_protocol_vcont)
2305         (set_remote_protocol_vcont_packet_cmd)
2306         (show_remote_protocol_vcont_packet_cmd)
2307         (remote_protocol_qSymbol)
2308         (set_remote_protocol_qSymbol_packet_cmd)
2309         (show_remote_protocol_qSymbol_packet_cmd)
2310         (remote_protocol_P, set_remote_protocol_P_packet_cmd)
2311         (show_remote_protocol_P_packet_cmd)
2312         (remote_protocol_Z)
2313         (set_remote_protocol_Z_software_bp_packet_cmd)
2314         (show_remote_protocol_Z_software_bp_packet_cmd)
2315         (set_remote_protocol_Z_hardware_bp_packet_cmd)
2316         (show_remote_protocol_Z_hardware_bp_packet_cmd)
2317         (set_remote_protocol_Z_write_wp_packet_cmd)
2318         (show_remote_protocol_Z_write_wp_packet_cmd)
2319         (set_remote_protocol_Z_read_wp_packet_cmd)
2320         (show_remote_protocol_Z_read_wp_packet_cmd)
2321         (set_remote_protocol_Z_access_wp_packet_cmd)
2322         (show_remote_protocol_Z_access_wp_packet_cmd)
2323         (remote_protocol_binary_download)
2324         (set_remote_protocol_binary_download_cmd)
2325         (show_remote_protocol_binary_download_cmd)
2326         (remote_protocol_qPart_auxv)
2327         (set_remote_protocol_qPart_auxv_packet_cmd)
2328         (show_remote_protocol_qPart_auxv_packet_cmd)
2329         (remote_protocol_qGetTLSAddr)
2330         (set_remote_protocol_qGetTLSAddr_packet_cmd)
2331         (show_remote_protocol_qGetTLSAddr_packet_cmd)
2332         (remote_protocol_p)
2333         (set_remote_protocol_p_packet_cmd)
2334         (show_remote_protocol_p_packet_cmd): Delete.
2335
2336         (init_all_packet_configs): Simplify.
2337         (set_remote_protocol_Z_packet_cmd)
2338         (show_remote_protocol_Z_packet_cmd)
2339         (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
2340         (remote_fetch_registers, remote_prepare_to_store)
2341         (remote_store_registers, check_binary_download)
2342         (remote_write_bytes, remote_insert_breakpoint)
2343         (remote_remove_breakpoint, remote_insert_watchpoint)
2344         (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2345         (remote_remove_hw_breakpoint, remote_xfer_partial)
2346         (remote_get_thread_local_address): Update for packet array.
2347         (_initialize_remote): Likewise; also update for common
2348         set/show commands.
2349
2350 2006-02-20  Daniel Jacobowitz  <[email protected]>
2351
2352         * symfile.c (place_section): Correct retry logic.
2353
2354 2006-02-19  Christopher Faylor  <[email protected]>
2355
2356         * win32_nat.c (cygwin_load_start): New variable.
2357         (cygwin_load_end): Ditto.
2358         (have_saved_context): Ditto.
2359         (saved_context): Ditto.
2360         (max_dll_name_len): Delete obsolete variable.
2361         (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
2362         if we are in a cygwin signal rather than a windows signal.
2363         (solib_symbols_add): Detect and store beginning and end of cygwin DLL
2364         if dll being loaded is the cygwin DLL.
2365         (register_loaded_dll): Remove calculation of max_dll_name_len.
2366         (win32_clear_solib): Ditto.
2367         (handle_load_dll): Delete obsolete variable.  Remove unneeded call to
2368         solib_add.
2369         (handle_output_debug_string): Detect and store signal information sent
2370         by Cygwin here.
2371         (handle_exception): Silently pass on errors in the cygwin DLL.  Return
2372         -1 on first pass exception.
2373         (win32_continue): Remove spurious clearing of continue_status.
2374         (get_win32_debug_event): Deal differently first chance exception.
2375
2376 2006-02-19  Randolph Chung  <[email protected]>
2377
2378         * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
2379         unwind entry.
2380
2381 2006-02-16  Fred Fish  <[email protected]>
2382
2383         * eval.c (evaluate_subexp_standard):  For OP_TYPE, return
2384         a non lval value zero, of the appropriate type, when avoiding
2385         side effects.
2386         * typeprint.c (ptype_eval): Remove function and declaration.
2387         (ptype_command): Simplify to just a call to whatis_exp.
2388
2389 2006-02-15  Paul Brook  <[email protected]>
2390
2391         * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
2392         Load insn opcodes as unsigned values.
2393
2394 2006-02-14  Alexandre Oliva  <[email protected]>
2395
2396         * doublest.h (DOUBLEST): Use long double only if we can scan
2397         it in.  Undefine HAVE_LONG_DOUBLE otherwise.
2398         (DOUBLEST_FORMAT): New.
2399         * c-exp.y (parse_number): Use it.
2400         * jv-exp.y (parse_number): Likewise.
2401         * objc-exp.y (parse_number): Likewise.
2402         * p-exp.y (parse_number): Likewise.
2403         * varobj.c (free_variable): Silence type-punning warnings.
2404         * tui/tui-data.h (struct tui_list): Change type of list member.
2405         * tui/tui-data.c: Remove no-longer-needed type casts.
2406         (source_windows): Silence type-punning warnings.
2407         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2408
2409 2006-02-13  Mark Kettenis  <[email protected]>
2410
2411         Fix PR breakpoints/2080.
2412         * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
2413         (i386_analyze_stack_align): New function.
2414         (i386_analyze_prologue): Use i386_analyze_stack_align.
2415         (i386_frame_cache): Deal with stack realignment.
2416
2417 2006-02-14  Nick Roberts  <[email protected]>
2418
2419         * mi/gdb-mi.el: Use more functions from gdb-ui.el.
2420         (gdb-break-list-regexp): Match "what" field if present.
2421         (gdb-stack-list-frames-regexp): Match "from" field if present.
2422         (gdb-stack-list-frames-handler): Present output like "info
2423         breakpoints" so regexps can be shared with gdb-ui
2424
2425 2006-02-10  Daniel Jacobowitz  <[email protected]>
2426
2427         * NEWS: Mention native Windows support.
2428         * Makefile.in (gdb_select_h, ser_tcp_h): New.
2429         (ALLDEPFILES): Add ser-mingw.c.
2430         (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
2431         (ser-tcp.o, ser-unix.o): Update.
2432         (ser-mingw.o): New rule.
2433         * configure: Regenerated.
2434         * configure.ac: Add ser-mingw.o for mingw32.
2435         * ser-mingw.c: New file.
2436         * event-loop.c: Include "gdb_select.h".
2437         (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
2438         * ser-base.c: Include "gdb_select.h".
2439         (ser_base_wait_for): Use gdb_select.
2440         * serial.c (serial_for_fd): New function.
2441         (serial_fdopen): Try "terminal" before "hardwire".  Initialize
2442         the allocated struct serial.
2443         (serial_wait_handle): New function.
2444         * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
2445         (struct serial_ops) [USE_WIN32API]: Add wait_handle.
2446         * gdb_select.h: New file.
2447         * ser-tcp.c: Include "ser-tcp.h".  Remove unused "ser-unix.h" include.
2448         (net_close, net_read_prim, net_write_prim): Make global.
2449         (net_open): Likewise.  Pass an exception set to select.  Whitespace fix.
2450         Document why we can not use gdb_select.
2451         (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
2452         * ser-tcp.h: New file.
2453         * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
2454         (handle_sigio): Use gdb_select.
2455         (initialize_stdin_serial): New function.
2456         * terminal.h (initialize_stdin_serial): New prototype.
2457         * top.c (gdb_init): Call initialize_stdin_serial.
2458         * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
2459         event-loop.c.  Add exception condition support.  Use serial_for_fd
2460         and serial_wait_handle.  Fix timeout handling.
2461         * posix-hdep.c: Include "gdb_select.h".
2462         (gdb_select): New function.
2463         * remote-st.c (connect_command): Use gdb_select.
2464         * ser-unix.c: Include "gdb_select.h".
2465         (hardwire_send_break, wait_for): Use gdb_select.
2466
2467 2006-02-10  Daniel Jacobowitz  <[email protected]>
2468
2469         * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
2470         (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
2471         * configure.ac: Add gdb_host_obs to CONFIG_OBS.  Set gdb_host_obs
2472         to posix-hdep.o by default.
2473         * configure: Regenerated.
2474         * configure.host: Document gdb_host_obs.  Add an entry for
2475         i[34567]86-*-mingw32*.
2476         * mingw-hdep.c, posix-hdep.c: New files.
2477         * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2478
2479 2006-02-10  Joel Brobecker  <[email protected]>
2480
2481         * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
2482         * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
2483         * rs6000-tdep.h: New file.
2484         * rs6000-tdep.c: Include "rs6000-tdep.h".
2485         (rs6000_gdbarch_init): Remove enabling of software single step.
2486         Will be done in the AIX-specific initialization routine.
2487         * rs6000-aix-tdep.c: New file.
2488         * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
2489         * Makefile.in (rs6000_tdep_h): New variable.
2490         (rs6000-tdep.o): Update dependencies.
2491         (rs6000-aix-tdep.o): New rule.
2492
2493 2006-02-10  Joel Brobecker  <[email protected]>
2494
2495         * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
2496         instead of add_setshow_zinteger_cmd to defined the aix-thread
2497         boolean setting.
2498
2499 2006-02-10  Nick Roberts  <[email protected]>
2500
2501         * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
2502
2503 2006-02-09  Daniel Jacobowitz  <[email protected]>
2504
2505         * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
2506         30 bits.  Add load_all_dies flag.
2507         (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
2508         Load DW_TAG_member by default.  Remove internal_error call.
2509         (find_partial_die): Reload the compilation unit if we can not find
2510         a DIE in the cache.  Call internal_error here if we still can not
2511         find the DIE.
2512
2513 2006-02-10  Nick Roberts  <[email protected]>
2514
2515         * breakpoint.c (print_one_breakpoint): Add break to case
2516         bp_catch_vfork in switch statement.
2517
2518 2006-02-08  Wu Zhou  <[email protected]>
2519
2520         * config/i386/nm-i386sol2.h: Update copyright year.
2521         * config/mips/nm-irix5.h: Ditto.
2522         * config/sparc/nm-sol2.h: Ditto.
2523         * s390-nat.c: Ditto.
2524         * ppc-linux-nat.c: Ditto.
2525
2526 2006-02-08  Wu Zhou  <[email protected]>
2527
2528         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2529         * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2530         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2531         * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2532         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2533         * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2534         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2535         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2536         (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2537         (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2538         add to_region_ok_for_hw_watchpoint.
2539         * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2540         (s390_region_ok_for_hw_watchpoint): New.
2541         (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2542         and add to_region_ok_for_hw_watchpoint.
2543         * target.c (default_region_size_ok_for_hw_watchpoint, 
2544         debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2545         (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2546         inheritance and default_region_size_ok_for_hw_watchpoint.
2547         (default_region_ok_for_hw_watchpoint): If len is less than or equal
2548         the length of void pointer, return ok.
2549         (default_region_size_ok_for_hw_watchpoint): Delete.
2550         (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2551         (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2552         * target.h (struct target_ops): Delete 
2553         to_region_size_ok_for_hw_watchpoint.
2554         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2555         
2556 2006-02-08  Ben Elliston  <[email protected]>
2557             Wu Zhou  <[email protected]>
2558
2559         * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2560         PTRACE_GETSIGINFO): Define.
2561         (last_stopped_data_address): New.
2562         (ppc_linux_check_watch_resources): New function.
2563         (ppc_linux_region_ok_for_hw_watchpoint): New function.
2564         (ppc_linux_insert_watchpoint): New function.
2565         (ppc_linux_remove_watchpoint): New function.
2566         (ppc_linux_stopped_data_address): New function.
2567         (ppc_linux_stopped_by_watchpoint): New function.
2568         (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2569         related target vectors.
2570         * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2571         to have nonsteppable watchpoint.
2572         * target.c (default_region_ok_for_hw_watchpoint,
2573         debug_to_region_ok_for_hw_watchpoint): New prototypes.
2574         (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2575         and set default to_region_ok_for_hw_watchpoint.
2576         (default_region_ok_for_hw_watchpoint): New function.
2577         (debug_to_region_ok_for_hw_watchpoint): New function.
2578         (setup_target_debug): Set to_region_ok_for_hw_watchpoint of 
2579         debug_target.
2580         * target.h (struct target_ops): Add a new target vector 
2581         to_region_ok_for_hw_watchpoint.
2582         (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2583         defined anyplace else.
2584
2585 2005-02-07  Joel Brobecker  <[email protected]>
2586         * symfile.c (add_symbol_file_command): Abort if the user forgot
2587         to provide the address when the file has been loaded.
2588
2589 2006-02-07  Daniel Jacobowitz  <[email protected]>
2590
2591         * MAINTAINERS: Update file based on maintainers survey.  Add
2592         a note to Past Maintainers.  Move unresponsive or inactive
2593         maintainers to Authorized Committers or Past Maintainers as
2594         appropriate.  Correct Jim Kingdon's email address.  Remove
2595         vacant areas of responsibility.
2596
2597 2006-02-06  Vladimir Prus  <[email protected]>
2598
2599         * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2600         fullname field.
2601
2602 2006-02-03  Daniel Jacobowitz  <[email protected]>
2603
2604         * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2605         * exceptions.c (exception_none, exceptions_state_mc_init)
2606         (throw_vfatal): Use GDB_NO_ERROR.
2607
2608 2006-02-02  Mark Kettenis  <[email protected]>
2609
2610         * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2611         r_map_size members.  Add r_version_offset, r_version_size and
2612         r_ldsomap_offset members.
2613         * solib-svr4.c (solib_svr4_r_map): Renamed from
2614         fetch_link_map_member.  Simplify using read_memory_typed_address.
2615         (solib_svr4_r_ldsomap): New function.
2616         (open_symbol_file_object): Use solib_svr_r_map.
2617         (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2618         linker by using solib_svr4_r_ldsomap.
2619         (svr4_ilp32_fetch_link_map_offsets)
2620         (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2621         link_map_offsets'.
2622         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2623         changes to `struct link_map_offsets'.
2624         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2625         (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2626         `struct link_map_offsets'.
2627
2628 2006-02-01  Daniel Jacobowitz  <[email protected]>
2629
2630         * linux-nat.c (struct saved_ptids, threads_to_delete)
2631         (record_dead_thread, prune_lwps, find_thread_from_lwp)
2632         (exit_lwp): New.
2633         (linux_nat_resume): Call prune_lwps.
2634         (wait_lwp, linux_nat_wait): Call exit_lwp.
2635
2636 2006-02-01  Daniel Jacobowitz  <[email protected]>
2637
2638         * printcmd.c (printf_command): Make format string checking
2639         stricter.  Add separate cases for long_arg, ptr_arg, and
2640         long_double_arg.
2641         * utils.c (xstrvprintf): Improve the error message issued
2642         for a bad format string.
2643         * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2644         New variables.
2645         (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2646         $(NO_WERROR_CFLAGS).
2647         (printcmd.o): Likewise.  Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2648         enable -Werror.
2649
2650 2006-02-01  Daniel Jacobowitz  <[email protected]>
2651
2652         * Makefile.in (remote.o): Update.
2653         * remote.c (show_packet_config_cmd): Shorten messages.
2654         (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2655         (show_remote_cmd): Iterate.
2656         (_initialize_remote): Remove remote_set_cmdlist,
2657         remote_show_cmdlist.
2658
2659 2006-02-01  Daniel Jacobowitz  <[email protected]>
2660
2661         * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2662         * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2663         prototypes.
2664         * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2665         (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2666         * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2667         ...here.
2668         * gdbtypes.c: Include "hashtab.h".
2669         (build_gdbtypes): Remove extra prototype.
2670         (struct type_pair, type_pair_hash, type_pair_eq)
2671         (create_copied_types_hash, copy_type_recursive): New.
2672         * gdbtypes.h: Include "hashtab.h".
2673         (TYPE_ZALLOC): New.
2674         (create_copied_types_hash, copy_type_recursive): New prototypes.
2675         * objfiles.c (free_objfile): Call preserve_values.
2676         * symfile.c (reread_symbols): Likewise.
2677         (clear_symtab_users): Remove calls to clear_value_history and
2678         clear_internalvars.
2679         * value.c (clear_value_history, clear_internalvars): Removed.
2680         (preserve_one_value, preserve_values): New functions.
2681         * value.h (clear_value_history, clear_internalvars): Removed.
2682         (preserve_values): New prototype.
2683
2684         * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2685         variables here.
2686
2687 2006-01-29  Mark Kettenis  <[email protected]>
2688
2689         * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2690         Fixes PR tdep/2075.
2691
2692 2006-01-27  Joel Brobecker  <[email protected]>
2693
2694         * MAINTAINERS: Use a consistent email address for brobecker.
2695
2696 2006-01-27  Joel Brobecker  <[email protected]>
2697
2698         * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2699         in the previous change.
2700
2701 2006-01-24  Daniel Jacobowitz  <[email protected]>
2702
2703         PR gdb/1914
2704         * fork-child.c (fork_inferior): Don't call
2705         solib_create_inferior_hook.
2706         * infcmd.c (post_create_inferior): Call solib_add,
2707         solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2708         (attach_command): Don't call solib_add or
2709         re_enable_breakpoints_in_shlibs.  Call post_create_inferior
2710         instead.
2711         * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2712         or observer_notify_inferior_created.  Call post_create_inferior
2713         instead.
2714         * corelow.c: Don't include "observer.h".
2715         (solib_add_stub): Deleted.
2716         (core_open): Don't call observer_notify_inferior_created or
2717         solib_add_stub.  Call post_create_inferior instead.
2718         * inf-ptrace.c: Don't include "observer.h".
2719         (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2720         * inf-ttrace.c: Don't include "observer.h".
2721         (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2722         * inferior.h (solib_create_inferior_hook): Remove redundant
2723         prototype.
2724         * inftarg.c: Don't include "observer.h".
2725         (child_attach): Don't call observer_notify_inferior_created.
2726         * Makefile.in: Update dependencies.
2727
2728 2006-01-24  Daniel Jacobowitz  <[email protected]>
2729
2730         * infcmd.c: Include "observer.h".
2731         (post_create_inferior): New function.
2732         (run_command_1): Call it.  Also call proceed.
2733         * inferior.h (post_create_inferior): New prototype.
2734         * Makefile.in (infcmd.o): Update.
2735
2736         * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2737         * go32-nat.c (go32_create_inferior): Likewise.
2738         * nto-procfs.c (procfs_create_inferior): Likewise.
2739         * procfs.c (procfs_create_inferior): Likewise.
2740         * remote-sim.c (gdbsim_create_inferior): Likewise.
2741         * remote.c (extended_remote_create_inferior)
2742         (extended_remote_async_create_inferior): Likewise.
2743         * win32-nat.c (win32_create_inferior): Likewise.
2744         * wince.c (child_create_inferior): Likewise.
2745
2746         * monitor.c (monitor_create_inferior): Don't call proceed.
2747         Set the PC manually.
2748         * ocd.c (ocd_create_inferior): Likewise.
2749         * remote-e7000.c (e7000_create_inferior): Likewise.
2750         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2751         * remote-mips.c (mips_create_inferior): Likewise.
2752         * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2753         * remote-sds.c (sds_create_inferior): Likewise.
2754         * remote-st.c (st2000_create_inferior): Likewise.
2755
2756         * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2757         proceed or observer_notify_inferior_created.
2758         * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2759         * inftarg.c (child_create_inferior): Likewise.
2760
2761 2006-01-24  Daniel Jacobowitz  <[email protected]>
2762
2763         * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2764         after mourning the inferior.
2765
2766 2006-01-24  Jim Blandy  <[email protected]>
2767
2768         * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2769
2770 2006-01-24  Fred Fish  <[email protected]>
2771
2772         * parse.c (source.h): Include.
2773         (parse_exp_in_context):  Use static source context if no
2774         other context found.
2775
2776 2006-01-23  Andrew Stubbs  <[email protected]>
2777
2778         * sh-tdep.c: Include reggroups.h.
2779         (sh_register_reggroup_p): New function.
2780         (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2781         * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2782
2783 2006-01-23  Andrew Stubbs  <[email protected]>
2784
2785         * cli/cli-cmds.c: Include fcntl.h.
2786         (source_command): Use the GDB search path to find script files.
2787
2788 2006-01-22  Daniel Jacobowitz  <[email protected]>
2789
2790         PR tdep/2029
2791         Suggested by Till Straumann <[email protected]>:
2792         * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2793         instructions.  Handle PIC bcl.
2794
2795 2006-01-22  Daniel Jacobowitz  <[email protected]>
2796
2797         * config/djgpp/README: Typo fix.
2798         * config/djgpp/fnchange.lst: Update.
2799
2800 2006-01-22  Mark Kettenis  <[email protected]>
2801
2802         * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2803         (sparc_address_from_register): New prototype.
2804         (sparcnbsd_step_trap): New prototype.
2805         * sparc-tdep.c (sparc_address_from_register): Make globally
2806         visible.
2807         (sparc_analyze_control_transfer): Change prototype to accept
2808         `struct gdbarch *' as first argument.  Allow for optional hnadling
2809         for trap instructions.
2810         (sparc_step_trap): New function.
2811         (sparc_software_single_step): Adjust call to
2812         sparc_analyze_control_trabsfer.
2813         (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2814         * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2815         (sparc32nbsd_init_abi): Set TDEP->step_trap.
2816         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2817         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2818
2819         * sparc-tdep.c (sparc32_return_value): Convert to use
2820         RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2821         RETURN_VALUE_STRUCT_CONVENTION.
2822         (sparc32_extract_struct_value_address): Remove.
2823
2824 2006-01-21  Daniel Jacobowitz  <[email protected]>
2825
2826         * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2827         (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2828
2829 2006-01-21  Daniel Jacobowitz  <[email protected]>
2830
2831         * solib.c (info_sharedlibrary_command): Avoid internal_error.
2832
2833 2006-01-21  Mark Kettenis  <[email protected]>
2834
2835         * i386-tdep.c (i386_mxcsr_type): New variable.
2836         (i386_init_types): Initialize i386_mxcsr_type.
2837         (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2838         * i386-tdep.c (i386_mxcsr_type): New extern.
2839         * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2840         %mxcsr.
2841
2842 2006-01-20  Mark Mitchell  <[email protected]>
2843
2844         * Makefile.in (remote-rdi.o): Remove.
2845         (rdi-share/libangsd.a): Likewise.
2846         * README: Don't mention remote-rdi.c.
2847         * NEWS: Mention removal of rdi-share.
2848         * configure.ac: Don't configure rdi-share subdirectory.
2849         * remote-rdi.c: Remove.
2850         * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2851         (TDEPLIBS): Remove rdi-share/libangsd.a.
2852         * rdi-share/Makefile.am: Remove.
2853         * rdi-share/Makefile.in: Likewise.
2854         * rdi-share/README.CYGNUS: Likewise.
2855         * rdi-share/aclocal.m4: Likewise.
2856         * rdi-share/adp.h: Likewise.
2857         * rdi-share/adperr.h: Likewise.
2858         * rdi-share/angel.h: Likewise.
2859         * rdi-share/angel_bytesex.c: Likewise.
2860         * rdi-share/angel_bytesex.h: Likewise.
2861         * rdi-share/angel_endian.h: Likewise.
2862         * rdi-share/ardi.c: Likewise.
2863         * rdi-share/ardi.h: Likewise.
2864         * rdi-share/armdbg.h: Likewise.
2865         * rdi-share/buffers.h: Likewise.
2866         * rdi-share/chandefs.h: Likewise.
2867         * rdi-share/channels.h: Likewise.
2868         * rdi-share/chanpriv.h: Likewise.
2869         * rdi-share/configure: Likewise.
2870         * rdi-share/configure.in: Likewise.
2871         * rdi-share/crc.c: Likewise.
2872         * rdi-share/crc.h: Likewise.
2873         * rdi-share/dbg_conf.h: Likewise.
2874         * rdi-share/dbg_cp.h: Likewise.
2875         * rdi-share/dbg_hif.h: Likewise.
2876         * rdi-share/dbg_rdi.h: Likewise.
2877         * rdi-share/devclnt.h: Likewise.
2878         * rdi-share/devices.h: Likewise.
2879         * rdi-share/devsw.c: Likewise.
2880         * rdi-share/devsw.h: Likewise.
2881         * rdi-share/drivers.c: Likewise.
2882         * rdi-share/drivers.h: Likewise.
2883         * rdi-share/etherdrv.c: Likewise.
2884         * rdi-share/ethernet.h: Likewise.
2885         * rdi-share/host.h: Likewise.
2886         * rdi-share/hostchan.c: Likewise.
2887         * rdi-share/hostchan.h: Likewise.
2888         * rdi-share/hsys.c: Likewise.
2889         * rdi-share/hsys.h: Likewise.
2890         * rdi-share/logging.c: Likewise.
2891         * rdi-share/logging.h: Likewise.
2892         * rdi-share/msgbuild.c: Likewise.
2893         * rdi-share/msgbuild.h: Likewise.
2894         * rdi-share/params.c: Likewise.
2895         * rdi-share/params.h: Likewise.
2896         * rdi-share/rx.c: Likewise.
2897         * rdi-share/rxtx.h: Likewise.
2898         * rdi-share/serdrv.c: Likewise.
2899         * rdi-share/serpardr.c: Likewise.
2900         * rdi-share/sys.h: Likewise.
2901         * rdi-share/tx.c: Likewise.
2902         * rdi-share/unixcomm.c: Likewise.
2903         * rdi-share/unixcomm.h: Likewise.
2904
2905 2006-01-21  Mark Kettenis  <[email protected]>
2906
2907         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2908         Change type of last argument to `gdb_byte *'.
2909
2910 2006-01-20  Mark Kettenis  <[email protected]>
2911
2912         * hppa-tdep.h (hppa_in_solib_call_trampoline)
2913         (hppa_skip_trampoline_code): New prototypes.
2914         * hppa-tdep.c (struct insn_pattern): New.
2915         (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2916         (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2917         here from hppa-linux-tdep.c
2918         (HPPA_MAX_INSN_PATTERN_LEN): New define.
2919         (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2920         (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2921         functions based on functions removed from hppa-linux-tdep.c.
2922         * hppa-linux-tdep.c (hppa_long_branch_stub)
2923         (hppa_long_branch_pic_stub, hppa_import_stub)
2924         (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2925         (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2926         (hppa_linux_in_solib_call_trampoline)
2927         (hppa_linux_skip_trampoline_code): Removed.
2928         (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2929         hppa_in_solib_call_trampoline and skip_trampoline_code to
2930         hppa_skip_trampoline_code.
2931         * hppabsd-tdep.c (hppabsd_init_abi): Set
2932         TDEP->in_solib_call_trampoline and skip_trampoline_code.
2933
2934 2006-01-20  Jim Blandy  <[email protected]>
2935
2936         * MAINTAINERS: Change my E-mail address.
2937
2938         * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2939         * configure: Regenerated.
2940
2941 2006-01-20  Daniel Jacobowitz  <[email protected]>
2942
2943         * MAINTAINERS: Overhaul.
2944
2945 2006-01-18  Mark Kettenis  <[email protected]>
2946
2947         Based on a previous patch form Michal Ludvig:
2948         * amd64-tdep.c (amd64_sse_type): Remove.
2949         (amd64_register_info): Use i386_eflags_type and i386_sse_type
2950         where appropriate.
2951         (AMD64_NUM_REGS): Use ARRAY_SIZE.
2952         (amd64_register_type): Remove code to build amd_sse_type.
2953         * i386-tdep.c (i386_eflag_type): New variable.
2954         (i386_mmx_type, i386_sse_type): Make global.
2955         (i386_init_types): New function.
2956         (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2957         (i386_register_type): Return i386_eflag_type, i386_sse_type and
2958         i386_mmx_type when appropriate.
2959         (_initialize_i386_tdep): Call i386_init_types.
2960         * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2961         Declare extern.
2962
2963         Based on a previous patch form Michal Ludvig:
2964         * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2965         functions.
2966         (is_integral_type, rank_one_type, recursive_dump_type): Add
2967         support for TYPE_CODE_FLAGS.
2968         * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2969         (append_flags_type_field, init_flags_type): New prototypes.
2970         * ada-valprint.c (ada_val_print_1): Add support for
2971         TYPE_CODE_FLAGS.
2972         * c-valprint.c (c_val_print): Likewise.
2973         * f-valprint.c (f_val_print): Likewise.
2974         * p-valprint.c (pascal_val_print): Likewise.
2975         * valprint.c (val_print_type_code_flags): New function.
2976         * valprint.h (val_print_type_code_flags): New prototype.
2977         * value.c (unpack_long, value_from_longest): Add support for
2978         TYPE_CODE_FLAGS.
2979
2980 2006-01-17  Christopher Faylor  <[email protected]>
2981
2982         * MAINTAINERS: Very belatedly remove myself from from the list of
2983         people caught up in the paper trail.
2984
2985 2006-01-17  Jim Blandy  <[email protected]>
2986
2987         * symtab.h (struct general_symbol_info): Use gdb_byte for
2988         value.bytes.
2989         * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2990         a floating-point constant's value.
2991         * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2992         to char *.
2993         * findvar.c (read_var_value): Eliminate needless temporary.
2994
2995         * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2996         to match prior change to dwarf2_read_section's type.
2997
2998 2006-01-16  Paul Gilliam  <[email protected]>
2999
3000         * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
3001         * rs6000-tdep.c (insn_changes_sp_or_jumps)
3002         (rs6000_in_function_epilogue_p): New functions.
3003         (rs6000_gdbarch_init): Set in_function_epilogue_p.
3004
3005 2006-01-17  Jim Blandy  <[email protected]>
3006
3007         * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
3008         (struct line_header, struct partial_die_info, struct dwarf_block):
3009         Use gdb_byte for members that refer to Dwarf section contents.
3010         (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
3011         dwarf_decode_macros, load_comp_unit, load_partial_dies,
3012         locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
3013         read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
3014         read_8_bytes, read_address, read_attribute, read_attribute_value,
3015         read_comp_unit, read_comp_unit_head, read_die_and_children,
3016         read_die_and_siblings, read_full_die, read_indirect_string,
3017         read_initial_length, read_n_bytes, read_offset, read_partial_die,
3018         read_signed_leb128, read_string, read_unsigned_leb128,
3019         skip_children, skip_leb128, skip_one_die): Same.
3020
3021 2006-01-17  Daniel Jacobowitz  <[email protected]>
3022
3023         * complaints.c (stop_whining): Make signed.
3024         * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
3025
3026 2006-01-17  Daniel Jacobowitz  <[email protected]>
3027
3028         * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
3029         notices.
3030
3031 2006-01-17  Daniel Jacobowitz  <[email protected]>
3032
3033         * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
3034         (read_offset): Change BYTES_READ argument to unsigned int.
3035         (dwarf2_build_psymtabs_easy, read_comp_unit_head)
3036         (create_all_comp_units, dwarf2_get_pc_bounds)
3037         (dwarf_decode_line_header, var_decode_location)
3038         (dwarf_decode_macros): Change local BYTES_READ variables to
3039         unsigned int.
3040         (read_indirect_string): Remove obsolete cast.
3041
3042 2006-01-17  Daniel Jacobowitz  <[email protected]>
3043
3044         * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
3045         argument.
3046         (remote_fileio_func_open, remote_fileio_func_rename)
3047         (remote_fileio_func_unlink, remote_fileio_func_stat)
3048         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3049         (remote_fileio_func_system): Cast the arguments to
3050         remote_read_bytes and remote_write_bytes.
3051         (remote_fileio_func_read, remote_fileio_func_write): Use a
3052         gdb_byte buffer.
3053         * remote.h (remote_read_bytes, remote_write_bytes): Update
3054         prototypes.
3055         * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
3056         (threadref_to_int): Replace bogus char * cast.
3057         (remote_unpack_thread_info_response): Use int for tag.
3058         (remote_threads_extra_info, remote_check_symbols): Cast string
3059         arguments to hex2bin.
3060         (remote_wait): Use a char buffer for packets and a gdb_byte
3061         buffer for registers.
3062         (remote_async_wait): Likewise.
3063         (remote_prepare_to_store, store_register_using_P)
3064         (remote_store_registers): Use gdb_byte buffers.
3065         (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
3066         for MYADDR and char buffers for strings.
3067         (remote_xfer_partial): Add casts for string operations on READBUF.
3068         (remote_rcmd): Cast strings passed to bin2hex.
3069
3070 2006-01-16  Mark Mitchell  <[email protected]>
3071
3072         * aclocal.m4: Regenerate.
3073
3074 2006-01-16  Nathan Sidwell  <[email protected]>
3075
3076         * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
3077         MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
3078         MT_COPRO_PSEUDOREG_REGS members.  Adjust MT_NUM_PSEUDO_REGS.
3079         (mt_register_name): Lazily synthesize name for coprocessor pseudo
3080         array registers.
3081         (mt_copro_register_type): New. Broken out of ...
3082         (mt_register_type): ... here.  Use it.  Deal with coprocessor
3083         pseudo array.
3084         (mt_select_coprocessor): New.
3085         (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
3086         coprocessor pseudo array.
3087
3088 2006-01-16  Andrew Stubbs  <[email protected]>
3089
3090         * breakpoint.c (insert_breakpoints): Check that a thread exists
3091         before inserting thread specific breakpoints.
3092
3093 2006-01-15  Mark Kettenis  <[email protected]>
3094
3095         * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
3096         commit.
3097
3098         * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
3099         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
3100         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
3101         * config/alpha/nm-nbsd.h: Remove file.
3102         * config/alpha/nm-fbsd.h: Remove file
3103         * config/alpha/nbsd.mh (NAT_FILE): Remove.
3104         * config/alpha/fbsd.mh (NAT_FILE): Remove.
3105
3106 2006-01-15  Daniel Jacobowitz  <[email protected]>
3107
3108         * macroexp.c (expand): Initialize argc.
3109         * stabsread.c (read_type): Handle errors from read_args.
3110         (read_args): Return NULL for errors.
3111
3112 2006-01-15  Mark Kettenis  <[email protected]>
3113
3114         * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
3115         strcmp to compare string to a byte buffer.
3116
3117 2006-01-15  Daniel Jacobowitz  <[email protected]>
3118
3119         * printcmd.c (output_command): Always initialize fmt.size.
3120         (printf_command): Use gdb_byte.
3121         * symfile.c (separate_debug_file_exists): Use gdb_byte.
3122         (load_section_callback, read_target_long_array): Likewise.
3123         (simple_read_overlay_table, simple_read_overlay_region_table)
3124         (simple_overlay_update_1): Correct calls to read_target_long_array.
3125         * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
3126         Also change local pointers.
3127         (val_print_string): Use gdb_byte.
3128
3129 2006-01-15  Mark Kettenis  <[email protected]>
3130
3131         * alphafbsd-tdep.c: Include "solib-svr4.h".
3132         (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3133         svr4_lp64_fetch_link_map_offsets.
3134         * Makefile.in (alphafbsd-tdep.o): Update dependencies.
3135         * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
3136         solib-svr4.o.
3137         * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3138         and solib-legacy.o.
3139         * config/alpha/nm-fbsd.h: Don't include "solib.h".
3140
3141 2006-01-15  Daniel Jacobowitz  <[email protected]>
3142
3143         * source.c (_initialize_source): Use add_setshow_integer_cmd.
3144
3145 2006-01-15  Daniel Jacobowitz  <[email protected]>
3146
3147         * linux-fork.c (delete_fork_command, detach_fork_command): Use
3148         PIDGET.
3149
3150 2006-01-15  Mark Kettenis  <[email protected]>
3151
3152         * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
3153         Remove.
3154         (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3155         svr4_ilp32_fetch_link_map_offsets.
3156         * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
3157         function.
3158         (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3159         svr4_ilp32_fetch_link_map_offsets.
3160         * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
3161         (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
3162         (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3163         svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3164         where appropriate.
3165         * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
3166         Simply call svr4_ilp32_fetch_link_map_offsets.
3167         (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
3168         svr4_lp64_fetch_link_map_offsets.
3169         * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
3170         function.
3171         (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3172         svr4_ilp32_fetch_link_map_offsets.
3173         * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
3174         (s390x_svr4_fetch_link_map_offsets): Remove functions.
3175         (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3176         svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3177         where appropriate.
3178
3179 2006-01-15  Mark Kettenis  <[email protected]>
3180
3181         * arm-tdep.c (arm_return_value): Change type of readbuf and
3182         writebuf arguments to `gdb_byte *'.
3183
3184         * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
3185         * Makefile.in (s390-tdep.o): Update dependencies.
3186
3187 2006-01-14  Mark Kettenis  <[email protected]>
3188
3189         * sol2-tdep.h. sol2-tdep.c: New files.
3190         * amd64-sol2-tdep.c: Include "sol2-tdep.h".
3191         (amd64_sol2_init_abi): Set skip_solib_resolver.
3192         * i386-sol2-tdep.c: Include "sol2-tdep.h".
3193         (i386_sol2_init_abi): Set skip_solib_resolver.
3194         * sparc-sol2-tdep.c: Include "sol2-tdep.h".
3195         (sparc32_sol2_init_abi): Set skip_solib_resolver.
3196         * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
3197         (sparc64_sol2_init_abi): Set skip_solib_resolver.
3198         * Makefile.in (sol2_tdep_h): New variable.
3199         (ALLDEPFILES): Add sol2-tdep.c.
3200         (sol2-tdep.o): New target.
3201         (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
3202         (sparc64-sol2-tdep.o): Update dependencies
3203         * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
3204         * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3205         * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
3206         * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3207
3208         * hppa-linux-tdep.c: Fix copyright indentation.
3209
3210         * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
3211         * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
3212         (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
3213         functions.
3214         (hppabsd_fetch_registers, hppabsd_store_registers): Handle
3215         floating-point registers.
3216
3217 2006-01-13  Mark Mitchell  <[email protected]>
3218
3219         * event-loop.c (gdb_select): Detect file descriptors that have
3220         been closed.
3221
3222 2006-01-13  Mark Kettenis  <[email protected]>
3223
3224         * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
3225         and long_double_format accordingly.
3226
3227 2006-01-12  Paul N. Hilfinger <[email protected]>
3228
3229         * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
3230         translation problems.
3231         * ada-lang.c (ada_value_struct_elt): Change interface and handling
3232         of errors to avoid translation problem (and less than optimal error
3233         messages).
3234         (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
3235         Use new interface to ada_value_struct_elt.
3236         * ada_lang.h (ada_value_struct_elt): Update declaration to new 
3237         interface.
3238         
3239         * ChangeLog: remove reference to ada-tasks.c from entry of
3240         2006-01-07.
3241         
3242 2006-01-11  Mark Kettenis  <[email protected]>
3243
3244         * remote.c (get_memory_packet_size, set_thread) 
3245         (remote_unpack_thread_info_response, remote_get_threadinfo) 
3246         (parse_threadlist_response, remote_get_threadlist) 
3247         (remote_current_thread, remote_threads_info) 
3248         (remote_threads_extra_info, extended_remote_restart, get_offsets) 
3249         (remote_check_symbols, remote_open_1, remote_detach) 
3250         (remote_async_wait, remote_fetch_registers) 
3251         (remote_store_registers, check_binary_download, putpkt_binary) 
3252         (remote_insert_breakpoint, remote_insert_watchpoint) 
3253         (remote_remove_watchpoint, remote_insert_hw_breakpoint) 
3254         (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd) 
3255         (packet_command): Remove redundant parenthesis.
3256
3257 2006-01-10  Mark Kettenis  <[email protected]>
3258
3259         * corefile.c (read_memory_integer, read_memory_unsigned_integer)
3260         (read_memory_typed_address, write_memory)
3261         (write_memory_unsigned_integer, write_memory_signed_integer): Use
3262         gdb_byte where appropriate.
3263
3264         * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
3265         'gdb_byte *'.
3266
3267         * target.h (target_read_memory_partial, target_write_memory_partial):
3268         Change second argument to 'gdb_byte *'.
3269         * target.c (target_xfer_memory_partial): Change third argument to
3270         'gdb_byte *'.
3271         (target_read_memory_partial, target_write_memory_partial): Change
3272         second argument to 'gdb_byte *'.
3273
3274         * linespec.c (decode_objc): Make i1 and i2 unsigned.
3275         (find_method): Set values.sals to NULL.
3276
3277 2006-01-09  Mark Kettenis  <[email protected]>
3278
3279         * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
3280         of 'char *' in cast.
3281
3282 2006-01-07  Paul N. Hilfinger <[email protected]>
3283
3284         * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
3285         * ada-lang.c: I18n markup.  
3286         Editorial: change "can not" => "cannot" throughout.
3287
3288 2006-01-07  Mark Kettenis  <[email protected]>
3289
3290         * Makefile.in: Sort dependencies.
3291
3292 2006-01-07  Eli Zaretskii  <[email protected]>
3293
3294         * top.c (control_level): Remove unused variable.
3295
3296 2006-01-06  Fred Fish  <[email protected]>
3297
3298         * objfiles.c (source.h): Include.
3299         (free_objfile): Update comment about clear_symtab_users().
3300         (free_objfile): Check all symtabs of objfile being freed and if
3301         one of them is the current source symtab, call
3302         clear_current_source_symtab_and_line().
3303
3304 2006-01-04  Michael Snyder  <[email protected]>
3305
3306         Checkpoint/Restart for Linux.
3307         * linux-nat.c: Add support for debugging multiple forks.
3308         Add #include for linux-fork.h (interface spec).
3309         (super_mourn_inferior): New function pointer.
3310         (child_mourn_inferior): New function / target method.
3311         (linux_target): Claim to_mourn_inferior method pointer.
3312         (child_follow_fork): Call interface to linux-fork, conditionally
3313         add new fork processes to list of debugged processes.
3314         (kill_inferior): Use interface to linux-fork to kill
3315         multiple processes.
3316
3317         * linux-fork.h: New file.
3318         * linux-fork.c: New file.  Support for debugging multiple forks
3319         of the same program.  Support for checkpoint and restart commands.
3320
3321         * infrun.c (nullify_last_target_wait_ptid): New function.
3322
3323         * Makefile.in: Add linux-fork.
3324         * config/*/linux.mh: Add linux-fork.
3325         * NEWS: Mention new functionality.
3326
3327 2006-01-02  Paul Hilfinger  <[email protected]>
3328
3329         * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc): 
3330         Change uses of "illegal" to "invalid".
3331         
3332 2006-01-02  Paul N. Hilfinger  <[email protected]>
3333
3334         * ada-exp.y: Considerable reorganization to move functionality
3335         from ada-lex.l to here, where it is logically more appropriate.
3336         The original reason, however, was to prevent premature name
3337         lookups for selector names in record aggregates.
3338         (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
3339         NAME for all of these.
3340         (VAR): New artificial token to clarify precedence rules.
3341         (OTHERS): New lexeme.
3342         (empty_stoken): New symbol.
3343         (%union): Remove ssym, voidval.
3344         (%type): Remove <voidval> type declarations.
3345         (syntax definitions): Add aggregates.
3346         Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
3347         Rename some non-terminals to be closer to reference manual usage.
3348         Tighten up expression syntax to disallow certain non-Ada 
3349         constructions such as X and then Y or else Z.
3350         (ada_parse): Remove initialization of left_block_context.
3351         (write_var_from_name): Remove.
3352         (write_var_or_type): New function, containing previous code from
3353         defunct write_var_from_name and name_lookup.
3354         (block_lookup): New function, moved from ada-lex.l
3355         (select_possible_type_sym): New function, factored out of
3356         name_lookup, which used to be in ada-lex.l.
3357         (find_primitive_type): Ditto.
3358         (chop_selector): Ditto.
3359         (write_ambiguous_var): New function, factored out of defunct
3360         write_var_from_name.
3361         (write_selectors): New function.
3362         (write_name_assoc): New function.
3363         (write_exp_op_with_string): New function.
3364
3365         * ada-lex.l (processId): Change interface to return stoken.
3366         (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
3367         (block_lookup, name_lookup): Remove.  Functionality moved to
3368         ada-exp.y.
3369         (state IN_STRING): Remove.
3370         (rules): Handle string escapes in processString.
3371         Add 'others' token.
3372         Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
3373         yylval.sval (as simple strings).
3374         All name look-ups now handled in ada-exp.y.
3375         Introduce "::" (COLONCOLON) token and return as separate token.
3376         (processId): Change return convention.  Comment.
3377         Leave leading "'" in place.
3378         (processString): New function.
3379         (find_dot_all): Add note to comment.
3380         Fix problem that allowed match only at the end.
3381
3382         * ada-lang.c: Introduce aggregates.
3383         (find_struct_field): Add new parameter to count fields skipped, and
3384         allow other output parameters to be NULL.
3385         (value_tag_from_contents_and_address, ada_value_struct_elt): Use 
3386         new find_struct_field.
3387         (ada_index_struct_field, assign_aggregate, ada_is_array_type)
3388         (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
3389         (num_component_specs, assign_component, assign_aggregate):
3390         (aggregate_assign_from_choices,aggregate_assign_positional)
3391         (aggregate_assign_others,add_component_interval):
3392         New functions.
3393         (ada_evaluate_subexp): Declare.
3394         Add aggregate-related operators.
3395         (ada_forward_operator_length): Declare.
3396         (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
3397         Consolidate Ada operators, using ada_forward_operator_length.
3398         (ada_search_struct_field): Search in forward order.
3399         (ADA_OPERATORS): Add new aggregate operators.
3400         (ada_operator_length, ada_op_name, ada_forward_operator_length)
3401         (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate 
3402         operators and OP_NAME.
3403         (ada_type_of_array): Use longest_to_int.
3404         (value_assign_to_component): New function.
3405         (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
3406         Add OP_NAME case.
3407         (ada_forward_operator_length, ada_dump_subexp_body):
3408         Add OP_STRING case.
3409
3410         * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
3411         OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
3412
3413 2006-01-02  Paul N. Hilfinger  <[email protected]>
3414
3415         * ada-lang.c (process_raise_exception_name): Remove extraneous 
3416         definition from unsubmitted code.
3417
3418         (is_lower_alphanum): New function.
3419         (ada_decode):  Add support for decoding protected object subprograms
3420         and entries, and of entities declared inside protected object
3421         subprograms. 
3422         Also add missing handling for__{DIGITS}+ suffixes.
3423         Allow '$<digits>' as valid overloading suffix.
3424         (is_name_suffix): Add handling for protected type entriy suffixes.
3425         Also add support for protected type subprogram suffixes, but keep
3426         it commented out for now, as there is an ambiguity between these
3427         entities and other internally generated entities.
3428         Allow '$<digits>' as valid overloading suffix.
3429         (is_valid_name_for_wild_match): New function.
3430         (wild_match): Add an exra level of verification of the entity name
3431         before declaring it a match for the given pattern.
3432
3433         (ada_type_of_array, ada_evaluate_subexp): Use more proper 
3434         longest_to_int rather than cast.
3435
3436         (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
3437
3438         (ada_coerce_to_simple_array): Call check_size to make sure
3439         that the object size is reasonable.
3440
3441         (ada_value_primitive_packed_val):  Use correct location in target 
3442         buffer for extracting packed record fields that are themselves records.
3443
3444         (add_defn_to_vec): Do not try to replace a stub type by its full
3445         type. Avoids a potential infinite loop.
3446         
3447         (ada_lookup_symbol): Move return incorrectly placed return statement, 
3448         causing a loop that should be scanning all object files to only 
3449         scan the first one.
3450
3451         (ada_tag_name_2): New function.
3452         (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
3453         use alternative representation.
3454
3455         (ada_find_renaming_symbol): Strip the function name suffix when 
3456         computing the XR type name.
3457
3458         (ada_to_fixed_type): Try determining the tag only if we have the
3459         object's address.
3460         (to_fixed_array_type): Add comments.
3461
3462         (ada_check_typedef): Replace expression checking whether the given
3463         type is a stub or not by a "call" to TYPE_STUB. Clearer and more
3464         consistent.
3465         
3466         * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
3467         '$' in addition to '.' for runtime auxiliary function name suffixes.
3468         See changes to ada_decode above.
3469
3470         (struct task_control_block): Add field called_task.  (This change is
3471         to keep synchronized with our local sources; it does not affect the
3472         public version yet.)
3473
3474         * ada-typeprint.c (ada_print_type): Use int_string for printing
3475         modulus of modular type.
3476         
3477         (print_range): Trivial editorial comment fix.
3478
3479         * ada-valprint.c (ada_emit_char): Use normal Ada syntax for 
3480         double quote in string.
3481
3482 2006-01-01  Joel Brobecker  <[email protected]>
3483
3484         * top.c: Add 2006 to list of copyright years in file header.
3485
3486 2006-01-01  Joel Brobecker  <[email protected]>
3487
3488         * top.c (print_gdb_version): Update copyright year to 2006.
3489
3490 2006-01-01  Roger Sayle  <[email protected]>
3491             Elena Zannoni <[email protected]>
3492
3493         PR symtab/1651
3494         * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
3495         for NULL before assigning this_symtab_psymtab->objfile to objfile.
3496         (scan_xcoff_symtab): Initialize next_symbol_text_func.
3497         (Committed by Jim Blandy)
3498
3499 For older changes see ChangeLog-2005.
3500 \f
3501 Local Variables:
3502 mode: change-log
3503 left-margin: 8
3504 fill-column: 74
3505 version-control: never
3506 End:
This page took 0.23022 seconds and 4 git commands to generate.