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