1 2006-03-27 Nick Roberts <nickrob@snap.net.nz>
3 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
4 offsets for languages like Fortran.
6 2006-03-26 Randolph Chung <tausq@debian.org>
8 * config/pa/hppa64.mt: Use HPUX version of the tm file.
10 2006-03-25 Nick Roberts <nickrob@snap.net.nz>
12 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
13 Try to deal with continuation line.
14 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
16 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
17 Future proof against new fields being added to MI output.
18 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
19 (gdbmi-frame-handler): Update to new variable name
20 gdb-get-buffer-create.
21 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
22 frames which except the innermost (where execution has stopped).
24 2006-03-24 Randolph Chung <tausq@debian.org>
26 * solib-som.c (link_map_start): Don't error out if there is
29 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
31 * linux-nat.c (linux_ops_saved): New.
32 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
33 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
34 (linux_nat_fetch_registers, linux_nat_store_registers)
35 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
36 (init_lwp_list): Don't set threaded.
37 (add_lwp): Don't modify threaded.
38 (delete_lwp): Don't mention non-threaded mode.
39 (linux_nat_switch_fork): New.
40 (linux_nat_attach): Update inferior_ptid.
41 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
43 (linux_nat_kill): Handle pending forks and saved forks.
44 (linux_nat_mourn_inferior): Handle saved forks.
45 (linux_nat_pid_to_str): Don't use the LWP form when there is
47 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
48 (linux_nat_add_target): New.
49 (_initialize_linux_nat): Don't initialize the linux native target
51 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
53 * linux-fork.c: Include "linux-nat.h".
54 (add_fork): Update initial PID.
55 (fork_load_infrun_state): Call linux_nat_switch_fork.
56 * Makefile.in (linux-fork.o): Update.
58 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
59 linux_nat_add_target instead of add_target.
60 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
61 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
62 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
63 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
64 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
65 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
66 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
67 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
68 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
69 * s390-nat.c (_initialize_s390_nat): Likewise.
70 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
71 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
73 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
75 * linux-fork.c: Include "gdb_assert.h".
76 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
77 Update the register cache and selected frame also.
78 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
79 to single fork mode if necessary.
80 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
81 * Makefile.in (linux_fork_h): New.
82 (linux-fork.o, linux-nat.o): Update.
84 2006-03-23 Andreas Schwab <schwab@suse.de>
86 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
88 2006-03-18 Jim Blandy <jimb@codesourcery.com>
90 * symtab.h (enum address_class): Doc fix.
92 2006-03-16 Michael Snyder <msnyder@redhat.com>
94 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
95 * target.c (push_target): Fix typo in comment.
96 * remote.c (remote_watch_data_address): Fix typo in comment.
97 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
99 2006-03-15 Kevin Buettner <kevinb@redhat.com>
101 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
103 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
104 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
105 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
106 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
107 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
108 (frv_elf_fpregset_t): Define types.
109 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
110 (frv_linux_regset_from_core_section: New functions.
111 (frv_linux_gregset, frv_linux_fpregset): New static globals.
112 (frv_linux_init_abi): Register the `regset_from_core_section' method.
113 * Makefile.in (frv-linux-tdep.o): Update dependencies.
114 * solib-frv.c (frv_current_sos): Relocate main executable after
116 (frv_clear_solib): Clean up space associated with
117 `main_executable_lm_info'.
118 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
120 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
122 * Makefile.in (mips_linux_tdep_h): New.
123 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
124 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
126 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
127 (mips64_linux_regsets_fetch_registers)
128 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
129 (mips64_linux_store_registers): New.
130 (_initialize_mips_linux_nat): Override to_fetch_registers and
132 * mips-linux-tdep.h: New file.
133 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
134 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
135 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
136 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
137 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
138 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
139 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
140 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
141 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
142 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
143 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
144 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
145 (supply_32bit_reg): Use gdb_byte.
146 (supply_64bit_reg): New.
147 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
148 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
149 (fill_gregset, supply_fpregset): Update for renamed types.
150 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
151 (mips64_fill_gregset): Make global. Handle 32-bit register
153 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
156 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
158 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
159 (mips_fill_gregset): Renamed from fill_gregset.
160 (mips_supply_fpregset): Renamed from supply_fpregset.
161 (mips_fill_fpregset): Renamed from fill_fpregset.
162 (fetch_core_registers): Update calls.
163 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
166 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
168 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
170 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
172 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
173 Correct arithmetic for 64-bit CORE_ADDR.
175 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
177 * mips-linux-tdep.c: Include "floatformat.h".
178 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
179 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
181 (print_gp_register_row): Don't print spaces before ignored
182 or floating point registers.
183 * Makefile.in (mips-linux-tdep.o): Update.
185 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
187 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
189 (non_heuristic_proc_desc): Likewise.
191 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
193 * mips-linux-nat.c: Include "gdb_proc_service.h".
194 (PTRACE_GET_THREAD_AREA): Define.
195 (ps_get_thread_area): New.
196 * Makefile.in (mips-linux-nat.o): Update.
198 2006-03-13 Jim Blandy <jimb@codesourcery.com>
200 * MAINTAINERS: Use my work address.
202 2006-03-09 Michael Snyder <msnyder@redhat.com>
204 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
205 instead of getting tricky for the multi-fork case.
206 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
207 for each fork, and then use init_fork_list to delete them.
209 2006-03-08 Alexandre Oliva <aoliva@redhat.com>
211 * solib-svr4.c (svr4_current_sos): Move up initialization of
212 l_addr, such that it clearly covers all cases.
214 2006-03-08 Andreas Schwab <schwab@suse.de>
216 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
217 libunwind_frame_prev_register to use a gdb_byte buffer and
218 extract_unsigned_integer.
219 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
221 * libunwind-frame.c (libunwind_frame_prev_register): Change type
222 of last argument to `gdb_byte *'
223 * libunwind-frame.h: Adjust declaration.
225 2006-03-08 Paul Brook <paul@codesourcery.com>
227 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
228 (arm_frame_align): New function.
229 (arm_gdbarch_init): Use it.
231 2006-03-03 Khem Raj <khem@mvista.com>
233 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
234 Committed by Andrew Cagney.
236 2006-03-02 Corinna Vinschen <vinschen@redhat.com>
238 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
239 address to MDR register.
241 2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
243 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
246 2006-03-01 Randolph Chung <tausq@debian.org>
248 * somread.c (som_symfile_read): Update comment and remove unneeded
249 use of a deprecated variable.
251 2006-03-01 Randolph Chung <tausq@debian.org>
253 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
254 runtime specification.
255 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
256 (unwind_command): Likewise.
258 2006-03-01 Randolph Chung <tausq@debian.org>
260 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
261 Pseudo_SP_Set in unwind record.
263 2006-03-01 Randolph Chung <tausq@debian.org>
265 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
266 TDEP->is_elf to determine if we are working with a SOM binary.
267 (null_symtab_and_line): Remove unused variable.
268 * config/pa/hppa64.mt: Use tm-hppa.h.
269 * config/pa/tm-hppa64.h: Remove file.
271 2006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
273 * f-typeprint.c (f_type_print_base): Delete the redundant space.
275 2006-02-28 Kevin Buettner <kevinb@redhat.com>
277 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
278 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
280 (am33_linux_sigframe_cache_init): New function.
281 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
283 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
284 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
285 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
286 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
287 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
288 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
289 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
290 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
291 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
293 (am33_linux_init_osabi): Register signal frame unwinders.
295 2006-02-28 Kevin Buettner <kevinb@redhat.com>
297 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
298 out of pattern match by saving relevant state. Fix stack size
301 2006-02-28 Alexandre Oliva <aoliva@redhat.com>
303 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
305 * solib-svr4.c (struct lm_info): Add l_addr field.
306 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
307 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
308 (LM_DYNAMIC_FROM_LINK_MAP): New.
309 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
310 (svr4_current_sos): Initialize l_addr. Adjust.
311 (svr4_relocate_section_addresses): Adjust.
312 (svr4_ilp32_fetch_link_map_offsets): Define new members.
313 (svr4_lp64_fetch_link_map_offsets): Likewise.
314 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
315 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
316 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
317 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
319 2006-02-26 David S. Miller <davem@sunset.davemloft.net>
321 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
322 * config/sparc/linux64.mt (TDEPFILES): Likewise.
324 2006-02-27 Alan Modra <amodra@bigpond.net.au>
326 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
327 (ppc_linux_remove_watchpoint): Likewise, and args.
329 2006-02-26 Mark Kettenis <kettenis@gnu.org>
331 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
334 2006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
336 * gdb/defs.h: unconditionally include <fcntl.h>, and
337 ensure that O_BINARY is defined.
338 * gdb/solib.c(solib_open): ensure solib files are opened in
340 * gdb/corelow.c: Remove O_BINARY macro definition.
341 * gdb/exec.c: Remove O_BINARY macro definition
342 * gdb/remote-rdp.c: Remove O_BINARY macro definition
343 * gdb/source.c: Remove O_BINARY macro definition
344 * gdb/symfile.c: Remove O_BINARY macro definition
346 2006-02-24 Randolph Chung <tausq@debian.org>
348 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
350 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
353 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
355 * f-exp.y: Symbol '%' is not used as the modulus operator in
356 Fortran. Delete this from Fortran expression.
357 It is now used by Fortran 90 and later to access the member
358 of derived type. Add this into Fortran expression.
359 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
360 Print each elements in the derived type.
361 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
362 level into the function definition to do indented printing. And
363 call fprintfi_filtered instead to do indented printing.
364 (f_type_print_base): Replace fprintf_filtered with the indented
365 version (fprintfi_filtered).
366 (f_type_print_base): Call indented print_equivalent_f77_float_type.
367 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
368 the definition of the derived type.
370 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
372 * gdb_curses.h: Provide a fallback prototype for tgetnum.
374 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
376 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
378 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
379 (DOUBLEST_SCAN_FORMAT): New.
380 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
381 (processReal): Use DOUBLEST_SCAN_FORMAT.
382 * c-exp.y (parse_number): Likewise.
383 * jv-exp.y (parse_number): Likewise.
384 * objc-exp.y (parse_number): Likewise.
385 * p-exp.y (parse_number): Likewise.
387 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
389 * event-top.c (async_do_nothing, async_disconnect)
390 (async_stop_sig, async_float_handler): Remove duplicated
392 (handle_sighup): Guard prototype with SIGHUP.
393 (async_do_nothing): Guard function and prototype with
395 (async_disconnect): Guard prototype with SIGHUP.
396 (async_stop_sig): Guard prototype with STOP_SIGNAL.
398 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
400 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
402 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
404 * win32-termcap.c (tputs): Return 0.
406 2006-02-21 Mark Kettenis <kettenis@gnu.org>
408 * configure.ac: Introduce ---enable-werror, which adds -Werror to
409 the compiler command line. Enabled by default. Disable with
411 * configure regenerate.
413 2006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
415 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
418 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
420 * defs.h (directory_switch): Add prototype.
421 * main.c (captured_main): Use directory_switch() instead of
422 directory_command() to add directories from the -d switch.
423 * source.c (directory_switch): New function.
424 (add_path): Use buildargv() to parse spaces in filenames properly.
425 Strip multiple trailing '/' rather than just one.
427 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
429 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
430 hand decoding the command line, to allow use of quotes and spaces.
431 (_initialize_symfile): Reorganize the help message for add-symbol-file
432 such that 'help files' shows a better message.
434 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
436 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
437 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
438 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
439 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
441 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
443 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
446 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
448 * remote.c: Add an enumeration for configurable remote
450 (remote_protocol_packets, set_remote_protocol_packet_cmd)
451 (show_remote_protocol_packet_cmd): New.
452 (remote_protocol_vcont)
453 (set_remote_protocol_vcont_packet_cmd)
454 (show_remote_protocol_vcont_packet_cmd)
455 (remote_protocol_qSymbol)
456 (set_remote_protocol_qSymbol_packet_cmd)
457 (show_remote_protocol_qSymbol_packet_cmd)
458 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
459 (show_remote_protocol_P_packet_cmd)
461 (set_remote_protocol_Z_software_bp_packet_cmd)
462 (show_remote_protocol_Z_software_bp_packet_cmd)
463 (set_remote_protocol_Z_hardware_bp_packet_cmd)
464 (show_remote_protocol_Z_hardware_bp_packet_cmd)
465 (set_remote_protocol_Z_write_wp_packet_cmd)
466 (show_remote_protocol_Z_write_wp_packet_cmd)
467 (set_remote_protocol_Z_read_wp_packet_cmd)
468 (show_remote_protocol_Z_read_wp_packet_cmd)
469 (set_remote_protocol_Z_access_wp_packet_cmd)
470 (show_remote_protocol_Z_access_wp_packet_cmd)
471 (remote_protocol_binary_download)
472 (set_remote_protocol_binary_download_cmd)
473 (show_remote_protocol_binary_download_cmd)
474 (remote_protocol_qPart_auxv)
475 (set_remote_protocol_qPart_auxv_packet_cmd)
476 (show_remote_protocol_qPart_auxv_packet_cmd)
477 (remote_protocol_qGetTLSAddr)
478 (set_remote_protocol_qGetTLSAddr_packet_cmd)
479 (show_remote_protocol_qGetTLSAddr_packet_cmd)
481 (set_remote_protocol_p_packet_cmd)
482 (show_remote_protocol_p_packet_cmd): Delete.
484 (init_all_packet_configs): Simplify.
485 (set_remote_protocol_Z_packet_cmd)
486 (show_remote_protocol_Z_packet_cmd)
487 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
488 (remote_fetch_registers, remote_prepare_to_store)
489 (remote_store_registers, check_binary_download)
490 (remote_write_bytes, remote_insert_breakpoint)
491 (remote_remove_breakpoint, remote_insert_watchpoint)
492 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
493 (remote_remove_hw_breakpoint, remote_xfer_partial)
494 (remote_get_thread_local_address): Update for packet array.
495 (_initialize_remote): Likewise; also update for common
498 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
500 * symfile.c (place_section): Correct retry logic.
502 2006-02-19 Christopher Faylor <cgf@timesys.com>
504 * win32_nat.c (cygwin_load_start): New variable.
505 (cygwin_load_end): Ditto.
506 (have_saved_context): Ditto.
507 (saved_context): Ditto.
508 (max_dll_name_len): Delete obsolete variable.
509 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
510 if we are in a cygwin signal rather than a windows signal.
511 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
512 if dll being loaded is the cygwin DLL.
513 (register_loaded_dll): Remove calculation of max_dll_name_len.
514 (win32_clear_solib): Ditto.
515 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
517 (handle_output_debug_string): Detect and store signal information sent
519 (handle_exception): Silently pass on errors in the cygwin DLL. Return
520 -1 on first pass exception.
521 (win32_continue): Remove spurious clearing of continue_status.
522 (get_win32_debug_event): Deal differently first chance exception.
524 2006-02-19 Randolph Chung <tausq@debian.org>
526 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
529 2006-02-16 Fred Fish <fnf@specifix.com>
531 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
532 a non lval value zero, of the appropriate type, when avoiding
534 * typeprint.c (ptype_eval): Remove function and declaration.
535 (ptype_command): Simplify to just a call to whatis_exp.
537 2006-02-15 Paul Brook <paul@codesourcery.com>
539 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
540 Load insn opcodes as unsigned values.
542 2006-02-14 Alexandre Oliva <aoliva@redhat.com>
544 * doublest.h (DOUBLEST): Use long double only if we can scan
545 it in. Undefine HAVE_LONG_DOUBLE otherwise.
546 (DOUBLEST_FORMAT): New.
547 * c-exp.y (parse_number): Use it.
548 * jv-exp.y (parse_number): Likewise.
549 * objc-exp.y (parse_number): Likewise.
550 * p-exp.y (parse_number): Likewise.
551 * varobj.c (free_variable): Silence type-punning warnings.
552 * tui/tui-data.h (struct tui_list): Change type of list member.
553 * tui/tui-data.c: Remove no-longer-needed type casts.
554 (source_windows): Silence type-punning warnings.
555 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
557 2006-02-13 Mark Kettenis <kettenis@gnu.org>
559 Fix PR breakpoints/2080.
560 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
561 (i386_analyze_stack_align): New function.
562 (i386_analyze_prologue): Use i386_analyze_stack_align.
563 (i386_frame_cache): Deal with stack realignment.
565 2006-02-14 Nick Roberts <nickrob@snap.net.nz>
567 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
568 (gdb-break-list-regexp): Match "what" field if present.
569 (gdb-stack-list-frames-regexp): Match "from" field if present.
570 (gdb-stack-list-frames-handler): Present output like "info
571 breakpoints" so regexps can be shared with gdb-ui
573 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
575 * NEWS: Mention native Windows support.
576 * Makefile.in (gdb_select_h, ser_tcp_h): New.
577 (ALLDEPFILES): Add ser-mingw.c.
578 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
579 (ser-tcp.o, ser-unix.o): Update.
580 (ser-mingw.o): New rule.
581 * configure: Regenerated.
582 * configure.ac: Add ser-mingw.o for mingw32.
583 * ser-mingw.c: New file.
584 * event-loop.c: Include "gdb_select.h".
585 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
586 * ser-base.c: Include "gdb_select.h".
587 (ser_base_wait_for): Use gdb_select.
588 * serial.c (serial_for_fd): New function.
589 (serial_fdopen): Try "terminal" before "hardwire". Initialize
590 the allocated struct serial.
591 (serial_wait_handle): New function.
592 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
593 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
594 * gdb_select.h: New file.
595 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
596 (net_close, net_read_prim, net_write_prim): Make global.
597 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
598 Document why we can not use gdb_select.
599 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
600 * ser-tcp.h: New file.
601 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
602 (handle_sigio): Use gdb_select.
603 (initialize_stdin_serial): New function.
604 * terminal.h (initialize_stdin_serial): New prototype.
605 * top.c (gdb_init): Call initialize_stdin_serial.
606 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
607 event-loop.c. Add exception condition support. Use serial_for_fd
608 and serial_wait_handle. Fix timeout handling.
609 * posix-hdep.c: Include "gdb_select.h".
610 (gdb_select): New function.
611 * remote-st.c (connect_command): Use gdb_select.
612 * ser-unix.c: Include "gdb_select.h".
613 (hardwire_send_break, wait_for): Use gdb_select.
615 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
617 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
618 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
619 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
620 to posix-hdep.o by default.
621 * configure: Regenerated.
622 * configure.host: Document gdb_host_obs. Add an entry for
623 i[34567]86-*-mingw32*.
624 * mingw-hdep.c, posix-hdep.c: New files.
625 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
627 2006-02-10 Joel Brobecker <brobecker@adacore.com>
629 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
630 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
631 * rs6000-tdep.h: New file.
632 * rs6000-tdep.c: Include "rs6000-tdep.h".
633 (rs6000_gdbarch_init): Remove enabling of software single step.
634 Will be done in the AIX-specific initialization routine.
635 * rs6000-aix-tdep.c: New file.
636 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
637 * Makefile.in (rs6000_tdep_h): New variable.
638 (rs6000-tdep.o): Update dependencies.
639 (rs6000-aix-tdep.o): New rule.
641 2006-02-10 Joel Brobecker <brobecker@adacore.com>
643 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
644 instead of add_setshow_zinteger_cmd to defined the aix-thread
647 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
649 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
651 2006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
653 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
654 30 bits. Add load_all_dies flag.
655 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
656 Load DW_TAG_member by default. Remove internal_error call.
657 (find_partial_die): Reload the compilation unit if we can not find
658 a DIE in the cache. Call internal_error here if we still can not
661 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
663 * breakpoint.c (print_one_breakpoint): Add break to case
664 bp_catch_vfork in switch statement.
666 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
668 * config/i386/nm-i386sol2.h: Update copyright year.
669 * config/mips/nm-irix5.h: Ditto.
670 * config/sparc/nm-sol2.h: Ditto.
672 * ppc-linux-nat.c: Ditto.
674 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
676 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
677 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
678 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
679 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
680 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
681 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
682 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
683 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
684 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
685 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
686 add to_region_ok_for_hw_watchpoint.
687 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
688 (s390_region_ok_for_hw_watchpoint): New.
689 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
690 and add to_region_ok_for_hw_watchpoint.
691 * target.c (default_region_size_ok_for_hw_watchpoint,
692 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
693 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
694 inheritance and default_region_size_ok_for_hw_watchpoint.
695 (default_region_ok_for_hw_watchpoint): If len is less than or equal
696 the length of void pointer, return ok.
697 (default_region_size_ok_for_hw_watchpoint): Delete.
698 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
699 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
700 * target.h (struct target_ops): Delete
701 to_region_size_ok_for_hw_watchpoint.
702 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
704 2006-02-08 Ben Elliston <bje@au1.ibm.com>
705 Wu Zhou <woodzltc@cn.ibm.com>
707 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
708 PTRACE_GETSIGINFO): Define.
709 (last_stopped_data_address): New.
710 (ppc_linux_check_watch_resources): New function.
711 (ppc_linux_region_ok_for_hw_watchpoint): New function.
712 (ppc_linux_insert_watchpoint): New function.
713 (ppc_linux_remove_watchpoint): New function.
714 (ppc_linux_stopped_data_address): New function.
715 (ppc_linux_stopped_by_watchpoint): New function.
716 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
717 related target vectors.
718 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
719 to have nonsteppable watchpoint.
720 * target.c (default_region_ok_for_hw_watchpoint,
721 debug_to_region_ok_for_hw_watchpoint): New prototypes.
722 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
723 and set default to_region_ok_for_hw_watchpoint.
724 (default_region_ok_for_hw_watchpoint): New function.
725 (debug_to_region_ok_for_hw_watchpoint): New function.
726 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
728 * target.h (struct target_ops): Add a new target vector
729 to_region_ok_for_hw_watchpoint.
730 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
731 defined anyplace else.
733 2005-02-07 Joel Brobecker <brobecker@adacore.com>
734 * symfile.c (add_symbol_file_command): Abort if the user forgot
735 to provide the address when the file has been loaded.
737 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
739 * MAINTAINERS: Update file based on maintainers survey. Add
740 a note to Past Maintainers. Move unresponsive or inactive
741 maintainers to Authorized Committers or Past Maintainers as
742 appropriate. Correct Jim Kingdon's email address. Remove
743 vacant areas of responsibility.
745 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
747 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
750 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
752 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
753 * exceptions.c (exception_none, exceptions_state_mc_init)
754 (throw_vfatal): Use GDB_NO_ERROR.
756 2006-02-02 Mark Kettenis <kettenis@gnu.org>
758 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
759 r_map_size members. Add r_version_offset, r_version_size and
760 r_ldsomap_offset members.
761 * solib-svr4.c (solib_svr4_r_map): Renamed from
762 fetch_link_map_member. Simplify using read_memory_typed_address.
763 (solib_svr4_r_ldsomap): New function.
764 (open_symbol_file_object): Use solib_svr_r_map.
765 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
766 linker by using solib_svr4_r_ldsomap.
767 (svr4_ilp32_fetch_link_map_offsets)
768 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
770 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
771 changes to `struct link_map_offsets'.
772 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
773 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
774 `struct link_map_offsets'.
776 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
778 * linux-nat.c (struct saved_ptids, threads_to_delete)
779 (record_dead_thread, prune_lwps, find_thread_from_lwp)
781 (linux_nat_resume): Call prune_lwps.
782 (wait_lwp, linux_nat_wait): Call exit_lwp.
784 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
786 * printcmd.c (printf_command): Make format string checking
787 stricter. Add separate cases for long_arg, ptr_arg, and
789 * utils.c (xstrvprintf): Improve the error message issued
790 for a bad format string.
791 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
793 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
795 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
798 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
800 * Makefile.in (remote.o): Update.
801 * remote.c (show_packet_config_cmd): Shorten messages.
802 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
803 (show_remote_cmd): Iterate.
804 (_initialize_remote): Remove remote_set_cmdlist,
807 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
809 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
810 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
812 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
813 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
814 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
816 * gdbtypes.c: Include "hashtab.h".
817 (build_gdbtypes): Remove extra prototype.
818 (struct type_pair, type_pair_hash, type_pair_eq)
819 (create_copied_types_hash, copy_type_recursive): New.
820 * gdbtypes.h: Include "hashtab.h".
822 (create_copied_types_hash, copy_type_recursive): New prototypes.
823 * objfiles.c (free_objfile): Call preserve_values.
824 * symfile.c (reread_symbols): Likewise.
825 (clear_symtab_users): Remove calls to clear_value_history and
827 * value.c (clear_value_history, clear_internalvars): Removed.
828 (preserve_one_value, preserve_values): New functions.
829 * value.h (clear_value_history, clear_internalvars): Removed.
830 (preserve_values): New prototype.
832 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
835 2006-01-29 Mark Kettenis <kettenis@gnu.org>
837 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
840 2006-01-27 Joel Brobecker <brobecker@adacore.com>
842 * MAINTAINERS: Use a consistent email address for brobecker.
844 2006-01-27 Joel Brobecker <brobecker@adacore.com>
846 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
847 in the previous change.
849 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
852 * fork-child.c (fork_inferior): Don't call
853 solib_create_inferior_hook.
854 * infcmd.c (post_create_inferior): Call solib_add,
855 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
856 (attach_command): Don't call solib_add or
857 re_enable_breakpoints_in_shlibs. Call post_create_inferior
859 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
860 or observer_notify_inferior_created. Call post_create_inferior
862 * corelow.c: Don't include "observer.h".
863 (solib_add_stub): Deleted.
864 (core_open): Don't call observer_notify_inferior_created or
865 solib_add_stub. Call post_create_inferior instead.
866 * inf-ptrace.c: Don't include "observer.h".
867 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
868 * inf-ttrace.c: Don't include "observer.h".
869 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
870 * inferior.h (solib_create_inferior_hook): Remove redundant
872 * inftarg.c: Don't include "observer.h".
873 (child_attach): Don't call observer_notify_inferior_created.
874 * Makefile.in: Update dependencies.
876 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
878 * infcmd.c: Include "observer.h".
879 (post_create_inferior): New function.
880 (run_command_1): Call it. Also call proceed.
881 * inferior.h (post_create_inferior): New prototype.
882 * Makefile.in (infcmd.o): Update.
884 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
885 * go32-nat.c (go32_create_inferior): Likewise.
886 * nto-procfs.c (procfs_create_inferior): Likewise.
887 * procfs.c (procfs_create_inferior): Likewise.
888 * remote-sim.c (gdbsim_create_inferior): Likewise.
889 * remote.c (extended_remote_create_inferior)
890 (extended_remote_async_create_inferior): Likewise.
891 * win32-nat.c (win32_create_inferior): Likewise.
892 * wince.c (child_create_inferior): Likewise.
894 * monitor.c (monitor_create_inferior): Don't call proceed.
896 * ocd.c (ocd_create_inferior): Likewise.
897 * remote-e7000.c (e7000_create_inferior): Likewise.
898 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
899 * remote-mips.c (mips_create_inferior): Likewise.
900 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
901 * remote-sds.c (sds_create_inferior): Likewise.
902 * remote-st.c (st2000_create_inferior): Likewise.
904 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
905 proceed or observer_notify_inferior_created.
906 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
907 * inftarg.c (child_create_inferior): Likewise.
909 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
911 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
912 after mourning the inferior.
914 2006-01-24 Jim Blandy <jimb@redhat.com>
916 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
918 2006-01-24 Fred Fish <fnf@specifix.com>
920 * parse.c (source.h): Include.
921 (parse_exp_in_context): Use static source context if no
924 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
926 * sh-tdep.c: Include reggroups.h.
927 (sh_register_reggroup_p): New function.
928 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
929 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
931 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
933 * cli/cli-cmds.c: Include fcntl.h.
934 (source_command): Use the GDB search path to find script files.
936 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
939 Suggested by Till Straumann <strauman@slac.stanford.edu>:
940 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
941 instructions. Handle PIC bcl.
943 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
945 * config/djgpp/README: Typo fix.
946 * config/djgpp/fnchange.lst: Update.
948 2006-01-22 Mark Kettenis <kettenis@gnu.org>
950 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
951 (sparc_address_from_register): New prototype.
952 (sparcnbsd_step_trap): New prototype.
953 * sparc-tdep.c (sparc_address_from_register): Make globally
955 (sparc_analyze_control_transfer): Change prototype to accept
956 `struct gdbarch *' as first argument. Allow for optional hnadling
957 for trap instructions.
958 (sparc_step_trap): New function.
959 (sparc_software_single_step): Adjust call to
960 sparc_analyze_control_trabsfer.
961 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
962 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
963 (sparc32nbsd_init_abi): Set TDEP->step_trap.
964 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
965 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
967 * sparc-tdep.c (sparc32_return_value): Convert to use
968 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
969 RETURN_VALUE_STRUCT_CONVENTION.
970 (sparc32_extract_struct_value_address): Remove.
972 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
974 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
975 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
977 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
979 * solib.c (info_sharedlibrary_command): Avoid internal_error.
981 2006-01-21 Mark Kettenis <kettenis@gnu.org>
983 * i386-tdep.c (i386_mxcsr_type): New variable.
984 (i386_init_types): Initialize i386_mxcsr_type.
985 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
986 * i386-tdep.c (i386_mxcsr_type): New extern.
987 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
990 2006-01-20 Mark Mitchell <mark@codesourcery.com>
992 * Makefile.in (remote-rdi.o): Remove.
993 (rdi-share/libangsd.a): Likewise.
994 * README: Don't mention remote-rdi.c.
995 * NEWS: Mention removal of rdi-share.
996 * configure.ac: Don't configure rdi-share subdirectory.
997 * remote-rdi.c: Remove.
998 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
999 (TDEPLIBS): Remove rdi-share/libangsd.a.
1000 * rdi-share/Makefile.am: Remove.
1001 * rdi-share/Makefile.in: Likewise.
1002 * rdi-share/README.CYGNUS: Likewise.
1003 * rdi-share/aclocal.m4: Likewise.
1004 * rdi-share/adp.h: Likewise.
1005 * rdi-share/adperr.h: Likewise.
1006 * rdi-share/angel.h: Likewise.
1007 * rdi-share/angel_bytesex.c: Likewise.
1008 * rdi-share/angel_bytesex.h: Likewise.
1009 * rdi-share/angel_endian.h: Likewise.
1010 * rdi-share/ardi.c: Likewise.
1011 * rdi-share/ardi.h: Likewise.
1012 * rdi-share/armdbg.h: Likewise.
1013 * rdi-share/buffers.h: Likewise.
1014 * rdi-share/chandefs.h: Likewise.
1015 * rdi-share/channels.h: Likewise.
1016 * rdi-share/chanpriv.h: Likewise.
1017 * rdi-share/configure: Likewise.
1018 * rdi-share/configure.in: Likewise.
1019 * rdi-share/crc.c: Likewise.
1020 * rdi-share/crc.h: Likewise.
1021 * rdi-share/dbg_conf.h: Likewise.
1022 * rdi-share/dbg_cp.h: Likewise.
1023 * rdi-share/dbg_hif.h: Likewise.
1024 * rdi-share/dbg_rdi.h: Likewise.
1025 * rdi-share/devclnt.h: Likewise.
1026 * rdi-share/devices.h: Likewise.
1027 * rdi-share/devsw.c: Likewise.
1028 * rdi-share/devsw.h: Likewise.
1029 * rdi-share/drivers.c: Likewise.
1030 * rdi-share/drivers.h: Likewise.
1031 * rdi-share/etherdrv.c: Likewise.
1032 * rdi-share/ethernet.h: Likewise.
1033 * rdi-share/host.h: Likewise.
1034 * rdi-share/hostchan.c: Likewise.
1035 * rdi-share/hostchan.h: Likewise.
1036 * rdi-share/hsys.c: Likewise.
1037 * rdi-share/hsys.h: Likewise.
1038 * rdi-share/logging.c: Likewise.
1039 * rdi-share/logging.h: Likewise.
1040 * rdi-share/msgbuild.c: Likewise.
1041 * rdi-share/msgbuild.h: Likewise.
1042 * rdi-share/params.c: Likewise.
1043 * rdi-share/params.h: Likewise.
1044 * rdi-share/rx.c: Likewise.
1045 * rdi-share/rxtx.h: Likewise.
1046 * rdi-share/serdrv.c: Likewise.
1047 * rdi-share/serpardr.c: Likewise.
1048 * rdi-share/sys.h: Likewise.
1049 * rdi-share/tx.c: Likewise.
1050 * rdi-share/unixcomm.c: Likewise.
1051 * rdi-share/unixcomm.h: Likewise.
1053 2006-01-21 Mark Kettenis <kettenis@gnu.org>
1055 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1056 Change type of last argument to `gdb_byte *'.
1058 2006-01-20 Mark Kettenis <kettenis@gnu.org>
1060 * hppa-tdep.h (hppa_in_solib_call_trampoline)
1061 (hppa_skip_trampoline_code): New prototypes.
1062 * hppa-tdep.c (struct insn_pattern): New.
1063 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1064 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1065 here from hppa-linux-tdep.c
1066 (HPPA_MAX_INSN_PATTERN_LEN): New define.
1067 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1068 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1069 functions based on functions removed from hppa-linux-tdep.c.
1070 * hppa-linux-tdep.c (hppa_long_branch_stub)
1071 (hppa_long_branch_pic_stub, hppa_import_stub)
1072 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1073 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1074 (hppa_linux_in_solib_call_trampoline)
1075 (hppa_linux_skip_trampoline_code): Removed.
1076 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1077 hppa_in_solib_call_trampoline and skip_trampoline_code to
1078 hppa_skip_trampoline_code.
1079 * hppabsd-tdep.c (hppabsd_init_abi): Set
1080 TDEP->in_solib_call_trampoline and skip_trampoline_code.
1082 2006-01-20 Jim Blandy <jimb@redhat.com>
1084 * MAINTAINERS: Change my E-mail address.
1086 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1087 * configure: Regenerated.
1089 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1091 * MAINTAINERS: Overhaul.
1093 2006-01-18 Mark Kettenis <kettenis@gnu.org>
1095 Based on a previous patch form Michal Ludvig:
1096 * amd64-tdep.c (amd64_sse_type): Remove.
1097 (amd64_register_info): Use i386_eflags_type and i386_sse_type
1099 (AMD64_NUM_REGS): Use ARRAY_SIZE.
1100 (amd64_register_type): Remove code to build amd_sse_type.
1101 * i386-tdep.c (i386_eflag_type): New variable.
1102 (i386_mmx_type, i386_sse_type): Make global.
1103 (i386_init_types): New function.
1104 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1105 (i386_register_type): Return i386_eflag_type, i386_sse_type and
1106 i386_mmx_type when appropriate.
1107 (_initialize_i386_tdep): Call i386_init_types.
1108 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1111 Based on a previous patch form Michal Ludvig:
1112 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
1114 (is_integral_type, rank_one_type, recursive_dump_type): Add
1115 support for TYPE_CODE_FLAGS.
1116 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
1117 (append_flags_type_field, init_flags_type): New prototypes.
1118 * ada-valprint.c (ada_val_print_1): Add support for
1120 * c-valprint.c (c_val_print): Likewise.
1121 * f-valprint.c (f_val_print): Likewise.
1122 * p-valprint.c (pascal_val_print): Likewise.
1123 * valprint.c (val_print_type_code_flags): New function.
1124 * valprint.h (val_print_type_code_flags): New prototype.
1125 * value.c (unpack_long, value_from_longest): Add support for
1128 2006-01-17 Christopher Faylor <cgf@timesys.com>
1130 * MAINTAINERS: Very belatedly remove myself from from the list of
1131 people caught up in the paper trail.
1133 2006-01-17 Jim Blandy <jimb@redhat.com>
1135 * symtab.h (struct general_symbol_info): Use gdb_byte for
1137 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
1138 a floating-point constant's value.
1139 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
1141 * findvar.c (read_var_value): Eliminate needless temporary.
1143 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
1144 to match prior change to dwarf2_read_section's type.
1146 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
1148 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
1149 * rs6000-tdep.c (insn_changes_sp_or_jumps)
1150 (rs6000_in_function_epilogue_p): New functions.
1151 (rs6000_gdbarch_init): Set in_function_epilogue_p.
1153 2006-01-17 Jim Blandy <jimb@redhat.com>
1155 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
1156 (struct line_header, struct partial_die_info, struct dwarf_block):
1157 Use gdb_byte for members that refer to Dwarf section contents.
1158 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
1159 dwarf_decode_macros, load_comp_unit, load_partial_dies,
1160 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
1161 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
1162 read_8_bytes, read_address, read_attribute, read_attribute_value,
1163 read_comp_unit, read_comp_unit_head, read_die_and_children,
1164 read_die_and_siblings, read_full_die, read_indirect_string,
1165 read_initial_length, read_n_bytes, read_offset, read_partial_die,
1166 read_signed_leb128, read_string, read_unsigned_leb128,
1167 skip_children, skip_leb128, skip_one_die): Same.
1169 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1171 * complaints.c (stop_whining): Make signed.
1172 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
1174 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1176 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
1179 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1181 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
1182 (read_offset): Change BYTES_READ argument to unsigned int.
1183 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
1184 (create_all_comp_units, dwarf2_get_pc_bounds)
1185 (dwarf_decode_line_header, var_decode_location)
1186 (dwarf_decode_macros): Change local BYTES_READ variables to
1188 (read_indirect_string): Remove obsolete cast.
1190 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1192 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
1194 (remote_fileio_func_open, remote_fileio_func_rename)
1195 (remote_fileio_func_unlink, remote_fileio_func_stat)
1196 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1197 (remote_fileio_func_system): Cast the arguments to
1198 remote_read_bytes and remote_write_bytes.
1199 (remote_fileio_func_read, remote_fileio_func_write): Use a
1201 * remote.h (remote_read_bytes, remote_write_bytes): Update
1203 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
1204 (threadref_to_int): Replace bogus char * cast.
1205 (remote_unpack_thread_info_response): Use int for tag.
1206 (remote_threads_extra_info, remote_check_symbols): Cast string
1207 arguments to hex2bin.
1208 (remote_wait): Use a char buffer for packets and a gdb_byte
1209 buffer for registers.
1210 (remote_async_wait): Likewise.
1211 (remote_prepare_to_store, store_register_using_P)
1212 (remote_store_registers): Use gdb_byte buffers.
1213 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
1214 for MYADDR and char buffers for strings.
1215 (remote_xfer_partial): Add casts for string operations on READBUF.
1216 (remote_rcmd): Cast strings passed to bin2hex.
1218 2006-01-16 Mark Mitchell <mark@codesourcery.com>
1220 * aclocal.m4: Regenerate.
1222 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
1224 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
1225 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
1226 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
1227 (mt_register_name): Lazily synthesize name for coprocessor pseudo
1229 (mt_copro_register_type): New. Broken out of ...
1230 (mt_register_type): ... here. Use it. Deal with coprocessor
1232 (mt_select_coprocessor): New.
1233 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
1234 coprocessor pseudo array.
1236 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
1238 * breakpoint.c (insert_breakpoints): Check that a thread exists
1239 before inserting thread specific breakpoints.
1241 2006-01-15 Mark Kettenis <kettenis@gnu.org>
1243 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
1246 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
1247 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
1248 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
1249 * config/alpha/nm-nbsd.h: Remove file.
1250 * config/alpha/nm-fbsd.h: Remove file
1251 * config/alpha/nbsd.mh (NAT_FILE): Remove.
1252 * config/alpha/fbsd.mh (NAT_FILE): Remove.
1254 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1256 * macroexp.c (expand): Initialize argc.
1257 * stabsread.c (read_type): Handle errors from read_args.
1258 (read_args): Return NULL for errors.
1260 2006-01-15 Mark Kettenis <kettenis@gnu.org>
1262 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
1263 strcmp to compare string to a byte buffer.
1265 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1267 * printcmd.c (output_command): Always initialize fmt.size.
1268 (printf_command): Use gdb_byte.
1269 * symfile.c (separate_debug_file_exists): Use gdb_byte.
1270 (load_section_callback, read_target_long_array): Likewise.
1271 (simple_read_overlay_table, simple_read_overlay_region_table)
1272 (simple_overlay_update_1): Correct calls to read_target_long_array.
1273 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
1274 Also change local pointers.
1275 (val_print_string): Use gdb_byte.
1277 2006-01-15 Mark Kettenis <kettenis@gnu.org>
1279 * alphafbsd-tdep.c: Include "solib-svr4.h".
1280 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1281 svr4_lp64_fetch_link_map_offsets.
1282 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
1283 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
1285 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1287 * config/alpha/nm-fbsd.h: Don't include "solib.h".
1289 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1291 * source.c (_initialize_source): Use add_setshow_integer_cmd.
1293 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1295 * linux-fork.c (delete_fork_command, detach_fork_command): Use
1298 2006-01-15 Mark Kettenis <kettenis@gnu.org>
1300 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
1302 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1303 svr4_ilp32_fetch_link_map_offsets.
1304 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
1306 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1307 svr4_ilp32_fetch_link_map_offsets.
1308 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
1309 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
1310 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1311 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1313 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
1314 Simply call svr4_ilp32_fetch_link_map_offsets.
1315 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
1316 svr4_lp64_fetch_link_map_offsets.
1317 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
1319 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1320 svr4_ilp32_fetch_link_map_offsets.
1321 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
1322 (s390x_svr4_fetch_link_map_offsets): Remove functions.
1323 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1324 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1327 2006-01-15 Mark Kettenis <kettenis@gnu.org>
1329 * arm-tdep.c (arm_return_value): Change type of readbuf and
1330 writebuf arguments to `gdb_byte *'.
1332 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
1333 * Makefile.in (s390-tdep.o): Update dependencies.
1335 2006-01-14 Mark Kettenis <kettenis@gnu.org>
1337 * sol2-tdep.h. sol2-tdep.c: New files.
1338 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
1339 (amd64_sol2_init_abi): Set skip_solib_resolver.
1340 * i386-sol2-tdep.c: Include "sol2-tdep.h".
1341 (i386_sol2_init_abi): Set skip_solib_resolver.
1342 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
1343 (sparc32_sol2_init_abi): Set skip_solib_resolver.
1344 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
1345 (sparc64_sol2_init_abi): Set skip_solib_resolver.
1346 * Makefile.in (sol2_tdep_h): New variable.
1347 (ALLDEPFILES): Add sol2-tdep.c.
1348 (sol2-tdep.o): New target.
1349 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
1350 (sparc64-sol2-tdep.o): Update dependencies
1351 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
1352 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1353 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
1354 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1356 * hppa-linux-tdep.c: Fix copyright indentation.
1358 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
1359 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
1360 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
1362 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
1363 floating-point registers.
1365 2006-01-13 Mark Mitchell <mark@codesourcery.com>
1367 * event-loop.c (gdb_select): Detect file descriptors that have
1370 2006-01-13 Mark Kettenis <kettenis@gnu.org>
1372 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
1373 and long_double_format accordingly.
1375 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
1377 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
1378 translation problems.
1379 * ada-lang.c (ada_value_struct_elt): Change interface and handling
1380 of errors to avoid translation problem (and less than optimal error
1382 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
1383 Use new interface to ada_value_struct_elt.
1384 * ada_lang.h (ada_value_struct_elt): Update declaration to new
1387 * ChangeLog: remove reference to ada-tasks.c from entry of
1390 2006-01-11 Mark Kettenis <kettenis@gnu.org>
1392 * remote.c (get_memory_packet_size, set_thread)
1393 (remote_unpack_thread_info_response, remote_get_threadinfo)
1394 (parse_threadlist_response, remote_get_threadlist)
1395 (remote_current_thread, remote_threads_info)
1396 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1397 (remote_check_symbols, remote_open_1, remote_detach)
1398 (remote_async_wait, remote_fetch_registers)
1399 (remote_store_registers, check_binary_download, putpkt_binary)
1400 (remote_insert_breakpoint, remote_insert_watchpoint)
1401 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1402 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
1403 (packet_command): Remove redundant parenthesis.
1405 2006-01-10 Mark Kettenis <kettenis@gnu.org>
1407 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
1408 (read_memory_typed_address, write_memory)
1409 (write_memory_unsigned_integer, write_memory_signed_integer): Use
1410 gdb_byte where appropriate.
1412 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
1415 * target.h (target_read_memory_partial, target_write_memory_partial):
1416 Change second argument to 'gdb_byte *'.
1417 * target.c (target_xfer_memory_partial): Change third argument to
1419 (target_read_memory_partial, target_write_memory_partial): Change
1420 second argument to 'gdb_byte *'.
1422 * linespec.c (decode_objc): Make i1 and i2 unsigned.
1423 (find_method): Set values.sals to NULL.
1425 2006-01-09 Mark Kettenis <kettenis@gnu.org>
1427 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
1428 of 'char *' in cast.
1430 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
1432 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
1433 * ada-lang.c: I18n markup.
1434 Editorial: change "can not" => "cannot" throughout.
1436 2006-01-07 Mark Kettenis <kettenis@gnu.org>
1438 * Makefile.in: Sort dependencies.
1440 2006-01-07 Eli Zaretskii <eliz@gnu.org>
1442 * top.c (control_level): Remove unused variable.
1444 2006-01-06 Fred Fish <fnf@specifix.com>
1446 * objfiles.c (source.h): Include.
1447 (free_objfile): Update comment about clear_symtab_users().
1448 (free_objfile): Check all symtabs of objfile being freed and if
1449 one of them is the current source symtab, call
1450 clear_current_source_symtab_and_line().
1452 2006-01-04 Michael Snyder <msnyder@redhat.com>
1454 Checkpoint/Restart for Linux.
1455 * linux-nat.c: Add support for debugging multiple forks.
1456 Add #include for linux-fork.h (interface spec).
1457 (super_mourn_inferior): New function pointer.
1458 (child_mourn_inferior): New function / target method.
1459 (linux_target): Claim to_mourn_inferior method pointer.
1460 (child_follow_fork): Call interface to linux-fork, conditionally
1461 add new fork processes to list of debugged processes.
1462 (kill_inferior): Use interface to linux-fork to kill
1465 * linux-fork.h: New file.
1466 * linux-fork.c: New file. Support for debugging multiple forks
1467 of the same program. Support for checkpoint and restart commands.
1469 * infrun.c (nullify_last_target_wait_ptid): New function.
1471 * Makefile.in: Add linux-fork.
1472 * config/*/linux.mh: Add linux-fork.
1473 * NEWS: Mention new functionality.
1475 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1477 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
1478 Change uses of "illegal" to "invalid".
1480 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1482 * ada-exp.y: Considerable reorganization to move functionality
1483 from ada-lex.l to here, where it is logically more appropriate.
1484 The original reason, however, was to prevent premature name
1485 lookups for selector names in record aggregates.
1486 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
1487 NAME for all of these.
1488 (VAR): New artificial token to clarify precedence rules.
1489 (OTHERS): New lexeme.
1490 (empty_stoken): New symbol.
1491 (%union): Remove ssym, voidval.
1492 (%type): Remove <voidval> type declarations.
1493 (syntax definitions): Add aggregates.
1494 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
1495 Rename some non-terminals to be closer to reference manual usage.
1496 Tighten up expression syntax to disallow certain non-Ada
1497 constructions such as X and then Y or else Z.
1498 (ada_parse): Remove initialization of left_block_context.
1499 (write_var_from_name): Remove.
1500 (write_var_or_type): New function, containing previous code from
1501 defunct write_var_from_name and name_lookup.
1502 (block_lookup): New function, moved from ada-lex.l
1503 (select_possible_type_sym): New function, factored out of
1504 name_lookup, which used to be in ada-lex.l.
1505 (find_primitive_type): Ditto.
1506 (chop_selector): Ditto.
1507 (write_ambiguous_var): New function, factored out of defunct
1508 write_var_from_name.
1509 (write_selectors): New function.
1510 (write_name_assoc): New function.
1511 (write_exp_op_with_string): New function.
1513 * ada-lex.l (processId): Change interface to return stoken.
1514 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
1515 (block_lookup, name_lookup): Remove. Functionality moved to
1517 (state IN_STRING): Remove.
1518 (rules): Handle string escapes in processString.
1520 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
1521 yylval.sval (as simple strings).
1522 All name look-ups now handled in ada-exp.y.
1523 Introduce "::" (COLONCOLON) token and return as separate token.
1524 (processId): Change return convention. Comment.
1525 Leave leading "'" in place.
1526 (processString): New function.
1527 (find_dot_all): Add note to comment.
1528 Fix problem that allowed match only at the end.
1530 * ada-lang.c: Introduce aggregates.
1531 (find_struct_field): Add new parameter to count fields skipped, and
1532 allow other output parameters to be NULL.
1533 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
1534 new find_struct_field.
1535 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
1536 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
1537 (num_component_specs, assign_component, assign_aggregate):
1538 (aggregate_assign_from_choices,aggregate_assign_positional)
1539 (aggregate_assign_others,add_component_interval):
1541 (ada_evaluate_subexp): Declare.
1542 Add aggregate-related operators.
1543 (ada_forward_operator_length): Declare.
1544 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
1545 Consolidate Ada operators, using ada_forward_operator_length.
1546 (ada_search_struct_field): Search in forward order.
1547 (ADA_OPERATORS): Add new aggregate operators.
1548 (ada_operator_length, ada_op_name, ada_forward_operator_length)
1549 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
1550 operators and OP_NAME.
1551 (ada_type_of_array): Use longest_to_int.
1552 (value_assign_to_component): New function.
1553 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
1555 (ada_forward_operator_length, ada_dump_subexp_body):
1558 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
1559 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
1561 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1563 * ada-lang.c (process_raise_exception_name): Remove extraneous
1564 definition from unsubmitted code.
1566 (is_lower_alphanum): New function.
1567 (ada_decode): Add support for decoding protected object subprograms
1568 and entries, and of entities declared inside protected object
1570 Also add missing handling for__{DIGITS}+ suffixes.
1571 Allow '$<digits>' as valid overloading suffix.
1572 (is_name_suffix): Add handling for protected type entriy suffixes.
1573 Also add support for protected type subprogram suffixes, but keep
1574 it commented out for now, as there is an ambiguity between these
1575 entities and other internally generated entities.
1576 Allow '$<digits>' as valid overloading suffix.
1577 (is_valid_name_for_wild_match): New function.
1578 (wild_match): Add an exra level of verification of the entity name
1579 before declaring it a match for the given pattern.
1581 (ada_type_of_array, ada_evaluate_subexp): Use more proper
1582 longest_to_int rather than cast.
1584 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
1586 (ada_coerce_to_simple_array): Call check_size to make sure
1587 that the object size is reasonable.
1589 (ada_value_primitive_packed_val): Use correct location in target
1590 buffer for extracting packed record fields that are themselves records.
1592 (add_defn_to_vec): Do not try to replace a stub type by its full
1593 type. Avoids a potential infinite loop.
1595 (ada_lookup_symbol): Move return incorrectly placed return statement,
1596 causing a loop that should be scanning all object files to only
1599 (ada_tag_name_2): New function.
1600 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
1601 use alternative representation.
1603 (ada_find_renaming_symbol): Strip the function name suffix when
1604 computing the XR type name.
1606 (ada_to_fixed_type): Try determining the tag only if we have the
1608 (to_fixed_array_type): Add comments.
1610 (ada_check_typedef): Replace expression checking whether the given
1611 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
1614 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
1615 '$' in addition to '.' for runtime auxiliary function name suffixes.
1616 See changes to ada_decode above.
1618 (struct task_control_block): Add field called_task. (This change is
1619 to keep synchronized with our local sources; it does not affect the
1620 public version yet.)
1622 * ada-typeprint.c (ada_print_type): Use int_string for printing
1623 modulus of modular type.
1625 (print_range): Trivial editorial comment fix.
1627 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
1628 double quote in string.
1630 2006-01-01 Joel Brobecker <brobecker@adacore.com>
1632 * top.c: Add 2006 to list of copyright years in file header.
1634 2006-01-01 Joel Brobecker <brobecker@adacore.com>
1636 * top.c (print_gdb_version): Update copyright year to 2006.
1638 2006-01-01 Roger Sayle <roger@eyesopen.com>
1639 Elena Zannoni <ezannoni@redhat.com>
1642 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
1643 for NULL before assigning this_symtab_psymtab->objfile to objfile.
1644 (scan_xcoff_symtab): Initialize next_symbol_text_func.
1645 (Committed by Jim Blandy)
1647 For older changes see ChangeLog-2005.
1653 version-control: never