2006-02-14 Paolo Bonzini <bonzini@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7314787a
NR
12006-02-14 Nick Roberts <nickrob@snap.net.nz>
2
3 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
4 (gdb-break-list-regexp): Match "what" field if present.
5 (gdb-stack-list-frames-regexp): Match "from" if present field.
6 (gdb-stack-list-frames-handler): Present output like "info
7 breakpoints" so regexps can be shared with gdb-ui
8
0ea3f30e
DJ
92006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * NEWS: Mention native Windows support.
12 * Makefile.in (gdb_select_h, ser_tcp_h): New.
13 (ALLDEPFILES): Add ser-mingw.c.
14 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
15 (ser-tcp.o, ser-unix.o): Update.
16 (ser-mingw.o): New rule.
17 * configure: Regenerated.
18 * configure.ac: Add ser-mingw.o for mingw32.
19 * ser-mingw.c: New file.
20 * event-loop.c: Include "gdb_select.h".
21 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
22 * ser-base.c: Include "gdb_select.h".
23 (ser_base_wait_for): Use gdb_select.
24 * serial.c (serial_for_fd): New function.
25 (serial_fdopen): Try "terminal" before "hardwire". Initialize
26 the allocated struct serial.
27 (serial_wait_handle): New function.
28 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
29 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
30 * gdb_select.h: New file.
31 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
32 (net_close, net_read_prim, net_write_prim): Make global.
33 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
34 Document why we can not use gdb_select.
35 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
36 * ser-tcp.h: New file.
37 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
38 (handle_sigio): Use gdb_select.
39 (initialize_stdin_serial): New function.
40 * terminal.h (initialize_stdin_serial): New prototype.
41 * top.c (gdb_init): Call initialize_stdin_serial.
42 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
43 event-loop.c. Add exception condition support. Use serial_for_fd
44 and serial_wait_handle. Fix timeout handling.
45 * posix-hdep.c: Include "gdb_select.h".
46 (gdb_select): New function.
47 * remote-st.c (connect_command): Use gdb_select.
48 * ser-unix.c: Include "gdb_select.h".
49 (hardwire_send_break, wait_for): Use gdb_select.
50
121ce6e5
DJ
512006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
54 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
55 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
56 to posix-hdep.o by default.
57 * configure: Regenerated.
58 * configure.host: Document gdb_host_obs. Add an entry for
59 i[34567]86-*-mingw32*.
60 * mingw-hdep.c, posix-hdep.c: New files.
61 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
62
1f82754b
JB
632006-02-10 Joel Brobecker <brobecker@adacore.com>
64
65 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
66 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
67 * rs6000-tdep.h: New file.
68 * rs6000-tdep.c: Include "rs6000-tdep.h".
69 (rs6000_gdbarch_init): Remove enabling of software single step.
70 Will be done in the AIX-specific initialization routine.
71 * rs6000-aix-tdep.c: New file.
72 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
73 * Makefile.in (rs6000_tdep_h): New variable.
74 (rs6000-tdep.o): Update dependencies.
75 (rs6000-aix-tdep.o): New rule.
76
577b7047
JB
772006-02-10 Joel Brobecker <brobecker@adacore.com>
78
79 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
80 instead of add_setshow_zinteger_cmd to defined the aix-thread
81 boolean setting.
82
ff800d76
NR
832006-02-10 Nick Roberts <nickrob@snap.net.nz>
84
85 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
86
5afb4e99
DJ
872006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
88
89 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
90 30 bits. Add load_all_dies flag.
91 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
92 Load DW_TAG_member by default. Remove internal_error call.
93 (find_partial_die): Reload the compilation unit if we can not find
94 a DIE in the cache. Call internal_error here if we still can not
95 find the DIE.
96
a832795c
NR
972006-02-10 Nick Roberts <nickrob@snap.net.nz>
98
99 * breakpoint.c (print_one_breakpoint): Add break to case
100 bp_catch_vfork in switch statement.
101
c9dd6fef
WZ
1022006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
103
104 * config/i386/nm-i386sol2.h: Update copyright year.
105 * config/mips/nm-irix5.h: Ditto.
106 * config/sparc/nm-sol2.h: Ditto.
107 * s390-nat.c: Ditto.
108 * ppc-linux-nat.c: Ditto.
109
2a3cdf79
WZ
1102006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
111
112 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
113 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
114 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
115 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
116 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
117 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
118 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
119 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
120 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
121 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
122 add to_region_ok_for_hw_watchpoint.
123 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
124 (s390_region_ok_for_hw_watchpoint): New.
125 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
126 and add to_region_ok_for_hw_watchpoint.
127 * target.c (default_region_size_ok_for_hw_watchpoint,
128 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
129 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
130 inheritance and default_region_size_ok_for_hw_watchpoint.
131 (default_region_ok_for_hw_watchpoint): If len is less than or equal
132 the length of void pointer, return ok.
133 (default_region_size_ok_for_hw_watchpoint): Delete.
134 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
135 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
136 * target.h (struct target_ops): Delete
137 to_region_size_ok_for_hw_watchpoint.
138 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
139
e0d24f8d
WZ
1402006-02-08 Ben Elliston <bje@au1.ibm.com>
141 Wu Zhou <woodzltc@cn.ibm.com>
142
143 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
144 PTRACE_GETSIGINFO): Define.
145 (last_stopped_data_address): New.
146 (ppc_linux_check_watch_resources): New function.
147 (ppc_linux_region_ok_for_hw_watchpoint): New function.
148 (ppc_linux_insert_watchpoint): New function.
149 (ppc_linux_remove_watchpoint): New function.
150 (ppc_linux_stopped_data_address): New function.
151 (ppc_linux_stopped_by_watchpoint): New function.
152 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
153 related target vectors.
154 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
155 to have nonsteppable watchpoint.
156 * target.c (default_region_ok_for_hw_watchpoint,
157 debug_to_region_ok_for_hw_watchpoint): New prototypes.
158 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
159 and set default to_region_ok_for_hw_watchpoint.
160 (default_region_ok_for_hw_watchpoint): New function.
161 (debug_to_region_ok_for_hw_watchpoint): New function.
162 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
163 debug_target.
164 * target.h (struct target_ops): Add a new target vector
165 to_region_ok_for_hw_watchpoint.
166 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
167 defined anyplace else.
927890d0 168
e0d24f8d 1692005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
170 * symfile.c (add_symbol_file_command): Abort if the user forgot
171 to provide the address when the file has been loaded.
172
f4d408c6
DJ
1732006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * MAINTAINERS: Update file based on maintainers survey. Add
176 a note to Past Maintainers. Move unresponsive or inactive
177 maintainers to Authorized Committers or Past Maintainers as
178 appropriate. Correct Jim Kingdon's email address. Remove
179 vacant areas of responsibility.
180
38fcd64c
DJ
1812006-02-06 Vladimir Prus <ghost@cs.msu.su>
182
183 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
184 fullname field.
185
7b871fab
DJ
1862006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
189 * exceptions.c (exception_none, exceptions_state_mc_init)
190 (throw_vfatal): Use GDB_NO_ERROR.
191
e4cd0d6a
MK
1922006-02-02 Mark Kettenis <kettenis@gnu.org>
193
194 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
195 r_map_size members. Add r_version_offset, r_version_size and
196 r_ldsomap_offset members.
197 * solib-svr4.c (solib_svr4_r_map): Renamed from
198 fetch_link_map_member. Simplify using read_memory_typed_address.
199 (solib_svr4_r_ldsomap): New function.
200 (open_symbol_file_object): Use solib_svr_r_map.
201 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
202 linker by using solib_svr4_r_ldsomap.
203 (svr4_ilp32_fetch_link_map_offsets)
204 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
205 link_map_offsets'.
206 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
207 changes to `struct link_map_offsets'.
208 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
209 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
210 `struct link_map_offsets'.
211
e26af52f
DJ
2122006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
213
214 * linux-nat.c (struct saved_ptids, threads_to_delete)
215 (record_dead_thread, prune_lwps, find_thread_from_lwp)
216 (exit_lwp): New.
217 (linux_nat_resume): Call prune_lwps.
218 (wait_lwp, linux_nat_wait): Call exit_lwp.
219
46e9880c
DJ
2202006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
221
222 * printcmd.c (printf_command): Make format string checking
223 stricter. Add separate cases for long_arg, ptr_arg, and
224 long_double_arg.
225 * utils.c (xstrvprintf): Improve the error message issued
226 for a bad format string.
227 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
228 New variables.
229 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
230 $(NO_WERROR_CFLAGS).
231 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
232 enable -Werror.
233
37a105a1
DJ
2342006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
235
236 * Makefile.in (remote.o): Update.
237 * remote.c (show_packet_config_cmd): Shorten messages.
238 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
239 (show_remote_cmd): Iterate.
240 (_initialize_remote): Remove remote_set_cmdlist,
241 remote_show_cmdlist.
242
ae5a43e0
DJ
2432006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
244
245 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
246 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
247 prototypes.
248 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
249 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
250 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
251 ...here.
252 * gdbtypes.c: Include "hashtab.h".
253 (build_gdbtypes): Remove extra prototype.
254 (struct type_pair, type_pair_hash, type_pair_eq)
255 (create_copied_types_hash, copy_type_recursive): New.
256 * gdbtypes.h: Include "hashtab.h".
257 (TYPE_ZALLOC): New.
258 (create_copied_types_hash, copy_type_recursive): New prototypes.
259 * objfiles.c (free_objfile): Call preserve_values.
260 * symfile.c (reread_symbols): Likewise.
261 (clear_symtab_users): Remove calls to clear_value_history and
262 clear_internalvars.
263 * value.c (clear_value_history, clear_internalvars): Removed.
264 (preserve_one_value, preserve_values): New functions.
265 * value.h (clear_value_history, clear_internalvars): Removed.
266 (preserve_values): New prototype.
267
268 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
269 variables here.
270
b929c77f
MK
2712006-01-29 Mark Kettenis <kettenis@gnu.org>
272
273 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
274 Fixes PR tdep/2075.
275
1581f359
JB
2762006-01-27 Joel Brobecker <brobecker@adacore.com>
277
278 * MAINTAINERS: Use a consistent email address for brobecker.
279
37706b70
JB
2802006-01-27 Joel Brobecker <brobecker@adacore.com>
281
282 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
283 in the previous change.
284
9353355f
DJ
2852006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
286
287 PR gdb/1914
288 * fork-child.c (fork_inferior): Don't call
289 solib_create_inferior_hook.
290 * infcmd.c (post_create_inferior): Call solib_add,
291 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
292 (attach_command): Don't call solib_add or
293 re_enable_breakpoints_in_shlibs. Call post_create_inferior
294 instead.
295 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
296 or observer_notify_inferior_created. Call post_create_inferior
297 instead.
298 * corelow.c: Don't include "observer.h".
299 (solib_add_stub): Deleted.
300 (core_open): Don't call observer_notify_inferior_created or
301 solib_add_stub. Call post_create_inferior instead.
302 * inf-ptrace.c: Don't include "observer.h".
303 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
304 * inf-ttrace.c: Don't include "observer.h".
305 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
306 * inferior.h (solib_create_inferior_hook): Remove redundant
307 prototype.
308 * inftarg.c: Don't include "observer.h".
309 (child_attach): Don't call observer_notify_inferior_created.
310 * Makefile.in: Update dependencies.
311
281b533b
DJ
3122006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
313
314 * infcmd.c: Include "observer.h".
315 (post_create_inferior): New function.
316 (run_command_1): Call it. Also call proceed.
317 * inferior.h (post_create_inferior): New prototype.
318 * Makefile.in (infcmd.o): Update.
319
320 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
321 * go32-nat.c (go32_create_inferior): Likewise.
322 * nto-procfs.c (procfs_create_inferior): Likewise.
323 * procfs.c (procfs_create_inferior): Likewise.
324 * remote-sim.c (gdbsim_create_inferior): Likewise.
325 * remote.c (extended_remote_create_inferior)
326 (extended_remote_async_create_inferior): Likewise.
327 * win32-nat.c (win32_create_inferior): Likewise.
328 * wince.c (child_create_inferior): Likewise.
329
330 * monitor.c (monitor_create_inferior): Don't call proceed.
331 Set the PC manually.
332 * ocd.c (ocd_create_inferior): Likewise.
333 * remote-e7000.c (e7000_create_inferior): Likewise.
334 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
335 * remote-mips.c (mips_create_inferior): Likewise.
336 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
337 * remote-sds.c (sds_create_inferior): Likewise.
338 * remote-st.c (st2000_create_inferior): Likewise.
339
340 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
341 proceed or observer_notify_inferior_created.
342 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
343 * inftarg.c (child_create_inferior): Likewise.
344
e23fc6de
DJ
3452006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
346
347 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
348 after mourning the inferior.
349
13d6656b
JB
3502006-01-24 Jim Blandy <jimb@redhat.com>
351
352 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
353
59f92a09
FF
3542006-01-24 Fred Fish <fnf@specifix.com>
355
356 * parse.c (source.h): Include.
357 (parse_exp_in_context): Use static source context if no
358 other context found.
359
dda63807
AS
3602006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
361
362 * sh-tdep.c: Include reggroups.h.
363 (sh_register_reggroup_p): New function.
364 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
365 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
366
4b505b12
AS
3672006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
368
369 * cli/cli-cmds.c: Include fcntl.h.
370 (source_command): Use the GDB search path to find script files.
371
721d14ba
DJ
3722006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
373
374 PR tdep/2029
375 Suggested by Till Straumann <strauman@slac.stanford.edu>:
376 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
377 instructions. Handle PIC bcl.
378
3d64d617
DJ
3792006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
380
381 * config/djgpp/README: Typo fix.
382 * config/djgpp/fnchange.lst: Update.
383
0a8f48b9
MK
3842006-01-22 Mark Kettenis <kettenis@gnu.org>
385
c893be75
MK
386 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
387 (sparc_address_from_register): New prototype.
388 (sparcnbsd_step_trap): New prototype.
389 * sparc-tdep.c (sparc_address_from_register): Make globally
390 visible.
391 (sparc_analyze_control_transfer): Change prototype to accept
392 `struct gdbarch *' as first argument. Allow for optional hnadling
393 for trap instructions.
394 (sparc_step_trap): New function.
395 (sparc_software_single_step): Adjust call to
396 sparc_analyze_control_trabsfer.
397 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
398 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
399 (sparc32nbsd_init_abi): Set TDEP->step_trap.
400 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
401 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
402
0a8f48b9
MK
403 * sparc-tdep.c (sparc32_return_value): Convert to use
404 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
405 RETURN_VALUE_STRUCT_CONVENTION.
406 (sparc32_extract_struct_value_address): Remove.
407
1f3a99d5
DJ
4082006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
409
410 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
411 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
412
84eb3c4f
DJ
4132006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
414
415 * solib.c (info_sharedlibrary_command): Avoid internal_error.
416
878d9193
MK
4172006-01-21 Mark Kettenis <kettenis@gnu.org>
418
419 * i386-tdep.c (i386_mxcsr_type): New variable.
420 (i386_init_types): Initialize i386_mxcsr_type.
421 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
422 * i386-tdep.c (i386_mxcsr_type): New extern.
423 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
424 %mxcsr.
425
acab6ab2
MM
4262006-01-20 Mark Mitchell <mark@codesourcery.com>
427
428 * Makefile.in (remote-rdi.o): Remove.
429 (rdi-share/libangsd.a): Likewise.
430 * README: Don't mention remote-rdi.c.
431 * NEWS: Mention removal of rdi-share.
432 * configure.ac: Don't configure rdi-share subdirectory.
433 * remote-rdi.c: Remove.
434 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
435 (TDEPLIBS): Remove rdi-share/libangsd.a.
436 * rdi-share/Makefile.am: Remove.
437 * rdi-share/Makefile.in: Likewise.
438 * rdi-share/README.CYGNUS: Likewise.
439 * rdi-share/aclocal.m4: Likewise.
440 * rdi-share/adp.h: Likewise.
441 * rdi-share/adperr.h: Likewise.
442 * rdi-share/angel.h: Likewise.
443 * rdi-share/angel_bytesex.c: Likewise.
444 * rdi-share/angel_bytesex.h: Likewise.
445 * rdi-share/angel_endian.h: Likewise.
446 * rdi-share/ardi.c: Likewise.
447 * rdi-share/ardi.h: Likewise.
448 * rdi-share/armdbg.h: Likewise.
449 * rdi-share/buffers.h: Likewise.
450 * rdi-share/chandefs.h: Likewise.
451 * rdi-share/channels.h: Likewise.
452 * rdi-share/chanpriv.h: Likewise.
453 * rdi-share/configure: Likewise.
454 * rdi-share/configure.in: Likewise.
455 * rdi-share/crc.c: Likewise.
456 * rdi-share/crc.h: Likewise.
457 * rdi-share/dbg_conf.h: Likewise.
458 * rdi-share/dbg_cp.h: Likewise.
459 * rdi-share/dbg_hif.h: Likewise.
460 * rdi-share/dbg_rdi.h: Likewise.
461 * rdi-share/devclnt.h: Likewise.
462 * rdi-share/devices.h: Likewise.
463 * rdi-share/devsw.c: Likewise.
464 * rdi-share/devsw.h: Likewise.
465 * rdi-share/drivers.c: Likewise.
466 * rdi-share/drivers.h: Likewise.
467 * rdi-share/etherdrv.c: Likewise.
468 * rdi-share/ethernet.h: Likewise.
469 * rdi-share/host.h: Likewise.
470 * rdi-share/hostchan.c: Likewise.
471 * rdi-share/hostchan.h: Likewise.
472 * rdi-share/hsys.c: Likewise.
473 * rdi-share/hsys.h: Likewise.
474 * rdi-share/logging.c: Likewise.
475 * rdi-share/logging.h: Likewise.
476 * rdi-share/msgbuild.c: Likewise.
477 * rdi-share/msgbuild.h: Likewise.
478 * rdi-share/params.c: Likewise.
479 * rdi-share/params.h: Likewise.
480 * rdi-share/rx.c: Likewise.
481 * rdi-share/rxtx.h: Likewise.
482 * rdi-share/serdrv.c: Likewise.
483 * rdi-share/serpardr.c: Likewise.
484 * rdi-share/sys.h: Likewise.
485 * rdi-share/tx.c: Likewise.
486 * rdi-share/unixcomm.c: Likewise.
487 * rdi-share/unixcomm.h: Likewise.
488
4577207e
MK
4892006-01-21 Mark Kettenis <kettenis@gnu.org>
490
491 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
492 Change type of last argument to `gdb_byte *'.
493
34f55018
MK
4942006-01-20 Mark Kettenis <kettenis@gnu.org>
495
496 * hppa-tdep.h (hppa_in_solib_call_trampoline)
497 (hppa_skip_trampoline_code): New prototypes.
498 * hppa-tdep.c (struct insn_pattern): New.
499 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
500 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
501 here from hppa-linux-tdep.c
502 (HPPA_MAX_INSN_PATTERN_LEN): New define.
503 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
504 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
505 functions based on functions removed from hppa-linux-tdep.c.
506 * hppa-linux-tdep.c (hppa_long_branch_stub)
507 (hppa_long_branch_pic_stub, hppa_import_stub)
508 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
509 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
510 (hppa_linux_in_solib_call_trampoline)
511 (hppa_linux_skip_trampoline_code): Removed.
512 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
513 hppa_in_solib_call_trampoline and skip_trampoline_code to
514 hppa_skip_trampoline_code.
515 * hppabsd-tdep.c (hppabsd_init_abi): Set
516 TDEP->in_solib_call_trampoline and skip_trampoline_code.
517
7be93b9e
JB
5182006-01-20 Jim Blandy <jimb@redhat.com>
519
f408839d
JB
520 * MAINTAINERS: Change my E-mail address.
521
7be93b9e
JB
522 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
523 * configure: Regenerated.
524
b2a74f99
DJ
5252006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
526
527 * MAINTAINERS: Overhaul.
528
4f2aea11
MK
5292006-01-18 Mark Kettenis <kettenis@gnu.org>
530
5ae96ec1
MK
531 Based on a previous patch form Michal Ludvig:
532 * amd64-tdep.c (amd64_sse_type): Remove.
533 (amd64_register_info): Use i386_eflags_type and i386_sse_type
534 where appropriate.
535 (AMD64_NUM_REGS): Use ARRAY_SIZE.
536 (amd64_register_type): Remove code to build amd_sse_type.
537 * i386-tdep.c (i386_eflag_type): New variable.
538 (i386_mmx_type, i386_sse_type): Make global.
539 (i386_init_types): New function.
540 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
541 (i386_register_type): Return i386_eflag_type, i386_sse_type and
542 i386_mmx_type when appropriate.
543 (_initialize_i386_tdep): Call i386_init_types.
544 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
545 Declare extern.
546
4f2aea11
MK
547 Based on a previous patch form Michal Ludvig:
548 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
549 functions.
550 (is_integral_type, rank_one_type, recursive_dump_type): Add
551 support for TYPE_CODE_FLAGS.
552 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
553 (append_flags_type_field, init_flags_type): New prototypes.
554 * ada-valprint.c (ada_val_print_1): Add support for
555 TYPE_CODE_FLAGS.
556 * c-valprint.c (c_val_print): Likewise.
557 * f-valprint.c (f_val_print): Likewise.
558 * p-valprint.c (pascal_val_print): Likewise.
559 * valprint.c (val_print_type_code_flags): New function.
560 * valprint.h (val_print_type_code_flags): New prototype.
561 * value.c (unpack_long, value_from_longest): Add support for
562 TYPE_CODE_FLAGS.
563
4cdb5adf
CF
5642006-01-17 Christopher Faylor <cgf@timesys.com>
565
566 * MAINTAINERS: Very belatedly remove myself from from the list of
567 people caught up in the paper trail.
568
1193688d
JB
5692006-01-17 Jim Blandy <jimb@redhat.com>
570
4e38b386
JB
571 * symtab.h (struct general_symbol_info): Use gdb_byte for
572 value.bytes.
573 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
574 a floating-point constant's value.
575 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
576 to char *.
577 * findvar.c (read_var_value): Eliminate needless temporary.
578
1193688d
JB
579 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
580 to match prior change to dwarf2_read_section's type.
581
0d1243d9
PG
5822006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
583
584 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
585 * rs6000-tdep.c (insn_changes_sp_or_jumps)
586 (rs6000_in_function_epilogue_p): New functions.
587 (rs6000_gdbarch_init): Set in_function_epilogue_p.
588
fe1b8b76
JB
5892006-01-17 Jim Blandy <jimb@redhat.com>
590
591 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
592 (struct line_header, struct partial_die_info, struct dwarf_block):
593 Use gdb_byte for members that refer to Dwarf section contents.
594 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
595 dwarf_decode_macros, load_comp_unit, load_partial_dies,
596 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
597 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
598 read_8_bytes, read_address, read_attribute, read_attribute_value,
599 read_comp_unit, read_comp_unit_head, read_die_and_children,
600 read_die_and_siblings, read_full_die, read_indirect_string,
601 read_initial_length, read_n_bytes, read_offset, read_partial_die,
602 read_signed_leb128, read_string, read_unsigned_leb128,
603 skip_children, skip_leb128, skip_one_die): Same.
604
a0841d7a
DJ
6052006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
606
607 * complaints.c (stop_whining): Make signed.
608 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
609
939b2b42
DJ
6102006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
611
612 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
613 notices.
614
891d2f0b
DJ
6152006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
616
617 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
618 (read_offset): Change BYTES_READ argument to unsigned int.
619 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
620 (create_all_comp_units, dwarf2_get_pc_bounds)
621 (dwarf_decode_line_header, var_decode_location)
622 (dwarf_decode_macros): Change local BYTES_READ variables to
623 unsigned int.
624 (read_indirect_string): Remove obsolete cast.
625
cfd77fa1
DJ
6262006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
627
628 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
629 argument.
630 (remote_fileio_func_open, remote_fileio_func_rename)
631 (remote_fileio_func_unlink, remote_fileio_func_stat)
632 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
633 (remote_fileio_func_system): Cast the arguments to
634 remote_read_bytes and remote_write_bytes.
635 (remote_fileio_func_read, remote_fileio_func_write): Use a
636 gdb_byte buffer.
637 * remote.h (remote_read_bytes, remote_write_bytes): Update
638 prototypes.
639 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
640 (threadref_to_int): Replace bogus char * cast.
641 (remote_unpack_thread_info_response): Use int for tag.
642 (remote_threads_extra_info, remote_check_symbols): Cast string
643 arguments to hex2bin.
644 (remote_wait): Use a char buffer for packets and a gdb_byte
645 buffer for registers.
646 (remote_async_wait): Likewise.
647 (remote_prepare_to_store, store_register_using_P)
648 (remote_store_registers): Use gdb_byte buffers.
649 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
650 for MYADDR and char buffers for strings.
651 (remote_xfer_partial): Add casts for string operations on READBUF.
652 (remote_rcmd): Cast strings passed to bin2hex.
653
60bf0650
MM
6542006-01-16 Mark Mitchell <mark@codesourcery.com>
655
656 * aclocal.m4: Regenerate.
657
60e81fcc
NS
6582006-01-16 Nathan Sidwell <nathan@codesourcery.com>
659
660 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
661 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
662 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
663 (mt_register_name): Lazily synthesize name for coprocessor pseudo
664 array registers.
665 (mt_copro_register_type): New. Broken out of ...
666 (mt_register_type): ... here. Use it. Deal with coprocessor
667 pseudo array.
668 (mt_select_coprocessor): New.
669 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
670 coprocessor pseudo array.
671
f365de73
AS
6722006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
673
674 * breakpoint.c (insert_breakpoints): Check that a thread exists
675 before inserting thread specific breakpoints.
676
9d519230
MK
6772006-01-15 Mark Kettenis <kettenis@gnu.org>
678
6062517a
MK
679 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
680 commit.
681
9d519230
MK
682 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
683 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
684 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
685 * config/alpha/nm-nbsd.h: Remove file.
686 * config/alpha/nm-fbsd.h: Remove file
687 * config/alpha/nbsd.mh (NAT_FILE): Remove.
688 * config/alpha/fbsd.mh (NAT_FILE): Remove.
689
0a029df5
DJ
6902006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
691
692 * macroexp.c (expand): Initialize argc.
693 * stabsread.c (read_type): Handle errors from read_args.
694 (read_args): Return NULL for errors.
695
1731e543
MK
6962006-01-15 Mark Kettenis <kettenis@gnu.org>
697
698 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
699 strcmp to compare string to a byte buffer.
700
777ea8f1
DJ
7012006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
702
703 * printcmd.c (output_command): Always initialize fmt.size.
704 (printf_command): Use gdb_byte.
705 * symfile.c (separate_debug_file_exists): Use gdb_byte.
706 (load_section_callback, read_target_long_array): Likewise.
707 (simple_read_overlay_table, simple_read_overlay_region_table)
708 (simple_overlay_update_1): Correct calls to read_target_long_array.
709 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
710 Also change local pointers.
711 (val_print_string): Use gdb_byte.
712
4b17b389
MK
7132006-01-15 Mark Kettenis <kettenis@gnu.org>
714
715 * alphafbsd-tdep.c: Include "solib-svr4.h".
716 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
717 svr4_lp64_fetch_link_map_offsets.
718 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
719 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
720 solib-svr4.o.
721 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
722 and solib-legacy.o.
723 * config/alpha/nm-fbsd.h: Don't include "solib.h".
724
bd4109fb
DJ
7252006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
726
727 * source.c (_initialize_source): Use add_setshow_integer_cmd.
728
1dce6535
DJ
7292006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
730
731 * linux-fork.c (delete_fork_command, detach_fork_command): Use
732 PIDGET.
733
76a9d10f
MK
7342006-01-15 Mark Kettenis <kettenis@gnu.org>
735
736 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
737 Remove.
738 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
739 svr4_ilp32_fetch_link_map_offsets.
740 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
741 function.
742 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
743 svr4_ilp32_fetch_link_map_offsets.
744 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
745 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
746 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
747 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
748 where appropriate.
749 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
750 Simply call svr4_ilp32_fetch_link_map_offsets.
751 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
752 svr4_lp64_fetch_link_map_offsets.
753 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
754 function.
755 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
756 svr4_ilp32_fetch_link_map_offsets.
757 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
758 (s390x_svr4_fetch_link_map_offsets): Remove functions.
759 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
760 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
761 where appropriate.
762
469db033
MK
7632006-01-15 Mark Kettenis <kettenis@gnu.org>
764
25224166
MK
765 * arm-tdep.c (arm_return_value): Change type of readbuf and
766 writebuf arguments to `gdb_byte *'.
767
469db033
MK
768 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
769 * Makefile.in (s390-tdep.o): Update dependencies.
770
4dd7c9f6
MK
7712006-01-14 Mark Kettenis <kettenis@gnu.org>
772
081bf9da
MK
773 * sol2-tdep.h. sol2-tdep.c: New files.
774 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
775 (amd64_sol2_init_abi): Set skip_solib_resolver.
776 * i386-sol2-tdep.c: Include "sol2-tdep.h".
777 (i386_sol2_init_abi): Set skip_solib_resolver.
778 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
779 (sparc32_sol2_init_abi): Set skip_solib_resolver.
780 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
781 (sparc64_sol2_init_abi): Set skip_solib_resolver.
782 * Makefile.in (sol2_tdep_h): New variable.
783 (ALLDEPFILES): Add sol2-tdep.c.
784 (sol2-tdep.o): New target.
785 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
786 (sparc64-sol2-tdep.o): Update dependencies
787 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
788 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
789 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
790 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
791
c0f96416
MK
792 * hppa-linux-tdep.c: Fix copyright indentation.
793
4dd7c9f6
MK
794 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
795 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
796 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
797 functions.
798 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
799 floating-point registers.
800
6da86618
MM
8012006-01-13 Mark Mitchell <mark@codesourcery.com>
802
803 * event-loop.c (gdb_select): Detect file descriptors that have
804 been closed.
805
ed944ce7
MK
8062006-01-13 Mark Kettenis <kettenis@gnu.org>
807
808 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
809 and long_double_format accordingly.
810
03ee6b2e
PH
8112006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
812
813 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
814 translation problems.
815 * ada-lang.c (ada_value_struct_elt): Change interface and handling
816 of errors to avoid translation problem (and less than optimal error
817 messages).
818 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
819 Use new interface to ada_value_struct_elt.
820 * ada_lang.h (ada_value_struct_elt): Update declaration to new
821 interface.
822
823 * ChangeLog: remove reference to ada-tasks.c from entry of
824 2006-01-07.
825
24b06219
MK
8262006-01-11 Mark Kettenis <kettenis@gnu.org>
827
828 * remote.c (get_memory_packet_size, set_thread)
829 (remote_unpack_thread_info_response, remote_get_threadinfo)
830 (parse_threadlist_response, remote_get_threadlist)
831 (remote_current_thread, remote_threads_info)
832 (remote_threads_extra_info, extended_remote_restart, get_offsets)
833 (remote_check_symbols, remote_open_1, remote_detach)
834 (remote_async_wait, remote_fetch_registers)
835 (remote_store_registers, check_binary_download, putpkt_binary)
836 (remote_insert_breakpoint, remote_insert_watchpoint)
837 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
838 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
839 (packet_command): Remove redundant parenthesis.
840
15550d6b
MK
8412006-01-10 Mark Kettenis <kettenis@gnu.org>
842
dfb65433
MK
843 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
844 (read_memory_typed_address, write_memory)
845 (write_memory_unsigned_integer, write_memory_signed_integer): Use
846 gdb_byte where appropriate.
847
508416a1
MK
848 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
849 'gdb_byte *'.
850
f6519ebc
MK
851 * target.h (target_read_memory_partial, target_write_memory_partial):
852 Change second argument to 'gdb_byte *'.
853 * target.c (target_xfer_memory_partial): Change third argument to
854 'gdb_byte *'.
855 (target_read_memory_partial, target_write_memory_partial): Change
856 second argument to 'gdb_byte *'.
857
15550d6b
MK
858 * linespec.c (decode_objc): Make i1 and i2 unsigned.
859 (find_method): Set values.sals to NULL.
860
d7a30af7
MK
8612006-01-09 Mark Kettenis <kettenis@gnu.org>
862
863 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
864 of 'char *' in cast.
865
e1d5a0d2
PH
8662006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
867
868 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 869 * ada-lang.c: I18n markup.
e1d5a0d2
PH
870 Editorial: change "can not" => "cannot" throughout.
871
790124be
MK
8722006-01-07 Mark Kettenis <kettenis@gnu.org>
873
874 * Makefile.in: Sort dependencies.
875
3c481fdc
EZ
8762006-01-07 Eli Zaretskii <eliz@gnu.org>
877
878 * top.c (control_level): Remove unused variable.
879
cb5d864f
FF
8802006-01-06 Fred Fish <fnf@specifix.com>
881
882 * objfiles.c (source.h): Include.
883 (free_objfile): Update comment about clear_symtab_users().
884 (free_objfile): Check all symtabs of objfile being freed and if
885 one of them is the current source symtab, call
886 clear_current_source_symtab_and_line().
887
ac264b3b
MS
8882006-01-04 Michael Snyder <msnyder@redhat.com>
889
890 Checkpoint/Restart for Linux.
891 * linux-nat.c: Add support for debugging multiple forks.
892 Add #include for linux-fork.h (interface spec).
893 (super_mourn_inferior): New function pointer.
894 (child_mourn_inferior): New function / target method.
895 (linux_target): Claim to_mourn_inferior method pointer.
896 (child_follow_fork): Call interface to linux-fork, conditionally
897 add new fork processes to list of debugged processes.
898 (kill_inferior): Use interface to linux-fork to kill
899 multiple processes.
900
901 * linux-fork.h: New file.
902 * linux-fork.c: New file. Support for debugging multiple forks
903 of the same program. Support for checkpoint and restart commands.
904
905 * infrun.c (nullify_last_target_wait_ptid): New function.
906
907 * Makefile.in: Add linux-fork.
908 * config/*/linux.mh: Add linux-fork.
909 * NEWS: Mention new functionality.
910
f98ce7c2
PH
9112006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
912
913 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
914 Change uses of "illegal" to "invalid".
915
52ce6436
PH
9162006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
917
918 * ada-exp.y: Considerable reorganization to move functionality
919 from ada-lex.l to here, where it is logically more appropriate.
920 The original reason, however, was to prevent premature name
921 lookups for selector names in record aggregates.
922 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
923 NAME for all of these.
924 (VAR): New artificial token to clarify precedence rules.
925 (OTHERS): New lexeme.
926 (empty_stoken): New symbol.
927 (%union): Remove ssym, voidval.
928 (%type): Remove <voidval> type declarations.
929 (syntax definitions): Add aggregates.
930 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
931 Rename some non-terminals to be closer to reference manual usage.
932 Tighten up expression syntax to disallow certain non-Ada
933 constructions such as X and then Y or else Z.
934 (ada_parse): Remove initialization of left_block_context.
935 (write_var_from_name): Remove.
936 (write_var_or_type): New function, containing previous code from
937 defunct write_var_from_name and name_lookup.
938 (block_lookup): New function, moved from ada-lex.l
939 (select_possible_type_sym): New function, factored out of
940 name_lookup, which used to be in ada-lex.l.
941 (find_primitive_type): Ditto.
942 (chop_selector): Ditto.
943 (write_ambiguous_var): New function, factored out of defunct
944 write_var_from_name.
945 (write_selectors): New function.
946 (write_name_assoc): New function.
947 (write_exp_op_with_string): New function.
948
949 * ada-lex.l (processId): Change interface to return stoken.
950 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
951 (block_lookup, name_lookup): Remove. Functionality moved to
952 ada-exp.y.
953 (state IN_STRING): Remove.
954 (rules): Handle string escapes in processString.
955 Add 'others' token.
956 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
957 yylval.sval (as simple strings).
958 All name look-ups now handled in ada-exp.y.
959 Introduce "::" (COLONCOLON) token and return as separate token.
960 (processId): Change return convention. Comment.
961 Leave leading "'" in place.
962 (processString): New function.
963 (find_dot_all): Add note to comment.
964 Fix problem that allowed match only at the end.
965
966 * ada-lang.c: Introduce aggregates.
967 (find_struct_field): Add new parameter to count fields skipped, and
968 allow other output parameters to be NULL.
969 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
970 new find_struct_field.
971 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
972 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
973 (num_component_specs, assign_component, assign_aggregate):
974 (aggregate_assign_from_choices,aggregate_assign_positional)
975 (aggregate_assign_others,add_component_interval):
976 New functions.
977 (ada_evaluate_subexp): Declare.
978 Add aggregate-related operators.
979 (ada_forward_operator_length): Declare.
980 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
981 Consolidate Ada operators, using ada_forward_operator_length.
982 (ada_search_struct_field): Search in forward order.
983 (ADA_OPERATORS): Add new aggregate operators.
984 (ada_operator_length, ada_op_name, ada_forward_operator_length)
985 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
986 operators and OP_NAME.
987 (ada_type_of_array): Use longest_to_int.
988 (value_assign_to_component): New function.
989 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
990 Add OP_NAME case.
991 (ada_forward_operator_length, ada_dump_subexp_body):
992 Add OP_STRING case.
993
994 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
995 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
996
529cad9c
PH
9972006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
998
999 * ada-lang.c (process_raise_exception_name): Remove extraneous
1000 definition from unsubmitted code.
1001
1002 (is_lower_alphanum): New function.
1003 (ada_decode): Add support for decoding protected object subprograms
1004 and entries, and of entities declared inside protected object
1005 subprograms.
1006 Also add missing handling for__{DIGITS}+ suffixes.
1007 Allow '$<digits>' as valid overloading suffix.
1008 (is_name_suffix): Add handling for protected type entriy suffixes.
1009 Also add support for protected type subprogram suffixes, but keep
1010 it commented out for now, as there is an ambiguity between these
1011 entities and other internally generated entities.
1012 Allow '$<digits>' as valid overloading suffix.
1013 (is_valid_name_for_wild_match): New function.
1014 (wild_match): Add an exra level of verification of the entity name
1015 before declaring it a match for the given pattern.
1016
1017 (ada_type_of_array, ada_evaluate_subexp): Use more proper
1018 longest_to_int rather than cast.
1019
1020 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
1021
1022 (ada_coerce_to_simple_array): Call check_size to make sure
1023 that the object size is reasonable.
1024
1025 (ada_value_primitive_packed_val): Use correct location in target
1026 buffer for extracting packed record fields that are themselves records.
1027
1028 (add_defn_to_vec): Do not try to replace a stub type by its full
1029 type. Avoids a potential infinite loop.
1030
1031 (ada_lookup_symbol): Move return incorrectly placed return statement,
1032 causing a loop that should be scanning all object files to only
1033 scan the first one.
1034
1035 (ada_tag_name_2): New function.
1036 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
1037 use alternative representation.
1038
1039 (ada_find_renaming_symbol): Strip the function name suffix when
1040 computing the XR type name.
1041
1042 (ada_to_fixed_type): Try determining the tag only if we have the
1043 object's address.
1044 (to_fixed_array_type): Add comments.
1045
1046 (ada_check_typedef): Replace expression checking whether the given
1047 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
1048 consistent.
1049
1050 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
1051 '$' in addition to '.' for runtime auxiliary function name suffixes.
1052 See changes to ada_decode above.
1053
1054 (struct task_control_block): Add field called_task. (This change is
1055 to keep synchronized with our local sources; it does not affect the
1056 public version yet.)
1057
1058 * ada-typeprint.c (ada_print_type): Use int_string for printing
1059 modulus of modular type.
1060
1061 (print_range): Trivial editorial comment fix.
1062
1063 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
1064 double quote in string.
1065
9b799fe6
JB
10662006-01-01 Joel Brobecker <brobecker@adacore.com>
1067
1068 * top.c: Add 2006 to list of copyright years in file header.
1069
0bee0712
JB
10702006-01-01 Joel Brobecker <brobecker@adacore.com>
1071
1072 * top.c (print_gdb_version): Update copyright year to 2006.
1073
13c763f4
JB
10742006-01-01 Roger Sayle <roger@eyesopen.com>
1075 Elena Zannoni <ezannoni@redhat.com>
1076
1077 PR symtab/1651
1078 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
1079 for NULL before assigning this_symtab_psymtab->objfile to objfile.
1080 (scan_xcoff_symtab): Initialize next_symbol_text_func.
1081 (Committed by Jim Blandy)
1082
e50f0da1 1083For older changes see ChangeLog-2005.
c906108c
SS
1084\f
1085Local Variables:
1086mode: change-log
1087left-margin: 8
1088fill-column: 74
1089version-control: never
1090End:
This page took 0.7683 seconds and 4 git commands to generate.