* gdb.ada/array_return.exp: Mark the last test as expected to fail
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f4d408c6
DJ
12006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * MAINTAINERS: Update file based on maintainers survey. Add
4 a note to Past Maintainers. Move unresponsive or inactive
5 maintainers to Authorized Committers or Past Maintainers as
6 appropriate. Correct Jim Kingdon's email address. Remove
7 vacant areas of responsibility.
8
38fcd64c
DJ
92006-02-06 Vladimir Prus <ghost@cs.msu.su>
10
11 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
12 fullname field.
13
7b871fab
DJ
142006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
15
16 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
17 * exceptions.c (exception_none, exceptions_state_mc_init)
18 (throw_vfatal): Use GDB_NO_ERROR.
19
e4cd0d6a
MK
202006-02-02 Mark Kettenis <kettenis@gnu.org>
21
22 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
23 r_map_size members. Add r_version_offset, r_version_size and
24 r_ldsomap_offset members.
25 * solib-svr4.c (solib_svr4_r_map): Renamed from
26 fetch_link_map_member. Simplify using read_memory_typed_address.
27 (solib_svr4_r_ldsomap): New function.
28 (open_symbol_file_object): Use solib_svr_r_map.
29 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
30 linker by using solib_svr4_r_ldsomap.
31 (svr4_ilp32_fetch_link_map_offsets)
32 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
33 link_map_offsets'.
34 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
35 changes to `struct link_map_offsets'.
36 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
37 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
38 `struct link_map_offsets'.
39
e26af52f
DJ
402006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
41
42 * linux-nat.c (struct saved_ptids, threads_to_delete)
43 (record_dead_thread, prune_lwps, find_thread_from_lwp)
44 (exit_lwp): New.
45 (linux_nat_resume): Call prune_lwps.
46 (wait_lwp, linux_nat_wait): Call exit_lwp.
47
46e9880c
DJ
482006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
49
50 * printcmd.c (printf_command): Make format string checking
51 stricter. Add separate cases for long_arg, ptr_arg, and
52 long_double_arg.
53 * utils.c (xstrvprintf): Improve the error message issued
54 for a bad format string.
55 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
56 New variables.
57 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
58 $(NO_WERROR_CFLAGS).
59 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
60 enable -Werror.
61
37a105a1
DJ
622006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
63
64 * Makefile.in (remote.o): Update.
65 * remote.c (show_packet_config_cmd): Shorten messages.
66 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
67 (show_remote_cmd): Iterate.
68 (_initialize_remote): Remove remote_set_cmdlist,
69 remote_show_cmdlist.
70
ae5a43e0
DJ
712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
72
73 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
74 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
75 prototypes.
76 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
77 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
78 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
79 ...here.
80 * gdbtypes.c: Include "hashtab.h".
81 (build_gdbtypes): Remove extra prototype.
82 (struct type_pair, type_pair_hash, type_pair_eq)
83 (create_copied_types_hash, copy_type_recursive): New.
84 * gdbtypes.h: Include "hashtab.h".
85 (TYPE_ZALLOC): New.
86 (create_copied_types_hash, copy_type_recursive): New prototypes.
87 * objfiles.c (free_objfile): Call preserve_values.
88 * symfile.c (reread_symbols): Likewise.
89 (clear_symtab_users): Remove calls to clear_value_history and
90 clear_internalvars.
91 * value.c (clear_value_history, clear_internalvars): Removed.
92 (preserve_one_value, preserve_values): New functions.
93 * value.h (clear_value_history, clear_internalvars): Removed.
94 (preserve_values): New prototype.
95
96 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
97 variables here.
98
b929c77f
MK
992006-01-29 Mark Kettenis <kettenis@gnu.org>
100
101 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
102 Fixes PR tdep/2075.
103
1581f359
JB
1042006-01-27 Joel Brobecker <brobecker@adacore.com>
105
106 * MAINTAINERS: Use a consistent email address for brobecker.
107
37706b70
JB
1082006-01-27 Joel Brobecker <brobecker@adacore.com>
109
110 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
111 in the previous change.
112
9353355f
DJ
1132006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
114
115 PR gdb/1914
116 * fork-child.c (fork_inferior): Don't call
117 solib_create_inferior_hook.
118 * infcmd.c (post_create_inferior): Call solib_add,
119 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
120 (attach_command): Don't call solib_add or
121 re_enable_breakpoints_in_shlibs. Call post_create_inferior
122 instead.
123 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
124 or observer_notify_inferior_created. Call post_create_inferior
125 instead.
126 * corelow.c: Don't include "observer.h".
127 (solib_add_stub): Deleted.
128 (core_open): Don't call observer_notify_inferior_created or
129 solib_add_stub. Call post_create_inferior instead.
130 * inf-ptrace.c: Don't include "observer.h".
131 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
132 * inf-ttrace.c: Don't include "observer.h".
133 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
134 * inferior.h (solib_create_inferior_hook): Remove redundant
135 prototype.
136 * inftarg.c: Don't include "observer.h".
137 (child_attach): Don't call observer_notify_inferior_created.
138 * Makefile.in: Update dependencies.
139
281b533b
DJ
1402006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
141
142 * infcmd.c: Include "observer.h".
143 (post_create_inferior): New function.
144 (run_command_1): Call it. Also call proceed.
145 * inferior.h (post_create_inferior): New prototype.
146 * Makefile.in (infcmd.o): Update.
147
148 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
149 * go32-nat.c (go32_create_inferior): Likewise.
150 * nto-procfs.c (procfs_create_inferior): Likewise.
151 * procfs.c (procfs_create_inferior): Likewise.
152 * remote-sim.c (gdbsim_create_inferior): Likewise.
153 * remote.c (extended_remote_create_inferior)
154 (extended_remote_async_create_inferior): Likewise.
155 * win32-nat.c (win32_create_inferior): Likewise.
156 * wince.c (child_create_inferior): Likewise.
157
158 * monitor.c (monitor_create_inferior): Don't call proceed.
159 Set the PC manually.
160 * ocd.c (ocd_create_inferior): Likewise.
161 * remote-e7000.c (e7000_create_inferior): Likewise.
162 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
163 * remote-mips.c (mips_create_inferior): Likewise.
164 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
165 * remote-sds.c (sds_create_inferior): Likewise.
166 * remote-st.c (st2000_create_inferior): Likewise.
167
168 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
169 proceed or observer_notify_inferior_created.
170 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
171 * inftarg.c (child_create_inferior): Likewise.
172
e23fc6de
DJ
1732006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
176 after mourning the inferior.
177
13d6656b
JB
1782006-01-24 Jim Blandy <jimb@redhat.com>
179
180 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
181
59f92a09
FF
1822006-01-24 Fred Fish <fnf@specifix.com>
183
184 * parse.c (source.h): Include.
185 (parse_exp_in_context): Use static source context if no
186 other context found.
187
dda63807
AS
1882006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
189
190 * sh-tdep.c: Include reggroups.h.
191 (sh_register_reggroup_p): New function.
192 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
193 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
194
4b505b12
AS
1952006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
196
197 * cli/cli-cmds.c: Include fcntl.h.
198 (source_command): Use the GDB search path to find script files.
199
721d14ba
DJ
2002006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
201
202 PR tdep/2029
203 Suggested by Till Straumann <strauman@slac.stanford.edu>:
204 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
205 instructions. Handle PIC bcl.
206
3d64d617
DJ
2072006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
208
209 * config/djgpp/README: Typo fix.
210 * config/djgpp/fnchange.lst: Update.
211
0a8f48b9
MK
2122006-01-22 Mark Kettenis <kettenis@gnu.org>
213
c893be75
MK
214 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
215 (sparc_address_from_register): New prototype.
216 (sparcnbsd_step_trap): New prototype.
217 * sparc-tdep.c (sparc_address_from_register): Make globally
218 visible.
219 (sparc_analyze_control_transfer): Change prototype to accept
220 `struct gdbarch *' as first argument. Allow for optional hnadling
221 for trap instructions.
222 (sparc_step_trap): New function.
223 (sparc_software_single_step): Adjust call to
224 sparc_analyze_control_trabsfer.
225 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
226 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
227 (sparc32nbsd_init_abi): Set TDEP->step_trap.
228 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
229 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
230
0a8f48b9
MK
231 * sparc-tdep.c (sparc32_return_value): Convert to use
232 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
233 RETURN_VALUE_STRUCT_CONVENTION.
234 (sparc32_extract_struct_value_address): Remove.
235
1f3a99d5
DJ
2362006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
239 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
240
84eb3c4f
DJ
2412006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
242
243 * solib.c (info_sharedlibrary_command): Avoid internal_error.
244
878d9193
MK
2452006-01-21 Mark Kettenis <kettenis@gnu.org>
246
247 * i386-tdep.c (i386_mxcsr_type): New variable.
248 (i386_init_types): Initialize i386_mxcsr_type.
249 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
250 * i386-tdep.c (i386_mxcsr_type): New extern.
251 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
252 %mxcsr.
253
acab6ab2
MM
2542006-01-20 Mark Mitchell <mark@codesourcery.com>
255
256 * Makefile.in (remote-rdi.o): Remove.
257 (rdi-share/libangsd.a): Likewise.
258 * README: Don't mention remote-rdi.c.
259 * NEWS: Mention removal of rdi-share.
260 * configure.ac: Don't configure rdi-share subdirectory.
261 * remote-rdi.c: Remove.
262 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
263 (TDEPLIBS): Remove rdi-share/libangsd.a.
264 * rdi-share/Makefile.am: Remove.
265 * rdi-share/Makefile.in: Likewise.
266 * rdi-share/README.CYGNUS: Likewise.
267 * rdi-share/aclocal.m4: Likewise.
268 * rdi-share/adp.h: Likewise.
269 * rdi-share/adperr.h: Likewise.
270 * rdi-share/angel.h: Likewise.
271 * rdi-share/angel_bytesex.c: Likewise.
272 * rdi-share/angel_bytesex.h: Likewise.
273 * rdi-share/angel_endian.h: Likewise.
274 * rdi-share/ardi.c: Likewise.
275 * rdi-share/ardi.h: Likewise.
276 * rdi-share/armdbg.h: Likewise.
277 * rdi-share/buffers.h: Likewise.
278 * rdi-share/chandefs.h: Likewise.
279 * rdi-share/channels.h: Likewise.
280 * rdi-share/chanpriv.h: Likewise.
281 * rdi-share/configure: Likewise.
282 * rdi-share/configure.in: Likewise.
283 * rdi-share/crc.c: Likewise.
284 * rdi-share/crc.h: Likewise.
285 * rdi-share/dbg_conf.h: Likewise.
286 * rdi-share/dbg_cp.h: Likewise.
287 * rdi-share/dbg_hif.h: Likewise.
288 * rdi-share/dbg_rdi.h: Likewise.
289 * rdi-share/devclnt.h: Likewise.
290 * rdi-share/devices.h: Likewise.
291 * rdi-share/devsw.c: Likewise.
292 * rdi-share/devsw.h: Likewise.
293 * rdi-share/drivers.c: Likewise.
294 * rdi-share/drivers.h: Likewise.
295 * rdi-share/etherdrv.c: Likewise.
296 * rdi-share/ethernet.h: Likewise.
297 * rdi-share/host.h: Likewise.
298 * rdi-share/hostchan.c: Likewise.
299 * rdi-share/hostchan.h: Likewise.
300 * rdi-share/hsys.c: Likewise.
301 * rdi-share/hsys.h: Likewise.
302 * rdi-share/logging.c: Likewise.
303 * rdi-share/logging.h: Likewise.
304 * rdi-share/msgbuild.c: Likewise.
305 * rdi-share/msgbuild.h: Likewise.
306 * rdi-share/params.c: Likewise.
307 * rdi-share/params.h: Likewise.
308 * rdi-share/rx.c: Likewise.
309 * rdi-share/rxtx.h: Likewise.
310 * rdi-share/serdrv.c: Likewise.
311 * rdi-share/serpardr.c: Likewise.
312 * rdi-share/sys.h: Likewise.
313 * rdi-share/tx.c: Likewise.
314 * rdi-share/unixcomm.c: Likewise.
315 * rdi-share/unixcomm.h: Likewise.
316
4577207e
MK
3172006-01-21 Mark Kettenis <kettenis@gnu.org>
318
319 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
320 Change type of last argument to `gdb_byte *'.
321
34f55018
MK
3222006-01-20 Mark Kettenis <kettenis@gnu.org>
323
324 * hppa-tdep.h (hppa_in_solib_call_trampoline)
325 (hppa_skip_trampoline_code): New prototypes.
326 * hppa-tdep.c (struct insn_pattern): New.
327 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
328 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
329 here from hppa-linux-tdep.c
330 (HPPA_MAX_INSN_PATTERN_LEN): New define.
331 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
332 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
333 functions based on functions removed from hppa-linux-tdep.c.
334 * hppa-linux-tdep.c (hppa_long_branch_stub)
335 (hppa_long_branch_pic_stub, hppa_import_stub)
336 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
337 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
338 (hppa_linux_in_solib_call_trampoline)
339 (hppa_linux_skip_trampoline_code): Removed.
340 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
341 hppa_in_solib_call_trampoline and skip_trampoline_code to
342 hppa_skip_trampoline_code.
343 * hppabsd-tdep.c (hppabsd_init_abi): Set
344 TDEP->in_solib_call_trampoline and skip_trampoline_code.
345
7be93b9e
JB
3462006-01-20 Jim Blandy <jimb@redhat.com>
347
f408839d
JB
348 * MAINTAINERS: Change my E-mail address.
349
7be93b9e
JB
350 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
351 * configure: Regenerated.
352
b2a74f99
DJ
3532006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
354
355 * MAINTAINERS: Overhaul.
356
4f2aea11
MK
3572006-01-18 Mark Kettenis <kettenis@gnu.org>
358
5ae96ec1
MK
359 Based on a previous patch form Michal Ludvig:
360 * amd64-tdep.c (amd64_sse_type): Remove.
361 (amd64_register_info): Use i386_eflags_type and i386_sse_type
362 where appropriate.
363 (AMD64_NUM_REGS): Use ARRAY_SIZE.
364 (amd64_register_type): Remove code to build amd_sse_type.
365 * i386-tdep.c (i386_eflag_type): New variable.
366 (i386_mmx_type, i386_sse_type): Make global.
367 (i386_init_types): New function.
368 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
369 (i386_register_type): Return i386_eflag_type, i386_sse_type and
370 i386_mmx_type when appropriate.
371 (_initialize_i386_tdep): Call i386_init_types.
372 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
373 Declare extern.
374
4f2aea11
MK
375 Based on a previous patch form Michal Ludvig:
376 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
377 functions.
378 (is_integral_type, rank_one_type, recursive_dump_type): Add
379 support for TYPE_CODE_FLAGS.
380 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
381 (append_flags_type_field, init_flags_type): New prototypes.
382 * ada-valprint.c (ada_val_print_1): Add support for
383 TYPE_CODE_FLAGS.
384 * c-valprint.c (c_val_print): Likewise.
385 * f-valprint.c (f_val_print): Likewise.
386 * p-valprint.c (pascal_val_print): Likewise.
387 * valprint.c (val_print_type_code_flags): New function.
388 * valprint.h (val_print_type_code_flags): New prototype.
389 * value.c (unpack_long, value_from_longest): Add support for
390 TYPE_CODE_FLAGS.
391
4cdb5adf
CF
3922006-01-17 Christopher Faylor <cgf@timesys.com>
393
394 * MAINTAINERS: Very belatedly remove myself from from the list of
395 people caught up in the paper trail.
396
1193688d
JB
3972006-01-17 Jim Blandy <jimb@redhat.com>
398
4e38b386
JB
399 * symtab.h (struct general_symbol_info): Use gdb_byte for
400 value.bytes.
401 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
402 a floating-point constant's value.
403 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
404 to char *.
405 * findvar.c (read_var_value): Eliminate needless temporary.
406
1193688d
JB
407 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
408 to match prior change to dwarf2_read_section's type.
409
0d1243d9
PG
4102006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
411
412 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
413 * rs6000-tdep.c (insn_changes_sp_or_jumps)
414 (rs6000_in_function_epilogue_p): New functions.
415 (rs6000_gdbarch_init): Set in_function_epilogue_p.
416
fe1b8b76
JB
4172006-01-17 Jim Blandy <jimb@redhat.com>
418
419 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
420 (struct line_header, struct partial_die_info, struct dwarf_block):
421 Use gdb_byte for members that refer to Dwarf section contents.
422 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
423 dwarf_decode_macros, load_comp_unit, load_partial_dies,
424 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
425 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
426 read_8_bytes, read_address, read_attribute, read_attribute_value,
427 read_comp_unit, read_comp_unit_head, read_die_and_children,
428 read_die_and_siblings, read_full_die, read_indirect_string,
429 read_initial_length, read_n_bytes, read_offset, read_partial_die,
430 read_signed_leb128, read_string, read_unsigned_leb128,
431 skip_children, skip_leb128, skip_one_die): Same.
432
a0841d7a
DJ
4332006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
434
435 * complaints.c (stop_whining): Make signed.
436 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
437
939b2b42
DJ
4382006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
439
440 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
441 notices.
442
891d2f0b
DJ
4432006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
444
445 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
446 (read_offset): Change BYTES_READ argument to unsigned int.
447 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
448 (create_all_comp_units, dwarf2_get_pc_bounds)
449 (dwarf_decode_line_header, var_decode_location)
450 (dwarf_decode_macros): Change local BYTES_READ variables to
451 unsigned int.
452 (read_indirect_string): Remove obsolete cast.
453
cfd77fa1
DJ
4542006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
455
456 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
457 argument.
458 (remote_fileio_func_open, remote_fileio_func_rename)
459 (remote_fileio_func_unlink, remote_fileio_func_stat)
460 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
461 (remote_fileio_func_system): Cast the arguments to
462 remote_read_bytes and remote_write_bytes.
463 (remote_fileio_func_read, remote_fileio_func_write): Use a
464 gdb_byte buffer.
465 * remote.h (remote_read_bytes, remote_write_bytes): Update
466 prototypes.
467 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
468 (threadref_to_int): Replace bogus char * cast.
469 (remote_unpack_thread_info_response): Use int for tag.
470 (remote_threads_extra_info, remote_check_symbols): Cast string
471 arguments to hex2bin.
472 (remote_wait): Use a char buffer for packets and a gdb_byte
473 buffer for registers.
474 (remote_async_wait): Likewise.
475 (remote_prepare_to_store, store_register_using_P)
476 (remote_store_registers): Use gdb_byte buffers.
477 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
478 for MYADDR and char buffers for strings.
479 (remote_xfer_partial): Add casts for string operations on READBUF.
480 (remote_rcmd): Cast strings passed to bin2hex.
481
60bf0650
MM
4822006-01-16 Mark Mitchell <mark@codesourcery.com>
483
484 * aclocal.m4: Regenerate.
485
60e81fcc
NS
4862006-01-16 Nathan Sidwell <nathan@codesourcery.com>
487
488 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
489 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
490 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
491 (mt_register_name): Lazily synthesize name for coprocessor pseudo
492 array registers.
493 (mt_copro_register_type): New. Broken out of ...
494 (mt_register_type): ... here. Use it. Deal with coprocessor
495 pseudo array.
496 (mt_select_coprocessor): New.
497 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
498 coprocessor pseudo array.
499
f365de73
AS
5002006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
501
502 * breakpoint.c (insert_breakpoints): Check that a thread exists
503 before inserting thread specific breakpoints.
504
9d519230
MK
5052006-01-15 Mark Kettenis <kettenis@gnu.org>
506
6062517a
MK
507 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
508 commit.
509
9d519230
MK
510 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
511 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
512 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
513 * config/alpha/nm-nbsd.h: Remove file.
514 * config/alpha/nm-fbsd.h: Remove file
515 * config/alpha/nbsd.mh (NAT_FILE): Remove.
516 * config/alpha/fbsd.mh (NAT_FILE): Remove.
517
0a029df5
DJ
5182006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
519
520 * macroexp.c (expand): Initialize argc.
521 * stabsread.c (read_type): Handle errors from read_args.
522 (read_args): Return NULL for errors.
523
1731e543
MK
5242006-01-15 Mark Kettenis <kettenis@gnu.org>
525
526 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
527 strcmp to compare string to a byte buffer.
528
777ea8f1
DJ
5292006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
530
531 * printcmd.c (output_command): Always initialize fmt.size.
532 (printf_command): Use gdb_byte.
533 * symfile.c (separate_debug_file_exists): Use gdb_byte.
534 (load_section_callback, read_target_long_array): Likewise.
535 (simple_read_overlay_table, simple_read_overlay_region_table)
536 (simple_overlay_update_1): Correct calls to read_target_long_array.
537 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
538 Also change local pointers.
539 (val_print_string): Use gdb_byte.
540
4b17b389
MK
5412006-01-15 Mark Kettenis <kettenis@gnu.org>
542
543 * alphafbsd-tdep.c: Include "solib-svr4.h".
544 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
545 svr4_lp64_fetch_link_map_offsets.
546 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
547 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
548 solib-svr4.o.
549 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
550 and solib-legacy.o.
551 * config/alpha/nm-fbsd.h: Don't include "solib.h".
552
bd4109fb
DJ
5532006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
554
555 * source.c (_initialize_source): Use add_setshow_integer_cmd.
556
1dce6535
DJ
5572006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
558
559 * linux-fork.c (delete_fork_command, detach_fork_command): Use
560 PIDGET.
561
76a9d10f
MK
5622006-01-15 Mark Kettenis <kettenis@gnu.org>
563
564 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
565 Remove.
566 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
567 svr4_ilp32_fetch_link_map_offsets.
568 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
569 function.
570 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
571 svr4_ilp32_fetch_link_map_offsets.
572 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
573 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
574 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
575 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
576 where appropriate.
577 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
578 Simply call svr4_ilp32_fetch_link_map_offsets.
579 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
580 svr4_lp64_fetch_link_map_offsets.
581 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
582 function.
583 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
584 svr4_ilp32_fetch_link_map_offsets.
585 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
586 (s390x_svr4_fetch_link_map_offsets): Remove functions.
587 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
588 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
589 where appropriate.
590
469db033
MK
5912006-01-15 Mark Kettenis <kettenis@gnu.org>
592
25224166
MK
593 * arm-tdep.c (arm_return_value): Change type of readbuf and
594 writebuf arguments to `gdb_byte *'.
595
469db033
MK
596 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
597 * Makefile.in (s390-tdep.o): Update dependencies.
598
4dd7c9f6
MK
5992006-01-14 Mark Kettenis <kettenis@gnu.org>
600
081bf9da
MK
601 * sol2-tdep.h. sol2-tdep.c: New files.
602 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
603 (amd64_sol2_init_abi): Set skip_solib_resolver.
604 * i386-sol2-tdep.c: Include "sol2-tdep.h".
605 (i386_sol2_init_abi): Set skip_solib_resolver.
606 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
607 (sparc32_sol2_init_abi): Set skip_solib_resolver.
608 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
609 (sparc64_sol2_init_abi): Set skip_solib_resolver.
610 * Makefile.in (sol2_tdep_h): New variable.
611 (ALLDEPFILES): Add sol2-tdep.c.
612 (sol2-tdep.o): New target.
613 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
614 (sparc64-sol2-tdep.o): Update dependencies
615 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
616 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
617 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
618 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
619
c0f96416
MK
620 * hppa-linux-tdep.c: Fix copyright indentation.
621
4dd7c9f6
MK
622 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
623 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
624 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
625 functions.
626 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
627 floating-point registers.
628
6da86618
MM
6292006-01-13 Mark Mitchell <mark@codesourcery.com>
630
631 * event-loop.c (gdb_select): Detect file descriptors that have
632 been closed.
633
ed944ce7
MK
6342006-01-13 Mark Kettenis <kettenis@gnu.org>
635
636 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
637 and long_double_format accordingly.
638
03ee6b2e
PH
6392006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
640
641 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
642 translation problems.
643 * ada-lang.c (ada_value_struct_elt): Change interface and handling
644 of errors to avoid translation problem (and less than optimal error
645 messages).
646 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
647 Use new interface to ada_value_struct_elt.
648 * ada_lang.h (ada_value_struct_elt): Update declaration to new
649 interface.
650
651 * ChangeLog: remove reference to ada-tasks.c from entry of
652 2006-01-07.
653
24b06219
MK
6542006-01-11 Mark Kettenis <kettenis@gnu.org>
655
656 * remote.c (get_memory_packet_size, set_thread)
657 (remote_unpack_thread_info_response, remote_get_threadinfo)
658 (parse_threadlist_response, remote_get_threadlist)
659 (remote_current_thread, remote_threads_info)
660 (remote_threads_extra_info, extended_remote_restart, get_offsets)
661 (remote_check_symbols, remote_open_1, remote_detach)
662 (remote_async_wait, remote_fetch_registers)
663 (remote_store_registers, check_binary_download, putpkt_binary)
664 (remote_insert_breakpoint, remote_insert_watchpoint)
665 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
666 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
667 (packet_command): Remove redundant parenthesis.
668
15550d6b
MK
6692006-01-10 Mark Kettenis <kettenis@gnu.org>
670
dfb65433
MK
671 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
672 (read_memory_typed_address, write_memory)
673 (write_memory_unsigned_integer, write_memory_signed_integer): Use
674 gdb_byte where appropriate.
675
508416a1
MK
676 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
677 'gdb_byte *'.
678
f6519ebc
MK
679 * target.h (target_read_memory_partial, target_write_memory_partial):
680 Change second argument to 'gdb_byte *'.
681 * target.c (target_xfer_memory_partial): Change third argument to
682 'gdb_byte *'.
683 (target_read_memory_partial, target_write_memory_partial): Change
684 second argument to 'gdb_byte *'.
685
15550d6b
MK
686 * linespec.c (decode_objc): Make i1 and i2 unsigned.
687 (find_method): Set values.sals to NULL.
688
d7a30af7
MK
6892006-01-09 Mark Kettenis <kettenis@gnu.org>
690
691 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
692 of 'char *' in cast.
693
e1d5a0d2
PH
6942006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
695
696 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 697 * ada-lang.c: I18n markup.
e1d5a0d2
PH
698 Editorial: change "can not" => "cannot" throughout.
699
790124be
MK
7002006-01-07 Mark Kettenis <kettenis@gnu.org>
701
702 * Makefile.in: Sort dependencies.
703
3c481fdc
EZ
7042006-01-07 Eli Zaretskii <eliz@gnu.org>
705
706 * top.c (control_level): Remove unused variable.
707
cb5d864f
FF
7082006-01-06 Fred Fish <fnf@specifix.com>
709
710 * objfiles.c (source.h): Include.
711 (free_objfile): Update comment about clear_symtab_users().
712 (free_objfile): Check all symtabs of objfile being freed and if
713 one of them is the current source symtab, call
714 clear_current_source_symtab_and_line().
715
ac264b3b
MS
7162006-01-04 Michael Snyder <msnyder@redhat.com>
717
718 Checkpoint/Restart for Linux.
719 * linux-nat.c: Add support for debugging multiple forks.
720 Add #include for linux-fork.h (interface spec).
721 (super_mourn_inferior): New function pointer.
722 (child_mourn_inferior): New function / target method.
723 (linux_target): Claim to_mourn_inferior method pointer.
724 (child_follow_fork): Call interface to linux-fork, conditionally
725 add new fork processes to list of debugged processes.
726 (kill_inferior): Use interface to linux-fork to kill
727 multiple processes.
728
729 * linux-fork.h: New file.
730 * linux-fork.c: New file. Support for debugging multiple forks
731 of the same program. Support for checkpoint and restart commands.
732
733 * infrun.c (nullify_last_target_wait_ptid): New function.
734
735 * Makefile.in: Add linux-fork.
736 * config/*/linux.mh: Add linux-fork.
737 * NEWS: Mention new functionality.
738
f98ce7c2
PH
7392006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
740
741 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
742 Change uses of "illegal" to "invalid".
743
52ce6436
PH
7442006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
745
746 * ada-exp.y: Considerable reorganization to move functionality
747 from ada-lex.l to here, where it is logically more appropriate.
748 The original reason, however, was to prevent premature name
749 lookups for selector names in record aggregates.
750 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
751 NAME for all of these.
752 (VAR): New artificial token to clarify precedence rules.
753 (OTHERS): New lexeme.
754 (empty_stoken): New symbol.
755 (%union): Remove ssym, voidval.
756 (%type): Remove <voidval> type declarations.
757 (syntax definitions): Add aggregates.
758 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
759 Rename some non-terminals to be closer to reference manual usage.
760 Tighten up expression syntax to disallow certain non-Ada
761 constructions such as X and then Y or else Z.
762 (ada_parse): Remove initialization of left_block_context.
763 (write_var_from_name): Remove.
764 (write_var_or_type): New function, containing previous code from
765 defunct write_var_from_name and name_lookup.
766 (block_lookup): New function, moved from ada-lex.l
767 (select_possible_type_sym): New function, factored out of
768 name_lookup, which used to be in ada-lex.l.
769 (find_primitive_type): Ditto.
770 (chop_selector): Ditto.
771 (write_ambiguous_var): New function, factored out of defunct
772 write_var_from_name.
773 (write_selectors): New function.
774 (write_name_assoc): New function.
775 (write_exp_op_with_string): New function.
776
777 * ada-lex.l (processId): Change interface to return stoken.
778 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
779 (block_lookup, name_lookup): Remove. Functionality moved to
780 ada-exp.y.
781 (state IN_STRING): Remove.
782 (rules): Handle string escapes in processString.
783 Add 'others' token.
784 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
785 yylval.sval (as simple strings).
786 All name look-ups now handled in ada-exp.y.
787 Introduce "::" (COLONCOLON) token and return as separate token.
788 (processId): Change return convention. Comment.
789 Leave leading "'" in place.
790 (processString): New function.
791 (find_dot_all): Add note to comment.
792 Fix problem that allowed match only at the end.
793
794 * ada-lang.c: Introduce aggregates.
795 (find_struct_field): Add new parameter to count fields skipped, and
796 allow other output parameters to be NULL.
797 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
798 new find_struct_field.
799 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
800 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
801 (num_component_specs, assign_component, assign_aggregate):
802 (aggregate_assign_from_choices,aggregate_assign_positional)
803 (aggregate_assign_others,add_component_interval):
804 New functions.
805 (ada_evaluate_subexp): Declare.
806 Add aggregate-related operators.
807 (ada_forward_operator_length): Declare.
808 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
809 Consolidate Ada operators, using ada_forward_operator_length.
810 (ada_search_struct_field): Search in forward order.
811 (ADA_OPERATORS): Add new aggregate operators.
812 (ada_operator_length, ada_op_name, ada_forward_operator_length)
813 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
814 operators and OP_NAME.
815 (ada_type_of_array): Use longest_to_int.
816 (value_assign_to_component): New function.
817 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
818 Add OP_NAME case.
819 (ada_forward_operator_length, ada_dump_subexp_body):
820 Add OP_STRING case.
821
822 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
823 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
824
529cad9c
PH
8252006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
826
827 * ada-lang.c (process_raise_exception_name): Remove extraneous
828 definition from unsubmitted code.
829
830 (is_lower_alphanum): New function.
831 (ada_decode): Add support for decoding protected object subprograms
832 and entries, and of entities declared inside protected object
833 subprograms.
834 Also add missing handling for__{DIGITS}+ suffixes.
835 Allow '$<digits>' as valid overloading suffix.
836 (is_name_suffix): Add handling for protected type entriy suffixes.
837 Also add support for protected type subprogram suffixes, but keep
838 it commented out for now, as there is an ambiguity between these
839 entities and other internally generated entities.
840 Allow '$<digits>' as valid overloading suffix.
841 (is_valid_name_for_wild_match): New function.
842 (wild_match): Add an exra level of verification of the entity name
843 before declaring it a match for the given pattern.
844
845 (ada_type_of_array, ada_evaluate_subexp): Use more proper
846 longest_to_int rather than cast.
847
848 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
849
850 (ada_coerce_to_simple_array): Call check_size to make sure
851 that the object size is reasonable.
852
853 (ada_value_primitive_packed_val): Use correct location in target
854 buffer for extracting packed record fields that are themselves records.
855
856 (add_defn_to_vec): Do not try to replace a stub type by its full
857 type. Avoids a potential infinite loop.
858
859 (ada_lookup_symbol): Move return incorrectly placed return statement,
860 causing a loop that should be scanning all object files to only
861 scan the first one.
862
863 (ada_tag_name_2): New function.
864 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
865 use alternative representation.
866
867 (ada_find_renaming_symbol): Strip the function name suffix when
868 computing the XR type name.
869
870 (ada_to_fixed_type): Try determining the tag only if we have the
871 object's address.
872 (to_fixed_array_type): Add comments.
873
874 (ada_check_typedef): Replace expression checking whether the given
875 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
876 consistent.
877
878 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
879 '$' in addition to '.' for runtime auxiliary function name suffixes.
880 See changes to ada_decode above.
881
882 (struct task_control_block): Add field called_task. (This change is
883 to keep synchronized with our local sources; it does not affect the
884 public version yet.)
885
886 * ada-typeprint.c (ada_print_type): Use int_string for printing
887 modulus of modular type.
888
889 (print_range): Trivial editorial comment fix.
890
891 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
892 double quote in string.
893
9b799fe6
JB
8942006-01-01 Joel Brobecker <brobecker@adacore.com>
895
896 * top.c: Add 2006 to list of copyright years in file header.
897
0bee0712
JB
8982006-01-01 Joel Brobecker <brobecker@adacore.com>
899
900 * top.c (print_gdb_version): Update copyright year to 2006.
901
13c763f4
JB
9022006-01-01 Roger Sayle <roger@eyesopen.com>
903 Elena Zannoni <ezannoni@redhat.com>
904
905 PR symtab/1651
906 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
907 for NULL before assigning this_symtab_psymtab->objfile to objfile.
908 (scan_xcoff_symtab): Initialize next_symbol_text_func.
909 (Committed by Jim Blandy)
910
e50f0da1 911For older changes see ChangeLog-2005.
c906108c
SS
912\f
913Local Variables:
914mode: change-log
915left-margin: 8
916fill-column: 74
917version-control: never
918End:
This page took 0.836994 seconds and 4 git commands to generate.