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