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