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