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