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