5294e282375c1c9af1b2c2ed1f234a81a23233bb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2006-07-12 Jan Kratochvil <lace@jankratochvil.net>
2
3 * infrun.c (handle_inferior_event): Fixed typos in printf.
4
5 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
6 Nathan Sidwell <nathan@codesourcery.com>
7
8 * remote.c (REMOTE_ALIGN_WRITES): New.
9 (remote_write_bytes): Align large write packets. Remove unused
10 payload_start variable.
11
12 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
13
14 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
15 (remote_supported_packet): Remove #if 0.
16 (remote_protocol_features): Add qPart:auxv:read.
17 (remote_unescape_input): New function.
18 (readchar): Don't mask off the high bit.
19 (read_frame): Use fputstrn_filtered for packet data.
20 (getpkt_sane): Return the number of bytes read or -1. Use
21 fputstrn_unfiltered.
22 (remote_read_qxfer): New.
23 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
24 (_initialize_remote): Update packet registration.
25 * defs.h (fputstrn_filtered): New prototype.
26 * utils.c (fputstrn_filtered): New.
27 * NEWS: Mention qXfer.
28
29 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
30
31 * target.c (target_read): Stop if target_read_partial returns 0
32 when some bytes have already been read.
33 (target_write): Likewise for target_write_partial.
34 (target_read_partial, target_write_partial): Make static.
35 (target_read_alloc): New.
36 * target.h: Doc fixes.
37 (target_read_partial, target_write_partial): Delete prototypes.
38 (target_read_alloc): New prototype.
39
40 * auxv.c (target_auxv_read): Delete.
41 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
42 * auxv.h (target_auxv_read): Delete prototype.
43 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
44 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
45 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
46 * procfs.c (procfs_make_note_section): Likewise.
47 * remote.c (remote_xfer_partial): Don't loop here.
48 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
49
50 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
51
52 * arm-linux-tdep.c: Doc fixes.
53 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
54 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
55 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
56 constants.
57 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
58 the new signal frame layouts.
59
60 2006-07-12 Mike Frysinger <vapier@gentoo.org>:
61 Daniel Jacobowitz <dan@codesourcery.com>
62
63 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
64 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
65 * gdbarch.sh: Correct comment.
66
67 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
68
69 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
70
71 2006-07-11 Mark Kettenis <kettenis@gnu.org>
72
73 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
74
75 2006-07-10 Mark Kettenis <kettenis@gnu.org>
76
77 * alphaobsd-tdep.c: New file.
78 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
79 handler for GDB_OSABI_OPENBSD_ELF.
80 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
81 (alphaobsd-tdep.o): New target.
82 * config/alpha/obsd.mt: New file.
83 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
84
85 2006-07-10 Richard Henderson <rth@redhat.com>
86
87 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
88 * alpha-tdep.c (alpha_register_byte): Remove.
89 (alpha_extract_struct_value_address): Remove.
90 (alpha_return_value): New.
91 (alpha_return_in_memory_always): New.
92 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
93 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
94 instead of set_gdbarch_deprecated_use_struct_convention,
95 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
96 or set_gdbarch_deprecated_extract_struct_value_address.
97 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
98 alphafbsd_use_struct_convention, remove gcc_p argument.
99 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
100 set_gdbarch_deprecated_use_struct_convention.
101
102 2006-07-09 Mark Kettenis <kettenis@gnu.org>
103
104 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
105 prototype.
106 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
107 a.out-style core file format here. Make global.
108 (alphanbsd_regset_from_core_section): Remove.
109 (alphanbsd_sigtramp_offset): Make static.
110 (alphanbsd_aout_init_abi): Remove.
111 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
112 a.out style core files.
113 (_initialize_alphanbsd_tdep): Do not register a handler for
114 GDB_OSABI_NETBSD_AOUT.
115
116 * alphabsd-tdep.h: Tweak comments.
117 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
118 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
119 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
120 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
121 (alphanbsd_aout_supply_gregset): New functions.
122 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
123 New variables.
124 (alphanbsd_regset_from_core_section)
125 (alphanbsd_aout_regset_from_core_section): New functions.
126 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
127 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
128 (alphanbsd_init_abi): Set regset_from_core_section.
129 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
130 functions.
131 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
132 Use alphanbsd_aout_init_abi whre appropriate. Don't call
133 deprecated_add_core_fns.
134 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
135
136 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
137 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
138
139 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
140 svr4_lp64_fetch_link_map_offsets instead of
141 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
142
143 2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
144
145 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
146 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
147 write_exp_elt_intern): Zero initialize tmp.
148
149 2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
150
151 * remote.c (remote_xfer_partial): Remove KOD support.
152 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
153 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
154 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
155 Remove KOD support.
156 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
157 * NEWS: Mention KOD.
158 * kod.h, kod.c, kod-cisco.c: Delete files.
159
160 2006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
161
162 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
163
164 2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
165
166 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
167 write_files is set.
168
169 2006-06-24 Eli Zaretskii <eliz@gnu.org>
170
171 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
172
173 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
176 Add special types for sp and pc.
177 * Makefile.in (arm-tdep.o): Update.
178
179 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
180
181 * remote.c (remote_escape_output): New function.
182 (remote_write_bytes): Use remote_escape_output.
183
184 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
185
186 * NEWS: Mention qSupported.
187 * remote.c (struct remote_state): Add explicit_packet_size.
188 (get_remote_packet_size): Check explicit_packet_size.
189 (get_memory_packet_size): Likewise.
190 (PACKET_qSupported): New enum value.
191 (struct protocol_feature, remote_supported_packet)
192 (remote_packet_size, remote_protocol_features)
193 (remote_query_supported): New.
194 (remote_open_1): Reset explicit_packet_size. Call
195 remote_query_supported.
196 (_initialize_remote): Register qSupported.
197
198 2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
199
200 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
201
202 2006-06-20 Joel Brobecker <brobecker@adacore.com>
203
204 * GDB 6.5 released from GDB 6.5 branch.
205
206 2006-06-19 Michael Snyder <msnyder@redhat.com>
207
208 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
209 decide how many registers it takes to pass a floating point
210 argument, what matters is the size of a floating point register
211 (not the size of a general purpose register).
212 (mips_o32_push_dummy_call): Ditto.
213
214 2006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
215
216 * configure.tgt: Add gdbserver support for m32r-linux.
217
218 2006-06-18 Mark Kettenis <kettenis@gnu.org>
219
220 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
221
222 2006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
223
224 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
225 based on insert_step_resume_breakpoint_at_frame.
226 (handle_inferior_event): Update comments. Use
227 insert_step_resume_breakpoint_at_caller.
228 (insert_step_resume_breakpoint_at_frame): Revise comments.
229
230 2006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * dwarf2read.c (read_unspecified_type): New function.
233 (read_type_die): Handle DW_TAG_unspecified_type.
234 (Committed by Julian Brown.)
235
236 2006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * symfile.c (load_command): Check for a changed executable before
239 "load".
240
241 2006-06-13 Fred Fish <fnf@specifix.com>
242
243 * mips-tdep.c (mips_find_long_section): New function.
244 (mips_gdbarch_init): Use it to set long and pointer sizes.
245
246 2006-06-13 Nathan Sidwell <nathan@codesourcery.com>
247
248 * remote-file.io.c (remote_fileio_func_system): Treat zero length
249 string as NULL. Adjust for NULL pointer argument.
250 * doc/gdb.texinfo (system): Document behaviour with zero length
251 string.
252
253 2006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
254
255 * remote.c (set_remote_protocol_packet_cmd)
256 (show_remote_protocol_packet_cmd): New prototypes.
257 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
258 (struct packet_config): Make name and title const.
259 (add_packet_config_cmd): Remove unnecessary arguments.
260 (_initialize_remote): Update calls.
261
262 2006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
263
264 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
265 before calling FD_ISSET. Correct check for exceptfds which
266 previously tested writefds.
267
268 2006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
269 Julian Brown <julian@codesourcery.com>
270
271 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
272
273 2006-06-09 Julian Brown <julian@codesourcery.com>
274
275 * MAINTAINERS (Write After Approval): Add myself.
276
277 2006-06-08 Michael Snyder <msnyder@redhat.com>
278
279 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
280
281 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
282
283 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
284 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
285 conversion. Use M68K_NUM_REGS for number of regs.
286
287 * remote-fileio.c (remote_fileio_reset): New.
288 * remote-fileio.h (remote_fileio_reset): Prototype.
289 * remote.c (extended_remote_restart, remote_open_1): Call it.
290
291 * remote.c (remote_open_1): Do preopen tasks before
292 irreversably destroying state.
293
294 2006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
295
296 * remote.c (struct remote_state): New type, only containing
297 buf and buf_size.
298 (remote_state): New variable.
299 (get_remote_state): New function.
300 (struct remote_arch_state): Renamed from struct remote_state.
301 Removed buf and buf_size.
302 (get_remote_arch_state): Renamed from get_remote_state. All
303 necessary callers updated to call this function.
304 (init_remote_state): Initialize the architecture-specific state.
305 Update the target-specific state if necessary.
306 (get_remote_packet_size): New function. All previous references
307 changed to use this accessor function.
308 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
309 remote_arch_state instead of a remote_state. All callers changed.
310 (_initialize_remote): Initialize the packet buffer here.
311
312 2006-06-06 Nathan Sidwell <nathan@codesourcery.com>
313
314 * remote.c (remote_insert_watchpoint): Return -1, rather than
315 fatal error if packet is disabled.
316 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
317 remote_remove_hw_breakpoint): Likewise.
318
319 2006-06-02 Nick Roberts <nickrob@snap.net.nz>
320
321 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
322
323 2006-05-31 Michael Snyder <msnyder@redhat.com>
324
325 * mips-tdep.c: Comment tweaks.
326
327 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
328
329 * Makefile.in (top_builddir): Update comments.
330 (INTL_DIR, INTL_SRC): Delete.
331 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
332 * acinclude.m4: Include new gettext macros.
333 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
334 CATALOGS code.
335 * aclocal.m4, configure: Regenerated.
336
337 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
338
339 * Makefile.in (arm-linux-nat.o): Update dependencies.
340 * arm-linux-nat.c: Include "gdb_proc_service.h".
341 (PTRACE_GET_THREAD_AREA): Define.
342 (ps_get_thread_area): New function.
343
344 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
345
346 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
347 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
348 DWARF2_FRAME_REG_SAVED_VAL_EXP.
349 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
350 val_offset_sf and val_expression.
351 (dwarf2_frame_prev_register): Handle the new reg rules.
352 (dwarf2_frame_this_id): Use pc instead of function entry point.
353
354 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
355
356 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
357 (dwarf2_frame_sniffer): Use it.
358 (decode_frame_entry_1): Set it according to augmentation "S".
359
360 2006-05-27 Joel Brobecker <brobecker@adacore.com>
361
362 From Peter Schauer <peterschauer@gmx.net>
363 * m2-typeprint.c (m2_record_fields): Move variable declarations
364 to the begining of the block.
365
366 2006-05-23 Mark Mitchell <mark@codesourcery.com>
367
368 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
369 include additional registers.
370
371 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
372 Iscramb2, Qscramb2, Qchannel2.
373 (mt_register_name): Likewise.
374 (mt_copro_register_type): Describe ZI2 and ZQ2.
375
376 * mt-tdep.c (mt_gdb_regnums): Define
377 MT_COPRO_PSEUDOREG_MAC_REGNUM.
378 (mt_register_name): Use it.
379 (mt_copro_register_type): Likewise.
380 (mt_register_type): Likewise.
381 (mt_pseudo_register_read): Likewise. Read the MAC register, not
382 the coprocessor register.
383 (mt_pseudo_register_write): Likewise.
384
385 2006-05-21 Christopher Faylor <cgf@timesys.com>
386
387 * win32-nat.c (cygwin_exceptions): New variable.
388 (handle_exception): Treat a cygwin exception like a normal exception if
389 cygwin_exceptions is true.
390 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
391
392 2006-05-20 Gaius Mulley <gaius@glam.ac.uk>
393
394 * NEWS: (Improved Modula-2 language support): New section.
395
396 2006-05-19 Joel Brobecker <brobecker@adacore.com>
397
398 * configure: Regenerate using proper version of autoconf.
399
400 2006-05-19 Fred Fish <fnf@specifix.com>
401
402 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
403 * dwarfread.c: Fix spelling of 'unexpected'.
404 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
405 * stack.c: Fix spelling of 'RETURN_VALUE'.
406
407 2006-05-18 Paul Gilliam <pgilliam@us.ibm.com
408
409 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
410
411 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
412
413 * dwarf2-frame.c: Include "value.h".
414 (read_reg): Use unpack_long and register_type.
415 * Makefile.in (dwarf2-frame.o): Update.
416
417 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
418
419 * remote-rdp.c: Deleted.
420 * NEWS: Mention removal of remote-rdp.c.
421
422 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
423 (remote-rdp.o): Delete.
424 * README: Remove description of remote-rdp.c.
425 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
426 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
427
428 2006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
429
430 * ser-e7kpc.c: Include <time.h> if it is available.
431
432 2006-05-16 Joel Brobecker <brobecker@adacore.com>
433
434 * version.in (version.in): Bump version number to 6.5.50 now
435 that the gdb-6.5 branch has been created.
436 * NEWS: Create a new section for changes that are included
437 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
438 section.
439
440 2006-05-16 Jim Blandy <jimb@codesourcery.com>
441
442 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
443 the Global Maintainers' invitation to be an authorized committer
444 for the Modula-2 support.
445
446 2006-05-15 Mark Kettenis <kettenis@gnu.org>
447
448 * ppcobsd-nat.c: Include "gdb_assert.h".
449 [PT_GETFPREGS] (getfpregs_supplies): New function.
450 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
451 versions that have PT_GETFPREGS.
452 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
453 ppcobsd_fpreg_offsets.
454 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
455 Declare.
456 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
457 variables.
458 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
459 * Makefile.in (ppcobsd-nat.o): Update dependencies.
460
461 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
462
463 * configure.ac: Use GCC_HEADER_STDINT.
464 * acinclude.m4: Include stdint.m4.
465 * Makefile.in (gdb_stdint_h): Define.
466 (distclean): Remove gdb_stdint.h.
467 (Makefile, stamp-h): Update rules to generate only the correct
468 files.
469 (gdb_stdint.h, stamp-int): New rules.
470 * config.in, configure: Regenerated.
471
472 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
473
474 * valprint.c: Include "exceptions.h".
475 (val_print): If something goes wrong while printing, supply an
476 error message.
477
478 2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
479
480 * source.c (get_current_source_symtab_and_line)
481 (set_current_source_symtab_and_line): Use { 0 }.
482 * cli/cli-cmds.c (list_command): Likewise.
483
484 2006-05-14 Nick Roberts <nickrob@snap.net.nz>
485
486 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
487 (gdbmi): Use new variable name gdb-pc-address.
488 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
489 Check that a match has been found.
490
491 2006-05-13 Gaius Mulley <gaius@glam.ac.uk>
492
493 * m2-lang.h: Added function extern prototypes for
494 m2_is_long_set and get_long_set_bounds.
495 * m2-typeprint.c: Complete replacement.
496 (m2_print_type): Walk the Modula-2 type tree.
497 (m2_type_name): New function.
498 (m2_range): New function.
499 (m2_typedef): New function.
500 (m2_array): New function.
501 (m2_pointer): New function.
502 (m2_ref): New function.
503 (m2_unknown): New function.
504 (m2_union): New function.
505 (m2_procedure): New function.
506 (m2_print_bounds): New function.
507 (m2_short_set): New function.
508 (m2_is_long_set): New function.
509 (m2_get_discrete_bounds): New function.
510 (m2_is_long_set_of_type): New function.
511 (m2_long_set): New function.
512 (m2_record_fields): New function.
513 (m2_enum): New function.
514 * dwarf2read.c: Modified.
515 (read_set_type): New function.
516 (process_die): Call read_set_type.
517 (read_base_type): Modifed.
518 (set_cu_language): Added Modula-2 case clause.
519 * m2-valprint.c: Complete replacement.
520 (print_function_pointer_address): New function.
521 (get_long_set_bounds): New function.
522 (m2_print_long_set): New function.
523 (print_unpacked_pointer): New function.
524 (print_variable_at_address): New function.
525 (m2_val_print): Replaced.
526 * gdb/MAINTAINERS (Write After Approval): Added
527 Gaius Mulley <gaius@glam.ac.uk>
528
529 2006-05-12 Mark Kettenis <kettenis@gnu.org>
530
531 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
532 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
533 (ppcnbsd_fill_fpreg): Remove prototypes.
534 (struct regset): Add forward declaration.
535 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
536 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
537 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
538 "value.h", target.h and nbsd-tdep.h". Reorder includes.
539 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
540 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
541 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
542 Remove macros.
543 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
544 (ppcnbsd_fill_fpreg): Remove functions.
545 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
546 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
547 (ppcnbsd_reg_offsets): New variable.
548 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
549 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
550 introduced in NetBSD 2.0.
551 (ppcnbsd_sigtramp): Provide complete signal trampoline.
552 (ppcnbsd2_sigtramp): New variable.
553 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
554 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
555 Add ppcnbs2_sigtramp unwinder.
556 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
557 Initialize ppcnbsd_reg_offsets.
558 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
559 (getregs_supplies): Use regnum instead of regno.
560 (getfpregs_supplies): Likewise.
561 (ppcnbsd_fetch_inferior_registers): Likewise. Call
562 ppc_supply_gregset and ppc_suppply_fpregset instead of
563 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
564 (ppcnbsd_store_inferior_registers): Likewise. Call
565 ppc_collect_gregset and ppc_collect_fpregset instead of
566 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
567 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
568 (_initialize_ppcnbsd_nat): Add some whitespace.
569 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
570 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
571 (NAT_FILE): Remove.
572 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
573
574 2006-05-11 Alfred M. Szmidt <ams@gnu.org>
575
576 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
577
578 2006-05-11 Fred Fish <fnf@specifix.com>
579
580 * symtab.c (skip_prologue_using_sal): Handle single line functions
581 like "foo(){}", which may optimize down to a single return inst.
582
583 2006-05-10 Steve Ellcey <sje@cup.hp.com>
584
585 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
586 message.
587
588 2006-05-09 Andreas Schwab <schwab@suse.de>
589
590 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
591 (execute_cfa_program): Add parameter eh_frame_p. Call
592 dwarf2_frame_eh_frame_regnum when true.
593 (dwarf2_frame_cache): Pass eh_frame_p from fde to
594 execute_cfa_program.
595 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
596 processing .eh_frame. Copy eh_frame_p to the new fde.
597 (struct dwarf2_frame_ops): Add eh_frame_regnum.
598 (dwarf2_frame_set_eh_frame_regnum): Define.
599 (dwarf2_frame_eh_frame_regnum): Define.
600
601 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
602 (dwarf2_frame_eh_frame_regnum): Declare.
603
604 2006-05-06 David S. Miller <davem@sunset.davemloft.net>
605
606 * linux-nat.c (linux_nat_do_thread_registers): Check for
607 NULL collect_regset method.
608
609 2006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
610
611 * s390-tdep.c (s390_collect_regset): New function.
612 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
613
614 2006-05-06 Nick Roberts <nickrob@snap.net.nz>
615
616 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
617 symbol.
618
619 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
620
621 * linux-nat.c (exit_lwp): Fix NULL pointer access.
622 (linux_nat_handle_extended): New parameter STOPPING.
623 (wait_lwp): Call it with STOPPING equals 1.
624 (linux_nat_wait): Call it with STOPPING equals 0.
625
626 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
627
628 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
629 of 'uninteresting' signals when single-stepping.
630
631 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
632
633 * MAINTAINERS: Move NEWS to the documentation entry.
634
635 2006-05-05 David S. Miller <davem@sunset.davemloft.net>
636
637 * linux-nat.c (linux_nat_do_thread_registers): Use the
638 regset_from_core_section infrastructure if the target
639 supports it.
640 * Makefile.in: Update dependencies.
641 * linux-thread-db.c (thread_db_store_registers): Use
642 regcache_raw_collect.
643
644 2006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
645
646 * ppc-linux-nat.c: Clean up types for ptrace.
647 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
648 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
649
650 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
651
652 * remote.c (remote_disconnect): Add TARGET argument.
653 * target.c (debug_to_disconnect): Delete.
654 (update_current_target): Do not inherit to_disconnect.
655 (target_disconnect): Search for a target to implement to_disconnect.
656 (setup_target_debug): Do not reference to_disconnect.
657 * target.h (struct target_ops): Add target argument to
658 to_disconnect.
659
660 2006-05-06 Fred Fish <fnf@specifix.com>
661
662 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
663 structs or unions independent of ABI register size.
664
665 2006-05-06 Fred Fish <fnf@specifix.com>
666
667 * mips-tdep.c (mips_o64_return_value): Replace stub that always
668 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
669
670 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
671
672 * mi/mi-main.c (captured_mi_execute_command): Check the return
673 value of -interpreter-exec.
674
675 2006-05-03 Vladimir Prus <ghost@cs.msu.su>
676
677 * varobj.c (c_value_of_variable): Ignore top-level references.
678 (Committed by Jim Blandy.)
679
680 2006-04-30 Mark Kettenis <kettenis@gnu.org>
681
682 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
683 insert a single-step breakpoint an error instead of a warning.
684
685 2006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
686
687 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
688 arguments from void * to gdb_byte *.
689
690 2006-04-26 Michael Snyder <msnyder@redhat.com>
691
692 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
693 command to "delete fork" (no hyphen), compatible with other
694 "delete" commands.
695 (info_forks_command): Accept a fork ID argument, for info
696 on a single fork. Report if no matching forks.
697
698 2006-04-25 Mark Kettenis <kettenis@gnu.org>
699
700 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
701 no breakpoints are inserted.
702
703 From Masaki MURANAKA <monaka@monami-software.com>:
704 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
705 type of last argument to `gdb_byte *'
706
707 2006-04-25 Jim Blandy <jimb@codesourcery.com>
708
709 Add support for 'target remote |' on MinGW.
710 * ser-mingw.c (struct pipe_state): New structure.
711 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
712 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
713 (pipe_windows_write, pipe_wait_handle): New functions.
714 (_initialize_ser_windows): Register a "pipe" interface based on
715 them.
716
717 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
718
719 * ser-mingw.c: Include <conio.h>.
720 (struct ser_console_state, struct net_windows_state): Add exit_select,
721 have_stopped, thread.
722 (pipe_select_thread, console_select_thread)
723 (net_windows_select_thread): Don't create a local state copy or
724 close stop_select. Exit on exit_select instead of stop_select. Set
725 have_stopped.
726 (console_select_thread): Don't report control keypresses as pending
727 input.
728 (pipe_select_thread): Allow stop_select to interrupt sleeping.
729 (set_console_wait_handle): Create exit_select and have_stopped.
730 Save the thread handle. Check _kbhit before starting a thread.
731 (ser_console_done_wait_handle): New.
732 (ser_console_close): Close new handles. Wait for the thread to
733 exit.
734 (new_windows_select_thread): Assert that an event occurred.
735 (net_windows_wait_handle): Check for pending input before starting
736 a thread.
737 (net_windows_done_wait_handle): New.
738 (net_windows_open): Create exit_select and have_stopped.
739 Save the thread handle.
740 (net_windows_close): Close new handles. Wait for the thread to
741 exit.
742 (_intiialize_ser_windows): Register done_wait_handle methods.
743
744 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
745 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
746 [USE_WIN32API] (serial_done_wait_handle): New prototype.
747 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
748
749 2006-04-23 Andreas Schwab <schwab@suse.de>
750
751 * rs6000-tdep.c: Include "reggroups.h" only once.
752 * Makefile.in (rs6000-tdep.o): Update dependencies.
753
754 2006-04-21 Frederic Riss <frederic.riss@st.com>
755
756 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
757 compilation directory as last argument.
758 Always pass comp_dir as second argument to start_subfile and prepend
759 dirname to the filename when necessary.
760 Remove now superfluous search for pre-existing subfile.
761 (dwarf_decode_lines): Pass the compilation directory to
762 dwarf2_start_subfile.
763
764 2006-04-20 Michael Snyder <msnyder@redhat.com>
765
766 * 2006-03-22 Jim Blandy <jimb@redhat.com>
767 Add support for the Renesas M32C and M16C.
768
769 * configure.tgt (m32c-*-*): New entry.
770 * config/m32c/m32c.mt: New file.
771 * m32c-tdep.c: New file.
772 * Makefile.in (elf_m32c_h): New variable.
773 (m32c-tdep.o): New rule.
774 * NEWS: Mention new target.
775 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
776
777 2006-04-20 Michael Snyder <msnyder@redhat.com>
778
779 * remote.c: Fix spelling error in comment.
780
781 2006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
782
783 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
784 Correct type of VALUEP. Reported by Jean-Rene Peulve
785 <jr.peulve@wanadoo.fr>.
786
787 2006-04-19 Masaki Muranaka <monaka@monami-software.com>
788
789 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
790 netdb.h, netinet/in.h.
791 (m32r_upload_command); Add calls WSAStartup().
792 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
793 netinet/in.h.
794
795 2006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
796
797 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
798 shadow_len.
799 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
800 (delete_breakpoint): Update calls to changed methods.
801 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
802 (single_step_breakpoints, insert_single_step_breakpoint)
803 (remove_single_step_breakpoints): New.
804 * breakpoint.h (struct bp_target_info): New.
805 (struct bp_location): Replace shadow_contents with
806 target_info and overlay_target_info.
807 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
808 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
809 prototypes.
810 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
811 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
812 argument.
813 * mem-break.c (default_memory_insert_breakpoint): Update. Set
814 placed_address, placed_size, and shadow_len.
815 (default_memory_remove_breakpoint): Update. Don't use
816 BREAKPOINT_FROM_PC.
817 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
818 * target.c (update_current_target): Update prototypes for changed
819 functions.
820 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
821 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
822 Update.
823 * target.h: Forward declare struct bp_target_info.
824 (struct target_ops): Use a bp_target_info argument for
825 to_insert_breakpoint, to_remove_breakpoint,
826 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
827 (target_insert_breakpoint, target_remove_breakpoint)
828 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
829 (memory_insert_breakpoint, memory_remove_breakpoint)
830 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
831 Update.
832 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
833 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
834 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
835
836 * gdbarch.c, gdbarch.h: Regenerated.
837
838 * alpha-tdep.c (alpha_software_single_step): Use
839 insert_single_step_breakpoint and remove_single_step_breakpoints.
840 Remove unused statics.
841 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
842 * cris-tdep.c (cris_software_single_step): Likewise.
843 * mips-tdep.c (mips_software_single_step): Likewise.
844 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
845 * sparc-tdep.c (sparc_software_single_step): Likewise.
846 * wince.c (struct thread_info_struct): Remove step_prev.
847 (undoSStep): Use remove_single_step_breakpoints.
848 (wince_software_single_step): Use insert_single_step_breakpoint.
849
850 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
851 * exec.c (ignore): Likewise.
852 * sol-thread.c (ignore): Likewise.
853
854 * procfs.c (dbx_link_shadow_contents): Delete.
855 (dbx_link_bpt): New.
856 (procfs_mourn_inferior): Remove it if necessary.
857 (remove_dbx_link_breakpoint): Use it.
858 (insert_dbx_link_bpt_in_file): Set it.
859 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
860 * rs6000-nat.c (exec_one_dummy_insn): Use
861 deprecated_insert_raw_breakpoint and
862 deprecated_remove_raw_breakpoint.
863 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
864 (base_breakpoint): New.
865 (disable_break): Use it.
866 (enable_break): Set it.
867
868 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
869 Update.
870 * ia64-tdep.c (ia64_memory_insert_breakpoint)
871 (ia64_memory_remove_breakpoint): Likewise.
872 * m32r-tdep.c (m32r_memory_insert_breakpoint)
873 (m32r_memory_remove_breakpoint): Likewise.
874 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
875 Likewise. Remove unnecessary prototypes. Use placed_address
876 and placed_size. Removed useless read from memory.
877 * nto-procfs.c (procfs_insert_breakpoint)
878 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
879 (procfs_remove_hw_breakpoint): Update.
880 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
881 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
882 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
883 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
884 * remote-e7000.c (e7000_insert_breakpoint)
885 (e7000_remove_breakpoint): Likewise.
886 * remote-m32r-sdi.c (m32r_insert_breakpoint)
887 (m32r_remove_breakpoint): Likewise.
888 * remote-mips.c (mips_insert_breakpoint)
889 (mips_remove_breakpoint): Likewise.
890 * remote-rdp.c (remote_rdp_insert_breakpoint)
891 (remote_rdp_remove_breakpoint): Likewise.
892 (rdp_step): Use deprecated_insert_raw_breakpoint and
893 deprecated_remove_raw_breakpoint.
894 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
895 Update.
896 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
897 Delete.
898 (init_gdbsim_ops): Use memory_insert_breakpoint and
899 memory_remove_breakpoint.
900 * remote-st.c (st2000_insert_breakpoint)
901 (st2000_remove_breakpoint): Update. Remove unused
902 BREAKPOINT_FROM_PC.
903 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
904 Update. Use placed_address and placed_size.
905 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
906
907 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
908
909 * remote.c (extended_remote_restart): Pass the correct length
910 to getpkt.
911
912 2006-04-11 Jim Blandy <jimb@codesourcery.com>
913
914 * serial.c (serial_open): Check for special cases at the front of
915 the "device" name before scanning for the ':' that would indicate
916 an IP-based connection.
917
918 2006-04-10 Christopher Faylor <cgf@timesys.com>
919
920 * win32-nat.c (open_symbol_file_object): New function.
921 (in_dynsym_resolve_code): Ditto.
922 (init_win32_ops): Fill in fields which ought not to be NULL.
923
924 2006-04-10 Christopher Faylor <cgf@timesys.com>
925
926 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
927 with saved context if __COPY_CONTEXT_SIZE is not defined.
928 (handle_output_debug_string): Ditto.
929
930 2006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
931
932 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
933
934 2006-04-09 David S. Miller <davem@sunset.davemloft.net>
935
936 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
937 frame sniffer.
938 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
939 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
940 that the latter can override.
941 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
942
943 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
944
945 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
946 (s390_store): Call pv_area_store to track stack slots.
947 (s390_load): Call pv_area_fetch to track stack slots.
948 (s390_check_for_saved): New function.
949 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
950
951 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
952
953 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
954 * s390-tdep.c: Include "prologue-value.h".
955 (struct prologue_value): Remove.
956 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
957 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
958 pv_logical_and, pv_is_identical, pv_is_register): Remove.
959 (compute_x_addr): Remove, replace by ...
960 (s390_addr): ... this new function.
961 (struct s390_prologue_data): Use pv_t instead of prologue_value.
962 (s390_store, s390_load): Likewise.
963 (s390_prologue_frame_unwind_cache): Likewise.
964 (s390_analyze_prologue): Likewise. Also, simplify and combine
965 several conditional statements.
966
967 2006-04-08 Jim Blandy <jimb@codesourcery.com>
968
969 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
970 last patch.)
971
972 2006-04-08 David S. Miller <davem@sunset.davemloft.net>
973
974 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
975 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
976 (sparc32_linux_core_gregset,
977 sparc32_linux_supply_core_gregset,
978 sparc32_linux_collect_core_gregset,
979 sparc32_linux_supply_core_fpregset,
980 sparc32_linux_collect_core_fpregset): New.
981 (sparc32_linux_init_abi): Register them with generic sparc
982 core regset infrastructure.
983 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
984 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
985 (sparc64_linux_core_gregset,
986 sparc64_linux_supply_core_gregset,
987 sparc64_linux_collect_core_gregset,
988 sparc64_linux_supply_core_fpregset,
989 sparc64_linux_collect_core_fpregset): New.
990 (sparc64_linux_init_abi): Register them with generic sparc
991 core regset infrastructure.
992 * Makefile.in: Update dependencies.
993
994 2006-04-07 David S. Miller <davem@sunset.davemloft.net>
995
996 * linux-nat.c (linux_nat_thread_alive): Handle targets that
997 do not implement PTRACE_PEEKUSER.
998
999 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
1000
1001 * remote.c (remote_wait): Convert warning to error before
1002 parsing corrupt packets.
1003
1004 2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
1005
1006 * cli/cli-script.c (struct user_args): Add command field.
1007 (arg_cleanup): Free command string.
1008 (setup_user_args): Copy the command line before relying on it.
1009
1010 2006-04-06 Joel Brobecker <brobecker@adacore.com>
1011
1012 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1013 of the "delete" command.
1014
1015 2006-04-06 Randolph Chung <tausq@debian.org>
1016
1017 * MAINTAINERS (Patch champions): Add myself.
1018
1019 2006-04-05 Andreas Schwab <schwab@suse.de>
1020
1021 * Makefile.in: Update dependencies.
1022
1023 2006-04-05 David S. Miller <davem@sunset.davemloft.net>
1024
1025 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1026 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1027 * Makefile.in (sparc-tdep.o): Update dependencies.
1028 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1029 window out of the correct stack frame.
1030 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
1031 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1032 argument.
1033 (dwarf2_frame_default_init_reg): Likewise.
1034 (dwarf2_frame_set_init_reg): Update init_reg arg.
1035 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1036 ops->init_reg().
1037 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1038 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1039 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1040 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1041 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1042 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1043 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1044 (sparc32_frame_cache): Call it.
1045 (sparc32_dwarf2_struct_return_p): New function.
1046 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1047 returns a structure and thus we have to indicate the return PC and
1048 NPC are 4 bytes later than usual.
1049 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1050 dwarf2 frame sniffer.
1051 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
1052
1053 2006-04-04 David S. Miller <davem@davemloft.net>
1054
1055 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1056 * config/linux64.h (NATDEPFILES): Likewise
1057 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1058 fill_fpregset): New.
1059 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1060 fill_fpregset): New.
1061 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1062 new includes.
1063
1064 2006-04-04 Andreas Schwab <schwab@suse.de>
1065
1066 * Makefile.in (elf_common_h): Define.
1067
1068 2006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
1069
1070 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1071 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1072
1073 2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
1074
1075 * value.h (struct internalvar): Add field 'endian'.
1076 * value.c (lookup_internalvar): Initialise endian.
1077 (value_of_internalvar): Flip the endian of built-in types if required.
1078 (set_internalvar): Set the endian.
1079 (show_convenience): Access the value through value_of_internalvar().
1080
1081 2006-03-30 Vladimir Prus <ghost@cs.msu.su>
1082
1083 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1084 instead of hardcoded integer literals.
1085
1086 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1087
1088 * cli/cli-script.c (insert_args): Handle NULL user_args.
1089
1090 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1091
1092 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1093 the function at zero if we have no symbols.
1094
1095 2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
1096
1097 * i386-stub.c (getpacket): Fix array overflow.
1098 * m32r-stub.c (getpacket): Likewise.
1099 * m68k-stub.c (getpacket): Likewise.
1100 * sh-stub.c (getpacket): Likewise.
1101 * sparc-stub.c (getpacket): Likewise.
1102
1103 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1104
1105 * frame.h (set_current_sal_from_frame): New prototype.
1106 * stack.c (set_current_sal_from_frame): Make global.
1107 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1108
1109 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1110
1111 * linux-thread-db.c: Include "linux-nat.h".
1112 (check_for_thread_db): New function, split out from
1113 thread_db_new_objfile. Remove dead check for active
1114 thread_db on inapplicable targets.
1115 (thread_db_new_objfile): Call check_for_thread_db.
1116 * Makefile.in (linux-thread-db.o): Update.
1117 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1118 (linux_child_post_startup_inferior): Likewise.
1119 (lin_lwp_attach_lwp): Call target_post_attach instead of
1120 child_post_attach.
1121 * linux-nat.h (check_for_thread_db): New prototype.
1122
1123 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1124
1125 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1126 (init_remote_state): Initialize the new fields.
1127 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1128 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1129 (remote_get_threadinfo, parse_threadlist_response)
1130 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1131 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1132 (remote_check_symbols, remote_open_1, remote_detach)
1133 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1134 (remote_wait, remote_async_wait, fetch_register_using_p)
1135 (remote_fetch_registers, store_register_using_P)
1136 (remote_store_registers, check_binary_download, remote_write_bytes)
1137 (remote_read_bytes, remote_insert_breakpoint)
1138 (remote_remove_breakpoint, remote_insert_watchpoint)
1139 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1140 (remote_remove_hw_breakpoint, compare_sections_command)
1141 (remote_xfer_partial, remote_rcmd, packet_command)
1142 (remote_get_thread_local_address): Use the global incoming buffer
1143 instead of alloca or xmalloc. Limit outgoing packets to
1144 rs->remote_packet_size and incoming packets to rs->buf_size.
1145 Update calls to getpkt and remote_send.
1146 (remote_send): Take arguments by reference.
1147 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1148 (skip_frame): New function.
1149 (read_frame): Take arguments by reference. Expand the packet
1150 buffer instead of issuing an error.
1151 (getpkt, getpkt_sane): Take arguments by reference.
1152 * remote.h (getpkt): Update prototype and doc.
1153 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1154 reference.
1155 (target_buf): Change from array to pointer.
1156 (target_buf_size): New variable.
1157 (remote_set_transparent_ranges): Update call to getpkt.
1158 (trace_start_command, trace_stop_command, trace_status_command):
1159 Update calls to remote_get_noisy_reply.
1160 (finish_tfind_command): Take arguments by reference.
1161 (trace_find_command, trace_find_pc_command)
1162 (trace_find_tracepoint_command, trace_find_line_command):
1163 (trace_find_range_command, trace_find_outside_command): Update
1164 calls to finish_tfind_command.
1165 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1166
1167 2005-03-30 Randolph Chung <tausq@debian.org>
1168
1169 * hppa-linux-tdep.c: Include regset.h.
1170 (GR_REGNUM, TR_REGNUM, greg_map): New.
1171 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1172 (hppa_linux_regset, hppa_linux_fpregset): New.
1173 (hppa_linux_regset_from_core_section): New.
1174 (hppa_linux_init_abi): Set regset_from_core_section.
1175 (_initialize_hppa_linux_tdep): Register osabi handler for
1176 64-bit Linux.
1177 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1178 * config/pa/linux.mh: Stop using core-regset.o
1179
1180 2006-03-30 Randolph Chung <tausq@debian.org>
1181
1182 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1183 (hppa_frame_cache): Use new function to find unwind entry.
1184 (hppa_frame_this_id): Likewise.
1185 (hppa_frame_unwind_sniffer): Likewise.
1186
1187 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1188
1189 * NEWS: Mention the removal of NLM.
1190
1191 2006-03-29 Steve Ellcey <sje@cup.hp.com>
1192
1193 * Makefile.in (nlm): Remove target.
1194 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1195 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1196 * configure: Regenerate.
1197 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1198 * nlm: Remove directory.
1199
1200 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1201
1202 * Makefile.in (utils.o): Update.
1203 * top.c (in_user_command): New.
1204 (command_line_input): Use input_from_terminal_p.
1205 (input_from_terminal_p): Don't check caution. Handle
1206 stdin == NULL for Insight.
1207 * top.h (in_user_command, caution): New declarations.
1208 * utils.c: Include "top.h".
1209 (query, defaulted_query): Check caution here. Move the call
1210 to input_from_terminal_p higher.
1211 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1212 the depth. Update in_user_command if necessary.
1213 (execute_user_command): Don't clobber old_chain. Set
1214 in_user_command. Let do_restore_user_call_depth handle
1215 user_call_depth.
1216 (read_command_lines): Check whether to prompt before calling
1217 Insight hooks.
1218 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1219 input_from_terminal_p check.
1220
1221 2006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1224 (s390_remove_watchpoint): Likewise.
1225
1226 2006-03-28 Jim Blandy <jimb@codesourcery.com>
1227
1228 * prologue-value.c, prologue-value.h: New files.
1229 * Makefile.in (prologue_value_h): New variable.
1230 (HFILES_NO_SRCDIR): List prologue-value.h.
1231 (SFILES): List prologue-value.c.
1232 (COMMON_OBS): List prologue-value.o.
1233 (prologue-value.o): New rule.
1234
1235 2006-03-27 Michael Snyder <msnyder@redhat.com>
1236
1237 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1238 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
1239 xstormy16_frame_prev_register): Change void* to gdb_byte*.
1240 (xstormy16_push_dummy_call): Add block-local char* val,
1241 to avoid type conflict with outer scope variable.
1242
1243 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
1244
1245 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1246
1247 2006-03-27 Nick Roberts <nickrob@snap.net.nz>
1248
1249 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1250 offsets for languages like Fortran.
1251
1252 2006-03-26 Randolph Chung <tausq@debian.org>
1253
1254 * config/pa/hppa64.mt: Use HPUX version of the tm file.
1255
1256 2006-03-25 Nick Roberts <nickrob@snap.net.nz>
1257
1258 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1259 Try to deal with continuation line.
1260 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1261 variable names.
1262 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
1263 Future proof against new fields being added to MI output.
1264 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1265 (gdbmi-frame-handler): Update to new variable name
1266 gdb-get-buffer-create.
1267 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1268 frames which except the innermost (where execution has stopped).
1269
1270 2006-03-24 Randolph Chung <tausq@debian.org>
1271
1272 * solib-som.c (link_map_start): Don't error out if there is
1273 not yet a link map.
1274
1275 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1276
1277 * linux-nat.c (linux_ops_saved): New.
1278 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1279 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1280 (linux_nat_fetch_registers, linux_nat_store_registers)
1281 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1282 (init_lwp_list): Don't set threaded.
1283 (add_lwp): Don't modify threaded.
1284 (delete_lwp): Don't mention non-threaded mode.
1285 (linux_nat_switch_fork): New.
1286 (linux_nat_attach): Update inferior_ptid.
1287 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
1288 threaded flag.
1289 (linux_nat_kill): Handle pending forks and saved forks.
1290 (linux_nat_mourn_inferior): Handle saved forks.
1291 (linux_nat_pid_to_str): Don't use the LWP form when there is
1292 only one thread.
1293 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1294 (linux_nat_add_target): New.
1295 (_initialize_linux_nat): Don't initialize the linux native target
1296 here.
1297 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1298 prototypes.
1299 * linux-fork.c: Include "linux-nat.h".
1300 (add_fork): Update initial PID.
1301 (fork_load_infrun_state): Call linux_nat_switch_fork.
1302 * Makefile.in (linux-fork.o): Update.
1303
1304 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1305 linux_nat_add_target instead of add_target.
1306 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1307 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1308 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1309 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1310 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1311 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1312 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1313 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1314 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1315 * s390-nat.c (_initialize_s390_nat): Likewise.
1316 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1317 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1318
1319 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1320
1321 * linux-fork.c: Include "gdb_assert.h".
1322 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1323 Update the register cache and selected frame also.
1324 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
1325 to single fork mode if necessary.
1326 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1327 * Makefile.in (linux_fork_h): New.
1328 (linux-fork.o, linux-nat.o): Update.
1329
1330 2006-03-23 Andreas Schwab <schwab@suse.de>
1331
1332 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1333
1334 2006-03-18 Jim Blandy <jimb@codesourcery.com>
1335
1336 * symtab.h (enum address_class): Doc fix.
1337
1338 2006-03-16 Michael Snyder <msnyder@redhat.com>
1339
1340 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
1341 * target.c (push_target): Fix typo in comment.
1342 * remote.c (remote_watch_data_address): Fix typo in comment.
1343 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1344
1345 2006-03-15 Kevin Buettner <kevinb@redhat.com>
1346
1347 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1348 Include.
1349 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1350 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1351 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1352 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1353 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1354 (frv_elf_fpregset_t): Define types.
1355 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1356 (frv_linux_regset_from_core_section: New functions.
1357 (frv_linux_gregset, frv_linux_fpregset): New static globals.
1358 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1359 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1360 * solib-frv.c (frv_current_sos): Relocate main executable after
1361 loading core file.
1362 (frv_clear_solib): Clean up space associated with
1363 `main_executable_lm_info'.
1364 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1365
1366 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1367
1368 * Makefile.in (mips_linux_tdep_h): New.
1369 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1370 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1371 <sys/ptrace.h>.
1372 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1373 (mips64_linux_regsets_fetch_registers)
1374 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1375 (mips64_linux_store_registers): New.
1376 (_initialize_mips_linux_nat): Override to_fetch_registers and
1377 to_store_registers.
1378 * mips-linux-tdep.h: New file.
1379 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1380 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1381 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1382 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1383 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1384 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1385 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1386 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1387 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1388 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1389 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1390 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1391 (supply_32bit_reg): Use gdb_byte.
1392 (supply_64bit_reg): New.
1393 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1394 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1395 (fill_gregset, supply_fpregset): Update for renamed types.
1396 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1397 (mips64_fill_gregset): Make global. Handle 32-bit register
1398 sizes.
1399 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1400 FP regsets properly.
1401
1402 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1403
1404 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1405 (mips_fill_gregset): Renamed from fill_gregset.
1406 (mips_supply_fpregset): Renamed from supply_fpregset.
1407 (mips_fill_fpregset): Renamed from fill_fpregset.
1408 (fetch_core_registers): Update calls.
1409 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1410 functions.
1411
1412 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1413
1414 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1415
1416 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1417
1418 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1419 Correct arithmetic for 64-bit CORE_ADDR.
1420
1421 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1422
1423 * mips-linux-tdep.c: Include "floatformat.h".
1424 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
1425 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1426 double.
1427 (print_gp_register_row): Don't print spaces before ignored
1428 or floating point registers.
1429 * Makefile.in (mips-linux-tdep.o): Update.
1430
1431 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1432
1433 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1434 for code addresses.
1435 (non_heuristic_proc_desc): Likewise.
1436
1437 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1438
1439 * mips-linux-nat.c: Include "gdb_proc_service.h".
1440 (PTRACE_GET_THREAD_AREA): Define.
1441 (ps_get_thread_area): New.
1442 * Makefile.in (mips-linux-nat.o): Update.
1443
1444 2006-03-13 Jim Blandy <jimb@codesourcery.com>
1445
1446 * MAINTAINERS: Use my work address.
1447
1448 2006-03-09 Michael Snyder <msnyder@redhat.com>
1449
1450 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1451 instead of getting tricky for the multi-fork case.
1452 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1453 for each fork, and then use init_fork_list to delete them.
1454
1455 2006-03-08 Alexandre Oliva <aoliva@redhat.com>
1456
1457 * solib-svr4.c (svr4_current_sos): Move up initialization of
1458 l_addr, such that it clearly covers all cases.
1459
1460 2006-03-08 Andreas Schwab <schwab@suse.de>
1461
1462 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1463 libunwind_frame_prev_register to use a gdb_byte buffer and
1464 extract_unsigned_integer.
1465 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1466
1467 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1468 of last argument to `gdb_byte *'
1469 * libunwind-frame.h: Adjust declaration.
1470
1471 2006-03-08 Paul Brook <paul@codesourcery.com>
1472
1473 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1474 (arm_frame_align): New function.
1475 (arm_gdbarch_init): Use it.
1476
1477 2006-03-03 Khem Raj <khem@mvista.com>
1478
1479 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1480 Committed by Andrew Cagney.
1481
1482 2006-03-02 Corinna Vinschen <vinschen@redhat.com>
1483
1484 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1485 address to MDR register.
1486
1487 2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1488
1489 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1490 calls.
1491
1492 2006-03-01 Randolph Chung <tausq@debian.org>
1493
1494 * somread.c (som_symfile_read): Update comment and remove unneeded
1495 use of a deprecated variable.
1496
1497 2006-03-01 Randolph Chung <tausq@debian.org>
1498
1499 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1500 runtime specification.
1501 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1502 (unwind_command): Likewise.
1503
1504 2006-03-01 Randolph Chung <tausq@debian.org>
1505
1506 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1507 Pseudo_SP_Set in unwind record.
1508
1509 2006-03-01 Randolph Chung <tausq@debian.org>
1510
1511 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1512 TDEP->is_elf to determine if we are working with a SOM binary.
1513 (null_symtab_and_line): Remove unused variable.
1514 * config/pa/hppa64.mt: Use tm-hppa.h.
1515 * config/pa/tm-hppa64.h: Remove file.
1516
1517 2006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
1518
1519 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1520
1521 2006-02-28 Kevin Buettner <kevinb@redhat.com>
1522
1523 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1524 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1525 Include.
1526 (am33_linux_sigframe_cache_init): New function.
1527 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1528 descriptions.
1529 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1530 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1531 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1532 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1533 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1534 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1535 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1536 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1537 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1538 New constants.
1539 (am33_linux_init_osabi): Register signal frame unwinders.
1540
1541 2006-02-28 Kevin Buettner <kevinb@redhat.com>
1542
1543 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1544 out of pattern match by saving relevant state. Fix stack size
1545 adjustment bug.
1546
1547 2006-02-28 Alexandre Oliva <aoliva@redhat.com>
1548
1549 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1550 l_ld_size fields.
1551 * solib-svr4.c (struct lm_info): Add l_addr field.
1552 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1553 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1554 (LM_DYNAMIC_FROM_LINK_MAP): New.
1555 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1556 (svr4_current_sos): Initialize l_addr. Adjust.
1557 (svr4_relocate_section_addresses): Adjust.
1558 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1559 (svr4_lp64_fetch_link_map_offsets): Likewise.
1560 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1561 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1562 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1563 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1564
1565 2006-02-26 David S. Miller <davem@sunset.davemloft.net>
1566
1567 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1568 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1569
1570 2006-02-27 Alan Modra <amodra@bigpond.net.au>
1571
1572 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1573 (ppc_linux_remove_watchpoint): Likewise, and args.
1574
1575 2006-02-26 Mark Kettenis <kettenis@gnu.org>
1576
1577 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1578 "soft" interrupts.
1579
1580 2006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
1581
1582 * gdb/defs.h: unconditionally include <fcntl.h>, and
1583 ensure that O_BINARY is defined.
1584 * gdb/solib.c(solib_open): ensure solib files are opened in
1585 binary mode.
1586 * gdb/corelow.c: Remove O_BINARY macro definition.
1587 * gdb/exec.c: Remove O_BINARY macro definition
1588 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1589 * gdb/source.c: Remove O_BINARY macro definition
1590 * gdb/symfile.c: Remove O_BINARY macro definition
1591
1592 2006-02-24 Randolph Chung <tausq@debian.org>
1593
1594 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1595 argreg.
1596 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1597 function.
1598
1599 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
1600
1601 * f-exp.y: Symbol '%' is not used as the modulus operator in
1602 Fortran. Delete this from Fortran expression.
1603 It is now used by Fortran 90 and later to access the member
1604 of derived type. Add this into Fortran expression.
1605 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
1606 Print each elements in the derived type.
1607 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
1608 level into the function definition to do indented printing. And
1609 call fprintfi_filtered instead to do indented printing.
1610 (f_type_print_base): Replace fprintf_filtered with the indented
1611 version (fprintfi_filtered).
1612 (f_type_print_base): Call indented print_equivalent_f77_float_type.
1613 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
1614 the definition of the derived type.
1615
1616 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1617
1618 * gdb_curses.h: Provide a fallback prototype for tgetnum.
1619
1620 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1621
1622 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
1623 also.
1624 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
1625 (DOUBLEST_SCAN_FORMAT): New.
1626 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
1627 (processReal): Use DOUBLEST_SCAN_FORMAT.
1628 * c-exp.y (parse_number): Likewise.
1629 * jv-exp.y (parse_number): Likewise.
1630 * objc-exp.y (parse_number): Likewise.
1631 * p-exp.y (parse_number): Likewise.
1632
1633 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1634
1635 * event-top.c (async_do_nothing, async_disconnect)
1636 (async_stop_sig, async_float_handler): Remove duplicated
1637 prototypes.
1638 (handle_sighup): Guard prototype with SIGHUP.
1639 (async_do_nothing): Guard function and prototype with
1640 SIGQUIT || SIGHUP.
1641 (async_disconnect): Guard prototype with SIGHUP.
1642 (async_stop_sig): Guard prototype with STOP_SIGNAL.
1643
1644 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1645
1646 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
1647
1648 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1649
1650 * win32-termcap.c (tputs): Return 0.
1651
1652 2006-02-21 Mark Kettenis <kettenis@gnu.org>
1653
1654 * configure.ac: Introduce ---enable-werror, which adds -Werror to
1655 the compiler command line. Enabled by default. Disable with
1656 --disable-werror.
1657 * configure regenerate.
1658
1659 2006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
1660
1661 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
1662 special.
1663
1664 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1665
1666 * defs.h (directory_switch): Add prototype.
1667 * main.c (captured_main): Use directory_switch() instead of
1668 directory_command() to add directories from the -d switch.
1669 * source.c (directory_switch): New function.
1670 (add_path): Use buildargv() to parse spaces in filenames properly.
1671 Strip multiple trailing '/' rather than just one.
1672
1673 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1674
1675 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
1676 hand decoding the command line, to allow use of quotes and spaces.
1677 (_initialize_symfile): Reorganize the help message for add-symbol-file
1678 such that 'help files' shows a better message.
1679
1680 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
1681
1682 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
1683 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
1684 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
1685 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
1686
1687 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1688
1689 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
1690 and __SIGRTMIN + 1.
1691
1692 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1693
1694 * remote.c: Add an enumeration for configurable remote
1695 packets.
1696 (remote_protocol_packets, set_remote_protocol_packet_cmd)
1697 (show_remote_protocol_packet_cmd): New.
1698 (remote_protocol_vcont)
1699 (set_remote_protocol_vcont_packet_cmd)
1700 (show_remote_protocol_vcont_packet_cmd)
1701 (remote_protocol_qSymbol)
1702 (set_remote_protocol_qSymbol_packet_cmd)
1703 (show_remote_protocol_qSymbol_packet_cmd)
1704 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1705 (show_remote_protocol_P_packet_cmd)
1706 (remote_protocol_Z)
1707 (set_remote_protocol_Z_software_bp_packet_cmd)
1708 (show_remote_protocol_Z_software_bp_packet_cmd)
1709 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1710 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1711 (set_remote_protocol_Z_write_wp_packet_cmd)
1712 (show_remote_protocol_Z_write_wp_packet_cmd)
1713 (set_remote_protocol_Z_read_wp_packet_cmd)
1714 (show_remote_protocol_Z_read_wp_packet_cmd)
1715 (set_remote_protocol_Z_access_wp_packet_cmd)
1716 (show_remote_protocol_Z_access_wp_packet_cmd)
1717 (remote_protocol_binary_download)
1718 (set_remote_protocol_binary_download_cmd)
1719 (show_remote_protocol_binary_download_cmd)
1720 (remote_protocol_qPart_auxv)
1721 (set_remote_protocol_qPart_auxv_packet_cmd)
1722 (show_remote_protocol_qPart_auxv_packet_cmd)
1723 (remote_protocol_qGetTLSAddr)
1724 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1725 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1726 (remote_protocol_p)
1727 (set_remote_protocol_p_packet_cmd)
1728 (show_remote_protocol_p_packet_cmd): Delete.
1729
1730 (init_all_packet_configs): Simplify.
1731 (set_remote_protocol_Z_packet_cmd)
1732 (show_remote_protocol_Z_packet_cmd)
1733 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1734 (remote_fetch_registers, remote_prepare_to_store)
1735 (remote_store_registers, check_binary_download)
1736 (remote_write_bytes, remote_insert_breakpoint)
1737 (remote_remove_breakpoint, remote_insert_watchpoint)
1738 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1739 (remote_remove_hw_breakpoint, remote_xfer_partial)
1740 (remote_get_thread_local_address): Update for packet array.
1741 (_initialize_remote): Likewise; also update for common
1742 set/show commands.
1743
1744 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1745
1746 * symfile.c (place_section): Correct retry logic.
1747
1748 2006-02-19 Christopher Faylor <cgf@timesys.com>
1749
1750 * win32_nat.c (cygwin_load_start): New variable.
1751 (cygwin_load_end): Ditto.
1752 (have_saved_context): Ditto.
1753 (saved_context): Ditto.
1754 (max_dll_name_len): Delete obsolete variable.
1755 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1756 if we are in a cygwin signal rather than a windows signal.
1757 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1758 if dll being loaded is the cygwin DLL.
1759 (register_loaded_dll): Remove calculation of max_dll_name_len.
1760 (win32_clear_solib): Ditto.
1761 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1762 solib_add.
1763 (handle_output_debug_string): Detect and store signal information sent
1764 by Cygwin here.
1765 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1766 -1 on first pass exception.
1767 (win32_continue): Remove spurious clearing of continue_status.
1768 (get_win32_debug_event): Deal differently first chance exception.
1769
1770 2006-02-19 Randolph Chung <tausq@debian.org>
1771
1772 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1773 unwind entry.
1774
1775 2006-02-16 Fred Fish <fnf@specifix.com>
1776
1777 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1778 a non lval value zero, of the appropriate type, when avoiding
1779 side effects.
1780 * typeprint.c (ptype_eval): Remove function and declaration.
1781 (ptype_command): Simplify to just a call to whatis_exp.
1782
1783 2006-02-15 Paul Brook <paul@codesourcery.com>
1784
1785 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1786 Load insn opcodes as unsigned values.
1787
1788 2006-02-14 Alexandre Oliva <aoliva@redhat.com>
1789
1790 * doublest.h (DOUBLEST): Use long double only if we can scan
1791 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1792 (DOUBLEST_FORMAT): New.
1793 * c-exp.y (parse_number): Use it.
1794 * jv-exp.y (parse_number): Likewise.
1795 * objc-exp.y (parse_number): Likewise.
1796 * p-exp.y (parse_number): Likewise.
1797 * varobj.c (free_variable): Silence type-punning warnings.
1798 * tui/tui-data.h (struct tui_list): Change type of list member.
1799 * tui/tui-data.c: Remove no-longer-needed type casts.
1800 (source_windows): Silence type-punning warnings.
1801 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1802
1803 2006-02-13 Mark Kettenis <kettenis@gnu.org>
1804
1805 Fix PR breakpoints/2080.
1806 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1807 (i386_analyze_stack_align): New function.
1808 (i386_analyze_prologue): Use i386_analyze_stack_align.
1809 (i386_frame_cache): Deal with stack realignment.
1810
1811 2006-02-14 Nick Roberts <nickrob@snap.net.nz>
1812
1813 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1814 (gdb-break-list-regexp): Match "what" field if present.
1815 (gdb-stack-list-frames-regexp): Match "from" field if present.
1816 (gdb-stack-list-frames-handler): Present output like "info
1817 breakpoints" so regexps can be shared with gdb-ui
1818
1819 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1820
1821 * NEWS: Mention native Windows support.
1822 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1823 (ALLDEPFILES): Add ser-mingw.c.
1824 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1825 (ser-tcp.o, ser-unix.o): Update.
1826 (ser-mingw.o): New rule.
1827 * configure: Regenerated.
1828 * configure.ac: Add ser-mingw.o for mingw32.
1829 * ser-mingw.c: New file.
1830 * event-loop.c: Include "gdb_select.h".
1831 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1832 * ser-base.c: Include "gdb_select.h".
1833 (ser_base_wait_for): Use gdb_select.
1834 * serial.c (serial_for_fd): New function.
1835 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1836 the allocated struct serial.
1837 (serial_wait_handle): New function.
1838 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1839 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1840 * gdb_select.h: New file.
1841 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1842 (net_close, net_read_prim, net_write_prim): Make global.
1843 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1844 Document why we can not use gdb_select.
1845 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1846 * ser-tcp.h: New file.
1847 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1848 (handle_sigio): Use gdb_select.
1849 (initialize_stdin_serial): New function.
1850 * terminal.h (initialize_stdin_serial): New prototype.
1851 * top.c (gdb_init): Call initialize_stdin_serial.
1852 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1853 event-loop.c. Add exception condition support. Use serial_for_fd
1854 and serial_wait_handle. Fix timeout handling.
1855 * posix-hdep.c: Include "gdb_select.h".
1856 (gdb_select): New function.
1857 * remote-st.c (connect_command): Use gdb_select.
1858 * ser-unix.c: Include "gdb_select.h".
1859 (hardwire_send_break, wait_for): Use gdb_select.
1860
1861 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1862
1863 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1864 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1865 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1866 to posix-hdep.o by default.
1867 * configure: Regenerated.
1868 * configure.host: Document gdb_host_obs. Add an entry for
1869 i[34567]86-*-mingw32*.
1870 * mingw-hdep.c, posix-hdep.c: New files.
1871 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1872
1873 2006-02-10 Joel Brobecker <brobecker@adacore.com>
1874
1875 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1876 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1877 * rs6000-tdep.h: New file.
1878 * rs6000-tdep.c: Include "rs6000-tdep.h".
1879 (rs6000_gdbarch_init): Remove enabling of software single step.
1880 Will be done in the AIX-specific initialization routine.
1881 * rs6000-aix-tdep.c: New file.
1882 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1883 * Makefile.in (rs6000_tdep_h): New variable.
1884 (rs6000-tdep.o): Update dependencies.
1885 (rs6000-aix-tdep.o): New rule.
1886
1887 2006-02-10 Joel Brobecker <brobecker@adacore.com>
1888
1889 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1890 instead of add_setshow_zinteger_cmd to defined the aix-thread
1891 boolean setting.
1892
1893 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
1894
1895 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1896
1897 2006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
1898
1899 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1900 30 bits. Add load_all_dies flag.
1901 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1902 Load DW_TAG_member by default. Remove internal_error call.
1903 (find_partial_die): Reload the compilation unit if we can not find
1904 a DIE in the cache. Call internal_error here if we still can not
1905 find the DIE.
1906
1907 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
1908
1909 * breakpoint.c (print_one_breakpoint): Add break to case
1910 bp_catch_vfork in switch statement.
1911
1912 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1913
1914 * config/i386/nm-i386sol2.h: Update copyright year.
1915 * config/mips/nm-irix5.h: Ditto.
1916 * config/sparc/nm-sol2.h: Ditto.
1917 * s390-nat.c: Ditto.
1918 * ppc-linux-nat.c: Ditto.
1919
1920 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1921
1922 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1923 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1924 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1925 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1926 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1927 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1928 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1929 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1930 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1931 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1932 add to_region_ok_for_hw_watchpoint.
1933 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1934 (s390_region_ok_for_hw_watchpoint): New.
1935 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1936 and add to_region_ok_for_hw_watchpoint.
1937 * target.c (default_region_size_ok_for_hw_watchpoint,
1938 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1939 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1940 inheritance and default_region_size_ok_for_hw_watchpoint.
1941 (default_region_ok_for_hw_watchpoint): If len is less than or equal
1942 the length of void pointer, return ok.
1943 (default_region_size_ok_for_hw_watchpoint): Delete.
1944 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1945 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1946 * target.h (struct target_ops): Delete
1947 to_region_size_ok_for_hw_watchpoint.
1948 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1949
1950 2006-02-08 Ben Elliston <bje@au1.ibm.com>
1951 Wu Zhou <woodzltc@cn.ibm.com>
1952
1953 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1954 PTRACE_GETSIGINFO): Define.
1955 (last_stopped_data_address): New.
1956 (ppc_linux_check_watch_resources): New function.
1957 (ppc_linux_region_ok_for_hw_watchpoint): New function.
1958 (ppc_linux_insert_watchpoint): New function.
1959 (ppc_linux_remove_watchpoint): New function.
1960 (ppc_linux_stopped_data_address): New function.
1961 (ppc_linux_stopped_by_watchpoint): New function.
1962 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1963 related target vectors.
1964 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1965 to have nonsteppable watchpoint.
1966 * target.c (default_region_ok_for_hw_watchpoint,
1967 debug_to_region_ok_for_hw_watchpoint): New prototypes.
1968 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1969 and set default to_region_ok_for_hw_watchpoint.
1970 (default_region_ok_for_hw_watchpoint): New function.
1971 (debug_to_region_ok_for_hw_watchpoint): New function.
1972 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
1973 debug_target.
1974 * target.h (struct target_ops): Add a new target vector
1975 to_region_ok_for_hw_watchpoint.
1976 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1977 defined anyplace else.
1978
1979 2005-02-07 Joel Brobecker <brobecker@adacore.com>
1980 * symfile.c (add_symbol_file_command): Abort if the user forgot
1981 to provide the address when the file has been loaded.
1982
1983 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1984
1985 * MAINTAINERS: Update file based on maintainers survey. Add
1986 a note to Past Maintainers. Move unresponsive or inactive
1987 maintainers to Authorized Committers or Past Maintainers as
1988 appropriate. Correct Jim Kingdon's email address. Remove
1989 vacant areas of responsibility.
1990
1991 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
1992
1993 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1994 fullname field.
1995
1996 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1997
1998 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1999 * exceptions.c (exception_none, exceptions_state_mc_init)
2000 (throw_vfatal): Use GDB_NO_ERROR.
2001
2002 2006-02-02 Mark Kettenis <kettenis@gnu.org>
2003
2004 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2005 r_map_size members. Add r_version_offset, r_version_size and
2006 r_ldsomap_offset members.
2007 * solib-svr4.c (solib_svr4_r_map): Renamed from
2008 fetch_link_map_member. Simplify using read_memory_typed_address.
2009 (solib_svr4_r_ldsomap): New function.
2010 (open_symbol_file_object): Use solib_svr_r_map.
2011 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2012 linker by using solib_svr4_r_ldsomap.
2013 (svr4_ilp32_fetch_link_map_offsets)
2014 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2015 link_map_offsets'.
2016 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2017 changes to `struct link_map_offsets'.
2018 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2019 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2020 `struct link_map_offsets'.
2021
2022 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2023
2024 * linux-nat.c (struct saved_ptids, threads_to_delete)
2025 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2026 (exit_lwp): New.
2027 (linux_nat_resume): Call prune_lwps.
2028 (wait_lwp, linux_nat_wait): Call exit_lwp.
2029
2030 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2031
2032 * printcmd.c (printf_command): Make format string checking
2033 stricter. Add separate cases for long_arg, ptr_arg, and
2034 long_double_arg.
2035 * utils.c (xstrvprintf): Improve the error message issued
2036 for a bad format string.
2037 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2038 New variables.
2039 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2040 $(NO_WERROR_CFLAGS).
2041 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2042 enable -Werror.
2043
2044 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2045
2046 * Makefile.in (remote.o): Update.
2047 * remote.c (show_packet_config_cmd): Shorten messages.
2048 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2049 (show_remote_cmd): Iterate.
2050 (_initialize_remote): Remove remote_set_cmdlist,
2051 remote_show_cmdlist.
2052
2053 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2054
2055 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2056 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2057 prototypes.
2058 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2059 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2060 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2061 ...here.
2062 * gdbtypes.c: Include "hashtab.h".
2063 (build_gdbtypes): Remove extra prototype.
2064 (struct type_pair, type_pair_hash, type_pair_eq)
2065 (create_copied_types_hash, copy_type_recursive): New.
2066 * gdbtypes.h: Include "hashtab.h".
2067 (TYPE_ZALLOC): New.
2068 (create_copied_types_hash, copy_type_recursive): New prototypes.
2069 * objfiles.c (free_objfile): Call preserve_values.
2070 * symfile.c (reread_symbols): Likewise.
2071 (clear_symtab_users): Remove calls to clear_value_history and
2072 clear_internalvars.
2073 * value.c (clear_value_history, clear_internalvars): Removed.
2074 (preserve_one_value, preserve_values): New functions.
2075 * value.h (clear_value_history, clear_internalvars): Removed.
2076 (preserve_values): New prototype.
2077
2078 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2079 variables here.
2080
2081 2006-01-29 Mark Kettenis <kettenis@gnu.org>
2082
2083 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2084 Fixes PR tdep/2075.
2085
2086 2006-01-27 Joel Brobecker <brobecker@adacore.com>
2087
2088 * MAINTAINERS: Use a consistent email address for brobecker.
2089
2090 2006-01-27 Joel Brobecker <brobecker@adacore.com>
2091
2092 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2093 in the previous change.
2094
2095 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2096
2097 PR gdb/1914
2098 * fork-child.c (fork_inferior): Don't call
2099 solib_create_inferior_hook.
2100 * infcmd.c (post_create_inferior): Call solib_add,
2101 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2102 (attach_command): Don't call solib_add or
2103 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2104 instead.
2105 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2106 or observer_notify_inferior_created. Call post_create_inferior
2107 instead.
2108 * corelow.c: Don't include "observer.h".
2109 (solib_add_stub): Deleted.
2110 (core_open): Don't call observer_notify_inferior_created or
2111 solib_add_stub. Call post_create_inferior instead.
2112 * inf-ptrace.c: Don't include "observer.h".
2113 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2114 * inf-ttrace.c: Don't include "observer.h".
2115 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2116 * inferior.h (solib_create_inferior_hook): Remove redundant
2117 prototype.
2118 * inftarg.c: Don't include "observer.h".
2119 (child_attach): Don't call observer_notify_inferior_created.
2120 * Makefile.in: Update dependencies.
2121
2122 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2123
2124 * infcmd.c: Include "observer.h".
2125 (post_create_inferior): New function.
2126 (run_command_1): Call it. Also call proceed.
2127 * inferior.h (post_create_inferior): New prototype.
2128 * Makefile.in (infcmd.o): Update.
2129
2130 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2131 * go32-nat.c (go32_create_inferior): Likewise.
2132 * nto-procfs.c (procfs_create_inferior): Likewise.
2133 * procfs.c (procfs_create_inferior): Likewise.
2134 * remote-sim.c (gdbsim_create_inferior): Likewise.
2135 * remote.c (extended_remote_create_inferior)
2136 (extended_remote_async_create_inferior): Likewise.
2137 * win32-nat.c (win32_create_inferior): Likewise.
2138 * wince.c (child_create_inferior): Likewise.
2139
2140 * monitor.c (monitor_create_inferior): Don't call proceed.
2141 Set the PC manually.
2142 * ocd.c (ocd_create_inferior): Likewise.
2143 * remote-e7000.c (e7000_create_inferior): Likewise.
2144 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2145 * remote-mips.c (mips_create_inferior): Likewise.
2146 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2147 * remote-sds.c (sds_create_inferior): Likewise.
2148 * remote-st.c (st2000_create_inferior): Likewise.
2149
2150 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2151 proceed or observer_notify_inferior_created.
2152 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2153 * inftarg.c (child_create_inferior): Likewise.
2154
2155 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
2156
2157 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2158 after mourning the inferior.
2159
2160 2006-01-24 Jim Blandy <jimb@redhat.com>
2161
2162 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2163
2164 2006-01-24 Fred Fish <fnf@specifix.com>
2165
2166 * parse.c (source.h): Include.
2167 (parse_exp_in_context): Use static source context if no
2168 other context found.
2169
2170 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2171
2172 * sh-tdep.c: Include reggroups.h.
2173 (sh_register_reggroup_p): New function.
2174 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2175 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2176
2177 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
2178
2179 * cli/cli-cmds.c: Include fcntl.h.
2180 (source_command): Use the GDB search path to find script files.
2181
2182 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2183
2184 PR tdep/2029
2185 Suggested by Till Straumann <strauman@slac.stanford.edu>:
2186 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2187 instructions. Handle PIC bcl.
2188
2189 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
2190
2191 * config/djgpp/README: Typo fix.
2192 * config/djgpp/fnchange.lst: Update.
2193
2194 2006-01-22 Mark Kettenis <kettenis@gnu.org>
2195
2196 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2197 (sparc_address_from_register): New prototype.
2198 (sparcnbsd_step_trap): New prototype.
2199 * sparc-tdep.c (sparc_address_from_register): Make globally
2200 visible.
2201 (sparc_analyze_control_transfer): Change prototype to accept
2202 `struct gdbarch *' as first argument. Allow for optional hnadling
2203 for trap instructions.
2204 (sparc_step_trap): New function.
2205 (sparc_software_single_step): Adjust call to
2206 sparc_analyze_control_trabsfer.
2207 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2208 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2209 (sparc32nbsd_init_abi): Set TDEP->step_trap.
2210 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2211 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2212
2213 * sparc-tdep.c (sparc32_return_value): Convert to use
2214 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2215 RETURN_VALUE_STRUCT_CONVENTION.
2216 (sparc32_extract_struct_value_address): Remove.
2217
2218 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2219
2220 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2221 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2222
2223 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2224
2225 * solib.c (info_sharedlibrary_command): Avoid internal_error.
2226
2227 2006-01-21 Mark Kettenis <kettenis@gnu.org>
2228
2229 * i386-tdep.c (i386_mxcsr_type): New variable.
2230 (i386_init_types): Initialize i386_mxcsr_type.
2231 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2232 * i386-tdep.c (i386_mxcsr_type): New extern.
2233 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2234 %mxcsr.
2235
2236 2006-01-20 Mark Mitchell <mark@codesourcery.com>
2237
2238 * Makefile.in (remote-rdi.o): Remove.
2239 (rdi-share/libangsd.a): Likewise.
2240 * README: Don't mention remote-rdi.c.
2241 * NEWS: Mention removal of rdi-share.
2242 * configure.ac: Don't configure rdi-share subdirectory.
2243 * remote-rdi.c: Remove.
2244 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2245 (TDEPLIBS): Remove rdi-share/libangsd.a.
2246 * rdi-share/Makefile.am: Remove.
2247 * rdi-share/Makefile.in: Likewise.
2248 * rdi-share/README.CYGNUS: Likewise.
2249 * rdi-share/aclocal.m4: Likewise.
2250 * rdi-share/adp.h: Likewise.
2251 * rdi-share/adperr.h: Likewise.
2252 * rdi-share/angel.h: Likewise.
2253 * rdi-share/angel_bytesex.c: Likewise.
2254 * rdi-share/angel_bytesex.h: Likewise.
2255 * rdi-share/angel_endian.h: Likewise.
2256 * rdi-share/ardi.c: Likewise.
2257 * rdi-share/ardi.h: Likewise.
2258 * rdi-share/armdbg.h: Likewise.
2259 * rdi-share/buffers.h: Likewise.
2260 * rdi-share/chandefs.h: Likewise.
2261 * rdi-share/channels.h: Likewise.
2262 * rdi-share/chanpriv.h: Likewise.
2263 * rdi-share/configure: Likewise.
2264 * rdi-share/configure.in: Likewise.
2265 * rdi-share/crc.c: Likewise.
2266 * rdi-share/crc.h: Likewise.
2267 * rdi-share/dbg_conf.h: Likewise.
2268 * rdi-share/dbg_cp.h: Likewise.
2269 * rdi-share/dbg_hif.h: Likewise.
2270 * rdi-share/dbg_rdi.h: Likewise.
2271 * rdi-share/devclnt.h: Likewise.
2272 * rdi-share/devices.h: Likewise.
2273 * rdi-share/devsw.c: Likewise.
2274 * rdi-share/devsw.h: Likewise.
2275 * rdi-share/drivers.c: Likewise.
2276 * rdi-share/drivers.h: Likewise.
2277 * rdi-share/etherdrv.c: Likewise.
2278 * rdi-share/ethernet.h: Likewise.
2279 * rdi-share/host.h: Likewise.
2280 * rdi-share/hostchan.c: Likewise.
2281 * rdi-share/hostchan.h: Likewise.
2282 * rdi-share/hsys.c: Likewise.
2283 * rdi-share/hsys.h: Likewise.
2284 * rdi-share/logging.c: Likewise.
2285 * rdi-share/logging.h: Likewise.
2286 * rdi-share/msgbuild.c: Likewise.
2287 * rdi-share/msgbuild.h: Likewise.
2288 * rdi-share/params.c: Likewise.
2289 * rdi-share/params.h: Likewise.
2290 * rdi-share/rx.c: Likewise.
2291 * rdi-share/rxtx.h: Likewise.
2292 * rdi-share/serdrv.c: Likewise.
2293 * rdi-share/serpardr.c: Likewise.
2294 * rdi-share/sys.h: Likewise.
2295 * rdi-share/tx.c: Likewise.
2296 * rdi-share/unixcomm.c: Likewise.
2297 * rdi-share/unixcomm.h: Likewise.
2298
2299 2006-01-21 Mark Kettenis <kettenis@gnu.org>
2300
2301 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2302 Change type of last argument to `gdb_byte *'.
2303
2304 2006-01-20 Mark Kettenis <kettenis@gnu.org>
2305
2306 * hppa-tdep.h (hppa_in_solib_call_trampoline)
2307 (hppa_skip_trampoline_code): New prototypes.
2308 * hppa-tdep.c (struct insn_pattern): New.
2309 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2310 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2311 here from hppa-linux-tdep.c
2312 (HPPA_MAX_INSN_PATTERN_LEN): New define.
2313 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2314 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2315 functions based on functions removed from hppa-linux-tdep.c.
2316 * hppa-linux-tdep.c (hppa_long_branch_stub)
2317 (hppa_long_branch_pic_stub, hppa_import_stub)
2318 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2319 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2320 (hppa_linux_in_solib_call_trampoline)
2321 (hppa_linux_skip_trampoline_code): Removed.
2322 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2323 hppa_in_solib_call_trampoline and skip_trampoline_code to
2324 hppa_skip_trampoline_code.
2325 * hppabsd-tdep.c (hppabsd_init_abi): Set
2326 TDEP->in_solib_call_trampoline and skip_trampoline_code.
2327
2328 2006-01-20 Jim Blandy <jimb@redhat.com>
2329
2330 * MAINTAINERS: Change my E-mail address.
2331
2332 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2333 * configure: Regenerated.
2334
2335 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2336
2337 * MAINTAINERS: Overhaul.
2338
2339 2006-01-18 Mark Kettenis <kettenis@gnu.org>
2340
2341 Based on a previous patch form Michal Ludvig:
2342 * amd64-tdep.c (amd64_sse_type): Remove.
2343 (amd64_register_info): Use i386_eflags_type and i386_sse_type
2344 where appropriate.
2345 (AMD64_NUM_REGS): Use ARRAY_SIZE.
2346 (amd64_register_type): Remove code to build amd_sse_type.
2347 * i386-tdep.c (i386_eflag_type): New variable.
2348 (i386_mmx_type, i386_sse_type): Make global.
2349 (i386_init_types): New function.
2350 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2351 (i386_register_type): Return i386_eflag_type, i386_sse_type and
2352 i386_mmx_type when appropriate.
2353 (_initialize_i386_tdep): Call i386_init_types.
2354 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2355 Declare extern.
2356
2357 Based on a previous patch form Michal Ludvig:
2358 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2359 functions.
2360 (is_integral_type, rank_one_type, recursive_dump_type): Add
2361 support for TYPE_CODE_FLAGS.
2362 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2363 (append_flags_type_field, init_flags_type): New prototypes.
2364 * ada-valprint.c (ada_val_print_1): Add support for
2365 TYPE_CODE_FLAGS.
2366 * c-valprint.c (c_val_print): Likewise.
2367 * f-valprint.c (f_val_print): Likewise.
2368 * p-valprint.c (pascal_val_print): Likewise.
2369 * valprint.c (val_print_type_code_flags): New function.
2370 * valprint.h (val_print_type_code_flags): New prototype.
2371 * value.c (unpack_long, value_from_longest): Add support for
2372 TYPE_CODE_FLAGS.
2373
2374 2006-01-17 Christopher Faylor <cgf@timesys.com>
2375
2376 * MAINTAINERS: Very belatedly remove myself from from the list of
2377 people caught up in the paper trail.
2378
2379 2006-01-17 Jim Blandy <jimb@redhat.com>
2380
2381 * symtab.h (struct general_symbol_info): Use gdb_byte for
2382 value.bytes.
2383 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2384 a floating-point constant's value.
2385 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2386 to char *.
2387 * findvar.c (read_var_value): Eliminate needless temporary.
2388
2389 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2390 to match prior change to dwarf2_read_section's type.
2391
2392 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
2393
2394 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2395 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2396 (rs6000_in_function_epilogue_p): New functions.
2397 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2398
2399 2006-01-17 Jim Blandy <jimb@redhat.com>
2400
2401 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2402 (struct line_header, struct partial_die_info, struct dwarf_block):
2403 Use gdb_byte for members that refer to Dwarf section contents.
2404 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2405 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2406 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2407 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2408 read_8_bytes, read_address, read_attribute, read_attribute_value,
2409 read_comp_unit, read_comp_unit_head, read_die_and_children,
2410 read_die_and_siblings, read_full_die, read_indirect_string,
2411 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2412 read_signed_leb128, read_string, read_unsigned_leb128,
2413 skip_children, skip_leb128, skip_one_die): Same.
2414
2415 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2416
2417 * complaints.c (stop_whining): Make signed.
2418 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2419
2420 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2421
2422 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2423 notices.
2424
2425 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2426
2427 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2428 (read_offset): Change BYTES_READ argument to unsigned int.
2429 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2430 (create_all_comp_units, dwarf2_get_pc_bounds)
2431 (dwarf_decode_line_header, var_decode_location)
2432 (dwarf_decode_macros): Change local BYTES_READ variables to
2433 unsigned int.
2434 (read_indirect_string): Remove obsolete cast.
2435
2436 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
2437
2438 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2439 argument.
2440 (remote_fileio_func_open, remote_fileio_func_rename)
2441 (remote_fileio_func_unlink, remote_fileio_func_stat)
2442 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2443 (remote_fileio_func_system): Cast the arguments to
2444 remote_read_bytes and remote_write_bytes.
2445 (remote_fileio_func_read, remote_fileio_func_write): Use a
2446 gdb_byte buffer.
2447 * remote.h (remote_read_bytes, remote_write_bytes): Update
2448 prototypes.
2449 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2450 (threadref_to_int): Replace bogus char * cast.
2451 (remote_unpack_thread_info_response): Use int for tag.
2452 (remote_threads_extra_info, remote_check_symbols): Cast string
2453 arguments to hex2bin.
2454 (remote_wait): Use a char buffer for packets and a gdb_byte
2455 buffer for registers.
2456 (remote_async_wait): Likewise.
2457 (remote_prepare_to_store, store_register_using_P)
2458 (remote_store_registers): Use gdb_byte buffers.
2459 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2460 for MYADDR and char buffers for strings.
2461 (remote_xfer_partial): Add casts for string operations on READBUF.
2462 (remote_rcmd): Cast strings passed to bin2hex.
2463
2464 2006-01-16 Mark Mitchell <mark@codesourcery.com>
2465
2466 * aclocal.m4: Regenerate.
2467
2468 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
2469
2470 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2471 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2472 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2473 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2474 array registers.
2475 (mt_copro_register_type): New. Broken out of ...
2476 (mt_register_type): ... here. Use it. Deal with coprocessor
2477 pseudo array.
2478 (mt_select_coprocessor): New.
2479 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2480 coprocessor pseudo array.
2481
2482 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
2483
2484 * breakpoint.c (insert_breakpoints): Check that a thread exists
2485 before inserting thread specific breakpoints.
2486
2487 2006-01-15 Mark Kettenis <kettenis@gnu.org>
2488
2489 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2490 commit.
2491
2492 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2493 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2494 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2495 * config/alpha/nm-nbsd.h: Remove file.
2496 * config/alpha/nm-fbsd.h: Remove file
2497 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2498 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2499
2500 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2501
2502 * macroexp.c (expand): Initialize argc.
2503 * stabsread.c (read_type): Handle errors from read_args.
2504 (read_args): Return NULL for errors.
2505
2506 2006-01-15 Mark Kettenis <kettenis@gnu.org>
2507
2508 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2509 strcmp to compare string to a byte buffer.
2510
2511 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2512
2513 * printcmd.c (output_command): Always initialize fmt.size.
2514 (printf_command): Use gdb_byte.
2515 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2516 (load_section_callback, read_target_long_array): Likewise.
2517 (simple_read_overlay_table, simple_read_overlay_region_table)
2518 (simple_overlay_update_1): Correct calls to read_target_long_array.
2519 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2520 Also change local pointers.
2521 (val_print_string): Use gdb_byte.
2522
2523 2006-01-15 Mark Kettenis <kettenis@gnu.org>
2524
2525 * alphafbsd-tdep.c: Include "solib-svr4.h".
2526 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2527 svr4_lp64_fetch_link_map_offsets.
2528 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2529 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2530 solib-svr4.o.
2531 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2532 and solib-legacy.o.
2533 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2534
2535 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2536
2537 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2538
2539 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
2540
2541 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2542 PIDGET.
2543
2544 2006-01-15 Mark Kettenis <kettenis@gnu.org>
2545
2546 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2547 Remove.
2548 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2549 svr4_ilp32_fetch_link_map_offsets.
2550 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2551 function.
2552 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2553 svr4_ilp32_fetch_link_map_offsets.
2554 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2555 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2556 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2557 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2558 where appropriate.
2559 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2560 Simply call svr4_ilp32_fetch_link_map_offsets.
2561 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2562 svr4_lp64_fetch_link_map_offsets.
2563 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2564 function.
2565 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2566 svr4_ilp32_fetch_link_map_offsets.
2567 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2568 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2569 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2570 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2571 where appropriate.
2572
2573 2006-01-15 Mark Kettenis <kettenis@gnu.org>
2574
2575 * arm-tdep.c (arm_return_value): Change type of readbuf and
2576 writebuf arguments to `gdb_byte *'.
2577
2578 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2579 * Makefile.in (s390-tdep.o): Update dependencies.
2580
2581 2006-01-14 Mark Kettenis <kettenis@gnu.org>
2582
2583 * sol2-tdep.h. sol2-tdep.c: New files.
2584 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2585 (amd64_sol2_init_abi): Set skip_solib_resolver.
2586 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2587 (i386_sol2_init_abi): Set skip_solib_resolver.
2588 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2589 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2590 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2591 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2592 * Makefile.in (sol2_tdep_h): New variable.
2593 (ALLDEPFILES): Add sol2-tdep.c.
2594 (sol2-tdep.o): New target.
2595 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2596 (sparc64-sol2-tdep.o): Update dependencies
2597 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2598 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2599 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2600 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2601
2602 * hppa-linux-tdep.c: Fix copyright indentation.
2603
2604 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
2605 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
2606 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
2607 functions.
2608 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
2609 floating-point registers.
2610
2611 2006-01-13 Mark Mitchell <mark@codesourcery.com>
2612
2613 * event-loop.c (gdb_select): Detect file descriptors that have
2614 been closed.
2615
2616 2006-01-13 Mark Kettenis <kettenis@gnu.org>
2617
2618 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
2619 and long_double_format accordingly.
2620
2621 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
2622
2623 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
2624 translation problems.
2625 * ada-lang.c (ada_value_struct_elt): Change interface and handling
2626 of errors to avoid translation problem (and less than optimal error
2627 messages).
2628 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
2629 Use new interface to ada_value_struct_elt.
2630 * ada_lang.h (ada_value_struct_elt): Update declaration to new
2631 interface.
2632
2633 * ChangeLog: remove reference to ada-tasks.c from entry of
2634 2006-01-07.
2635
2636 2006-01-11 Mark Kettenis <kettenis@gnu.org>
2637
2638 * remote.c (get_memory_packet_size, set_thread)
2639 (remote_unpack_thread_info_response, remote_get_threadinfo)
2640 (parse_threadlist_response, remote_get_threadlist)
2641 (remote_current_thread, remote_threads_info)
2642 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2643 (remote_check_symbols, remote_open_1, remote_detach)
2644 (remote_async_wait, remote_fetch_registers)
2645 (remote_store_registers, check_binary_download, putpkt_binary)
2646 (remote_insert_breakpoint, remote_insert_watchpoint)
2647 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2648 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
2649 (packet_command): Remove redundant parenthesis.
2650
2651 2006-01-10 Mark Kettenis <kettenis@gnu.org>
2652
2653 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
2654 (read_memory_typed_address, write_memory)
2655 (write_memory_unsigned_integer, write_memory_signed_integer): Use
2656 gdb_byte where appropriate.
2657
2658 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2659 'gdb_byte *'.
2660
2661 * target.h (target_read_memory_partial, target_write_memory_partial):
2662 Change second argument to 'gdb_byte *'.
2663 * target.c (target_xfer_memory_partial): Change third argument to
2664 'gdb_byte *'.
2665 (target_read_memory_partial, target_write_memory_partial): Change
2666 second argument to 'gdb_byte *'.
2667
2668 * linespec.c (decode_objc): Make i1 and i2 unsigned.
2669 (find_method): Set values.sals to NULL.
2670
2671 2006-01-09 Mark Kettenis <kettenis@gnu.org>
2672
2673 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
2674 of 'char *' in cast.
2675
2676 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
2677
2678 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
2679 * ada-lang.c: I18n markup.
2680 Editorial: change "can not" => "cannot" throughout.
2681
2682 2006-01-07 Mark Kettenis <kettenis@gnu.org>
2683
2684 * Makefile.in: Sort dependencies.
2685
2686 2006-01-07 Eli Zaretskii <eliz@gnu.org>
2687
2688 * top.c (control_level): Remove unused variable.
2689
2690 2006-01-06 Fred Fish <fnf@specifix.com>
2691
2692 * objfiles.c (source.h): Include.
2693 (free_objfile): Update comment about clear_symtab_users().
2694 (free_objfile): Check all symtabs of objfile being freed and if
2695 one of them is the current source symtab, call
2696 clear_current_source_symtab_and_line().
2697
2698 2006-01-04 Michael Snyder <msnyder@redhat.com>
2699
2700 Checkpoint/Restart for Linux.
2701 * linux-nat.c: Add support for debugging multiple forks.
2702 Add #include for linux-fork.h (interface spec).
2703 (super_mourn_inferior): New function pointer.
2704 (child_mourn_inferior): New function / target method.
2705 (linux_target): Claim to_mourn_inferior method pointer.
2706 (child_follow_fork): Call interface to linux-fork, conditionally
2707 add new fork processes to list of debugged processes.
2708 (kill_inferior): Use interface to linux-fork to kill
2709 multiple processes.
2710
2711 * linux-fork.h: New file.
2712 * linux-fork.c: New file. Support for debugging multiple forks
2713 of the same program. Support for checkpoint and restart commands.
2714
2715 * infrun.c (nullify_last_target_wait_ptid): New function.
2716
2717 * Makefile.in: Add linux-fork.
2718 * config/*/linux.mh: Add linux-fork.
2719 * NEWS: Mention new functionality.
2720
2721 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
2722
2723 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2724 Change uses of "illegal" to "invalid".
2725
2726 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2727
2728 * ada-exp.y: Considerable reorganization to move functionality
2729 from ada-lex.l to here, where it is logically more appropriate.
2730 The original reason, however, was to prevent premature name
2731 lookups for selector names in record aggregates.
2732 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2733 NAME for all of these.
2734 (VAR): New artificial token to clarify precedence rules.
2735 (OTHERS): New lexeme.
2736 (empty_stoken): New symbol.
2737 (%union): Remove ssym, voidval.
2738 (%type): Remove <voidval> type declarations.
2739 (syntax definitions): Add aggregates.
2740 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2741 Rename some non-terminals to be closer to reference manual usage.
2742 Tighten up expression syntax to disallow certain non-Ada
2743 constructions such as X and then Y or else Z.
2744 (ada_parse): Remove initialization of left_block_context.
2745 (write_var_from_name): Remove.
2746 (write_var_or_type): New function, containing previous code from
2747 defunct write_var_from_name and name_lookup.
2748 (block_lookup): New function, moved from ada-lex.l
2749 (select_possible_type_sym): New function, factored out of
2750 name_lookup, which used to be in ada-lex.l.
2751 (find_primitive_type): Ditto.
2752 (chop_selector): Ditto.
2753 (write_ambiguous_var): New function, factored out of defunct
2754 write_var_from_name.
2755 (write_selectors): New function.
2756 (write_name_assoc): New function.
2757 (write_exp_op_with_string): New function.
2758
2759 * ada-lex.l (processId): Change interface to return stoken.
2760 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2761 (block_lookup, name_lookup): Remove. Functionality moved to
2762 ada-exp.y.
2763 (state IN_STRING): Remove.
2764 (rules): Handle string escapes in processString.
2765 Add 'others' token.
2766 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2767 yylval.sval (as simple strings).
2768 All name look-ups now handled in ada-exp.y.
2769 Introduce "::" (COLONCOLON) token and return as separate token.
2770 (processId): Change return convention. Comment.
2771 Leave leading "'" in place.
2772 (processString): New function.
2773 (find_dot_all): Add note to comment.
2774 Fix problem that allowed match only at the end.
2775
2776 * ada-lang.c: Introduce aggregates.
2777 (find_struct_field): Add new parameter to count fields skipped, and
2778 allow other output parameters to be NULL.
2779 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2780 new find_struct_field.
2781 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2782 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2783 (num_component_specs, assign_component, assign_aggregate):
2784 (aggregate_assign_from_choices,aggregate_assign_positional)
2785 (aggregate_assign_others,add_component_interval):
2786 New functions.
2787 (ada_evaluate_subexp): Declare.
2788 Add aggregate-related operators.
2789 (ada_forward_operator_length): Declare.
2790 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2791 Consolidate Ada operators, using ada_forward_operator_length.
2792 (ada_search_struct_field): Search in forward order.
2793 (ADA_OPERATORS): Add new aggregate operators.
2794 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2795 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2796 operators and OP_NAME.
2797 (ada_type_of_array): Use longest_to_int.
2798 (value_assign_to_component): New function.
2799 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2800 Add OP_NAME case.
2801 (ada_forward_operator_length, ada_dump_subexp_body):
2802 Add OP_STRING case.
2803
2804 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2805 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2806
2807 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2808
2809 * ada-lang.c (process_raise_exception_name): Remove extraneous
2810 definition from unsubmitted code.
2811
2812 (is_lower_alphanum): New function.
2813 (ada_decode): Add support for decoding protected object subprograms
2814 and entries, and of entities declared inside protected object
2815 subprograms.
2816 Also add missing handling for__{DIGITS}+ suffixes.
2817 Allow '$<digits>' as valid overloading suffix.
2818 (is_name_suffix): Add handling for protected type entriy suffixes.
2819 Also add support for protected type subprogram suffixes, but keep
2820 it commented out for now, as there is an ambiguity between these
2821 entities and other internally generated entities.
2822 Allow '$<digits>' as valid overloading suffix.
2823 (is_valid_name_for_wild_match): New function.
2824 (wild_match): Add an exra level of verification of the entity name
2825 before declaring it a match for the given pattern.
2826
2827 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2828 longest_to_int rather than cast.
2829
2830 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2831
2832 (ada_coerce_to_simple_array): Call check_size to make sure
2833 that the object size is reasonable.
2834
2835 (ada_value_primitive_packed_val): Use correct location in target
2836 buffer for extracting packed record fields that are themselves records.
2837
2838 (add_defn_to_vec): Do not try to replace a stub type by its full
2839 type. Avoids a potential infinite loop.
2840
2841 (ada_lookup_symbol): Move return incorrectly placed return statement,
2842 causing a loop that should be scanning all object files to only
2843 scan the first one.
2844
2845 (ada_tag_name_2): New function.
2846 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2847 use alternative representation.
2848
2849 (ada_find_renaming_symbol): Strip the function name suffix when
2850 computing the XR type name.
2851
2852 (ada_to_fixed_type): Try determining the tag only if we have the
2853 object's address.
2854 (to_fixed_array_type): Add comments.
2855
2856 (ada_check_typedef): Replace expression checking whether the given
2857 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2858 consistent.
2859
2860 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2861 '$' in addition to '.' for runtime auxiliary function name suffixes.
2862 See changes to ada_decode above.
2863
2864 (struct task_control_block): Add field called_task. (This change is
2865 to keep synchronized with our local sources; it does not affect the
2866 public version yet.)
2867
2868 * ada-typeprint.c (ada_print_type): Use int_string for printing
2869 modulus of modular type.
2870
2871 (print_range): Trivial editorial comment fix.
2872
2873 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2874 double quote in string.
2875
2876 2006-01-01 Joel Brobecker <brobecker@adacore.com>
2877
2878 * top.c: Add 2006 to list of copyright years in file header.
2879
2880 2006-01-01 Joel Brobecker <brobecker@adacore.com>
2881
2882 * top.c (print_gdb_version): Update copyright year to 2006.
2883
2884 2006-01-01 Roger Sayle <roger@eyesopen.com>
2885 Elena Zannoni <ezannoni@redhat.com>
2886
2887 PR symtab/1651
2888 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2889 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2890 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2891 (Committed by Jim Blandy)
2892
2893 For older changes see ChangeLog-2005.
2894 \f
2895 Local Variables:
2896 mode: change-log
2897 left-margin: 8
2898 fill-column: 74
2899 version-control: never
2900 End:
This page took 0.090823 seconds and 4 git commands to generate.