1 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
4 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
5 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
6 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
7 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
8 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
9 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
10 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
11 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
12 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
13 add to_region_ok_for_hw_watchpoint.
14 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
15 (s390_region_ok_for_hw_watchpoint): New.
16 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
17 and add to_region_ok_for_hw_watchpoint.
18 * target.c (default_region_size_ok_for_hw_watchpoint,
19 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
20 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
21 inheritance and default_region_size_ok_for_hw_watchpoint.
22 (default_region_ok_for_hw_watchpoint): If len is less than or equal
23 the length of void pointer, return ok.
24 (default_region_size_ok_for_hw_watchpoint): Delete.
25 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
26 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
27 * target.h (struct target_ops): Delete
28 to_region_size_ok_for_hw_watchpoint.
29 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
31 2006-02-08 Ben Elliston <bje@au1.ibm.com>
32 Wu Zhou <woodzltc@cn.ibm.com>
34 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
35 PTRACE_GETSIGINFO): Define.
36 (last_stopped_data_address): New.
37 (ppc_linux_check_watch_resources): New function.
38 (ppc_linux_region_ok_for_hw_watchpoint): New function.
39 (ppc_linux_insert_watchpoint): New function.
40 (ppc_linux_remove_watchpoint): New function.
41 (ppc_linux_stopped_data_address): New function.
42 (ppc_linux_stopped_by_watchpoint): New function.
43 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
44 related target vectors.
45 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
46 to have nonsteppable watchpoint.
47 * target.c (default_region_ok_for_hw_watchpoint,
48 debug_to_region_ok_for_hw_watchpoint): New prototypes.
49 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
50 and set default to_region_ok_for_hw_watchpoint.
51 (default_region_ok_for_hw_watchpoint): New function.
52 (debug_to_region_ok_for_hw_watchpoint): New function.
53 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
55 * target.h (struct target_ops): Add a new target vector
56 to_region_ok_for_hw_watchpoint.
57 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
58 defined anyplace else.
60 2005-02-07 Joel Brobecker <brobecker@adacore.com>
61 * symfile.c (add_symbol_file_command): Abort if the user forgot
62 to provide the address when the file has been loaded.
64 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
66 * MAINTAINERS: Update file based on maintainers survey. Add
67 a note to Past Maintainers. Move unresponsive or inactive
68 maintainers to Authorized Committers or Past Maintainers as
69 appropriate. Correct Jim Kingdon's email address. Remove
70 vacant areas of responsibility.
72 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
74 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
77 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
79 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
80 * exceptions.c (exception_none, exceptions_state_mc_init)
81 (throw_vfatal): Use GDB_NO_ERROR.
83 2006-02-02 Mark Kettenis <kettenis@gnu.org>
85 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
86 r_map_size members. Add r_version_offset, r_version_size and
87 r_ldsomap_offset members.
88 * solib-svr4.c (solib_svr4_r_map): Renamed from
89 fetch_link_map_member. Simplify using read_memory_typed_address.
90 (solib_svr4_r_ldsomap): New function.
91 (open_symbol_file_object): Use solib_svr_r_map.
92 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
93 linker by using solib_svr4_r_ldsomap.
94 (svr4_ilp32_fetch_link_map_offsets)
95 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
97 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
98 changes to `struct link_map_offsets'.
99 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
100 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
101 `struct link_map_offsets'.
103 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
105 * linux-nat.c (struct saved_ptids, threads_to_delete)
106 (record_dead_thread, prune_lwps, find_thread_from_lwp)
108 (linux_nat_resume): Call prune_lwps.
109 (wait_lwp, linux_nat_wait): Call exit_lwp.
111 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
113 * printcmd.c (printf_command): Make format string checking
114 stricter. Add separate cases for long_arg, ptr_arg, and
116 * utils.c (xstrvprintf): Improve the error message issued
117 for a bad format string.
118 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
120 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
122 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
125 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
127 * Makefile.in (remote.o): Update.
128 * remote.c (show_packet_config_cmd): Shorten messages.
129 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
130 (show_remote_cmd): Iterate.
131 (_initialize_remote): Remove remote_set_cmdlist,
134 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
136 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
137 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
139 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
140 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
141 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
143 * gdbtypes.c: Include "hashtab.h".
144 (build_gdbtypes): Remove extra prototype.
145 (struct type_pair, type_pair_hash, type_pair_eq)
146 (create_copied_types_hash, copy_type_recursive): New.
147 * gdbtypes.h: Include "hashtab.h".
149 (create_copied_types_hash, copy_type_recursive): New prototypes.
150 * objfiles.c (free_objfile): Call preserve_values.
151 * symfile.c (reread_symbols): Likewise.
152 (clear_symtab_users): Remove calls to clear_value_history and
154 * value.c (clear_value_history, clear_internalvars): Removed.
155 (preserve_one_value, preserve_values): New functions.
156 * value.h (clear_value_history, clear_internalvars): Removed.
157 (preserve_values): New prototype.
159 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
162 2006-01-29 Mark Kettenis <kettenis@gnu.org>
164 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
167 2006-01-27 Joel Brobecker <brobecker@adacore.com>
169 * MAINTAINERS: Use a consistent email address for brobecker.
171 2006-01-27 Joel Brobecker <brobecker@adacore.com>
173 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
174 in the previous change.
176 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
179 * fork-child.c (fork_inferior): Don't call
180 solib_create_inferior_hook.
181 * infcmd.c (post_create_inferior): Call solib_add,
182 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
183 (attach_command): Don't call solib_add or
184 re_enable_breakpoints_in_shlibs. Call post_create_inferior
186 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
187 or observer_notify_inferior_created. Call post_create_inferior
189 * corelow.c: Don't include "observer.h".
190 (solib_add_stub): Deleted.
191 (core_open): Don't call observer_notify_inferior_created or
192 solib_add_stub. Call post_create_inferior instead.
193 * inf-ptrace.c: Don't include "observer.h".
194 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
195 * inf-ttrace.c: Don't include "observer.h".
196 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
197 * inferior.h (solib_create_inferior_hook): Remove redundant
199 * inftarg.c: Don't include "observer.h".
200 (child_attach): Don't call observer_notify_inferior_created.
201 * Makefile.in: Update dependencies.
203 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
205 * infcmd.c: Include "observer.h".
206 (post_create_inferior): New function.
207 (run_command_1): Call it. Also call proceed.
208 * inferior.h (post_create_inferior): New prototype.
209 * Makefile.in (infcmd.o): Update.
211 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
212 * go32-nat.c (go32_create_inferior): Likewise.
213 * nto-procfs.c (procfs_create_inferior): Likewise.
214 * procfs.c (procfs_create_inferior): Likewise.
215 * remote-sim.c (gdbsim_create_inferior): Likewise.
216 * remote.c (extended_remote_create_inferior)
217 (extended_remote_async_create_inferior): Likewise.
218 * win32-nat.c (win32_create_inferior): Likewise.
219 * wince.c (child_create_inferior): Likewise.
221 * monitor.c (monitor_create_inferior): Don't call proceed.
223 * ocd.c (ocd_create_inferior): Likewise.
224 * remote-e7000.c (e7000_create_inferior): Likewise.
225 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
226 * remote-mips.c (mips_create_inferior): Likewise.
227 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
228 * remote-sds.c (sds_create_inferior): Likewise.
229 * remote-st.c (st2000_create_inferior): Likewise.
231 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
232 proceed or observer_notify_inferior_created.
233 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
234 * inftarg.c (child_create_inferior): Likewise.
236 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
238 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
239 after mourning the inferior.
241 2006-01-24 Jim Blandy <jimb@redhat.com>
243 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
245 2006-01-24 Fred Fish <fnf@specifix.com>
247 * parse.c (source.h): Include.
248 (parse_exp_in_context): Use static source context if no
251 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
253 * sh-tdep.c: Include reggroups.h.
254 (sh_register_reggroup_p): New function.
255 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
256 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
258 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
260 * cli/cli-cmds.c: Include fcntl.h.
261 (source_command): Use the GDB search path to find script files.
263 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
266 Suggested by Till Straumann <strauman@slac.stanford.edu>:
267 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
268 instructions. Handle PIC bcl.
270 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
272 * config/djgpp/README: Typo fix.
273 * config/djgpp/fnchange.lst: Update.
275 2006-01-22 Mark Kettenis <kettenis@gnu.org>
277 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
278 (sparc_address_from_register): New prototype.
279 (sparcnbsd_step_trap): New prototype.
280 * sparc-tdep.c (sparc_address_from_register): Make globally
282 (sparc_analyze_control_transfer): Change prototype to accept
283 `struct gdbarch *' as first argument. Allow for optional hnadling
284 for trap instructions.
285 (sparc_step_trap): New function.
286 (sparc_software_single_step): Adjust call to
287 sparc_analyze_control_trabsfer.
288 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
289 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
290 (sparc32nbsd_init_abi): Set TDEP->step_trap.
291 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
292 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
294 * sparc-tdep.c (sparc32_return_value): Convert to use
295 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
296 RETURN_VALUE_STRUCT_CONVENTION.
297 (sparc32_extract_struct_value_address): Remove.
299 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
301 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
302 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
304 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
306 * solib.c (info_sharedlibrary_command): Avoid internal_error.
308 2006-01-21 Mark Kettenis <kettenis@gnu.org>
310 * i386-tdep.c (i386_mxcsr_type): New variable.
311 (i386_init_types): Initialize i386_mxcsr_type.
312 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
313 * i386-tdep.c (i386_mxcsr_type): New extern.
314 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
317 2006-01-20 Mark Mitchell <mark@codesourcery.com>
319 * Makefile.in (remote-rdi.o): Remove.
320 (rdi-share/libangsd.a): Likewise.
321 * README: Don't mention remote-rdi.c.
322 * NEWS: Mention removal of rdi-share.
323 * configure.ac: Don't configure rdi-share subdirectory.
324 * remote-rdi.c: Remove.
325 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
326 (TDEPLIBS): Remove rdi-share/libangsd.a.
327 * rdi-share/Makefile.am: Remove.
328 * rdi-share/Makefile.in: Likewise.
329 * rdi-share/README.CYGNUS: Likewise.
330 * rdi-share/aclocal.m4: Likewise.
331 * rdi-share/adp.h: Likewise.
332 * rdi-share/adperr.h: Likewise.
333 * rdi-share/angel.h: Likewise.
334 * rdi-share/angel_bytesex.c: Likewise.
335 * rdi-share/angel_bytesex.h: Likewise.
336 * rdi-share/angel_endian.h: Likewise.
337 * rdi-share/ardi.c: Likewise.
338 * rdi-share/ardi.h: Likewise.
339 * rdi-share/armdbg.h: Likewise.
340 * rdi-share/buffers.h: Likewise.
341 * rdi-share/chandefs.h: Likewise.
342 * rdi-share/channels.h: Likewise.
343 * rdi-share/chanpriv.h: Likewise.
344 * rdi-share/configure: Likewise.
345 * rdi-share/configure.in: Likewise.
346 * rdi-share/crc.c: Likewise.
347 * rdi-share/crc.h: Likewise.
348 * rdi-share/dbg_conf.h: Likewise.
349 * rdi-share/dbg_cp.h: Likewise.
350 * rdi-share/dbg_hif.h: Likewise.
351 * rdi-share/dbg_rdi.h: Likewise.
352 * rdi-share/devclnt.h: Likewise.
353 * rdi-share/devices.h: Likewise.
354 * rdi-share/devsw.c: Likewise.
355 * rdi-share/devsw.h: Likewise.
356 * rdi-share/drivers.c: Likewise.
357 * rdi-share/drivers.h: Likewise.
358 * rdi-share/etherdrv.c: Likewise.
359 * rdi-share/ethernet.h: Likewise.
360 * rdi-share/host.h: Likewise.
361 * rdi-share/hostchan.c: Likewise.
362 * rdi-share/hostchan.h: Likewise.
363 * rdi-share/hsys.c: Likewise.
364 * rdi-share/hsys.h: Likewise.
365 * rdi-share/logging.c: Likewise.
366 * rdi-share/logging.h: Likewise.
367 * rdi-share/msgbuild.c: Likewise.
368 * rdi-share/msgbuild.h: Likewise.
369 * rdi-share/params.c: Likewise.
370 * rdi-share/params.h: Likewise.
371 * rdi-share/rx.c: Likewise.
372 * rdi-share/rxtx.h: Likewise.
373 * rdi-share/serdrv.c: Likewise.
374 * rdi-share/serpardr.c: Likewise.
375 * rdi-share/sys.h: Likewise.
376 * rdi-share/tx.c: Likewise.
377 * rdi-share/unixcomm.c: Likewise.
378 * rdi-share/unixcomm.h: Likewise.
380 2006-01-21 Mark Kettenis <kettenis@gnu.org>
382 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
383 Change type of last argument to `gdb_byte *'.
385 2006-01-20 Mark Kettenis <kettenis@gnu.org>
387 * hppa-tdep.h (hppa_in_solib_call_trampoline)
388 (hppa_skip_trampoline_code): New prototypes.
389 * hppa-tdep.c (struct insn_pattern): New.
390 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
391 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
392 here from hppa-linux-tdep.c
393 (HPPA_MAX_INSN_PATTERN_LEN): New define.
394 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
395 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
396 functions based on functions removed from hppa-linux-tdep.c.
397 * hppa-linux-tdep.c (hppa_long_branch_stub)
398 (hppa_long_branch_pic_stub, hppa_import_stub)
399 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
400 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
401 (hppa_linux_in_solib_call_trampoline)
402 (hppa_linux_skip_trampoline_code): Removed.
403 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
404 hppa_in_solib_call_trampoline and skip_trampoline_code to
405 hppa_skip_trampoline_code.
406 * hppabsd-tdep.c (hppabsd_init_abi): Set
407 TDEP->in_solib_call_trampoline and skip_trampoline_code.
409 2006-01-20 Jim Blandy <jimb@redhat.com>
411 * MAINTAINERS: Change my E-mail address.
413 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
414 * configure: Regenerated.
416 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
418 * MAINTAINERS: Overhaul.
420 2006-01-18 Mark Kettenis <kettenis@gnu.org>
422 Based on a previous patch form Michal Ludvig:
423 * amd64-tdep.c (amd64_sse_type): Remove.
424 (amd64_register_info): Use i386_eflags_type and i386_sse_type
426 (AMD64_NUM_REGS): Use ARRAY_SIZE.
427 (amd64_register_type): Remove code to build amd_sse_type.
428 * i386-tdep.c (i386_eflag_type): New variable.
429 (i386_mmx_type, i386_sse_type): Make global.
430 (i386_init_types): New function.
431 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
432 (i386_register_type): Return i386_eflag_type, i386_sse_type and
433 i386_mmx_type when appropriate.
434 (_initialize_i386_tdep): Call i386_init_types.
435 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
438 Based on a previous patch form Michal Ludvig:
439 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
441 (is_integral_type, rank_one_type, recursive_dump_type): Add
442 support for TYPE_CODE_FLAGS.
443 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
444 (append_flags_type_field, init_flags_type): New prototypes.
445 * ada-valprint.c (ada_val_print_1): Add support for
447 * c-valprint.c (c_val_print): Likewise.
448 * f-valprint.c (f_val_print): Likewise.
449 * p-valprint.c (pascal_val_print): Likewise.
450 * valprint.c (val_print_type_code_flags): New function.
451 * valprint.h (val_print_type_code_flags): New prototype.
452 * value.c (unpack_long, value_from_longest): Add support for
455 2006-01-17 Christopher Faylor <cgf@timesys.com>
457 * MAINTAINERS: Very belatedly remove myself from from the list of
458 people caught up in the paper trail.
460 2006-01-17 Jim Blandy <jimb@redhat.com>
462 * symtab.h (struct general_symbol_info): Use gdb_byte for
464 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
465 a floating-point constant's value.
466 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
468 * findvar.c (read_var_value): Eliminate needless temporary.
470 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
471 to match prior change to dwarf2_read_section's type.
473 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
475 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
476 * rs6000-tdep.c (insn_changes_sp_or_jumps)
477 (rs6000_in_function_epilogue_p): New functions.
478 (rs6000_gdbarch_init): Set in_function_epilogue_p.
480 2006-01-17 Jim Blandy <jimb@redhat.com>
482 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
483 (struct line_header, struct partial_die_info, struct dwarf_block):
484 Use gdb_byte for members that refer to Dwarf section contents.
485 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
486 dwarf_decode_macros, load_comp_unit, load_partial_dies,
487 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
488 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
489 read_8_bytes, read_address, read_attribute, read_attribute_value,
490 read_comp_unit, read_comp_unit_head, read_die_and_children,
491 read_die_and_siblings, read_full_die, read_indirect_string,
492 read_initial_length, read_n_bytes, read_offset, read_partial_die,
493 read_signed_leb128, read_string, read_unsigned_leb128,
494 skip_children, skip_leb128, skip_one_die): Same.
496 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
498 * complaints.c (stop_whining): Make signed.
499 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
501 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
503 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
506 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
508 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
509 (read_offset): Change BYTES_READ argument to unsigned int.
510 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
511 (create_all_comp_units, dwarf2_get_pc_bounds)
512 (dwarf_decode_line_header, var_decode_location)
513 (dwarf_decode_macros): Change local BYTES_READ variables to
515 (read_indirect_string): Remove obsolete cast.
517 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
519 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
521 (remote_fileio_func_open, remote_fileio_func_rename)
522 (remote_fileio_func_unlink, remote_fileio_func_stat)
523 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
524 (remote_fileio_func_system): Cast the arguments to
525 remote_read_bytes and remote_write_bytes.
526 (remote_fileio_func_read, remote_fileio_func_write): Use a
528 * remote.h (remote_read_bytes, remote_write_bytes): Update
530 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
531 (threadref_to_int): Replace bogus char * cast.
532 (remote_unpack_thread_info_response): Use int for tag.
533 (remote_threads_extra_info, remote_check_symbols): Cast string
534 arguments to hex2bin.
535 (remote_wait): Use a char buffer for packets and a gdb_byte
536 buffer for registers.
537 (remote_async_wait): Likewise.
538 (remote_prepare_to_store, store_register_using_P)
539 (remote_store_registers): Use gdb_byte buffers.
540 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
541 for MYADDR and char buffers for strings.
542 (remote_xfer_partial): Add casts for string operations on READBUF.
543 (remote_rcmd): Cast strings passed to bin2hex.
545 2006-01-16 Mark Mitchell <mark@codesourcery.com>
547 * aclocal.m4: Regenerate.
549 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
551 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
552 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
553 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
554 (mt_register_name): Lazily synthesize name for coprocessor pseudo
556 (mt_copro_register_type): New. Broken out of ...
557 (mt_register_type): ... here. Use it. Deal with coprocessor
559 (mt_select_coprocessor): New.
560 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
561 coprocessor pseudo array.
563 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
565 * breakpoint.c (insert_breakpoints): Check that a thread exists
566 before inserting thread specific breakpoints.
568 2006-01-15 Mark Kettenis <kettenis@gnu.org>
570 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
573 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
574 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
575 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
576 * config/alpha/nm-nbsd.h: Remove file.
577 * config/alpha/nm-fbsd.h: Remove file
578 * config/alpha/nbsd.mh (NAT_FILE): Remove.
579 * config/alpha/fbsd.mh (NAT_FILE): Remove.
581 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
583 * macroexp.c (expand): Initialize argc.
584 * stabsread.c (read_type): Handle errors from read_args.
585 (read_args): Return NULL for errors.
587 2006-01-15 Mark Kettenis <kettenis@gnu.org>
589 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
590 strcmp to compare string to a byte buffer.
592 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
594 * printcmd.c (output_command): Always initialize fmt.size.
595 (printf_command): Use gdb_byte.
596 * symfile.c (separate_debug_file_exists): Use gdb_byte.
597 (load_section_callback, read_target_long_array): Likewise.
598 (simple_read_overlay_table, simple_read_overlay_region_table)
599 (simple_overlay_update_1): Correct calls to read_target_long_array.
600 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
601 Also change local pointers.
602 (val_print_string): Use gdb_byte.
604 2006-01-15 Mark Kettenis <kettenis@gnu.org>
606 * alphafbsd-tdep.c: Include "solib-svr4.h".
607 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
608 svr4_lp64_fetch_link_map_offsets.
609 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
610 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
612 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
614 * config/alpha/nm-fbsd.h: Don't include "solib.h".
616 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
618 * source.c (_initialize_source): Use add_setshow_integer_cmd.
620 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
622 * linux-fork.c (delete_fork_command, detach_fork_command): Use
625 2006-01-15 Mark Kettenis <kettenis@gnu.org>
627 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
629 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
630 svr4_ilp32_fetch_link_map_offsets.
631 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
633 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
634 svr4_ilp32_fetch_link_map_offsets.
635 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
636 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
637 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
638 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
640 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
641 Simply call svr4_ilp32_fetch_link_map_offsets.
642 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
643 svr4_lp64_fetch_link_map_offsets.
644 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
646 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
647 svr4_ilp32_fetch_link_map_offsets.
648 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
649 (s390x_svr4_fetch_link_map_offsets): Remove functions.
650 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
651 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
654 2006-01-15 Mark Kettenis <kettenis@gnu.org>
656 * arm-tdep.c (arm_return_value): Change type of readbuf and
657 writebuf arguments to `gdb_byte *'.
659 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
660 * Makefile.in (s390-tdep.o): Update dependencies.
662 2006-01-14 Mark Kettenis <kettenis@gnu.org>
664 * sol2-tdep.h. sol2-tdep.c: New files.
665 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
666 (amd64_sol2_init_abi): Set skip_solib_resolver.
667 * i386-sol2-tdep.c: Include "sol2-tdep.h".
668 (i386_sol2_init_abi): Set skip_solib_resolver.
669 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
670 (sparc32_sol2_init_abi): Set skip_solib_resolver.
671 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
672 (sparc64_sol2_init_abi): Set skip_solib_resolver.
673 * Makefile.in (sol2_tdep_h): New variable.
674 (ALLDEPFILES): Add sol2-tdep.c.
675 (sol2-tdep.o): New target.
676 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
677 (sparc64-sol2-tdep.o): Update dependencies
678 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
679 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
680 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
681 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
683 * hppa-linux-tdep.c: Fix copyright indentation.
685 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
686 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
687 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
689 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
690 floating-point registers.
692 2006-01-13 Mark Mitchell <mark@codesourcery.com>
694 * event-loop.c (gdb_select): Detect file descriptors that have
697 2006-01-13 Mark Kettenis <kettenis@gnu.org>
699 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
700 and long_double_format accordingly.
702 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
704 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
705 translation problems.
706 * ada-lang.c (ada_value_struct_elt): Change interface and handling
707 of errors to avoid translation problem (and less than optimal error
709 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
710 Use new interface to ada_value_struct_elt.
711 * ada_lang.h (ada_value_struct_elt): Update declaration to new
714 * ChangeLog: remove reference to ada-tasks.c from entry of
717 2006-01-11 Mark Kettenis <kettenis@gnu.org>
719 * remote.c (get_memory_packet_size, set_thread)
720 (remote_unpack_thread_info_response, remote_get_threadinfo)
721 (parse_threadlist_response, remote_get_threadlist)
722 (remote_current_thread, remote_threads_info)
723 (remote_threads_extra_info, extended_remote_restart, get_offsets)
724 (remote_check_symbols, remote_open_1, remote_detach)
725 (remote_async_wait, remote_fetch_registers)
726 (remote_store_registers, check_binary_download, putpkt_binary)
727 (remote_insert_breakpoint, remote_insert_watchpoint)
728 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
729 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
730 (packet_command): Remove redundant parenthesis.
732 2006-01-10 Mark Kettenis <kettenis@gnu.org>
734 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
735 (read_memory_typed_address, write_memory)
736 (write_memory_unsigned_integer, write_memory_signed_integer): Use
737 gdb_byte where appropriate.
739 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
742 * target.h (target_read_memory_partial, target_write_memory_partial):
743 Change second argument to 'gdb_byte *'.
744 * target.c (target_xfer_memory_partial): Change third argument to
746 (target_read_memory_partial, target_write_memory_partial): Change
747 second argument to 'gdb_byte *'.
749 * linespec.c (decode_objc): Make i1 and i2 unsigned.
750 (find_method): Set values.sals to NULL.
752 2006-01-09 Mark Kettenis <kettenis@gnu.org>
754 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
757 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
759 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
760 * ada-lang.c: I18n markup.
761 Editorial: change "can not" => "cannot" throughout.
763 2006-01-07 Mark Kettenis <kettenis@gnu.org>
765 * Makefile.in: Sort dependencies.
767 2006-01-07 Eli Zaretskii <eliz@gnu.org>
769 * top.c (control_level): Remove unused variable.
771 2006-01-06 Fred Fish <fnf@specifix.com>
773 * objfiles.c (source.h): Include.
774 (free_objfile): Update comment about clear_symtab_users().
775 (free_objfile): Check all symtabs of objfile being freed and if
776 one of them is the current source symtab, call
777 clear_current_source_symtab_and_line().
779 2006-01-04 Michael Snyder <msnyder@redhat.com>
781 Checkpoint/Restart for Linux.
782 * linux-nat.c: Add support for debugging multiple forks.
783 Add #include for linux-fork.h (interface spec).
784 (super_mourn_inferior): New function pointer.
785 (child_mourn_inferior): New function / target method.
786 (linux_target): Claim to_mourn_inferior method pointer.
787 (child_follow_fork): Call interface to linux-fork, conditionally
788 add new fork processes to list of debugged processes.
789 (kill_inferior): Use interface to linux-fork to kill
792 * linux-fork.h: New file.
793 * linux-fork.c: New file. Support for debugging multiple forks
794 of the same program. Support for checkpoint and restart commands.
796 * infrun.c (nullify_last_target_wait_ptid): New function.
798 * Makefile.in: Add linux-fork.
799 * config/*/linux.mh: Add linux-fork.
800 * NEWS: Mention new functionality.
802 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
804 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
805 Change uses of "illegal" to "invalid".
807 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
809 * ada-exp.y: Considerable reorganization to move functionality
810 from ada-lex.l to here, where it is logically more appropriate.
811 The original reason, however, was to prevent premature name
812 lookups for selector names in record aggregates.
813 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
814 NAME for all of these.
815 (VAR): New artificial token to clarify precedence rules.
816 (OTHERS): New lexeme.
817 (empty_stoken): New symbol.
818 (%union): Remove ssym, voidval.
819 (%type): Remove <voidval> type declarations.
820 (syntax definitions): Add aggregates.
821 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
822 Rename some non-terminals to be closer to reference manual usage.
823 Tighten up expression syntax to disallow certain non-Ada
824 constructions such as X and then Y or else Z.
825 (ada_parse): Remove initialization of left_block_context.
826 (write_var_from_name): Remove.
827 (write_var_or_type): New function, containing previous code from
828 defunct write_var_from_name and name_lookup.
829 (block_lookup): New function, moved from ada-lex.l
830 (select_possible_type_sym): New function, factored out of
831 name_lookup, which used to be in ada-lex.l.
832 (find_primitive_type): Ditto.
833 (chop_selector): Ditto.
834 (write_ambiguous_var): New function, factored out of defunct
836 (write_selectors): New function.
837 (write_name_assoc): New function.
838 (write_exp_op_with_string): New function.
840 * ada-lex.l (processId): Change interface to return stoken.
841 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
842 (block_lookup, name_lookup): Remove. Functionality moved to
844 (state IN_STRING): Remove.
845 (rules): Handle string escapes in processString.
847 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
848 yylval.sval (as simple strings).
849 All name look-ups now handled in ada-exp.y.
850 Introduce "::" (COLONCOLON) token and return as separate token.
851 (processId): Change return convention. Comment.
852 Leave leading "'" in place.
853 (processString): New function.
854 (find_dot_all): Add note to comment.
855 Fix problem that allowed match only at the end.
857 * ada-lang.c: Introduce aggregates.
858 (find_struct_field): Add new parameter to count fields skipped, and
859 allow other output parameters to be NULL.
860 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
861 new find_struct_field.
862 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
863 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
864 (num_component_specs, assign_component, assign_aggregate):
865 (aggregate_assign_from_choices,aggregate_assign_positional)
866 (aggregate_assign_others,add_component_interval):
868 (ada_evaluate_subexp): Declare.
869 Add aggregate-related operators.
870 (ada_forward_operator_length): Declare.
871 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
872 Consolidate Ada operators, using ada_forward_operator_length.
873 (ada_search_struct_field): Search in forward order.
874 (ADA_OPERATORS): Add new aggregate operators.
875 (ada_operator_length, ada_op_name, ada_forward_operator_length)
876 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
877 operators and OP_NAME.
878 (ada_type_of_array): Use longest_to_int.
879 (value_assign_to_component): New function.
880 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
882 (ada_forward_operator_length, ada_dump_subexp_body):
885 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
886 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
888 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
890 * ada-lang.c (process_raise_exception_name): Remove extraneous
891 definition from unsubmitted code.
893 (is_lower_alphanum): New function.
894 (ada_decode): Add support for decoding protected object subprograms
895 and entries, and of entities declared inside protected object
897 Also add missing handling for__{DIGITS}+ suffixes.
898 Allow '$<digits>' as valid overloading suffix.
899 (is_name_suffix): Add handling for protected type entriy suffixes.
900 Also add support for protected type subprogram suffixes, but keep
901 it commented out for now, as there is an ambiguity between these
902 entities and other internally generated entities.
903 Allow '$<digits>' as valid overloading suffix.
904 (is_valid_name_for_wild_match): New function.
905 (wild_match): Add an exra level of verification of the entity name
906 before declaring it a match for the given pattern.
908 (ada_type_of_array, ada_evaluate_subexp): Use more proper
909 longest_to_int rather than cast.
911 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
913 (ada_coerce_to_simple_array): Call check_size to make sure
914 that the object size is reasonable.
916 (ada_value_primitive_packed_val): Use correct location in target
917 buffer for extracting packed record fields that are themselves records.
919 (add_defn_to_vec): Do not try to replace a stub type by its full
920 type. Avoids a potential infinite loop.
922 (ada_lookup_symbol): Move return incorrectly placed return statement,
923 causing a loop that should be scanning all object files to only
926 (ada_tag_name_2): New function.
927 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
928 use alternative representation.
930 (ada_find_renaming_symbol): Strip the function name suffix when
931 computing the XR type name.
933 (ada_to_fixed_type): Try determining the tag only if we have the
935 (to_fixed_array_type): Add comments.
937 (ada_check_typedef): Replace expression checking whether the given
938 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
941 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
942 '$' in addition to '.' for runtime auxiliary function name suffixes.
943 See changes to ada_decode above.
945 (struct task_control_block): Add field called_task. (This change is
946 to keep synchronized with our local sources; it does not affect the
949 * ada-typeprint.c (ada_print_type): Use int_string for printing
950 modulus of modular type.
952 (print_range): Trivial editorial comment fix.
954 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
955 double quote in string.
957 2006-01-01 Joel Brobecker <brobecker@adacore.com>
959 * top.c: Add 2006 to list of copyright years in file header.
961 2006-01-01 Joel Brobecker <brobecker@adacore.com>
963 * top.c (print_gdb_version): Update copyright year to 2006.
965 2006-01-01 Roger Sayle <roger@eyesopen.com>
966 Elena Zannoni <ezannoni@redhat.com>
969 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
970 for NULL before assigning this_symtab_psymtab->objfile to objfile.
971 (scan_xcoff_symtab): Initialize next_symbol_text_func.
972 (Committed by Jim Blandy)
974 For older changes see ChangeLog-2005.
980 version-control: never