* amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2006-01-29 Mark Kettenis <kettenis@gnu.org>
2
3 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
4 Fixes PR tdep/2075.
5
6 2006-01-27 Joel Brobecker <brobecker@adacore.com>
7
8 * MAINTAINERS: Use a consistent email address for brobecker.
9
10 2006-01-27 Joel Brobecker <brobecker@adacore.com>
11
12 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
13 in the previous change.
14
15 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
16
17 PR gdb/1914
18 * fork-child.c (fork_inferior): Don't call
19 solib_create_inferior_hook.
20 * infcmd.c (post_create_inferior): Call solib_add,
21 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
22 (attach_command): Don't call solib_add or
23 re_enable_breakpoints_in_shlibs. Call post_create_inferior
24 instead.
25 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
26 or observer_notify_inferior_created. Call post_create_inferior
27 instead.
28 * corelow.c: Don't include "observer.h".
29 (solib_add_stub): Deleted.
30 (core_open): Don't call observer_notify_inferior_created or
31 solib_add_stub. Call post_create_inferior instead.
32 * inf-ptrace.c: Don't include "observer.h".
33 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
34 * inf-ttrace.c: Don't include "observer.h".
35 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
36 * inferior.h (solib_create_inferior_hook): Remove redundant
37 prototype.
38 * inftarg.c: Don't include "observer.h".
39 (child_attach): Don't call observer_notify_inferior_created.
40 * Makefile.in: Update dependencies.
41
42 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
43
44 * infcmd.c: Include "observer.h".
45 (post_create_inferior): New function.
46 (run_command_1): Call it. Also call proceed.
47 * inferior.h (post_create_inferior): New prototype.
48 * Makefile.in (infcmd.o): Update.
49
50 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
51 * go32-nat.c (go32_create_inferior): Likewise.
52 * nto-procfs.c (procfs_create_inferior): Likewise.
53 * procfs.c (procfs_create_inferior): Likewise.
54 * remote-sim.c (gdbsim_create_inferior): Likewise.
55 * remote.c (extended_remote_create_inferior)
56 (extended_remote_async_create_inferior): Likewise.
57 * win32-nat.c (win32_create_inferior): Likewise.
58 * wince.c (child_create_inferior): Likewise.
59
60 * monitor.c (monitor_create_inferior): Don't call proceed.
61 Set the PC manually.
62 * ocd.c (ocd_create_inferior): Likewise.
63 * remote-e7000.c (e7000_create_inferior): Likewise.
64 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
65 * remote-mips.c (mips_create_inferior): Likewise.
66 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
67 * remote-sds.c (sds_create_inferior): Likewise.
68 * remote-st.c (st2000_create_inferior): Likewise.
69
70 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
71 proceed or observer_notify_inferior_created.
72 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
73 * inftarg.c (child_create_inferior): Likewise.
74
75 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
76
77 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
78 after mourning the inferior.
79
80 2006-01-24 Jim Blandy <jimb@redhat.com>
81
82 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
83
84 2006-01-24 Fred Fish <fnf@specifix.com>
85
86 * parse.c (source.h): Include.
87 (parse_exp_in_context): Use static source context if no
88 other context found.
89
90 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
91
92 * sh-tdep.c: Include reggroups.h.
93 (sh_register_reggroup_p): New function.
94 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
95 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
96
97 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
98
99 * cli/cli-cmds.c: Include fcntl.h.
100 (source_command): Use the GDB search path to find script files.
101
102 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
103
104 PR tdep/2029
105 Suggested by Till Straumann <strauman@slac.stanford.edu>:
106 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
107 instructions. Handle PIC bcl.
108
109 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
110
111 * config/djgpp/README: Typo fix.
112 * config/djgpp/fnchange.lst: Update.
113
114 2006-01-22 Mark Kettenis <kettenis@gnu.org>
115
116 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
117 (sparc_address_from_register): New prototype.
118 (sparcnbsd_step_trap): New prototype.
119 * sparc-tdep.c (sparc_address_from_register): Make globally
120 visible.
121 (sparc_analyze_control_transfer): Change prototype to accept
122 `struct gdbarch *' as first argument. Allow for optional hnadling
123 for trap instructions.
124 (sparc_step_trap): New function.
125 (sparc_software_single_step): Adjust call to
126 sparc_analyze_control_trabsfer.
127 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
128 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
129 (sparc32nbsd_init_abi): Set TDEP->step_trap.
130 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
131 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
132
133 * sparc-tdep.c (sparc32_return_value): Convert to use
134 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
135 RETURN_VALUE_STRUCT_CONVENTION.
136 (sparc32_extract_struct_value_address): Remove.
137
138 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
141 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
142
143 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
144
145 * solib.c (info_sharedlibrary_command): Avoid internal_error.
146
147 2006-01-21 Mark Kettenis <kettenis@gnu.org>
148
149 * i386-tdep.c (i386_mxcsr_type): New variable.
150 (i386_init_types): Initialize i386_mxcsr_type.
151 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
152 * i386-tdep.c (i386_mxcsr_type): New extern.
153 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
154 %mxcsr.
155
156 2006-01-20 Mark Mitchell <mark@codesourcery.com>
157
158 * Makefile.in (remote-rdi.o): Remove.
159 (rdi-share/libangsd.a): Likewise.
160 * README: Don't mention remote-rdi.c.
161 * NEWS: Mention removal of rdi-share.
162 * configure.ac: Don't configure rdi-share subdirectory.
163 * remote-rdi.c: Remove.
164 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
165 (TDEPLIBS): Remove rdi-share/libangsd.a.
166 * rdi-share/Makefile.am: Remove.
167 * rdi-share/Makefile.in: Likewise.
168 * rdi-share/README.CYGNUS: Likewise.
169 * rdi-share/aclocal.m4: Likewise.
170 * rdi-share/adp.h: Likewise.
171 * rdi-share/adperr.h: Likewise.
172 * rdi-share/angel.h: Likewise.
173 * rdi-share/angel_bytesex.c: Likewise.
174 * rdi-share/angel_bytesex.h: Likewise.
175 * rdi-share/angel_endian.h: Likewise.
176 * rdi-share/ardi.c: Likewise.
177 * rdi-share/ardi.h: Likewise.
178 * rdi-share/armdbg.h: Likewise.
179 * rdi-share/buffers.h: Likewise.
180 * rdi-share/chandefs.h: Likewise.
181 * rdi-share/channels.h: Likewise.
182 * rdi-share/chanpriv.h: Likewise.
183 * rdi-share/configure: Likewise.
184 * rdi-share/configure.in: Likewise.
185 * rdi-share/crc.c: Likewise.
186 * rdi-share/crc.h: Likewise.
187 * rdi-share/dbg_conf.h: Likewise.
188 * rdi-share/dbg_cp.h: Likewise.
189 * rdi-share/dbg_hif.h: Likewise.
190 * rdi-share/dbg_rdi.h: Likewise.
191 * rdi-share/devclnt.h: Likewise.
192 * rdi-share/devices.h: Likewise.
193 * rdi-share/devsw.c: Likewise.
194 * rdi-share/devsw.h: Likewise.
195 * rdi-share/drivers.c: Likewise.
196 * rdi-share/drivers.h: Likewise.
197 * rdi-share/etherdrv.c: Likewise.
198 * rdi-share/ethernet.h: Likewise.
199 * rdi-share/host.h: Likewise.
200 * rdi-share/hostchan.c: Likewise.
201 * rdi-share/hostchan.h: Likewise.
202 * rdi-share/hsys.c: Likewise.
203 * rdi-share/hsys.h: Likewise.
204 * rdi-share/logging.c: Likewise.
205 * rdi-share/logging.h: Likewise.
206 * rdi-share/msgbuild.c: Likewise.
207 * rdi-share/msgbuild.h: Likewise.
208 * rdi-share/params.c: Likewise.
209 * rdi-share/params.h: Likewise.
210 * rdi-share/rx.c: Likewise.
211 * rdi-share/rxtx.h: Likewise.
212 * rdi-share/serdrv.c: Likewise.
213 * rdi-share/serpardr.c: Likewise.
214 * rdi-share/sys.h: Likewise.
215 * rdi-share/tx.c: Likewise.
216 * rdi-share/unixcomm.c: Likewise.
217 * rdi-share/unixcomm.h: Likewise.
218
219 2006-01-21 Mark Kettenis <kettenis@gnu.org>
220
221 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
222 Change type of last argument to `gdb_byte *'.
223
224 2006-01-20 Mark Kettenis <kettenis@gnu.org>
225
226 * hppa-tdep.h (hppa_in_solib_call_trampoline)
227 (hppa_skip_trampoline_code): New prototypes.
228 * hppa-tdep.c (struct insn_pattern): New.
229 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
230 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
231 here from hppa-linux-tdep.c
232 (HPPA_MAX_INSN_PATTERN_LEN): New define.
233 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
234 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
235 functions based on functions removed from hppa-linux-tdep.c.
236 * hppa-linux-tdep.c (hppa_long_branch_stub)
237 (hppa_long_branch_pic_stub, hppa_import_stub)
238 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
239 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
240 (hppa_linux_in_solib_call_trampoline)
241 (hppa_linux_skip_trampoline_code): Removed.
242 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
243 hppa_in_solib_call_trampoline and skip_trampoline_code to
244 hppa_skip_trampoline_code.
245 * hppabsd-tdep.c (hppabsd_init_abi): Set
246 TDEP->in_solib_call_trampoline and skip_trampoline_code.
247
248 2006-01-20 Jim Blandy <jimb@redhat.com>
249
250 * MAINTAINERS: Change my E-mail address.
251
252 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
253 * configure: Regenerated.
254
255 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * MAINTAINERS: Overhaul.
258
259 2006-01-18 Mark Kettenis <kettenis@gnu.org>
260
261 Based on a previous patch form Michal Ludvig:
262 * amd64-tdep.c (amd64_sse_type): Remove.
263 (amd64_register_info): Use i386_eflags_type and i386_sse_type
264 where appropriate.
265 (AMD64_NUM_REGS): Use ARRAY_SIZE.
266 (amd64_register_type): Remove code to build amd_sse_type.
267 * i386-tdep.c (i386_eflag_type): New variable.
268 (i386_mmx_type, i386_sse_type): Make global.
269 (i386_init_types): New function.
270 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
271 (i386_register_type): Return i386_eflag_type, i386_sse_type and
272 i386_mmx_type when appropriate.
273 (_initialize_i386_tdep): Call i386_init_types.
274 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
275 Declare extern.
276
277 Based on a previous patch form Michal Ludvig:
278 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
279 functions.
280 (is_integral_type, rank_one_type, recursive_dump_type): Add
281 support for TYPE_CODE_FLAGS.
282 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
283 (append_flags_type_field, init_flags_type): New prototypes.
284 * ada-valprint.c (ada_val_print_1): Add support for
285 TYPE_CODE_FLAGS.
286 * c-valprint.c (c_val_print): Likewise.
287 * f-valprint.c (f_val_print): Likewise.
288 * p-valprint.c (pascal_val_print): Likewise.
289 * valprint.c (val_print_type_code_flags): New function.
290 * valprint.h (val_print_type_code_flags): New prototype.
291 * value.c (unpack_long, value_from_longest): Add support for
292 TYPE_CODE_FLAGS.
293
294 2006-01-17 Christopher Faylor <cgf@timesys.com>
295
296 * MAINTAINERS: Very belatedly remove myself from from the list of
297 people caught up in the paper trail.
298
299 2006-01-17 Jim Blandy <jimb@redhat.com>
300
301 * symtab.h (struct general_symbol_info): Use gdb_byte for
302 value.bytes.
303 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
304 a floating-point constant's value.
305 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
306 to char *.
307 * findvar.c (read_var_value): Eliminate needless temporary.
308
309 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
310 to match prior change to dwarf2_read_section's type.
311
312 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
313
314 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
315 * rs6000-tdep.c (insn_changes_sp_or_jumps)
316 (rs6000_in_function_epilogue_p): New functions.
317 (rs6000_gdbarch_init): Set in_function_epilogue_p.
318
319 2006-01-17 Jim Blandy <jimb@redhat.com>
320
321 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
322 (struct line_header, struct partial_die_info, struct dwarf_block):
323 Use gdb_byte for members that refer to Dwarf section contents.
324 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
325 dwarf_decode_macros, load_comp_unit, load_partial_dies,
326 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
327 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
328 read_8_bytes, read_address, read_attribute, read_attribute_value,
329 read_comp_unit, read_comp_unit_head, read_die_and_children,
330 read_die_and_siblings, read_full_die, read_indirect_string,
331 read_initial_length, read_n_bytes, read_offset, read_partial_die,
332 read_signed_leb128, read_string, read_unsigned_leb128,
333 skip_children, skip_leb128, skip_one_die): Same.
334
335 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
336
337 * complaints.c (stop_whining): Make signed.
338 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
339
340 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
341
342 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
343 notices.
344
345 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
346
347 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
348 (read_offset): Change BYTES_READ argument to unsigned int.
349 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
350 (create_all_comp_units, dwarf2_get_pc_bounds)
351 (dwarf_decode_line_header, var_decode_location)
352 (dwarf_decode_macros): Change local BYTES_READ variables to
353 unsigned int.
354 (read_indirect_string): Remove obsolete cast.
355
356 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
357
358 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
359 argument.
360 (remote_fileio_func_open, remote_fileio_func_rename)
361 (remote_fileio_func_unlink, remote_fileio_func_stat)
362 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
363 (remote_fileio_func_system): Cast the arguments to
364 remote_read_bytes and remote_write_bytes.
365 (remote_fileio_func_read, remote_fileio_func_write): Use a
366 gdb_byte buffer.
367 * remote.h (remote_read_bytes, remote_write_bytes): Update
368 prototypes.
369 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
370 (threadref_to_int): Replace bogus char * cast.
371 (remote_unpack_thread_info_response): Use int for tag.
372 (remote_threads_extra_info, remote_check_symbols): Cast string
373 arguments to hex2bin.
374 (remote_wait): Use a char buffer for packets and a gdb_byte
375 buffer for registers.
376 (remote_async_wait): Likewise.
377 (remote_prepare_to_store, store_register_using_P)
378 (remote_store_registers): Use gdb_byte buffers.
379 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
380 for MYADDR and char buffers for strings.
381 (remote_xfer_partial): Add casts for string operations on READBUF.
382 (remote_rcmd): Cast strings passed to bin2hex.
383
384 2006-01-16 Mark Mitchell <mark@codesourcery.com>
385
386 * aclocal.m4: Regenerate.
387
388 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
389
390 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
391 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
392 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
393 (mt_register_name): Lazily synthesize name for coprocessor pseudo
394 array registers.
395 (mt_copro_register_type): New. Broken out of ...
396 (mt_register_type): ... here. Use it. Deal with coprocessor
397 pseudo array.
398 (mt_select_coprocessor): New.
399 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
400 coprocessor pseudo array.
401
402 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
403
404 * breakpoint.c (insert_breakpoints): Check that a thread exists
405 before inserting thread specific breakpoints.
406
407 2006-01-15 Mark Kettenis <kettenis@gnu.org>
408
409 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
410 commit.
411
412 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
413 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
414 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
415 * config/alpha/nm-nbsd.h: Remove file.
416 * config/alpha/nm-fbsd.h: Remove file
417 * config/alpha/nbsd.mh (NAT_FILE): Remove.
418 * config/alpha/fbsd.mh (NAT_FILE): Remove.
419
420 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
421
422 * macroexp.c (expand): Initialize argc.
423 * stabsread.c (read_type): Handle errors from read_args.
424 (read_args): Return NULL for errors.
425
426 2006-01-15 Mark Kettenis <kettenis@gnu.org>
427
428 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
429 strcmp to compare string to a byte buffer.
430
431 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
432
433 * printcmd.c (output_command): Always initialize fmt.size.
434 (printf_command): Use gdb_byte.
435 * symfile.c (separate_debug_file_exists): Use gdb_byte.
436 (load_section_callback, read_target_long_array): Likewise.
437 (simple_read_overlay_table, simple_read_overlay_region_table)
438 (simple_overlay_update_1): Correct calls to read_target_long_array.
439 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
440 Also change local pointers.
441 (val_print_string): Use gdb_byte.
442
443 2006-01-15 Mark Kettenis <kettenis@gnu.org>
444
445 * alphafbsd-tdep.c: Include "solib-svr4.h".
446 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
447 svr4_lp64_fetch_link_map_offsets.
448 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
449 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
450 solib-svr4.o.
451 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
452 and solib-legacy.o.
453 * config/alpha/nm-fbsd.h: Don't include "solib.h".
454
455 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
456
457 * source.c (_initialize_source): Use add_setshow_integer_cmd.
458
459 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
460
461 * linux-fork.c (delete_fork_command, detach_fork_command): Use
462 PIDGET.
463
464 2006-01-15 Mark Kettenis <kettenis@gnu.org>
465
466 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
467 Remove.
468 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
469 svr4_ilp32_fetch_link_map_offsets.
470 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
471 function.
472 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
473 svr4_ilp32_fetch_link_map_offsets.
474 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
475 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
476 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
477 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
478 where appropriate.
479 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
480 Simply call svr4_ilp32_fetch_link_map_offsets.
481 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
482 svr4_lp64_fetch_link_map_offsets.
483 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
484 function.
485 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
486 svr4_ilp32_fetch_link_map_offsets.
487 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
488 (s390x_svr4_fetch_link_map_offsets): Remove functions.
489 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
490 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
491 where appropriate.
492
493 2006-01-15 Mark Kettenis <kettenis@gnu.org>
494
495 * arm-tdep.c (arm_return_value): Change type of readbuf and
496 writebuf arguments to `gdb_byte *'.
497
498 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
499 * Makefile.in (s390-tdep.o): Update dependencies.
500
501 2006-01-14 Mark Kettenis <kettenis@gnu.org>
502
503 * sol2-tdep.h. sol2-tdep.c: New files.
504 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
505 (amd64_sol2_init_abi): Set skip_solib_resolver.
506 * i386-sol2-tdep.c: Include "sol2-tdep.h".
507 (i386_sol2_init_abi): Set skip_solib_resolver.
508 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
509 (sparc32_sol2_init_abi): Set skip_solib_resolver.
510 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
511 (sparc64_sol2_init_abi): Set skip_solib_resolver.
512 * Makefile.in (sol2_tdep_h): New variable.
513 (ALLDEPFILES): Add sol2-tdep.c.
514 (sol2-tdep.o): New target.
515 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
516 (sparc64-sol2-tdep.o): Update dependencies
517 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
518 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
519 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
520 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
521
522 * hppa-linux-tdep.c: Fix copyright indentation.
523
524 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
525 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
526 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
527 functions.
528 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
529 floating-point registers.
530
531 2006-01-13 Mark Mitchell <mark@codesourcery.com>
532
533 * event-loop.c (gdb_select): Detect file descriptors that have
534 been closed.
535
536 2006-01-13 Mark Kettenis <kettenis@gnu.org>
537
538 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
539 and long_double_format accordingly.
540
541 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
542
543 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
544 translation problems.
545 * ada-lang.c (ada_value_struct_elt): Change interface and handling
546 of errors to avoid translation problem (and less than optimal error
547 messages).
548 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
549 Use new interface to ada_value_struct_elt.
550 * ada_lang.h (ada_value_struct_elt): Update declaration to new
551 interface.
552
553 * ChangeLog: remove reference to ada-tasks.c from entry of
554 2006-01-07.
555
556 2006-01-11 Mark Kettenis <kettenis@gnu.org>
557
558 * remote.c (get_memory_packet_size, set_thread)
559 (remote_unpack_thread_info_response, remote_get_threadinfo)
560 (parse_threadlist_response, remote_get_threadlist)
561 (remote_current_thread, remote_threads_info)
562 (remote_threads_extra_info, extended_remote_restart, get_offsets)
563 (remote_check_symbols, remote_open_1, remote_detach)
564 (remote_async_wait, remote_fetch_registers)
565 (remote_store_registers, check_binary_download, putpkt_binary)
566 (remote_insert_breakpoint, remote_insert_watchpoint)
567 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
568 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
569 (packet_command): Remove redundant parenthesis.
570
571 2006-01-10 Mark Kettenis <kettenis@gnu.org>
572
573 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
574 (read_memory_typed_address, write_memory)
575 (write_memory_unsigned_integer, write_memory_signed_integer): Use
576 gdb_byte where appropriate.
577
578 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
579 'gdb_byte *'.
580
581 * target.h (target_read_memory_partial, target_write_memory_partial):
582 Change second argument to 'gdb_byte *'.
583 * target.c (target_xfer_memory_partial): Change third argument to
584 'gdb_byte *'.
585 (target_read_memory_partial, target_write_memory_partial): Change
586 second argument to 'gdb_byte *'.
587
588 * linespec.c (decode_objc): Make i1 and i2 unsigned.
589 (find_method): Set values.sals to NULL.
590
591 2006-01-09 Mark Kettenis <kettenis@gnu.org>
592
593 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
594 of 'char *' in cast.
595
596 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
597
598 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
599 * ada-lang.c: I18n markup.
600 Editorial: change "can not" => "cannot" throughout.
601
602 2006-01-07 Mark Kettenis <kettenis@gnu.org>
603
604 * Makefile.in: Sort dependencies.
605
606 2006-01-07 Eli Zaretskii <eliz@gnu.org>
607
608 * top.c (control_level): Remove unused variable.
609
610 2006-01-06 Fred Fish <fnf@specifix.com>
611
612 * objfiles.c (source.h): Include.
613 (free_objfile): Update comment about clear_symtab_users().
614 (free_objfile): Check all symtabs of objfile being freed and if
615 one of them is the current source symtab, call
616 clear_current_source_symtab_and_line().
617
618 2006-01-04 Michael Snyder <msnyder@redhat.com>
619
620 Checkpoint/Restart for Linux.
621 * linux-nat.c: Add support for debugging multiple forks.
622 Add #include for linux-fork.h (interface spec).
623 (super_mourn_inferior): New function pointer.
624 (child_mourn_inferior): New function / target method.
625 (linux_target): Claim to_mourn_inferior method pointer.
626 (child_follow_fork): Call interface to linux-fork, conditionally
627 add new fork processes to list of debugged processes.
628 (kill_inferior): Use interface to linux-fork to kill
629 multiple processes.
630
631 * linux-fork.h: New file.
632 * linux-fork.c: New file. Support for debugging multiple forks
633 of the same program. Support for checkpoint and restart commands.
634
635 * infrun.c (nullify_last_target_wait_ptid): New function.
636
637 * Makefile.in: Add linux-fork.
638 * config/*/linux.mh: Add linux-fork.
639 * NEWS: Mention new functionality.
640
641 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
642
643 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
644 Change uses of "illegal" to "invalid".
645
646 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
647
648 * ada-exp.y: Considerable reorganization to move functionality
649 from ada-lex.l to here, where it is logically more appropriate.
650 The original reason, however, was to prevent premature name
651 lookups for selector names in record aggregates.
652 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
653 NAME for all of these.
654 (VAR): New artificial token to clarify precedence rules.
655 (OTHERS): New lexeme.
656 (empty_stoken): New symbol.
657 (%union): Remove ssym, voidval.
658 (%type): Remove <voidval> type declarations.
659 (syntax definitions): Add aggregates.
660 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
661 Rename some non-terminals to be closer to reference manual usage.
662 Tighten up expression syntax to disallow certain non-Ada
663 constructions such as X and then Y or else Z.
664 (ada_parse): Remove initialization of left_block_context.
665 (write_var_from_name): Remove.
666 (write_var_or_type): New function, containing previous code from
667 defunct write_var_from_name and name_lookup.
668 (block_lookup): New function, moved from ada-lex.l
669 (select_possible_type_sym): New function, factored out of
670 name_lookup, which used to be in ada-lex.l.
671 (find_primitive_type): Ditto.
672 (chop_selector): Ditto.
673 (write_ambiguous_var): New function, factored out of defunct
674 write_var_from_name.
675 (write_selectors): New function.
676 (write_name_assoc): New function.
677 (write_exp_op_with_string): New function.
678
679 * ada-lex.l (processId): Change interface to return stoken.
680 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
681 (block_lookup, name_lookup): Remove. Functionality moved to
682 ada-exp.y.
683 (state IN_STRING): Remove.
684 (rules): Handle string escapes in processString.
685 Add 'others' token.
686 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
687 yylval.sval (as simple strings).
688 All name look-ups now handled in ada-exp.y.
689 Introduce "::" (COLONCOLON) token and return as separate token.
690 (processId): Change return convention. Comment.
691 Leave leading "'" in place.
692 (processString): New function.
693 (find_dot_all): Add note to comment.
694 Fix problem that allowed match only at the end.
695
696 * ada-lang.c: Introduce aggregates.
697 (find_struct_field): Add new parameter to count fields skipped, and
698 allow other output parameters to be NULL.
699 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
700 new find_struct_field.
701 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
702 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
703 (num_component_specs, assign_component, assign_aggregate):
704 (aggregate_assign_from_choices,aggregate_assign_positional)
705 (aggregate_assign_others,add_component_interval):
706 New functions.
707 (ada_evaluate_subexp): Declare.
708 Add aggregate-related operators.
709 (ada_forward_operator_length): Declare.
710 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
711 Consolidate Ada operators, using ada_forward_operator_length.
712 (ada_search_struct_field): Search in forward order.
713 (ADA_OPERATORS): Add new aggregate operators.
714 (ada_operator_length, ada_op_name, ada_forward_operator_length)
715 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
716 operators and OP_NAME.
717 (ada_type_of_array): Use longest_to_int.
718 (value_assign_to_component): New function.
719 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
720 Add OP_NAME case.
721 (ada_forward_operator_length, ada_dump_subexp_body):
722 Add OP_STRING case.
723
724 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
725 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
726
727 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
728
729 * ada-lang.c (process_raise_exception_name): Remove extraneous
730 definition from unsubmitted code.
731
732 (is_lower_alphanum): New function.
733 (ada_decode): Add support for decoding protected object subprograms
734 and entries, and of entities declared inside protected object
735 subprograms.
736 Also add missing handling for__{DIGITS}+ suffixes.
737 Allow '$<digits>' as valid overloading suffix.
738 (is_name_suffix): Add handling for protected type entriy suffixes.
739 Also add support for protected type subprogram suffixes, but keep
740 it commented out for now, as there is an ambiguity between these
741 entities and other internally generated entities.
742 Allow '$<digits>' as valid overloading suffix.
743 (is_valid_name_for_wild_match): New function.
744 (wild_match): Add an exra level of verification of the entity name
745 before declaring it a match for the given pattern.
746
747 (ada_type_of_array, ada_evaluate_subexp): Use more proper
748 longest_to_int rather than cast.
749
750 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
751
752 (ada_coerce_to_simple_array): Call check_size to make sure
753 that the object size is reasonable.
754
755 (ada_value_primitive_packed_val): Use correct location in target
756 buffer for extracting packed record fields that are themselves records.
757
758 (add_defn_to_vec): Do not try to replace a stub type by its full
759 type. Avoids a potential infinite loop.
760
761 (ada_lookup_symbol): Move return incorrectly placed return statement,
762 causing a loop that should be scanning all object files to only
763 scan the first one.
764
765 (ada_tag_name_2): New function.
766 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
767 use alternative representation.
768
769 (ada_find_renaming_symbol): Strip the function name suffix when
770 computing the XR type name.
771
772 (ada_to_fixed_type): Try determining the tag only if we have the
773 object's address.
774 (to_fixed_array_type): Add comments.
775
776 (ada_check_typedef): Replace expression checking whether the given
777 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
778 consistent.
779
780 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
781 '$' in addition to '.' for runtime auxiliary function name suffixes.
782 See changes to ada_decode above.
783
784 (struct task_control_block): Add field called_task. (This change is
785 to keep synchronized with our local sources; it does not affect the
786 public version yet.)
787
788 * ada-typeprint.c (ada_print_type): Use int_string for printing
789 modulus of modular type.
790
791 (print_range): Trivial editorial comment fix.
792
793 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
794 double quote in string.
795
796 2006-01-01 Joel Brobecker <brobecker@adacore.com>
797
798 * top.c: Add 2006 to list of copyright years in file header.
799
800 2006-01-01 Joel Brobecker <brobecker@adacore.com>
801
802 * top.c (print_gdb_version): Update copyright year to 2006.
803
804 2006-01-01 Roger Sayle <roger@eyesopen.com>
805 Elena Zannoni <ezannoni@redhat.com>
806
807 PR symtab/1651
808 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
809 for NULL before assigning this_symtab_psymtab->objfile to objfile.
810 (scan_xcoff_symtab): Initialize next_symbol_text_func.
811 (Committed by Jim Blandy)
812
813 For older changes see ChangeLog-2005.
814 \f
815 Local Variables:
816 mode: change-log
817 left-margin: 8
818 fill-column: 74
819 version-control: never
820 End:
This page took 0.050267 seconds and 5 git commands to generate.