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