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