1 2006-12-16 Mark Kettenis <kettenis@gnu.org>
3 Add OpenBSD/sh support.
4 * NEWS (New targets): Mention OpenBSD/sh.
5 * configure.tgt: Add sh*-*-openbsd*.
6 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Register handler for
8 * config/sh/obsd.mt: New file.
10 * ppcnbsd-tdep.c: Fix typo in comment.
12 2006-12-15 Mark Kettenis <kettenis@gnu.org>
14 * remote-fileio.c (remote_fileio_mode_to_target): Use
15 S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
17 2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
19 * breakpoint.c (insert_bp_location): Add newline to note.
21 2006-12-15 Alan Modra <amodra@bigpond.net.au>
23 * spu-linux-nat.c (spu_bfd_iovec_stat): New function.
24 (spu_bfd_open): Adjust bfd_openr_iovec call.
26 2006-12-13 Jim Blandy <jimb@codesourcery.com>
28 * value.c (value_copy): Copy the full 'location' contents, instead
29 of assuming that copying ADDRESS will bring over everything in the
32 2006-12-13 Markus Deuling <deuling@de.ibm.com>
34 * spu-tdep.c (spu_init_vector_type): New function.
35 (spu_builtin_type_vec128.): New static variable.
36 (spu_register_type): Return spu_builtin_type_vec128 as default.
37 (_initialize_spu_tdep): Call spu_init_vector_type.
39 2006-12-09 Corinna Vinschen <vinschen@redhat.com>
41 * win32-nat.c (env_sort): Remove.
42 (win32_create_inferior): Remove code which creates a Windows
43 environment. Use Cygwin function call instead. Propagate
44 current environment to inferior process.
46 2006-12-09 Nick Roberts <nickrob@snap.net.nz>
48 * varobj.c (varobj_update): Ensure frame is restored when
49 variable object is out of scope.
51 2006-12-08 Eli Zaretskii <eliz@gnu.org>
53 * MAINTAINERS: Clarify the meaning of an ``obvious fix'' in the
56 2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
58 * varobj.c (varobj_create): Don't call release_value.
59 (varobj_set_value): Likewise.
60 (install_new_value): Call coerce_ref and release_value
61 on the value. Add asserts.
63 2006-12-08 Nick Roberts <nickrob@snap.net.nz>
65 * mi/mi-cmd-var.c (mi_cmd_var_update): Fix memory leak.
67 2006-12-06 Jim Blandy <jimb@codesourcery.com>
69 * gdbtypes.c: Revert 2006-12-05 change, and explain why.
71 2006-12-06 Andrew Stubbs <andrew.stubbs@st.com>
73 * event-top.c (command_handler): On EOF, print 'quit' and run quit
74 command via execute_command such that hooks and trace work.
75 * utils.c (defaulted_query): On EOF, print default answer and newline.
77 2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
79 * varobj.c (cplus_value_of_child): When accessing
80 base suboject, don't specially process references.
82 2006-12-05 Adam Nemet <anemet@caviumnetworks.com>
84 * MAINTAINERS (Write After Approval): Add myself.
86 2006-12-05 Jim Blandy <jimb@codesourcery.com>
88 * gdbtypes.c (built_gdbtypes): Don't set builtin_type_void here.
89 (_initialize_gdbtypes): Do it here, and don't swap it when the
92 2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
94 * cp-valprint.c, p-valprint.c: Revert last change.
96 2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
98 * NEWS: Mention MIPS remote autodetection, mips64 gdbserver,
99 "set mem inaccessible-by-default", and "set breakpoint auto-hw".
101 2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
103 * cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack.
104 (cp_print_value): Likewise.
105 * p-valprint.c (pascal_object_print_value_fields): Likewise.
106 (pascal_object_print_value): Likewise.
108 2006-12-05 Adam Nemet <anemet@caviumnetworks.com>
110 * target.c (debug_to_remove_watchpoint): Call
111 to_remove_watchpoint. Print target_remove_watchpoint.
113 2006-12-01 Daniel Jacobowitz <dan@codesourcery.com>
115 * elfread.c (elf_symtab_read): Treat weak functions as global.
117 2006-11-30 Jim Blandy <jimb@codesourcery.com>
119 * ada-lang.c (value_subscript_packed): Don't bother to set the
120 lvalue type of the returned value here;
121 ada_value_primitive_packed_val takes care of that.
123 2006-11-30 Nick Roberts <nickrob@snap.net.nz>
125 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Remove unused
128 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
130 * mi/mi-cmd-var.c (print_varobj): New function.
131 (mi_cmd_var_create): Use the above.
132 (mi_cmd_var_list_children): Likewise.
134 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
136 * MAINTAINERS (Write After Approval): Add myself.
138 2006-11-29 Andrew Stubbs <andrew.stubbs@st.com>
140 * solib.c (solib_open): Treat bare file names as relative paths.
142 2006-11-29 Vladimir Prus <vladimir@codesourcery.com>
144 * varobj.c (varobj_set_value): Don't compare the old
145 and the new value here. Don't assign new value here.
146 Instead, call install_new_value.
148 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
150 * regformats/reg-mips64.dat: New file.
152 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
154 * Makefile.in (mips-tdep.o, target-descriptions.o): Update.
155 * target-descriptions.c (struct property): New.
156 (struct target_desc): Add properties member.
157 (tdesc_property, set_tdesc_property): New.
158 * target-descriptions.h (tdesc_property, set_tdesc_property):
160 * mips-tdep.c (PROPERTY_GP32, PROPERTY_GP64): New constants.
161 (struct gdbarch_tdep): Add register_size_valid_p and register_size.
162 (mips_isa_regsize): Use them.
163 (mips_register_g_packet_guesses): New.
164 (mips_gdbarch_init): Call it. If a target description is supplied,
165 check for internal properties. Check for register size mismatches.
166 * remote.c (send_g_packet, process_g_packet): New functions, split
167 out from fetch_registers_using_g.
168 (fetch_registers_using_g): Use them.
169 (struct remote_g_packet_guess, remote_g_packet_guess_s)
170 (struct remote_g_packet_data, remote_g_packet_data_handle)
171 (remote_g_packet_data_init, register_remote_g_packet_guess)
172 (remote_read_description): New.
173 (init_remote_ops, init_remote_async_ops): Set to_read_description.
174 (_initialize_remote): Register remote_g_packet_data_handle.
175 * remote.h (register_remote_g_packet_guess): Declare.
177 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
179 * Makefile.in (SFILES): Add new and missed files.
180 (target_descriptions_h): New.
181 (COMMON_OBS): Add target-descriptions.o.
182 (arch-utils.o, infcmd.o, remote.o, target.o): Update.
183 (target-descriptions.o): New.
184 * arch-utils.c (gdbarch_info_fill): Check for a target
186 * target-descriptions.c, target-descriptions.h: New files.
187 * gdbarch.sh: Add target_desc to info. Declare it in gdbarch.h.
189 (gdbarch_list_lookup_by_info): Check target_desc.
190 * gdbarch.c, gdbarch.h: Regenerated.
191 * target.c (update_current_target): Mention to_read_description.
192 (target_pre_inferior): Call target_clear_description.
193 (target_read_description): New.
194 * target.h (struct target_ops): Add to_read_description.
195 (target_read_description): New prototype.
196 * infcmd.c (post_create_inferior): Call target_find_description.
197 * remote.c (remote_open_1): Likewise.
198 (extended_remote_create_inferior): Add a comment.
199 (extended_remote_async_create_inferior): Likewise.
201 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
203 * linux-thread-db.c: Include <signal.h>.
205 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
207 * config/tm-linux.h: Delete file.
208 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Set to tm-alpha.h.
209 * config/alpha/tm-alphalinux.h: Delete file.
210 * config/arm/linux.mt (DEPRECATED_TM_FILE): Set to tm-arm.h
211 * config/arm/tm-linux.h: Delete file.
212 * config/i386/tm-linux.h: Do not include "config/tm-linux.h".
213 * config/ia64/tm-linux.h: Do not include "config/tm-linux.h".
214 * config/m32r/linux.mt (DEPRECATED_TM_FILE): Remove.
215 * config/mips/tm-linux.h: Do not include "config/tm-linux.h".
216 * config/pa/linux.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
217 * config/pa/tm-linux.h: Delete file.
218 * config/powerpc/tm-linux.h: Do not include "config/tm-linux.h".
219 * config/s390/linux.mt (DEPRECATED_TM_FILE): Remove.
220 * config/sh/linux.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
221 * config/sh/tm-linux.h: Delete file.
222 * alpha-linux-tdep.c: Include "symtab.h".
223 (alpha_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
224 * i386-linux-tdep.c: Include "symtab.h".
225 (i386_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
226 * ia64-linux-tdep.c: Include "symtab.h".
227 (ia64_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
228 * m32r-linux-tdep.c: Include "symtab.h".
229 (m32r_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
230 * mips-linux-tdep.c: Include "symtab.h".
231 (mips_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
232 * sh-linux-tdep.c: Include "symtab.h".
233 (sh_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
234 * s390-tdep.c (s390_gdbarch_init): Call
235 set_gdbarch_skip_trampoline_code.
236 * s390-nat.c: Do not include "tm.h".
237 * Makefile.in (alpha-linux-tdep.o): Add dependency on $(symtab_h).
238 (i386-linux-tdep.o): Likewise.
239 (ia64-linux-tdep.o): Likewise.
240 (m32r-linux-tdep.o): Likewise.
241 (mips-linux-tdep.o): Likewise.
242 (sh-linux-tdep.o): Likewise.
243 (s390-nat.o): Remove dependency on $(tm_h).
245 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
247 * config/nm-linux.h: Do not include <signal.h>.
248 (REALTIME_LO, REALTIME_HI): Do not define.
249 * signals/signals.c (REALTIME_HI): Fix off-by-one bug.
251 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
253 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
254 handlers. Free expression.
256 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
258 * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
259 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise.
261 * config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ...
262 * config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here.
264 * config/i386/nto.mh (NAT_FILE): Define.
265 * config/i386/nto.mt (DEPRECATED_TM_FILE): Remove.
266 * config/i386/tm-nto.h: Delete file.
267 * config/tm-nto.h: Delete file.
268 * config/nm-nto.h: New file.
270 * Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h).
271 * nto-tdep.c: Include "objfiles.h" and <string.h>.
273 * coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "".
274 * xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved.
275 * config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o.
277 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
279 * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
280 without skipping the CIE.
282 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
284 Fetch varobj values from memory in a single place,
285 and only fetch the values that are really needed.
286 * varobj.c (struct varobj): Clarify comment.
287 (my_value_equal): Remove.
288 (install_new_value): New function.
289 (type_of_child): Remove.
290 (varobj_create): Use install_new_value.
291 (varobj_set_value): Use value_contents_equal, not
293 (varobj_update): Use install_new_value.
294 (create_child): Likewise. Inline type_of_child here.
295 (value_of_child): Don't fetch the value.
296 (c_value_of_root): Likewise.
297 (c_value_of_variable): Likewise.
298 (type_changeable): Improve comments.
300 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
302 * remote.c (struct remote_arch_state): Doc fix.
303 (compare_pnums): New function.
304 (init_remote_state): Only allocate packet_reg structures for raw
305 registers. Define the g/G packet format separately from creating
306 packet_reg. Don't use DEPRECATED_REGISTER_BYTE.
307 (packet_reg_from_regnum, packet_reg_from_pnum): Only iterate over
309 (register_bytes_found): Delete.
310 (fetch_register_using_p): Take a struct packet_reg. Handle disabled
311 'p' packet here. Use packet_ok.
312 (fetch_registers_using_g): New function, split out of
313 remote_fetch_registers. Check the 'g' packet more strictly. Save
314 its actual size and contents. Eliminate BUF. Only iterate over
316 (remote_fetch_registers): Use the new functions for 'p' and 'g'.
317 Mark unavailable registers.
318 (store_register_using_P): Likewise to fetch_register_using_p.
319 (store_registers_using_G): New function, split out of
320 remote_store_registers. Only iterate over raw registers. Don't
321 use register_bytes_found.
322 (remote_store_registers): Likewise to remote_fetch_registers.
324 2006-11-28 Pedro Alves <pedro_alves@portugalmail.pt>
326 * coffread.c (cs_to_bfd_section): New function.
327 (cs_to_section): Use cs_to_bfd_section.
328 (record_minimal_symbol): Take the coff_symbol* parameter instead
329 of the symbol's name as a char*.
330 Add 'int section' parameter. Call prim_record_minimal_symbol_and_info
331 instead of prim_record_minimal_symbol_and_info.
332 Change return type to struct minimal_symbol *.
333 (coff_symtab_read): Adapt to new record_minimal_symbol's signature.
334 Make all minimal symbol creations go through record_minimal_symbol.
336 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
338 * symtab.c (find_pc_sect_line): Do not return a line before
339 the start of a symtab.
341 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
343 * NEWS: SPU target is already supported in GDB 6.6.
345 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
347 * Makefile.in (mips-linux-tdep.o) Add $(solib_h) dependency.
348 (nto-procfs.o): Likewise.
349 * mips-linux-tdep.c: Include "solib.h".
350 * nto-procfs.c: Likewise.
351 * config/nm-linux.h: Do not include "solib.h".
352 * config/nm-nbsd.h: Likewise.
353 * config/tm-linux.h: Likewise.
354 * config/alpha/nm-osf.h: Likewise.
355 * config/frv/tm-frv.h: Likewise.
356 * config/i386/nm-fbsh.h: Likewise.
357 * config/i386/nm-i386gnu.h: Likewise.
358 * config/i386/nm-i386sco5.h: Likewise.
359 * config/i386/nm-i386sol2.h: Likewise.
360 * config/i386/nm-i386v4.h: Likewise.
361 * config/i386/nm-i386v42mp.h: Likewise.
362 * config/i386/tm-i386sol2.h: Likewise.
363 * config/i386/tm-nto.h: Likewise.
364 * config/mips/nm-irix5.h: Likewise.
365 * config/mips/tm-nbsd.h: Likewise.
366 * config/pa/tm-hppah.h: Likewise.
367 * config/powerpc/tm-ppc-eabi.h: Likewise.
368 * config/rs6000/tm-rs6000.h: Likewise.
369 * config/sh/tm-nbsd.h: Likewise.
370 * config/sparc/nm-sol2.h: Likewise.
371 * config/sparc/tm-sol2.h: Likewise.
372 * config/arm/nbsdaout.mh: Remove NAT_FILE.
373 * config/i386/nbsdaout.mh: Likewise.
374 * config/i386/nbsdelf.mh: Likewise.
375 * config/i386/obsdaout.mh: Likewise.
376 * config/m68k/nbsdaout.mh: Likewise.
377 * config/m68k/obsd.mh: Likewise.
378 * config/sparc/nbsdaout.mh: Likewise.
379 * config/cris/cris.mt: Remove DEPRECATED_TM_FILE.
380 * config/i386/linux64.mt: Likewise.
381 * config/m68k/linux.mt: Likewise.
382 * config/m68k/nbsd.mt: Likewise.
383 * config/sparc/linux.mt: Likewise.
384 * config/sparc/linux64.mt: Likewise.
385 * config/vax/nbsd.mt: Likewise.
387 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
389 * NEWS: New port to Cell Broadband Engine SPU.
390 * MAINTAINERS: Add myself as spu maintainer.
392 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
394 * Makefile.in (arm-tdep.o): Update dependencies.
395 * arm-tdep.c (thumb_skip_prologue): Remove.
396 (thumb_analyze_prologue): New function.
397 (arm_skip_prologue): Use thumb_analyze_prologue.
398 (thumb_scan_prologue): Ditto.
400 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
402 * configure.tgt: Enable gdbserver for SPU target.
403 * configure.ac: Build gdbserver when gdb_native is yes.
404 * configure: Regenerate.
405 * regformats/reg-spu.dat: New file.
407 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
409 * osabi.c (gdbarch_lookup_osabi): Do not return
410 GDB_OSABI_UNINITIALIZED.
412 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
414 * config/powerpc/spu-linux.mh: New file.
415 * config/spu/spu.mt: New file.
416 * configure.ac: Provide gdb_native configuration variable.
417 * configure: Regenerate.
418 * configure.host: Support powerpc64 to spu 'pseudo-native' mode.
419 * configure.tgt: Add "spu" target_cpu and "spu*-*-*" target.
420 * Makefile.in (spu_tdep_h): New variable.
421 (ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c
422 (spu-linux-nat.o, spu-tdep.o): Add dependencies.
423 * spu-linux-nat.c: New file.
424 * spu-tdep.c: New file.
425 * spu-tdep.h: New file.
427 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
429 * findvar.c (address_from_register): New function.
430 * value.h (address_from_register): Add prototype.
431 * dwarf2loc.c (dwarf_expr_read_reg): Use address_from_register.
433 2006-11-22 Vladimir Prus <vladimir@codesourcery.com>
435 * breakpoint.c: Include "memattr.h".
436 (automatic_hardware_breakpoints): New.
437 (show_automatic_hardware_breakpoints): New.
438 (insert_bp_location): Automatically use
439 hardware breakpoints.
440 (_initialize_breakpoint): Register the "auto-hw"
442 * Makefile.in (breakpoint.o): Update dependencies.
444 2006-11-21 Vladimir Prus <vladimir@codesourcery.com>
446 * memattr.h (enum mem_access_mode): New value
448 * memattr.c (unknown_mem_attrib): New.
449 (inaccessible_by_default): New.
450 (show_inaccessible_by_default): New.
451 (lookup_mem_region): Check inaccessible_by_default.
453 (mem_set_cmdlist, mem_show_cmdlist): New.
454 (_initialize_mem): Register new "set" and "show"
456 * target.c (memory_xfer_partial): If memory type
457 is MEM_NONE, return an error.
458 Clip to region size when calling to_xfer_partial.
459 If upper limit of memory range is 0, don't clip
462 2006-11-20 Joel Brobecker <brobecker@adacore.com>
464 * README: Remove obsolete information.
466 2006-11-20 Andrew Cagney <cagney@redhat.com>
468 * linux-nat.h: Refer to GNU/Linux or Linux kernel.
469 * linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
470 * infcmd.c (attach_command): Ditto.
471 * hppa-linux-tdep.c (hppa_linux_regset): Ditto.
472 * mn10300-linux-tdep.c: Ditto. Update copyright year.
473 * frv-linux-tdep.c: Ditto. Update copyright year.
475 2006-11-19 Joel Brobecker <brobecker@adacore.com>
477 * NEWS: Add a new section for changes since GDB 6.6. Rename
478 the section "Changes since GDB 6.5" into "Changes in GDB 6.6".
479 Move a couple of items into the new section as they did not
482 2006-11-19 Joel Brobecker <brobecker@adacore.com>
484 GDB 6.6 branch created (branch timestamp: 2006-11-15 12:00)
485 * version.in: Bump version to 6.6.50.20061119-cvs.
487 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
489 * prologue-value.c (clear_entries): Fix memory leak.
491 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
493 * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
496 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
498 * utils.c (string_to_core_addr): Use error instead of
500 * mi/mi-main.c (mi_execute_command): Check for a NULL message.
502 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
504 * NEWS: Mention QPassSignals.
506 2006-11-16 Maxim Grigoriev <maxim2405@gmail.com>
508 * MAINTAINERS (Responsible Maintainers): Add myself for Xtensa.
509 (Write After Approval): Add myself.
511 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
513 * remote.c (PACKET_QPassSignals): New.
514 (last_pass_packet, remote_pass_signals): New.
515 (remote_protocol_features): Add QPassSignals.
516 (remote_query_supported): Correct an infinite loop.
517 (remote_open_1): Reset last_pass_packet.
518 (remote_resume): Call remote_pass_signals.
519 (_initialize_remote): Register "set remote pass-signals".
521 2006-11-14 Maxim Grigoriev <maxim@tensilica.com>
523 * NEWS: New port to Xtensa.
524 * Makefile.in: Add dependencies for Xtensa files.
525 * configure.tgt (xtensa*, xtensa*-*-elf*): New.
526 * configure.host (xtensa*-*-elf*): New.
527 * config/xtensa/xtensa.mt: New file.
528 * xtensa-config.c: New file.
529 * xtensa-tdep.h: New file.
530 * xtensa-tdep.c: New file.
532 2006-11-14 Daniel Jacobowitz <dan@codesourcery.com>
534 * remote.c (set_remote_cmd): Call help_list.
535 (show_remote_cmd): Skip legacy aliases. Handle non-show_cmd
536 entries. Add missed cleanup.
537 * cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
539 2006-11-13 Paul Gilliam <pgilliam@us.ibm.com>
541 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Don't futz with
542 the floating point registers if there aren't any.
544 2006-11-12 Ben Harris <bjh21@NetBSD.org>
546 * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
548 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
550 * frame.c (frame_register_unwind_location): New function.
551 (get_prev_frame_1): Check for UNWIND_NO_SAVED_PC.
552 (frame_stop_reason_string): Handle UNWIND_NO_SAVED_PC.
553 * frame.h (enum unwind_stop_reason): Add UNWIND_NO_SAVED_PC.
555 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
557 * arch-utils.c (target_byte_order_user): Renamed from
559 (target_byte_order_auto, selected_byte_order): Removed.
560 (show_endian): Check target_byte_order_user.
561 (set_endian): Always update the architecture. Set
562 target_byte_order_user after success.
563 (target_architecture_auto): Removed.
564 (target_architecture_user): New.
565 (selected_architecture_name, show_architecture): Check it.
566 (set_architecture): Set target_architecture_user after success.
567 (gdbarch_from_bfd): Check the argument.
568 (default_byte_order): New.
569 (initialize_current_architecture): Set the global default
570 architecture and endianness.
571 (gdbarch_info_fill): Remove GDBARCH argument. Do not check the
572 previous architecture. Use exec_bfd, global selected architecture
573 and endianness, and global defaults.
574 * arch-utils.h (selected_byte_order): Remove prototype.
575 (gdbarch_info_fill): Update.
576 * exec.c (exec_file_attach): Update the architecture after removing
578 * gdbarch.sh: Update comments.
579 (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to
581 (gdbarch_find_by_info): Update call to find_arch_by_info.
582 * gdbarch.h, gdbarch.c: Regenerated.
583 * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER.
585 2006-11-09 Joel Brobecker <brobecker@adacore.com>
587 * sparc-tdep.c (sparc_fetch_instruction): Read instruction
588 using read_memory_nobpt.
590 2006-11-06 Jim Blandy <jimb@codesourcery.com>
592 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
593 instead of frame_register. Doc fix.
595 2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
597 * serial.c (serial_open): Strip leading spaces from program
598 name when opening pipe.
600 2006-11-03 Jim Blandy <jimb@codesourcery.com>
602 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
603 instead of frame_register. Doc fix.
605 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
607 * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
608 (load_full_comp_unit): Take OBJFILE argument and use it.
609 (dwarf2_build_psymtabs_hard): Skip partial units.
610 (process_queue): Pass OBJFILE to load_full_comp_unit. Check
611 type_hash for read in CUs. Test psymtab for NULL.
613 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
615 * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5.
617 2006-10-31 Vladimir Prus <vladimir@codesourcery.com>
619 * commands.h (enum command_class): Use different
620 values for class_deprecated and class_run.
621 * cli/cli-decode.c: (print_help_for_command): New.
622 (apropos_cmd): Use the above.
623 (help_list): Mention 'help all'
624 and 'apropos' when printing top-level help.
625 (help_all): Print the class name before printing
626 commands in that class. Don't print prefix commands
627 here, instead pass recurse flag to help_cmd_list.
628 Print list of unclassified commands at the end.
629 (help_cmd_list): When recursing, use all_commands class.
630 Recurse only if the class of the command matches.
632 2006-10-27 Andreas Schwab <schwab@suse.de>
634 * gdbcmd.h (detachlist): Declare.
635 * infcmd.c (_initialize_infcmd): Define "detach" as prefix
637 * linux-fork.c (_initialize_linux_fork): Rename
638 "detach-checkpoint" to "detach checkpoint" and "detach-fork" to
640 * cli/cli-cmds.c (detachlist): Define.
641 (init_cmd_lists): Initialize it.
642 * cli/cli-cmds.h (detachlist): Declare.
644 2006-10-25 Jim Blandy <jimb@codesourcery.com>
646 * p-valprint.c (pascal_object_print_value): Add 'static' keyword
647 to function definition, to match declaration earlier in file.
649 2006-10-21 Paul Brook <paul@codesourcery.com>
651 * remote.c (remote_fetch_registers): Fix error message.
653 2006-10-20 Daniel Jacobowitz <dan@codesourcery.com>
655 * gcore.c (MAX_COPY_BYTES): Define.
656 (gcore_copy_callback): Use it to limit allocation.
658 2006-10-19 Ulrich Weigand <uweigand@de.ibm.com>
660 * linux-thread-db.c (check_for_thread_db): Don't attempt to use
661 thread_db for remote targets.
662 * remote.c (remote_new_objfile): Always call predecessor on
663 new_objfile event chain.
665 2006-10-19 Joel Brobecker <brobecker@adacore.com>
667 * solib.c (libpthread_solib_p): New function.
668 (solib_add): Always read the symbols from the libpthread library.
670 2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
672 * breakpoint.c (describe_other_breakpoints): Add thread parameter.
673 Annotate display with thread number where appropriate.
674 (create_breakpoints): Add thread parameter to call to
675 describe_other_breakpoints.
677 2006-10-18 Jim Blandy <jimb@codesourcery.com>
678 Daniel Jacobowitz <dan@codesourcery.com>
680 * utils.c (query): Use defaulted_query.
681 (defaulted_query): Handle having no default answer. Print out
682 messages even if we have no terminal. Prevent memory corruption.
684 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
686 * frame.c (struct frame_info): Add stop_reason.
687 (get_prev_frame_1): Set stop_reason. Don't call error for
689 (get_frame_unwind_stop_reason, frame_stop_reason_string): New.
690 * frame.h (enum unwind_stop_reason): New.
691 (get_frame_unwind_stop_reason, frame_stop_reason_string): New
693 * stack.c (frame_info): Print the stop reason.
694 (backtrace_command_1): Print the stop reason for errors.
696 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
698 * inferior.h (start_remote): Update prototype.
699 * infrun.c (start_remote): Take FROM_TTY. Call
700 post_create_inferior.
701 * monitor.c (monitor_open): Update call to start_remote.
702 * remote-sds.c (sds_start_remote, sds_open): Likewise.
703 * remote.c (remote_start_remote): Likewise.
704 (remote_start_remote_dummy): Removed.
705 (remote_open): Update call to remote_start_remote. Do not call
706 post_create_inferior here.
708 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
710 * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
711 (debug_loader_name, svr4_default_sos): New.
712 (svr4_current_sos): Call svr4_default_sos.
713 (enable_break): Add a comment about AT_BASE. Set the new
714 variables and retry solib_add.
715 (svr4_clear_solib): Clear the new variables.
717 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
719 * NEWS: Mention support for TLS without debugging information.
721 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
723 * remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
724 (gdbsim_load): Don't bother to adjust inferior_ptid here.
725 (gdbsim_create_inferior): Mark the simulator as running.
726 (gdbsim_open): Don't bother fetching registers. Mark
727 the target as not running.
728 (gdbsim_xfer): When the program is not running, pass memory
730 (gdbsim_mourn_inferior): Mark the target as not running.
731 * target.c (target_mark_running, target_mark_exited): New.
732 * target.h (target_has_execution): Update the comment.
733 (target_mark_running, target_mark_exited): New prototypes.
735 2006-10-17 Joel Brobecker <brobecker@adacore.com>
737 * breakpoint.c (free_valchain): Minor reformatting.
739 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
741 * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch.
743 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
745 * Makefile.in (symtab.o): Update.
746 * symtab.h (matching_bfd_sections): New prototype.
747 * symtab.c (matching_bfd_sections): New.
748 (find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
749 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
750 * printcmd.c (sym_info): Ignore separate debug objfiles.
752 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
754 * remote.c (remote_pid_to_str): Capitalize "Thread".
756 2006-10-15 Daniel Jacobowitz <dan@codesourcery.com>
759 * remote.c (remote_write_bytes): Throttle packet alignment
762 2006-10-16 Jeff Johnston <jjohnstn@redhat.com>
764 * linux-thread-db.c (thread_db_wait): Don't bother continuing if
765 the wait result indicates the program terminated with a
766 signal (from gdb-6.3-ia64-sigill-20051115.patch, a patch for
769 2006-10-11 Daniel Jacobowitz <dan@codesourcery.com>
771 * dwarf2read.c (dwarf_decode_lines): Call record_line upon
772 encountering a different subfile.
774 2006-10-11 Denis Pilat <denis.pilat@st.com>
776 * tui/tui-source.c (tui_set_source_content): handle source
777 files that contain non unix end-of-line.
779 2006-10-10 Daniel Jacobowitz <dan@codesourcery.com>
781 * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
782 for changes to pipe_select_thread.
783 (pipe_done_wait_handle): New.
784 (_initialize_ser_windows): Reference it.
786 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
787 Daniel Jacobowitz <dan@codesourcery.com>
789 * Makefile.in (expprint.o, parse.o, target.o): Update.
790 * dwarf2loc.c (dwarf_expr_tls_address): Move body to
791 target_translate_tls_address. Call it.
792 * eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
793 * expprint.c (print_subexp_standard): Likewise.
794 (op_name_standard, dump_subexp_body_standard): Likewise.
795 * expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
796 (union exp_element): Add objfile.
797 * parse.c (write_exp_elt_objfile): New function.
798 (msym_tls_symbol_type): New.
799 (write_exp_msymbol): Handle TLS.
800 (operator_length_standard): Handle UNOP_MEMVAL_TLS.
801 (build_parse): Initialize msym_tls_symbol_type.
802 * parser-defs.h (write_exp_elt_objfile): New prototype.
803 * target.c (target_translate_tls_address): New.
804 * target.h (target_translate_tls_address): Add prototype.
806 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
811 2006-10-09 Daniel Jacobowitz <dan@codesourcery.com>
813 * solib.c (solib_read_symbols): Stop if the file was not found.
815 2006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
818 * valops.c (find_overload_match): Check for a NULL name.
820 2006-10-06 Joel Brobecker <brobecker@adacore.com>
823 * dwarf2read.c (read_array_type): Set the type name if the name
824 attribute is present.
826 2006-10-05 Joel Brobecker <brobecker@adacore.com>
828 * blockframe.c (block_innermost_frame): Rewrite frame search logic.
830 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
832 * Makefile.in (gdb_expat_h): New.
833 (xml_support_h): Add gdb_expat.h dependency.
834 (memory-map.o, xml-support.o): Likewise.
835 * gdb_expat.h: New file.
836 * xml-support.h: Include it.
837 * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK
840 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
842 * remote.c (get_remote_state_raw): Renamed from get_remote_state.
843 (get_remote_state): New function.
844 (init_remote_state, _initialize_remote): Use get_remote_state_raw.
846 2006-10-04 Fred Fish <fnf@specifix.com>
848 * vec.c: Include defs.h first. This pulls in config.h which can
849 affect other includes.
851 2006-10-04 Joel Brobecker <brobecker@adacore.com>
853 * somread.c (som_symtab_read): Avoid using alloca for potentially
856 2006-10-04 Daniel Jacobowitz <dan@codesourcery.com>
858 * arch-utils.h (gdbarch_info_fill): Remove duplicate prototype.
860 2006-10-03 Daniel Jacobowitz <dan@codesourcery.com>
862 * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default
864 * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise.
866 2006-09-22 Daniel Jacobowitz <dan@codesourcery.com>
868 * remote.c (remote_write_bytes_aux): Doc fix.
870 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
871 Daniel Jacobowitz <dan@codesourcery.com>
873 * Makefile.in (SFILES): Add target-memory.c.
874 (COMMON_OBS): Add target-memory.o.
875 * memattr.c (lookup_mem_region): Adjust handling for
876 the top of memory. Improve comments.
877 * remote.c (packet_check_result): New function, split out
878 from packet_ok. Recognize "E." as an error prefix.
880 (remote_write_bytes_aux): New function, renamed from
881 remote_write_bytes. Take packet header, packet format,
882 and length flag as arguments.
883 (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
884 (remote_send_printf, restore_remote_timeout)
885 (remote_flash_timeout, remote_flash_erase, remote_flash_write)
886 (remote_flash_done): New.
887 (remote_xfer_partial): Handle flash writes.
888 (init_remote_ops, init_remote_async_ops): Set to_flash_erase
890 * symfile.c (struct load_section_data): Include a pointer to
891 the cumulative stats and a request queue. Move most members
893 (struct load_progress_data, struct load_progress_section_data): New
895 (load_progress): Handle a NULL baton and zero bytes. Update for
897 (load_section_callback): Create memory write requests instead of
898 writing to memory. Don't print the progress message here.
899 (clear_memory_write_data): New function.
900 (generic_load): Use target_write_memory_blocks.
901 * target-memory.c: New file.
902 * target.c (update_current_target): Mention new uninherited methods.
903 (memory_xfer_partial): Issue an error for flash writes.
904 (target_flash_erase, target_flash_done): New functions.
905 (target_write_with_progress): Call the progress callback at the
907 * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
908 (target_write_with_progress): Update comment.
909 (struct target_ops): Add to_flash_erase and to_flash_done.
910 (target_flash_erase, target_flash_done, struct memory_write_request)
911 (memory_write_request_s, enum flash_preserve_mode)
912 (target_write_memory_blocks): New, including a vector type
913 for memory_write_request_s.
915 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
916 Daniel Jacobowitz <dan@codesourcery.com>
917 Nathan Sidwell <nathan@codesourcery.com>
919 * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
920 (memory_map_h, xml_support_h): New.
921 (target_h): Add vec_h dependency.
922 (COMMON_OBS): Add memory-map.o and xml-support.o.
923 (memory-map.o, xml-support.o): New rules.
925 * exceptions.h (enum errors): Add XML_PARSE_ERROR.
926 * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
927 * memattr.c (default_mem_attrib): Initialize blocksize.
928 (target_mem_region_list, mem_use_target)
929 (target_mem_regions_valid, mem_region_cmp, mem_region_init)
930 (require_user_regions, require_target_regions)
931 (invalidate_target_mem_regions): New.
932 (create_mem_region): Use mem_region_init.
933 (mem_clear): Move higher.
934 (lookup_mem_region): Use require_target_regions.
935 (mem_command): Implement "mem auto".
936 (mem_info_command): Handle target-supplied regions and flash
938 (mem_enable_command, mem_disable_command, mem_delete_command): Use
939 require_user_regions.
940 (_initialize_mem): Mention "mem auto" in help.
941 * memattr.h (enum mem_access_mode): Add MEM_FLASH.
942 (struct mem_attrib): Add blocksize.
943 (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
945 * remote.c: Include "memory-map.h".
946 (PACKET_qXfer_memory_map): New enum value.
947 (remote_protocol_features): Add qXfer:memory-map:read.
948 (remote_xfer_partial): Handle memory maps.
949 (remote_memory_map): New.
950 (init_remote_ops, init_remote_async_ops): Set to_memory_map.
951 (_initialize_remote): Register qXfer:memory-map:read.
952 * target.c (update_current_target): Mention to_memory_map.
953 (target_memory_map, target_pre_inferior): New.
954 (target_preopen): Call target_pre_inferior.
955 * target.h: Include "vec.h".
956 (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
957 (struct target_ops): Add to_memory_map.
958 (target_memory_map, target_pre_inferior): New prototypes.
959 * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
961 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
963 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
964 (strtoulst): Moved to ...
965 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
966 (strtoulst): ... here. Enhanced to behave more similarly
968 * defs.h (strtoulst): New prototype.
970 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
972 * Makefile.in (memattr_h, memattr.o): Update.
973 * memattr.h: Include "vec.h".
974 (struct mem_region): Remove linked list pointer.
975 (mem_region_s): New typedef and corresponding vector.
976 * memattr.c: Include "vec.h".
977 (mem_region_chain): Delete.
978 (mem_region_list): New vector pointer.
979 (mem_region_lessthan): New function.
980 (create_mem_region): Remove unused return value. Use vector
981 operations. Remove linear search.
982 (delete_mem_region): Delete.
983 (lookup_mem_region): Use vector operations. Add a FIXME.
984 (mem_info_command): Update to work with vectors.
985 (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
986 (mem_free, mem_delete): Likewise.
988 2006-09-21 Nathan Sidwell <nathan@codesourcery.com>
992 * Makefile.in (SFILES): Add vec.c.
994 (COMMON_OBJS): Add vec.o.
997 2006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
1000 * remote.c (remote_thread_alive): Remove local buf.
1001 (remote_get_threadinfo): Remove local threadinfo_pkt.
1002 (remote_get_threadlist): Remove unused threadlist_packet.
1003 (remote_current_thread): Remove local buf.
1004 (remote_threads_info): Set bufp after getpkt.
1005 (remote_threads_extra_info): Remove local bufp.
1006 (get_offsets): Set buf after getpkt.
1007 (remote_check_symbols): Set reply after getpkt.
1008 (remote_vcont_probe): Set buf after getpkt.
1009 (remote_resume): Set buf after set_thread.
1010 (remote_wait, remote_async_wait): Set buf after getpkt.
1011 (fetch_register_using_p): Set buf after remote_send.
1012 (remote_fetch_registers): Likewise.
1013 (store_register_using_P): Don't use buf after remote_send.
1014 (check_binary_download, remote_write_bytes)
1015 (remote_read_bytes, remote_rcmd): Remove local buf.
1017 2006-09-17 Vladimir Prus <vladimir@codesourcery.com>
1019 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
1020 if high requested frame number is larger than number of available
1023 2006-09-16 Nick Roberts <nickrob@snap.net.nz>
1025 * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
1028 2006-09-16 Andrzej Zaborowski <balrog@zabor.org>
1030 * interps.c (interpreter_exec_cmd): Restore interpreter properties.
1032 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1035 * infrun.c (handle_inferior_event): Context switch after fork
1038 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1040 * infcall.c (call_function_by_hand): Check for function pointer
1043 2006-09-10 Andreas Schwab <schwab@suse.de>
1045 * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
1048 2006-09-07 Vladimir Prus <vladimir@codesourcery.com>
1050 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
1051 error if high requested frame number is larger then number
1052 of available frames.
1054 2006-09-07 Joel Brobecker <brobecker@adacore.com>
1056 From Stephan Springl <springl-gdb@bfw-online.de>
1057 * fork-child.c (fork_inferior): Fix typo.
1059 2006-08-28 DJ Delorie <dj@redhat.com>
1061 * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
1062 that may not be initialized elsewhere.
1063 (m32c_decode_sd23): Likewise.
1065 2006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
1067 * buildsym.c (finish_block): Don't adjust the boundaries of
1070 2006-08-24 Andreas Schwab <schwab@suse.de>
1072 * symfile.c (add_symbol_file_command): Fix off-by-one when
1073 extending sect_opts.
1075 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
1077 * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
1079 2006-08-23 Nick Roberts <nickrob@snap.net.nz>
1081 * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
1083 (gdbmi-send): Ensure any text properties can be removed.
1084 (gdbmi-prompt1): Update to gdb-ui.el
1085 (gud-gdbmi-marker-filter): Defer setting of gud-running.
1086 Keep gdb-done-regexp for partial-output-buffer.
1087 (gdb-stack-list-frames-handler): Add face to function names.
1089 2006-08-22 Mark Kettenis <kettenis@gnu.org>
1091 * valprint.c (val_print_type_code_flags): Fix GNU coding standards
1094 * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
1095 (alpha_push_dummy_call, alpha_extract_return_value)
1096 (alpha_breakpoint_from_pc, alpha_read_insn)
1097 (alpha_get_longjmp_target, alpha_supply_int_regs)
1098 (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
1099 (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
1102 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
1103 (sparc64_fprs_type): New variables.
1104 (sparc64_init_types): New function.:
1105 (sparc64_register_info): Use appropriate flag types for %fsr and
1107 (sparc64_pseudo_register_info): Use appropriate type for %pstate.
1108 (_initialize_sparc64_tdep): New function.
1110 * valprint.c (val_print_type_code_flags): Fix for bitfields larger
1113 * gdbtypes.c (init_flags_type): Set all fields to zero instead of
1116 2006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1118 * Makefile.in (INTERNAL_CPPFLAGS): New.
1119 (INTERNAL_CFLAGS_BASE): Use it.
1121 2006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
1123 * MAINTAINERS: Update my email address.
1125 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
1127 * Makefile.in (amd64_linux_tdep_h): New.
1128 (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
1129 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
1131 (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
1132 * amd64-linux-tdep.c (amd64_linux_register_name)
1133 (amd64_linux_register_type, amd64_linux_register_reggroup_p)
1134 (amd64_linux_write_pc): New.
1135 (amd64_linux_init_abi): Use them, and update num_regs.
1136 * amd64-linux-tdep.h: New file.
1137 * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
1139 * amd64-tdep.h (amd64_register_name, amd64_register_type): New
1142 * regformats/reg-x86-64-linux.dat: New file.
1144 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1146 * infrun.c (handle_inferior_event): Check the current frame ID
1147 before unwinding to the previous frame.
1149 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1151 * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
1152 number in a comment.
1154 2006-08-18 Mark Kettenis <kettenis@gnu.org>
1156 * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
1158 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1160 * dwarf2read.c (quirk_gcc_member_function_pointer): New.
1161 (read_structure_type): Call it.
1163 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
1165 * NEWS: Mention "set trust-readonly-sections" fix.
1167 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
1169 * remote.c, target.c: Strip trailing whitespace.
1171 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
1174 * dcache.c (dcache_write_line): Use target_write.
1175 (dcache_read_line): Use target_read.
1176 * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
1177 * symfile.c (struct load_section_data): Add new per-section
1179 (load_progress): New function.
1180 (load_section_callback): Pass load_progress to the new
1181 target_write_with_progress.
1182 * target.c (current_xfer_partial, memory_xfer_partial): New.
1183 (target_xfer_partial): New prototype.
1184 (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
1185 (do_xfer_memory, target_xfer_memory_partial)
1186 (target_read_memory_partial, target_write_memory_partial): Delete.
1187 (trust_readonly): Move higher in the file.
1188 (update_current_target): Use current_xer_partial.
1189 (target_xfer_partial): Use memory_xfer_partial. Handle
1190 TARGET_OBJECT_RAW_MEMORY specially.
1191 (target_read_memory): Use target_read.
1192 (target_write_memory): Use target_write.
1193 (default_xfer_partial): Call to_xfer_partial directly.
1194 (target_write_with_progress): New function, based on target_write.
1195 (target_write): Call it.
1196 * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
1197 (target_write_with_progress): New prototype.
1198 (do_xfer_memory, target_read_memory_partial)
1199 (target_write_memory_partial): Delete prototypes.
1201 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
1203 * remote.c (remote_write_bytes): Take a const buffer argument.
1204 Do the checks from remote_xfer_memory.
1205 (remote_read_bytes): Do the checks from remote_xfer_memory.
1206 (remote_xfer_memory): Remove checks pushed into lower level
1208 (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
1210 * remote.h (remote_write_bytes): Update prototype.
1212 2006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
1214 * NEWS: Add 'set trace-commands' command.
1216 2006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
1218 * cli/cli-script.c (execute_user_command): Update command_next_depth
1219 on user-command call.
1221 2006-08-09 Joel Brobecker <brobecker@adacore.com>
1223 * NEWS: Add entry for new substitute-path commands.
1225 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1227 * source.c: #include gdb_assert.h.
1228 (substitute_path_rule): New struct.
1229 (substitute_path_rules): New static global variable.
1230 (substitute_path_rule_matches): New function.
1231 (get_substitute_path_rule): New function.
1232 (rewrite_source_path): New function.
1233 (find_and_open_source): Add source path rewriting support.
1234 (strip_trailing_directory_separator): New function.
1235 (find_substitute_path_rule): New function.
1236 (add_substitute_path_rule): New function.
1237 (delete_substitute_path_rule): New function.
1238 (show_substitute_path_command): New function.
1239 (unset_substitute_path_command): New function.
1240 (set_substitute_path_command): New function.
1241 (_initialize_source): Add new substitute-path commands.
1242 * Makefile.in (source.o): Add dependency on gdb_assert.h.
1244 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1246 * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
1248 (i386_analyze_struct_return): Likewise.
1249 (i386_skip_probe): Likewise.
1250 (i386_match_insn): Likewise.
1251 (i386_analyze_frame_setup): Likewise.
1252 (i386_analyze_register_saves): Likewise.
1253 (i386_skip_prologue): Likewise.
1255 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1257 * gdbcore.h (read_memory_nobpt): New function name instead of
1258 deprecated_read_memory_nobpt.
1259 * breakpoint.c (read_memory_nobpt): New function name instead
1260 of deprecated_read_memory_nobpt.
1261 Adjust calls to old deprecated_read_memory_nobpt accordingly.
1262 * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
1264 * alphanbsd-tdep.c: Likewise.
1265 * frame.c: Likewise.
1266 * frv-tdep.c: Likewise.
1267 * hppa-linux-tdep.c: Likewise.
1268 * hppa-tdep.c: Likewise.
1269 * i386-linux-nat.c: Likewise.
1270 * m68klinux-tdep.c: Likewise.
1271 * mips-tdep.c: Likewise.
1272 * s390-tdep.c: Likewise.
1274 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1276 * configure.ac: Check for expat.
1277 * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
1278 * Makefile.in (LIBEXPAT): New.
1279 (CLIBS): Include $(LIBEXPAT).
1280 * README: Mention expat.
1281 * configure, config.in: Regenerated.
1283 2006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
1285 * config/sparc/embed.mt: New file.
1286 * configure.tgt (sparc-*-rtems*): Use embed.mt.
1288 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1290 * Makefile.in (objfiles.o, symfile.o): Update.
1291 * objfiles.c: Include "expression.h" and "parser-defs.h".
1292 (free_objfile): Clear global blocks.
1293 * symfile.c: Include "parser-defs.h".
1294 (clear_symtab_users): Clear global blocks.
1296 2006-08-08 Thiemo Seufer <ths@mips.com>
1298 * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
1300 2006-08-08 Vladimir Prus <vladimir@codesourcery.com>
1302 * symfile.c (download_write_size): Remove.
1303 (show_download_write_size): Remove.
1304 (load_section_callback): Don't use download_write_size.
1305 (_initialize_symfile): Don't register download_write_size.
1306 * NEWS: Mention 'download-write-size' removal.
1308 2006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
1310 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
1311 support for member pointers.
1313 2006-08-02 Mark Kettenis <kettenis@gnu.org>
1315 * arm-tdep.h: Add multiple inclusion protection.
1316 (struct gdbarch): Add forward declaration.
1317 (armobsd_regset_from_core_section): New prototype.
1318 * armbsd-tdep.c: New file.
1319 * armobsd-tdep.c: Include "gdb_string.h".
1320 (armobsd_init_abi): Set regset_from_core_section.
1321 (armobsd_core_osabi_sniffer): New function.
1322 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
1323 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
1324 (armbsd-tdep.o): New dependency.
1325 (armnbsd-tdep.o): Update dependencies.
1326 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
1328 2006-08-02 Thiemo Seufer <ths@mips.com>
1330 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
1332 * tui/tui-stack.c (tui_show_frame_info): Likewise.
1334 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1336 * c-exp.y (type): Remove incorrect pointer to member case.
1337 * objc-exp.y (type): Likewise.
1338 * p-exp.y (type): Likewise.
1340 2006-08-01 Mark Kettenis <kettenis@gnu.org>
1342 * arm-tdep.h (enum struct_return): New.
1343 (struct gdbarch_tdep): Add struct_return member.
1344 * arm-tdep.c (arm_return_value): Return
1345 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
1347 (arm_gdbarch_init): Default to reg_struct_return.
1348 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
1350 2006-07-31 Mark Kettenis <kettenis@gnu.org>
1352 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
1353 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
1354 <machine/pcb.h> and "bsd-kvm.h".
1355 (alphabsd_supply_pcb): New function.
1356 (_initialize_alphabsd_nat): Enable libkvm interface.
1357 * Makefile.in (alphabsd-nat.o): Update dependencies.
1358 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1359 (LOADLIBES): New variable.
1360 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1361 (LOADLIBES): New variable.
1363 2006-07-31 Fred Fish <fnf@specifix.com>
1365 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
1366 instead of calling frame_obstack_zalloc directly.
1367 (arm_make_stub_cache): Ditto.
1368 * frame-unwind.h: Ditto.
1369 * frame.c (create_new_frame): Ditto.
1371 2006-07-27 Bob Wilson <bob.wilson@acm.org>
1373 * MAINTAINERS (Write After Approval): Add myself.
1375 2006-07-27 Bob Wilson <bob.wilson@acm.org>
1377 * main.c (captured_main): Print a newline after calling
1378 print_gdb_version instead of waiting until after the symbol file
1379 has been read. Adjust error_pre_print, quit_pre_print, and
1380 warning_pre_print values.
1382 2006-07-27 Roger Sayle <roger@eyesopen.com>
1383 Daniel Jacobowitz <dan@codesourcery.com>
1385 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
1387 2006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1389 * target.h (target_read_stralloc): New prototype.
1390 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
1391 Take new PADDING argument.
1392 (target_read_alloc): Use it.
1393 (target_read_stralloc): New function.
1395 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1397 * remote.c (remote_protocol_features): Correct qPart to qXfer.
1399 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
1401 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
1402 calls to C++ operator*.
1404 2006-07-24 Roger Sayle <roger@eyesopen.com>
1405 Daniel Jacobowitz <dan@codesourcery.com>
1407 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
1408 (gdb_int64_bytes): Likewise.
1409 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
1410 as first argument to extract_unsigned_integer to silence compiler
1413 2006-07-24 Frederic Riss <frederic.riss@st.com>
1415 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
1417 (dwarf2_locate_sections): Initialize
1418 dwarf2_per_objfile->has_section_at_zero.
1419 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
1420 instead of HAS_RELOC test.
1421 (read_partial_die): Ditto.
1423 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1425 * corefile.c (reopen_exec_file): Only check for an open exec file.
1426 Use exec_file_attach.
1427 * exec.c (exec_open): Make static.
1428 (exec_file_command): Don't use target_preopen. Query directly about
1430 * gdbcore.h (exec_open): Remove prototype.
1432 2006-07-24 Frederic Riss <frederic.riss@st.com>
1434 * regcache.c (struct regcache): Make register_valid_p a signed char
1437 2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 Daniel Jacobowitz <dan@codesourcery.com>
1440 * linux-thread-db.c (thread_db_wait): Remove libthread_db
1443 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1445 * NEWS: Mention Windows cross debugging support.
1447 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
1449 * linux-nat.c (linux_nat_add_target): Remove extern.
1450 * linux-nat.h (thread_db_init): New prototype.
1452 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1454 * configure.tgt: Build gdbserver for Cygwin and mingw32.
1456 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1458 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
1459 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
1460 * config/i386/tm-cygwin.h: Delete file.
1462 2006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1464 * infrun.c (handle_inferior_event): Typo.
1466 2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
1468 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
1469 (source_script): New function.
1470 (source_verbose_cleanup): New function.
1471 (source_command): Move old contents to source_script.
1472 Make function static. Parse -v option and call source_script.
1473 (init_cli_cmds): Update source command help.
1474 Add 'set trace-commands' command.
1475 * cli/cli-script.c (command_next_depth): New static variable.
1476 (suppress_next_print_command_trace): New static variable.
1477 (reset_command_nest_depth): New function.
1478 (print_command_trace): New function.
1479 (execute_control_command): Split the continue_control and break_control
1480 cases, add calls to print_command_trace and count the nest depth.
1481 (while_command): Set suppress_next_print_command_trace.
1482 (if_command): Likewise.
1483 * top.c (execute_command): Call print_command_trace.
1484 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
1485 (source_command): Change to source_script.
1486 * main.c (captued_main): Use source_script instead of source_command.
1487 * top.h (source_command): Change to source_script.
1488 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
1489 * cli/cli-script.h (print_command_trace): Export.
1490 (reset_command_nest_depth): Likewise.
1492 2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
1494 * eval.c (evaluate_struct_tuple): Skip static fields.
1496 2006-07-19 Mark Kettenis <kettenis@gnu.org>
1498 * alphaobsd-tdep.c: Include "obsd-tdep.h".
1499 (alphaobsd_init_abi): Set skip_solib_resolver.
1500 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
1501 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1503 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
1504 from ELF flags for binaries produced by the GNU toolchain.
1506 2006-07-18 Nathan Sidwell <nathan@codesourcery.com>
1508 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
1509 input buffer before reading memory.
1510 (remote_fileio_func_stat): Likewise.
1512 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1514 * blockframe.c (find_pc_partial_function): Use the minimal symbol
1515 size to control the cache entry, if available.
1516 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
1517 symbols with zero and non-zero sizes differently.
1519 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1521 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
1522 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
1523 (thread_db_fetch_registers, thread_db_store_registers)
1524 (thread_db_thread_alive, thread_db_state_str): Delete.
1525 (thread_db_load): Don't look up regset functions.
1526 (thread_db_pid_to_str): Simplify.
1527 (thread_db_extra_thread_info): New.
1528 (init_thread_db_ops): Do not set to_fetch_registers,
1529 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
1530 * Makefile.in: Remove linux-thread-db.o rule.
1532 2006-07-18 Mark Kettenis <kettenis@gnu.org>
1534 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
1535 (armobsd_sigframe_init): New function.
1536 (armobsd_sigframe): New variable.
1537 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
1538 * Makefile.in (armobsd-tdep.o): Update dependencies.
1540 2006-07-18 Denis PILAT <denis.pilat@st.com>
1542 * monitor.c: Remove unused prototypes.
1544 2006-07-18 Vladimir Prus <vladimir@codesourcery.com>
1546 * target.c (tcomplain): Mark with ATTR_NORETURN.
1548 * defs.h (print_transfer_performance): Improve comments.
1550 2006-07-17 Mark Kettenis <kettenis@gnu.org>
1552 * printcmd.c: Coding style fixes: add missing spaces in comments
1553 and wrapping long lines.
1554 (delete_display, enable_display_command, disable_display_command)
1555 (printf_command, display_info, undisplay_command, free_display)
1556 (display_command, x_command, address_info, set_command)
1557 (inspect_command, call_command, print_command, print_command_1)
1558 (validate_format, print_formatted, decode_format, sym_format):
1560 (x_command): Make static.
1561 (printf_command): Convert error into internal consistency check.
1562 (address_info): Avoid assignment within function call.
1563 (printf_command): Avoid redundant cast.
1564 * tracepoint.c (x_command): Remove extern prototype.
1566 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
1567 * Makefile.in (armobsd-tdep.o): Update dependencies.
1568 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1570 2006-07-16 Mark Kettenis <kettenis@gnu.org>
1572 * armobsd-tdep.c: New file.
1573 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
1574 (armobsd-tdep.o): New dependency.
1575 * config/arm/obsd.mt: New file.
1576 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
1578 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
1579 * gdbarch.h, gdbarch.c: Re-generate.
1581 * arm-tdep.c (arm_saved_pc_after_call): Delete.
1582 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
1584 2006-07-16 Alfred M. Szmidt <ams@gnu.org>
1586 * gnu-nat.c: Undefine _process_user_ before including
1587 <hurd/process_request.h>.
1588 (gnu_resume): Supply missing argument to error().
1589 (gnu_read_inferior): Add extra parenthesis around arithmetic
1590 expression to silence warnings from GCC.
1591 (gnu_write_inferior): Likewise.
1592 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
1594 2006-07-16 Mark Kettenis <kettenis@gnu.org>
1596 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
1597 svr4_ilp_fetch_link_map_offsets.
1599 2006-07-15 Mark Kettenis <kettenis@gnu.org>
1601 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
1602 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1603 (DEPRECATED_TM_FILE): Remove.
1604 * Makefile.in (armnbsd-tdep.o): Update dependencies.
1606 2006-07-14 Joel Brobecker <brobecker@adacore.com>
1608 * PROBLEMS: Document threads/2137.
1610 2006-07-13 Mark Kettenis <kettenis@gnu.org>
1612 * config/alpha/tm-nbsd.h: Remove file.
1613 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1615 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
1617 * mips-tdep.c (mips_integer_to_address): Simplify be calling
1618 extract_signed_integer directly. Fix comment.
1620 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
1622 * m32c-tdep.c (m32c_banked_register): New function.
1623 (m32c_banked_read): Use m32c_banked_register function to evaluate
1624 real register number.
1625 (m32c_banked_write): Ditto.
1626 (m32c_virtual_frame_pointer): New function.
1627 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
1629 2006-07-13 Nathan Sidwell <nathan@codesourcery.com>
1631 * m68k-tdep.c (m68k_frame_align): New.
1632 (m68k_gdbarch_init): Set frame_align here.
1634 2006-07-13 Denis PILAT <denis.pilat@st.com>
1636 * interps.c (interpreter_completer): Allocate one more item to the
1637 'matches' list and set them all to 0 with a xcalloc.
1639 2006-07-13 Nick Roberts <nickrob@snap.net.nz>
1641 * annotate.c (annotate_frame_begin): Re-instate frame-begin
1642 annotation for level 3 annotations.
1644 2006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
1645 Daniel Jacobowitz <dan@codesourcery.com>
1647 * infcall.c (value_arg_coerce): Use value_cast_pointers for
1648 references. Avoid value_cast to a reference type. Don't silently
1649 convert pointers to references.
1650 * valops.c (value_cast_pointers): New, based on value_cast.
1651 (value_cast): Use it. Reject reference types.
1654 * value.h (value_cast_pointers, value_ref): New prototypes.
1656 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1658 * remote.c (unpack_varlen_hex): Correct type of retval.
1659 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
1661 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1663 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
1664 or missing location list information. Suggested by Jan
1665 Kratochvil <lace@jankratochvil.net>.
1667 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1669 * Makefile.in (arm_linux_tdep_h): New variable.
1670 (arm-linux-nat.o, arm-linux-tdep.o): Update.
1671 * arm-linux-nat.c: Include "arm-linux-tdep.h".
1672 (typeNone, typeSingle, typeDouble, typeExtended)
1673 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
1674 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
1675 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
1676 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
1678 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
1679 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
1680 and collect_nwfpe_register.
1681 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
1682 new regset functions.
1683 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
1684 (arm_apcs_32): New declaration.
1685 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1686 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
1687 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
1688 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
1689 (arm_linux_regset_from_core_section): New.
1690 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
1691 * arm-linux-tdep.h: New file.
1692 * arm-tdep.h (struct regset): Declare.
1693 (struct gdbarch_tdep): Add gregset, fpregset members.
1694 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
1696 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
1698 2006-07-12 Jan Kratochvil <lace@jankratochvil.net>
1700 * infrun.c (handle_inferior_event): Fixed typos in printf.
1702 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1703 Nathan Sidwell <nathan@codesourcery.com>
1705 * remote.c (REMOTE_ALIGN_WRITES): New.
1706 (remote_write_bytes): Align large write packets. Remove unused
1707 payload_start variable.
1709 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1711 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
1712 (remote_supported_packet): Remove #if 0.
1713 (remote_protocol_features): Add qPart:auxv:read.
1714 (remote_unescape_input): New function.
1715 (readchar): Don't mask off the high bit.
1716 (read_frame): Use fputstrn_filtered for packet data.
1717 (getpkt_sane): Return the number of bytes read or -1. Use
1718 fputstrn_unfiltered.
1719 (remote_read_qxfer): New.
1720 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
1721 (_initialize_remote): Update packet registration.
1722 * defs.h (fputstrn_filtered): New prototype.
1723 * utils.c (fputstrn_filtered): New.
1724 * NEWS: Mention qXfer.
1726 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1728 * target.c (target_read): Stop if target_read_partial returns 0
1729 when some bytes have already been read.
1730 (target_write): Likewise for target_write_partial.
1731 (target_read_partial, target_write_partial): Make static.
1732 (target_read_alloc): New.
1733 * target.h: Doc fixes.
1734 (target_read_partial, target_write_partial): Delete prototypes.
1735 (target_read_alloc): New prototype.
1737 * auxv.c (target_auxv_read): Delete.
1738 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
1739 * auxv.h (target_auxv_read): Delete prototype.
1740 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
1741 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
1742 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
1743 * procfs.c (procfs_make_note_section): Likewise.
1744 * remote.c (remote_xfer_partial): Don't loop here.
1745 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
1747 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1749 * arm-linux-tdep.c: Doc fixes.
1750 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
1751 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
1752 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
1754 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
1755 the new signal frame layouts.
1757 2006-07-12 Mike Frysinger <vapier@gentoo.org>:
1758 Daniel Jacobowitz <dan@codesourcery.com>
1760 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
1761 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
1762 * gdbarch.sh: Correct comment.
1764 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1766 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
1768 2006-07-11 Mark Kettenis <kettenis@gnu.org>
1770 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
1772 2006-07-10 Mark Kettenis <kettenis@gnu.org>
1774 * alphaobsd-tdep.c: New file.
1775 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
1776 handler for GDB_OSABI_OPENBSD_ELF.
1777 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
1778 (alphaobsd-tdep.o): New target.
1779 * config/alpha/obsd.mt: New file.
1780 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
1782 2006-07-10 Richard Henderson <rth@redhat.com>
1784 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
1785 * alpha-tdep.c (alpha_register_byte): Remove.
1786 (alpha_extract_struct_value_address): Remove.
1787 (alpha_return_value): New.
1788 (alpha_return_in_memory_always): New.
1789 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
1790 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
1791 instead of set_gdbarch_deprecated_use_struct_convention,
1792 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1793 or set_gdbarch_deprecated_extract_struct_value_address.
1794 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
1795 alphafbsd_use_struct_convention, remove gcc_p argument.
1796 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
1797 set_gdbarch_deprecated_use_struct_convention.
1799 2006-07-09 Mark Kettenis <kettenis@gnu.org>
1801 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
1803 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
1804 a.out-style core file format here. Make global.
1805 (alphanbsd_regset_from_core_section): Remove.
1806 (alphanbsd_sigtramp_offset): Make static.
1807 (alphanbsd_aout_init_abi): Remove.
1808 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
1809 a.out style core files.
1810 (_initialize_alphanbsd_tdep): Do not register a handler for
1811 GDB_OSABI_NETBSD_AOUT.
1813 * alphabsd-tdep.h: Tweak comments.
1814 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
1815 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
1816 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
1817 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
1818 (alphanbsd_aout_supply_gregset): New functions.
1819 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
1821 (alphanbsd_regset_from_core_section)
1822 (alphanbsd_aout_regset_from_core_section): New functions.
1823 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1824 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
1825 (alphanbsd_init_abi): Set regset_from_core_section.
1826 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
1828 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
1829 Use alphanbsd_aout_init_abi whre appropriate. Don't call
1830 deprecated_add_core_fns.
1831 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
1833 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
1834 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
1836 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
1837 svr4_lp64_fetch_link_map_offsets instead of
1838 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1840 2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
1842 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
1843 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
1844 write_exp_elt_intern): Zero initialize tmp.
1846 2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
1848 * remote.c (remote_xfer_partial): Remove KOD support.
1849 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
1850 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
1851 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
1853 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
1854 * NEWS: Mention KOD.
1855 * kod.h, kod.c, kod-cisco.c: Delete files.
1857 2006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
1859 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
1861 2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
1863 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
1866 2006-06-24 Eli Zaretskii <eliz@gnu.org>
1868 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
1870 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
1872 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
1873 Add special types for sp and pc.
1874 * Makefile.in (arm-tdep.o): Update.
1876 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1878 * remote.c (remote_escape_output): New function.
1879 (remote_write_bytes): Use remote_escape_output.
1881 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1883 * NEWS: Mention qSupported.
1884 * remote.c (struct remote_state): Add explicit_packet_size.
1885 (get_remote_packet_size): Check explicit_packet_size.
1886 (get_memory_packet_size): Likewise.
1887 (PACKET_qSupported): New enum value.
1888 (struct protocol_feature, remote_supported_packet)
1889 (remote_packet_size, remote_protocol_features)
1890 (remote_query_supported): New.
1891 (remote_open_1): Reset explicit_packet_size. Call
1892 remote_query_supported.
1893 (_initialize_remote): Register qSupported.
1895 2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
1897 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
1899 2006-06-20 Joel Brobecker <brobecker@adacore.com>
1901 * GDB 6.5 released from GDB 6.5 branch.
1903 2006-06-19 Michael Snyder <msnyder@redhat.com>
1905 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
1906 decide how many registers it takes to pass a floating point
1907 argument, what matters is the size of a floating point register
1908 (not the size of a general purpose register).
1909 (mips_o32_push_dummy_call): Ditto.
1911 2006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1913 * configure.tgt: Add gdbserver support for m32r-linux.
1915 2006-06-18 Mark Kettenis <kettenis@gnu.org>
1917 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
1919 2006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
1921 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
1922 based on insert_step_resume_breakpoint_at_frame.
1923 (handle_inferior_event): Update comments. Use
1924 insert_step_resume_breakpoint_at_caller.
1925 (insert_step_resume_breakpoint_at_frame): Revise comments.
1927 2006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
1929 * dwarf2read.c (read_unspecified_type): New function.
1930 (read_type_die): Handle DW_TAG_unspecified_type.
1931 (Committed by Julian Brown.)
1933 2006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1935 * symfile.c (load_command): Check for a changed executable before
1938 2006-06-13 Fred Fish <fnf@specifix.com>
1940 * mips-tdep.c (mips_find_long_section): New function.
1941 (mips_gdbarch_init): Use it to set long and pointer sizes.
1943 2006-06-13 Nathan Sidwell <nathan@codesourcery.com>
1945 * remote-file.io.c (remote_fileio_func_system): Treat zero length
1946 string as NULL. Adjust for NULL pointer argument.
1947 * doc/gdb.texinfo (system): Document behaviour with zero length
1950 2006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1952 * remote.c (set_remote_protocol_packet_cmd)
1953 (show_remote_protocol_packet_cmd): New prototypes.
1954 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
1955 (struct packet_config): Make name and title const.
1956 (add_packet_config_cmd): Remove unnecessary arguments.
1957 (_initialize_remote): Update calls.
1959 2006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1961 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
1962 before calling FD_ISSET. Correct check for exceptfds which
1963 previously tested writefds.
1965 2006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1966 Julian Brown <julian@codesourcery.com>
1968 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
1970 2006-06-09 Julian Brown <julian@codesourcery.com>
1972 * MAINTAINERS (Write After Approval): Add myself.
1974 2006-06-08 Michael Snyder <msnyder@redhat.com>
1976 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
1978 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
1980 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
1981 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
1982 conversion. Use M68K_NUM_REGS for number of regs.
1984 * remote-fileio.c (remote_fileio_reset): New.
1985 * remote-fileio.h (remote_fileio_reset): Prototype.
1986 * remote.c (extended_remote_restart, remote_open_1): Call it.
1988 * remote.c (remote_open_1): Do preopen tasks before
1989 irreversably destroying state.
1991 2006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
1993 * remote.c (struct remote_state): New type, only containing
1995 (remote_state): New variable.
1996 (get_remote_state): New function.
1997 (struct remote_arch_state): Renamed from struct remote_state.
1998 Removed buf and buf_size.
1999 (get_remote_arch_state): Renamed from get_remote_state. All
2000 necessary callers updated to call this function.
2001 (init_remote_state): Initialize the architecture-specific state.
2002 Update the target-specific state if necessary.
2003 (get_remote_packet_size): New function. All previous references
2004 changed to use this accessor function.
2005 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
2006 remote_arch_state instead of a remote_state. All callers changed.
2007 (_initialize_remote): Initialize the packet buffer here.
2009 2006-06-06 Nathan Sidwell <nathan@codesourcery.com>
2011 * remote.c (remote_insert_watchpoint): Return -1, rather than
2012 fatal error if packet is disabled.
2013 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
2014 remote_remove_hw_breakpoint): Likewise.
2016 2006-06-02 Nick Roberts <nickrob@snap.net.nz>
2018 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
2020 2006-05-31 Michael Snyder <msnyder@redhat.com>
2022 * mips-tdep.c: Comment tweaks.
2024 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2026 * Makefile.in (top_builddir): Update comments.
2027 (INTL_DIR, INTL_SRC): Delete.
2028 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
2029 * acinclude.m4: Include new gettext macros.
2030 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
2032 * aclocal.m4, configure: Regenerated.
2034 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
2036 * Makefile.in (arm-linux-nat.o): Update dependencies.
2037 * arm-linux-nat.c: Include "gdb_proc_service.h".
2038 (PTRACE_GET_THREAD_AREA): Define.
2039 (ps_get_thread_area): New function.
2041 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
2043 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2044 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
2045 DWARF2_FRAME_REG_SAVED_VAL_EXP.
2046 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
2047 val_offset_sf and val_expression.
2048 (dwarf2_frame_prev_register): Handle the new reg rules.
2049 (dwarf2_frame_this_id): Use pc instead of function entry point.
2051 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
2053 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
2054 (dwarf2_frame_sniffer): Use it.
2055 (decode_frame_entry_1): Set it according to augmentation "S".
2057 2006-05-27 Joel Brobecker <brobecker@adacore.com>
2059 From Peter Schauer <peterschauer@gmx.net>
2060 * m2-typeprint.c (m2_record_fields): Move variable declarations
2061 to the begining of the block.
2063 2006-05-23 Mark Mitchell <mark@codesourcery.com>
2065 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
2066 include additional registers.
2068 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
2069 Iscramb2, Qscramb2, Qchannel2.
2070 (mt_register_name): Likewise.
2071 (mt_copro_register_type): Describe ZI2 and ZQ2.
2073 * mt-tdep.c (mt_gdb_regnums): Define
2074 MT_COPRO_PSEUDOREG_MAC_REGNUM.
2075 (mt_register_name): Use it.
2076 (mt_copro_register_type): Likewise.
2077 (mt_register_type): Likewise.
2078 (mt_pseudo_register_read): Likewise. Read the MAC register, not
2079 the coprocessor register.
2080 (mt_pseudo_register_write): Likewise.
2082 2006-05-21 Christopher Faylor <cgf@timesys.com>
2084 * win32-nat.c (cygwin_exceptions): New variable.
2085 (handle_exception): Treat a cygwin exception like a normal exception if
2086 cygwin_exceptions is true.
2087 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
2089 2006-05-20 Gaius Mulley <gaius@glam.ac.uk>
2091 * NEWS: (Improved Modula-2 language support): New section.
2093 2006-05-19 Joel Brobecker <brobecker@adacore.com>
2095 * configure: Regenerate using proper version of autoconf.
2097 2006-05-19 Fred Fish <fnf@specifix.com>
2099 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
2100 * dwarfread.c: Fix spelling of 'unexpected'.
2101 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
2102 * stack.c: Fix spelling of 'RETURN_VALUE'.
2104 2006-05-18 Paul Gilliam <pgilliam@us.ibm.com
2106 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
2108 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2110 * dwarf2-frame.c: Include "value.h".
2111 (read_reg): Use unpack_long and register_type.
2112 * Makefile.in (dwarf2-frame.o): Update.
2114 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2116 * remote-rdp.c: Deleted.
2117 * NEWS: Mention removal of remote-rdp.c.
2119 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
2120 (remote-rdp.o): Delete.
2121 * README: Remove description of remote-rdp.c.
2122 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
2123 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
2125 2006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2127 * ser-e7kpc.c: Include <time.h> if it is available.
2129 2006-05-16 Joel Brobecker <brobecker@adacore.com>
2131 * version.in (version.in): Bump version number to 6.5.50 now
2132 that the gdb-6.5 branch has been created.
2133 * NEWS: Create a new section for changes that are included
2134 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
2137 2006-05-16 Jim Blandy <jimb@codesourcery.com>
2139 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
2140 the Global Maintainers' invitation to be an authorized committer
2141 for the Modula-2 support.
2143 2006-05-15 Mark Kettenis <kettenis@gnu.org>
2145 * ppcobsd-nat.c: Include "gdb_assert.h".
2146 [PT_GETFPREGS] (getfpregs_supplies): New function.
2147 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
2148 versions that have PT_GETFPREGS.
2149 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
2150 ppcobsd_fpreg_offsets.
2151 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
2153 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
2155 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
2156 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2158 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2160 * configure.ac: Use GCC_HEADER_STDINT.
2161 * acinclude.m4: Include stdint.m4.
2162 * Makefile.in (gdb_stdint_h): Define.
2163 (distclean): Remove gdb_stdint.h.
2164 (Makefile, stamp-h): Update rules to generate only the correct
2166 (gdb_stdint.h, stamp-int): New rules.
2167 * config.in, configure: Regenerated.
2169 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2171 * valprint.c: Include "exceptions.h".
2172 (val_print): If something goes wrong while printing, supply an
2175 2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
2177 * source.c (get_current_source_symtab_and_line)
2178 (set_current_source_symtab_and_line): Use { 0 }.
2179 * cli/cli-cmds.c (list_command): Likewise.
2181 2006-05-14 Nick Roberts <nickrob@snap.net.nz>
2183 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
2184 (gdbmi): Use new variable name gdb-pc-address.
2185 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
2186 Check that a match has been found.
2188 2006-05-13 Gaius Mulley <gaius@glam.ac.uk>
2190 * m2-lang.h: Added function extern prototypes for
2191 m2_is_long_set and get_long_set_bounds.
2192 * m2-typeprint.c: Complete replacement.
2193 (m2_print_type): Walk the Modula-2 type tree.
2194 (m2_type_name): New function.
2195 (m2_range): New function.
2196 (m2_typedef): New function.
2197 (m2_array): New function.
2198 (m2_pointer): New function.
2199 (m2_ref): New function.
2200 (m2_unknown): New function.
2201 (m2_union): New function.
2202 (m2_procedure): New function.
2203 (m2_print_bounds): New function.
2204 (m2_short_set): New function.
2205 (m2_is_long_set): New function.
2206 (m2_get_discrete_bounds): New function.
2207 (m2_is_long_set_of_type): New function.
2208 (m2_long_set): New function.
2209 (m2_record_fields): New function.
2210 (m2_enum): New function.
2211 * dwarf2read.c: Modified.
2212 (read_set_type): New function.
2213 (process_die): Call read_set_type.
2214 (read_base_type): Modifed.
2215 (set_cu_language): Added Modula-2 case clause.
2216 * m2-valprint.c: Complete replacement.
2217 (print_function_pointer_address): New function.
2218 (get_long_set_bounds): New function.
2219 (m2_print_long_set): New function.
2220 (print_unpacked_pointer): New function.
2221 (print_variable_at_address): New function.
2222 (m2_val_print): Replaced.
2223 * gdb/MAINTAINERS (Write After Approval): Added
2224 Gaius Mulley <gaius@glam.ac.uk>
2226 2006-05-12 Mark Kettenis <kettenis@gnu.org>
2228 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
2229 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2230 (ppcnbsd_fill_fpreg): Remove prototypes.
2231 (struct regset): Add forward declaration.
2232 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
2233 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
2234 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
2235 "value.h", target.h and nbsd-tdep.h". Reorder includes.
2236 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
2237 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
2238 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
2240 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2241 (ppcnbsd_fill_fpreg): Remove functions.
2242 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
2243 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
2244 (ppcnbsd_reg_offsets): New variable.
2245 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
2246 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
2247 introduced in NetBSD 2.0.
2248 (ppcnbsd_sigtramp): Provide complete signal trampoline.
2249 (ppcnbsd2_sigtramp): New variable.
2250 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
2251 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
2252 Add ppcnbs2_sigtramp unwinder.
2253 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
2254 Initialize ppcnbsd_reg_offsets.
2255 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
2256 (getregs_supplies): Use regnum instead of regno.
2257 (getfpregs_supplies): Likewise.
2258 (ppcnbsd_fetch_inferior_registers): Likewise. Call
2259 ppc_supply_gregset and ppc_suppply_fpregset instead of
2260 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
2261 (ppcnbsd_store_inferior_registers): Likewise. Call
2262 ppc_collect_gregset and ppc_collect_fpregset instead of
2263 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
2264 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
2265 (_initialize_ppcnbsd_nat): Add some whitespace.
2266 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
2267 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
2269 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
2271 2006-05-11 Alfred M. Szmidt <ams@gnu.org>
2273 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
2275 2006-05-11 Fred Fish <fnf@specifix.com>
2277 * symtab.c (skip_prologue_using_sal): Handle single line functions
2278 like "foo(){}", which may optimize down to a single return inst.
2280 2006-05-10 Steve Ellcey <sje@cup.hp.com>
2282 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
2285 2006-05-09 Andreas Schwab <schwab@suse.de>
2287 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
2288 (execute_cfa_program): Add parameter eh_frame_p. Call
2289 dwarf2_frame_eh_frame_regnum when true.
2290 (dwarf2_frame_cache): Pass eh_frame_p from fde to
2291 execute_cfa_program.
2292 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
2293 processing .eh_frame. Copy eh_frame_p to the new fde.
2294 (struct dwarf2_frame_ops): Add eh_frame_regnum.
2295 (dwarf2_frame_set_eh_frame_regnum): Define.
2296 (dwarf2_frame_eh_frame_regnum): Define.
2298 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
2299 (dwarf2_frame_eh_frame_regnum): Declare.
2301 2006-05-06 David S. Miller <davem@sunset.davemloft.net>
2303 * linux-nat.c (linux_nat_do_thread_registers): Check for
2304 NULL collect_regset method.
2306 2006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2308 * s390-tdep.c (s390_collect_regset): New function.
2309 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
2311 2006-05-06 Nick Roberts <nickrob@snap.net.nz>
2313 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
2316 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2318 * linux-nat.c (exit_lwp): Fix NULL pointer access.
2319 (linux_nat_handle_extended): New parameter STOPPING.
2320 (wait_lwp): Call it with STOPPING equals 1.
2321 (linux_nat_wait): Call it with STOPPING equals 0.
2323 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2325 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
2326 of 'uninteresting' signals when single-stepping.
2328 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2330 * MAINTAINERS: Move NEWS to the documentation entry.
2332 2006-05-05 David S. Miller <davem@sunset.davemloft.net>
2334 * linux-nat.c (linux_nat_do_thread_registers): Use the
2335 regset_from_core_section infrastructure if the target
2337 * Makefile.in: Update dependencies.
2338 * linux-thread-db.c (thread_db_store_registers): Use
2339 regcache_raw_collect.
2341 2006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
2343 * ppc-linux-nat.c: Clean up types for ptrace.
2344 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
2345 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
2347 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2349 * remote.c (remote_disconnect): Add TARGET argument.
2350 * target.c (debug_to_disconnect): Delete.
2351 (update_current_target): Do not inherit to_disconnect.
2352 (target_disconnect): Search for a target to implement to_disconnect.
2353 (setup_target_debug): Do not reference to_disconnect.
2354 * target.h (struct target_ops): Add target argument to
2357 2006-05-06 Fred Fish <fnf@specifix.com>
2359 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
2360 structs or unions independent of ABI register size.
2362 2006-05-06 Fred Fish <fnf@specifix.com>
2364 * mips-tdep.c (mips_o64_return_value): Replace stub that always
2365 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2367 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2369 * mi/mi-main.c (captured_mi_execute_command): Check the return
2370 value of -interpreter-exec.
2372 2006-05-03 Vladimir Prus <ghost@cs.msu.su>
2374 * varobj.c (c_value_of_variable): Ignore top-level references.
2375 (Committed by Jim Blandy.)
2377 2006-04-30 Mark Kettenis <kettenis@gnu.org>
2379 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
2380 insert a single-step breakpoint an error instead of a warning.
2382 2006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
2384 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
2385 arguments from void * to gdb_byte *.
2387 2006-04-26 Michael Snyder <msnyder@redhat.com>
2389 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
2390 command to "delete fork" (no hyphen), compatible with other
2392 (info_forks_command): Accept a fork ID argument, for info
2393 on a single fork. Report if no matching forks.
2395 2006-04-25 Mark Kettenis <kettenis@gnu.org>
2397 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
2398 no breakpoints are inserted.
2400 From Masaki MURANAKA <monaka@monami-software.com>:
2401 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
2402 type of last argument to `gdb_byte *'
2404 2006-04-25 Jim Blandy <jimb@codesourcery.com>
2406 Add support for 'target remote |' on MinGW.
2407 * ser-mingw.c (struct pipe_state): New structure.
2408 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
2409 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
2410 (pipe_windows_write, pipe_wait_handle): New functions.
2411 (_initialize_ser_windows): Register a "pipe" interface based on
2414 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
2416 * ser-mingw.c: Include <conio.h>.
2417 (struct ser_console_state, struct net_windows_state): Add exit_select,
2418 have_stopped, thread.
2419 (pipe_select_thread, console_select_thread)
2420 (net_windows_select_thread): Don't create a local state copy or
2421 close stop_select. Exit on exit_select instead of stop_select. Set
2423 (console_select_thread): Don't report control keypresses as pending
2425 (pipe_select_thread): Allow stop_select to interrupt sleeping.
2426 (set_console_wait_handle): Create exit_select and have_stopped.
2427 Save the thread handle. Check _kbhit before starting a thread.
2428 (ser_console_done_wait_handle): New.
2429 (ser_console_close): Close new handles. Wait for the thread to
2431 (new_windows_select_thread): Assert that an event occurred.
2432 (net_windows_wait_handle): Check for pending input before starting
2434 (net_windows_done_wait_handle): New.
2435 (net_windows_open): Create exit_select and have_stopped.
2436 Save the thread handle.
2437 (net_windows_close): Close new handles. Wait for the thread to
2439 (_intiialize_ser_windows): Register done_wait_handle methods.
2441 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
2442 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
2443 [USE_WIN32API] (serial_done_wait_handle): New prototype.
2444 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
2446 2006-04-23 Andreas Schwab <schwab@suse.de>
2448 * rs6000-tdep.c: Include "reggroups.h" only once.
2449 * Makefile.in (rs6000-tdep.o): Update dependencies.
2451 2006-04-21 Frederic Riss <frederic.riss@st.com>
2453 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
2454 compilation directory as last argument.
2455 Always pass comp_dir as second argument to start_subfile and prepend
2456 dirname to the filename when necessary.
2457 Remove now superfluous search for pre-existing subfile.
2458 (dwarf_decode_lines): Pass the compilation directory to
2459 dwarf2_start_subfile.
2461 2006-04-20 Michael Snyder <msnyder@redhat.com>
2463 * 2006-03-22 Jim Blandy <jimb@redhat.com>
2464 Add support for the Renesas M32C and M16C.
2466 * configure.tgt (m32c-*-*): New entry.
2467 * config/m32c/m32c.mt: New file.
2468 * m32c-tdep.c: New file.
2469 * Makefile.in (elf_m32c_h): New variable.
2470 (m32c-tdep.o): New rule.
2471 * NEWS: Mention new target.
2472 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
2474 2006-04-20 Michael Snyder <msnyder@redhat.com>
2476 * remote.c: Fix spelling error in comment.
2478 2006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
2480 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
2481 Correct type of VALUEP. Reported by Jean-Rene Peulve
2482 <jr.peulve@wanadoo.fr>.
2484 2006-04-19 Masaki Muranaka <monaka@monami-software.com>
2486 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
2487 netdb.h, netinet/in.h.
2488 (m32r_upload_command); Add calls WSAStartup().
2489 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
2492 2006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
2494 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
2496 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
2497 (delete_breakpoint): Update calls to changed methods.
2498 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2499 (single_step_breakpoints, insert_single_step_breakpoint)
2500 (remove_single_step_breakpoints): New.
2501 * breakpoint.h (struct bp_target_info): New.
2502 (struct bp_location): Replace shadow_contents with
2503 target_info and overlay_target_info.
2504 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2505 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
2507 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
2508 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
2510 * mem-break.c (default_memory_insert_breakpoint): Update. Set
2511 placed_address, placed_size, and shadow_len.
2512 (default_memory_remove_breakpoint): Update. Don't use
2514 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
2515 * target.c (update_current_target): Update prototypes for changed
2517 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
2518 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
2520 * target.h: Forward declare struct bp_target_info.
2521 (struct target_ops): Use a bp_target_info argument for
2522 to_insert_breakpoint, to_remove_breakpoint,
2523 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
2524 (target_insert_breakpoint, target_remove_breakpoint)
2525 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
2526 (memory_insert_breakpoint, memory_remove_breakpoint)
2527 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
2529 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
2530 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
2531 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
2533 * gdbarch.c, gdbarch.h: Regenerated.
2535 * alpha-tdep.c (alpha_software_single_step): Use
2536 insert_single_step_breakpoint and remove_single_step_breakpoints.
2537 Remove unused statics.
2538 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
2539 * cris-tdep.c (cris_software_single_step): Likewise.
2540 * mips-tdep.c (mips_software_single_step): Likewise.
2541 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2542 * sparc-tdep.c (sparc_software_single_step): Likewise.
2543 * wince.c (struct thread_info_struct): Remove step_prev.
2544 (undoSStep): Use remove_single_step_breakpoints.
2545 (wince_software_single_step): Use insert_single_step_breakpoint.
2547 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
2548 * exec.c (ignore): Likewise.
2549 * sol-thread.c (ignore): Likewise.
2551 * procfs.c (dbx_link_shadow_contents): Delete.
2552 (dbx_link_bpt): New.
2553 (procfs_mourn_inferior): Remove it if necessary.
2554 (remove_dbx_link_breakpoint): Use it.
2555 (insert_dbx_link_bpt_in_file): Set it.
2556 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
2557 * rs6000-nat.c (exec_one_dummy_insn): Use
2558 deprecated_insert_raw_breakpoint and
2559 deprecated_remove_raw_breakpoint.
2560 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
2561 (base_breakpoint): New.
2562 (disable_break): Use it.
2563 (enable_break): Set it.
2565 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
2567 * ia64-tdep.c (ia64_memory_insert_breakpoint)
2568 (ia64_memory_remove_breakpoint): Likewise.
2569 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2570 (m32r_memory_remove_breakpoint): Likewise.
2571 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2572 Likewise. Remove unnecessary prototypes. Use placed_address
2573 and placed_size. Removed useless read from memory.
2574 * nto-procfs.c (procfs_insert_breakpoint)
2575 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
2576 (procfs_remove_hw_breakpoint): Update.
2577 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2578 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2579 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2580 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
2581 * remote-e7000.c (e7000_insert_breakpoint)
2582 (e7000_remove_breakpoint): Likewise.
2583 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2584 (m32r_remove_breakpoint): Likewise.
2585 * remote-mips.c (mips_insert_breakpoint)
2586 (mips_remove_breakpoint): Likewise.
2587 * remote-rdp.c (remote_rdp_insert_breakpoint)
2588 (remote_rdp_remove_breakpoint): Likewise.
2589 (rdp_step): Use deprecated_insert_raw_breakpoint and
2590 deprecated_remove_raw_breakpoint.
2591 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
2593 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
2595 (init_gdbsim_ops): Use memory_insert_breakpoint and
2596 memory_remove_breakpoint.
2597 * remote-st.c (st2000_insert_breakpoint)
2598 (st2000_remove_breakpoint): Update. Remove unused
2600 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2601 Update. Use placed_address and placed_size.
2602 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
2604 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
2606 * remote.c (extended_remote_restart): Pass the correct length
2609 2006-04-11 Jim Blandy <jimb@codesourcery.com>
2611 * serial.c (serial_open): Check for special cases at the front of
2612 the "device" name before scanning for the ':' that would indicate
2613 an IP-based connection.
2615 2006-04-10 Christopher Faylor <cgf@timesys.com>
2617 * win32-nat.c (open_symbol_file_object): New function.
2618 (in_dynsym_resolve_code): Ditto.
2619 (init_win32_ops): Fill in fields which ought not to be NULL.
2621 2006-04-10 Christopher Faylor <cgf@timesys.com>
2623 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
2624 with saved context if __COPY_CONTEXT_SIZE is not defined.
2625 (handle_output_debug_string): Ditto.
2627 2006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
2629 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
2631 2006-04-09 David S. Miller <davem@sunset.davemloft.net>
2633 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
2635 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
2636 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
2637 that the latter can override.
2638 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2640 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2642 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
2643 (s390_store): Call pv_area_store to track stack slots.
2644 (s390_load): Call pv_area_fetch to track stack slots.
2645 (s390_check_for_saved): New function.
2646 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
2648 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2650 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
2651 * s390-tdep.c: Include "prologue-value.h".
2652 (struct prologue_value): Remove.
2653 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2654 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2655 pv_logical_and, pv_is_identical, pv_is_register): Remove.
2656 (compute_x_addr): Remove, replace by ...
2657 (s390_addr): ... this new function.
2658 (struct s390_prologue_data): Use pv_t instead of prologue_value.
2659 (s390_store, s390_load): Likewise.
2660 (s390_prologue_frame_unwind_cache): Likewise.
2661 (s390_analyze_prologue): Likewise. Also, simplify and combine
2662 several conditional statements.
2664 2006-04-08 Jim Blandy <jimb@codesourcery.com>
2666 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
2669 2006-04-08 David S. Miller <davem@sunset.davemloft.net>
2671 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
2672 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
2673 (sparc32_linux_core_gregset,
2674 sparc32_linux_supply_core_gregset,
2675 sparc32_linux_collect_core_gregset,
2676 sparc32_linux_supply_core_fpregset,
2677 sparc32_linux_collect_core_fpregset): New.
2678 (sparc32_linux_init_abi): Register them with generic sparc
2679 core regset infrastructure.
2680 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
2681 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
2682 (sparc64_linux_core_gregset,
2683 sparc64_linux_supply_core_gregset,
2684 sparc64_linux_collect_core_gregset,
2685 sparc64_linux_supply_core_fpregset,
2686 sparc64_linux_collect_core_fpregset): New.
2687 (sparc64_linux_init_abi): Register them with generic sparc
2688 core regset infrastructure.
2689 * Makefile.in: Update dependencies.
2691 2006-04-07 David S. Miller <davem@sunset.davemloft.net>
2693 * linux-nat.c (linux_nat_thread_alive): Handle targets that
2694 do not implement PTRACE_PEEKUSER.
2696 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
2698 * remote.c (remote_wait): Convert warning to error before
2699 parsing corrupt packets.
2701 2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
2703 * cli/cli-script.c (struct user_args): Add command field.
2704 (arg_cleanup): Free command string.
2705 (setup_user_args): Copy the command line before relying on it.
2707 2006-04-06 Joel Brobecker <brobecker@adacore.com>
2709 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
2710 of the "delete" command.
2712 2006-04-06 Randolph Chung <tausq@debian.org>
2714 * MAINTAINERS (Patch champions): Add myself.
2716 2006-04-05 Andreas Schwab <schwab@suse.de>
2718 * Makefile.in: Update dependencies.
2720 2006-04-05 David S. Miller <davem@sunset.davemloft.net>
2722 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
2723 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
2724 * Makefile.in (sparc-tdep.o): Update dependencies.
2725 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
2726 window out of the correct stack frame.
2727 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
2728 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
2730 (dwarf2_frame_default_init_reg): Likewise.
2731 (dwarf2_frame_set_init_reg): Update init_reg arg.
2732 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
2734 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
2735 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
2736 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
2737 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2738 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2739 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2740 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
2741 (sparc32_frame_cache): Call it.
2742 (sparc32_dwarf2_struct_return_p): New function.
2743 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
2744 returns a structure and thus we have to indicate the return PC and
2745 NPC are 4 bytes later than usual.
2746 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
2747 dwarf2 frame sniffer.
2748 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
2750 2006-04-04 David S. Miller <davem@davemloft.net>
2752 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
2753 * config/linux64.h (NATDEPFILES): Likewise
2754 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2755 fill_fpregset): New.
2756 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2757 fill_fpregset): New.
2758 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
2761 2006-04-04 Andreas Schwab <schwab@suse.de>
2763 * Makefile.in (elf_common_h): Define.
2765 2006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
2767 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
2768 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
2770 2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
2772 * value.h (struct internalvar): Add field 'endian'.
2773 * value.c (lookup_internalvar): Initialise endian.
2774 (value_of_internalvar): Flip the endian of built-in types if required.
2775 (set_internalvar): Set the endian.
2776 (show_convenience): Access the value through value_of_internalvar().
2778 2006-03-30 Vladimir Prus <ghost@cs.msu.su>
2780 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
2781 instead of hardcoded integer literals.
2783 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2785 * cli/cli-script.c (insert_args): Handle NULL user_args.
2787 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2789 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
2790 the function at zero if we have no symbols.
2792 2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
2794 * i386-stub.c (getpacket): Fix array overflow.
2795 * m32r-stub.c (getpacket): Likewise.
2796 * m68k-stub.c (getpacket): Likewise.
2797 * sh-stub.c (getpacket): Likewise.
2798 * sparc-stub.c (getpacket): Likewise.
2800 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2802 * frame.h (set_current_sal_from_frame): New prototype.
2803 * stack.c (set_current_sal_from_frame): Make global.
2804 * infrun.c (normal_stop): Call set_current_sal_from_frame.
2806 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2808 * linux-thread-db.c: Include "linux-nat.h".
2809 (check_for_thread_db): New function, split out from
2810 thread_db_new_objfile. Remove dead check for active
2811 thread_db on inapplicable targets.
2812 (thread_db_new_objfile): Call check_for_thread_db.
2813 * Makefile.in (linux-thread-db.o): Update.
2814 * linux-nat.c (child_post_attach): Call check_for_thread_db.
2815 (linux_child_post_startup_inferior): Likewise.
2816 (lin_lwp_attach_lwp): Call target_post_attach instead of
2818 * linux-nat.h (check_for_thread_db): New prototype.
2820 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2822 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
2823 (init_remote_state): Initialize the new fields.
2824 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
2825 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
2826 (remote_get_threadinfo, parse_threadlist_response)
2827 (remote_get_threadlist, remote_current_thread, remote_threads_info)
2828 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2829 (remote_check_symbols, remote_open_1, remote_detach)
2830 (remove_vcont_probe, remote_vcont_resume, remote_resume)
2831 (remote_wait, remote_async_wait, fetch_register_using_p)
2832 (remote_fetch_registers, store_register_using_P)
2833 (remote_store_registers, check_binary_download, remote_write_bytes)
2834 (remote_read_bytes, remote_insert_breakpoint)
2835 (remote_remove_breakpoint, remote_insert_watchpoint)
2836 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2837 (remote_remove_hw_breakpoint, compare_sections_command)
2838 (remote_xfer_partial, remote_rcmd, packet_command)
2839 (remote_get_thread_local_address): Use the global incoming buffer
2840 instead of alloca or xmalloc. Limit outgoing packets to
2841 rs->remote_packet_size and incoming packets to rs->buf_size.
2842 Update calls to getpkt and remote_send.
2843 (remote_send): Take arguments by reference.
2844 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
2845 (skip_frame): New function.
2846 (read_frame): Take arguments by reference. Expand the packet
2847 buffer instead of issuing an error.
2848 (getpkt, getpkt_sane): Take arguments by reference.
2849 * remote.h (getpkt): Update prototype and doc.
2850 * tracepoint.c (remote_get_noisy_reply): Take arguments by
2852 (target_buf): Change from array to pointer.
2853 (target_buf_size): New variable.
2854 (remote_set_transparent_ranges): Update call to getpkt.
2855 (trace_start_command, trace_stop_command, trace_status_command):
2856 Update calls to remote_get_noisy_reply.
2857 (finish_tfind_command): Take arguments by reference.
2858 (trace_find_command, trace_find_pc_command)
2859 (trace_find_tracepoint_command, trace_find_line_command):
2860 (trace_find_range_command, trace_find_outside_command): Update
2861 calls to finish_tfind_command.
2862 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
2864 2005-03-30 Randolph Chung <tausq@debian.org>
2866 * hppa-linux-tdep.c: Include regset.h.
2867 (GR_REGNUM, TR_REGNUM, greg_map): New.
2868 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
2869 (hppa_linux_regset, hppa_linux_fpregset): New.
2870 (hppa_linux_regset_from_core_section): New.
2871 (hppa_linux_init_abi): Set regset_from_core_section.
2872 (_initialize_hppa_linux_tdep): Register osabi handler for
2874 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
2875 * config/pa/linux.mh: Stop using core-regset.o
2877 2006-03-30 Randolph Chung <tausq@debian.org>
2879 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
2880 (hppa_frame_cache): Use new function to find unwind entry.
2881 (hppa_frame_this_id): Likewise.
2882 (hppa_frame_unwind_sniffer): Likewise.
2884 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2886 * NEWS: Mention the removal of NLM.
2888 2006-03-29 Steve Ellcey <sje@cup.hp.com>
2890 * Makefile.in (nlm): Remove target.
2891 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
2892 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
2893 * configure: Regenerate.
2894 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
2895 * nlm: Remove directory.
2897 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2899 * Makefile.in (utils.o): Update.
2900 * top.c (in_user_command): New.
2901 (command_line_input): Use input_from_terminal_p.
2902 (input_from_terminal_p): Don't check caution. Handle
2903 stdin == NULL for Insight.
2904 * top.h (in_user_command, caution): New declarations.
2905 * utils.c: Include "top.h".
2906 (query, defaulted_query): Check caution here. Move the call
2907 to input_from_terminal_p higher.
2908 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
2909 the depth. Update in_user_command if necessary.
2910 (execute_user_command): Don't clobber old_chain. Set
2911 in_user_command. Let do_restore_user_call_depth handle
2913 (read_command_lines): Check whether to prompt before calling
2915 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
2916 input_from_terminal_p check.
2918 2006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
2920 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
2921 (s390_remove_watchpoint): Likewise.
2923 2006-03-28 Jim Blandy <jimb@codesourcery.com>
2925 * prologue-value.c, prologue-value.h: New files.
2926 * Makefile.in (prologue_value_h): New variable.
2927 (HFILES_NO_SRCDIR): List prologue-value.h.
2928 (SFILES): List prologue-value.c.
2929 (COMMON_OBS): List prologue-value.o.
2930 (prologue-value.o): New rule.
2932 2006-03-27 Michael Snyder <msnyder@redhat.com>
2934 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
2935 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
2936 xstormy16_frame_prev_register): Change void* to gdb_byte*.
2937 (xstormy16_push_dummy_call): Add block-local char* val,
2938 to avoid type conflict with outer scope variable.
2940 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2942 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2944 2006-03-27 Nick Roberts <nickrob@snap.net.nz>
2947 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
2948 offsets for languages like Fortran.
2950 2006-03-26 Randolph Chung <tausq@debian.org>
2952 * config/pa/hppa64.mt: Use HPUX version of the tm file.
2954 2006-03-25 Nick Roberts <nickrob@snap.net.nz>
2956 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
2957 Try to deal with continuation line.
2958 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
2960 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
2961 Future proof against new fields being added to MI output.
2962 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
2963 (gdbmi-frame-handler): Update to new variable name
2964 gdb-get-buffer-create.
2965 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
2966 frames which except the innermost (where execution has stopped).
2968 2006-03-24 Randolph Chung <tausq@debian.org>
2970 * solib-som.c (link_map_start): Don't error out if there is
2973 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2975 * linux-nat.c (linux_ops_saved): New.
2976 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
2977 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
2978 (linux_nat_fetch_registers, linux_nat_store_registers)
2979 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
2980 (init_lwp_list): Don't set threaded.
2981 (add_lwp): Don't modify threaded.
2982 (delete_lwp): Don't mention non-threaded mode.
2983 (linux_nat_switch_fork): New.
2984 (linux_nat_attach): Update inferior_ptid.
2985 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
2987 (linux_nat_kill): Handle pending forks and saved forks.
2988 (linux_nat_mourn_inferior): Handle saved forks.
2989 (linux_nat_pid_to_str): Don't use the LWP form when there is
2991 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
2992 (linux_nat_add_target): New.
2993 (_initialize_linux_nat): Don't initialize the linux native target
2995 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
2997 * linux-fork.c: Include "linux-nat.h".
2998 (add_fork): Update initial PID.
2999 (fork_load_infrun_state): Call linux_nat_switch_fork.
3000 * Makefile.in (linux-fork.o): Update.
3002 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
3003 linux_nat_add_target instead of add_target.
3004 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
3005 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
3006 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
3007 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
3008 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
3009 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
3010 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
3011 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
3012 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
3013 * s390-nat.c (_initialize_s390_nat): Likewise.
3014 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
3015 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
3017 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3019 * linux-fork.c: Include "gdb_assert.h".
3020 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
3021 Update the register cache and selected frame also.
3022 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
3023 to single fork mode if necessary.
3024 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
3025 * Makefile.in (linux_fork_h): New.
3026 (linux-fork.o, linux-nat.o): Update.
3028 2006-03-23 Andreas Schwab <schwab@suse.de>
3030 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
3032 2006-03-18 Jim Blandy <jimb@codesourcery.com>
3034 * symtab.h (enum address_class): Doc fix.
3036 2006-03-16 Michael Snyder <msnyder@redhat.com>
3038 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
3039 * target.c (push_target): Fix typo in comment.
3040 * remote.c (remote_watch_data_address): Fix typo in comment.
3041 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
3043 2006-03-15 Kevin Buettner <kevinb@redhat.com>
3045 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
3047 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
3048 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
3049 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
3050 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
3051 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
3052 (frv_elf_fpregset_t): Define types.
3053 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
3054 (frv_linux_regset_from_core_section: New functions.
3055 (frv_linux_gregset, frv_linux_fpregset): New static globals.
3056 (frv_linux_init_abi): Register the `regset_from_core_section' method.
3057 * Makefile.in (frv-linux-tdep.o): Update dependencies.
3058 * solib-frv.c (frv_current_sos): Relocate main executable after
3060 (frv_clear_solib): Clean up space associated with
3061 `main_executable_lm_info'.
3062 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
3064 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3066 * Makefile.in (mips_linux_tdep_h): New.
3067 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
3068 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
3070 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
3071 (mips64_linux_regsets_fetch_registers)
3072 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
3073 (mips64_linux_store_registers): New.
3074 (_initialize_mips_linux_nat): Override to_fetch_registers and
3076 * mips-linux-tdep.h: New file.
3077 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
3078 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
3079 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
3080 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
3081 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
3082 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
3083 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
3084 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
3085 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
3086 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
3087 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
3088 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
3089 (supply_32bit_reg): Use gdb_byte.
3090 (supply_64bit_reg): New.
3091 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
3092 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
3093 (fill_gregset, supply_fpregset): Update for renamed types.
3094 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
3095 (mips64_fill_gregset): Make global. Handle 32-bit register
3097 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
3098 FP regsets properly.
3100 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3102 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
3103 (mips_fill_gregset): Renamed from fill_gregset.
3104 (mips_supply_fpregset): Renamed from supply_fpregset.
3105 (mips_fill_fpregset): Renamed from fill_fpregset.
3106 (fetch_core_registers): Update calls.
3107 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
3110 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3112 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
3114 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3116 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
3117 Correct arithmetic for 64-bit CORE_ADDR.
3119 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3121 * mips-linux-tdep.c: Include "floatformat.h".
3122 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
3123 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
3125 (print_gp_register_row): Don't print spaces before ignored
3126 or floating point registers.
3127 * Makefile.in (mips-linux-tdep.o): Update.
3129 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3131 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
3133 (non_heuristic_proc_desc): Likewise.
3135 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3137 * mips-linux-nat.c: Include "gdb_proc_service.h".
3138 (PTRACE_GET_THREAD_AREA): Define.
3139 (ps_get_thread_area): New.
3140 * Makefile.in (mips-linux-nat.o): Update.
3142 2006-03-13 Jim Blandy <jimb@codesourcery.com>
3144 * MAINTAINERS: Use my work address.
3146 2006-03-09 Michael Snyder <msnyder@redhat.com>
3148 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
3149 instead of getting tricky for the multi-fork case.
3150 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
3151 for each fork, and then use init_fork_list to delete them.
3153 2006-03-08 Alexandre Oliva <aoliva@redhat.com>
3155 * solib-svr4.c (svr4_current_sos): Move up initialization of
3156 l_addr, such that it clearly covers all cases.
3158 2006-03-08 Andreas Schwab <schwab@suse.de>
3160 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
3161 libunwind_frame_prev_register to use a gdb_byte buffer and
3162 extract_unsigned_integer.
3163 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
3165 * libunwind-frame.c (libunwind_frame_prev_register): Change type
3166 of last argument to `gdb_byte *'
3167 * libunwind-frame.h: Adjust declaration.
3169 2006-03-08 Paul Brook <paul@codesourcery.com>
3171 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
3172 (arm_frame_align): New function.
3173 (arm_gdbarch_init): Use it.
3175 2006-03-03 Khem Raj <khem@mvista.com>
3177 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
3178 Committed by Andrew Cagney.
3180 2006-03-02 Corinna Vinschen <vinschen@redhat.com>
3182 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
3183 address to MDR register.
3185 2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
3187 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
3190 2006-03-01 Randolph Chung <tausq@debian.org>
3192 * somread.c (som_symfile_read): Update comment and remove unneeded
3193 use of a deprecated variable.
3195 2006-03-01 Randolph Chung <tausq@debian.org>
3197 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
3198 runtime specification.
3199 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
3200 (unwind_command): Likewise.
3202 2006-03-01 Randolph Chung <tausq@debian.org>
3204 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
3205 Pseudo_SP_Set in unwind record.
3207 2006-03-01 Randolph Chung <tausq@debian.org>
3209 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
3210 TDEP->is_elf to determine if we are working with a SOM binary.
3211 (null_symtab_and_line): Remove unused variable.
3212 * config/pa/hppa64.mt: Use tm-hppa.h.
3213 * config/pa/tm-hppa64.h: Remove file.
3215 2006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
3217 * f-typeprint.c (f_type_print_base): Delete the redundant space.
3219 2006-02-28 Kevin Buettner <kevinb@redhat.com>
3221 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
3222 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
3224 (am33_linux_sigframe_cache_init): New function.
3225 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
3227 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
3228 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
3229 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
3230 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
3231 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
3232 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
3233 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
3234 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
3235 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
3237 (am33_linux_init_osabi): Register signal frame unwinders.
3239 2006-02-28 Kevin Buettner <kevinb@redhat.com>
3241 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
3242 out of pattern match by saving relevant state. Fix stack size
3245 2006-02-28 Alexandre Oliva <aoliva@redhat.com>
3247 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
3249 * solib-svr4.c (struct lm_info): Add l_addr field.
3250 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
3251 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
3252 (LM_DYNAMIC_FROM_LINK_MAP): New.
3253 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
3254 (svr4_current_sos): Initialize l_addr. Adjust.
3255 (svr4_relocate_section_addresses): Adjust.
3256 (svr4_ilp32_fetch_link_map_offsets): Define new members.
3257 (svr4_lp64_fetch_link_map_offsets): Likewise.
3258 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3259 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
3260 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3261 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
3263 2006-02-26 David S. Miller <davem@sunset.davemloft.net>
3265 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
3266 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3268 2006-02-27 Alan Modra <amodra@bigpond.net.au>
3270 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
3271 (ppc_linux_remove_watchpoint): Likewise, and args.
3273 2006-02-26 Mark Kettenis <kettenis@gnu.org>
3275 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
3278 2006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
3280 * gdb/defs.h: unconditionally include <fcntl.h>, and
3281 ensure that O_BINARY is defined.
3282 * gdb/solib.c(solib_open): ensure solib files are opened in
3284 * gdb/corelow.c: Remove O_BINARY macro definition.
3285 * gdb/exec.c: Remove O_BINARY macro definition
3286 * gdb/remote-rdp.c: Remove O_BINARY macro definition
3287 * gdb/source.c: Remove O_BINARY macro definition
3288 * gdb/symfile.c: Remove O_BINARY macro definition
3290 2006-02-24 Randolph Chung <tausq@debian.org>
3292 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
3294 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
3297 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
3299 * f-exp.y: Symbol '%' is not used as the modulus operator in
3300 Fortran. Delete this from Fortran expression.
3301 It is now used by Fortran 90 and later to access the member
3302 of derived type. Add this into Fortran expression.
3303 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
3304 Print each elements in the derived type.
3305 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
3306 level into the function definition to do indented printing. And
3307 call fprintfi_filtered instead to do indented printing.
3308 (f_type_print_base): Replace fprintf_filtered with the indented
3309 version (fprintfi_filtered).
3310 (f_type_print_base): Call indented print_equivalent_f77_float_type.
3311 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
3312 the definition of the derived type.
3314 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3316 * gdb_curses.h: Provide a fallback prototype for tgetnum.
3318 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3320 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
3322 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
3323 (DOUBLEST_SCAN_FORMAT): New.
3324 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
3325 (processReal): Use DOUBLEST_SCAN_FORMAT.
3326 * c-exp.y (parse_number): Likewise.
3327 * jv-exp.y (parse_number): Likewise.
3328 * objc-exp.y (parse_number): Likewise.
3329 * p-exp.y (parse_number): Likewise.
3331 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3333 * event-top.c (async_do_nothing, async_disconnect)
3334 (async_stop_sig, async_float_handler): Remove duplicated
3336 (handle_sighup): Guard prototype with SIGHUP.
3337 (async_do_nothing): Guard function and prototype with
3339 (async_disconnect): Guard prototype with SIGHUP.
3340 (async_stop_sig): Guard prototype with STOP_SIGNAL.
3342 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3344 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
3346 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3348 * win32-termcap.c (tputs): Return 0.
3350 2006-02-21 Mark Kettenis <kettenis@gnu.org>
3352 * configure.ac: Introduce ---enable-werror, which adds -Werror to
3353 the compiler command line. Enabled by default. Disable with
3355 * configure regenerate.
3357 2006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
3359 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
3362 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3364 * defs.h (directory_switch): Add prototype.
3365 * main.c (captured_main): Use directory_switch() instead of
3366 directory_command() to add directories from the -d switch.
3367 * source.c (directory_switch): New function.
3368 (add_path): Use buildargv() to parse spaces in filenames properly.
3369 Strip multiple trailing '/' rather than just one.
3371 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3373 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
3374 hand decoding the command line, to allow use of quotes and spaces.
3375 (_initialize_symfile): Reorganize the help message for add-symbol-file
3376 such that 'help files' shows a better message.
3378 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3380 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
3381 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
3382 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
3383 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
3385 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3387 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
3390 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3392 * remote.c: Add an enumeration for configurable remote
3394 (remote_protocol_packets, set_remote_protocol_packet_cmd)
3395 (show_remote_protocol_packet_cmd): New.
3396 (remote_protocol_vcont)
3397 (set_remote_protocol_vcont_packet_cmd)
3398 (show_remote_protocol_vcont_packet_cmd)
3399 (remote_protocol_qSymbol)
3400 (set_remote_protocol_qSymbol_packet_cmd)
3401 (show_remote_protocol_qSymbol_packet_cmd)
3402 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
3403 (show_remote_protocol_P_packet_cmd)
3405 (set_remote_protocol_Z_software_bp_packet_cmd)
3406 (show_remote_protocol_Z_software_bp_packet_cmd)
3407 (set_remote_protocol_Z_hardware_bp_packet_cmd)
3408 (show_remote_protocol_Z_hardware_bp_packet_cmd)
3409 (set_remote_protocol_Z_write_wp_packet_cmd)
3410 (show_remote_protocol_Z_write_wp_packet_cmd)
3411 (set_remote_protocol_Z_read_wp_packet_cmd)
3412 (show_remote_protocol_Z_read_wp_packet_cmd)
3413 (set_remote_protocol_Z_access_wp_packet_cmd)
3414 (show_remote_protocol_Z_access_wp_packet_cmd)
3415 (remote_protocol_binary_download)
3416 (set_remote_protocol_binary_download_cmd)
3417 (show_remote_protocol_binary_download_cmd)
3418 (remote_protocol_qPart_auxv)
3419 (set_remote_protocol_qPart_auxv_packet_cmd)
3420 (show_remote_protocol_qPart_auxv_packet_cmd)
3421 (remote_protocol_qGetTLSAddr)
3422 (set_remote_protocol_qGetTLSAddr_packet_cmd)
3423 (show_remote_protocol_qGetTLSAddr_packet_cmd)
3425 (set_remote_protocol_p_packet_cmd)
3426 (show_remote_protocol_p_packet_cmd): Delete.
3428 (init_all_packet_configs): Simplify.
3429 (set_remote_protocol_Z_packet_cmd)
3430 (show_remote_protocol_Z_packet_cmd)
3431 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
3432 (remote_fetch_registers, remote_prepare_to_store)
3433 (remote_store_registers, check_binary_download)
3434 (remote_write_bytes, remote_insert_breakpoint)
3435 (remote_remove_breakpoint, remote_insert_watchpoint)
3436 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3437 (remote_remove_hw_breakpoint, remote_xfer_partial)
3438 (remote_get_thread_local_address): Update for packet array.
3439 (_initialize_remote): Likewise; also update for common
3442 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3444 * symfile.c (place_section): Correct retry logic.
3446 2006-02-19 Christopher Faylor <cgf@timesys.com>
3448 * win32_nat.c (cygwin_load_start): New variable.
3449 (cygwin_load_end): Ditto.
3450 (have_saved_context): Ditto.
3451 (saved_context): Ditto.
3452 (max_dll_name_len): Delete obsolete variable.
3453 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
3454 if we are in a cygwin signal rather than a windows signal.
3455 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
3456 if dll being loaded is the cygwin DLL.
3457 (register_loaded_dll): Remove calculation of max_dll_name_len.
3458 (win32_clear_solib): Ditto.
3459 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
3461 (handle_output_debug_string): Detect and store signal information sent
3463 (handle_exception): Silently pass on errors in the cygwin DLL. Return
3464 -1 on first pass exception.
3465 (win32_continue): Remove spurious clearing of continue_status.
3466 (get_win32_debug_event): Deal differently first chance exception.
3468 2006-02-19 Randolph Chung <tausq@debian.org>
3470 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
3473 2006-02-16 Fred Fish <fnf@specifix.com>
3475 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
3476 a non lval value zero, of the appropriate type, when avoiding
3478 * typeprint.c (ptype_eval): Remove function and declaration.
3479 (ptype_command): Simplify to just a call to whatis_exp.
3481 2006-02-15 Paul Brook <paul@codesourcery.com>
3483 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
3484 Load insn opcodes as unsigned values.
3486 2006-02-14 Alexandre Oliva <aoliva@redhat.com>
3488 * doublest.h (DOUBLEST): Use long double only if we can scan
3489 it in. Undefine HAVE_LONG_DOUBLE otherwise.
3490 (DOUBLEST_FORMAT): New.
3491 * c-exp.y (parse_number): Use it.
3492 * jv-exp.y (parse_number): Likewise.
3493 * objc-exp.y (parse_number): Likewise.
3494 * p-exp.y (parse_number): Likewise.
3495 * varobj.c (free_variable): Silence type-punning warnings.
3496 * tui/tui-data.h (struct tui_list): Change type of list member.
3497 * tui/tui-data.c: Remove no-longer-needed type casts.
3498 (source_windows): Silence type-punning warnings.
3499 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
3501 2006-02-13 Mark Kettenis <kettenis@gnu.org>
3503 Fix PR breakpoints/2080.
3504 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
3505 (i386_analyze_stack_align): New function.
3506 (i386_analyze_prologue): Use i386_analyze_stack_align.
3507 (i386_frame_cache): Deal with stack realignment.
3509 2006-02-14 Nick Roberts <nickrob@snap.net.nz>
3511 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
3512 (gdb-break-list-regexp): Match "what" field if present.
3513 (gdb-stack-list-frames-regexp): Match "from" field if present.
3514 (gdb-stack-list-frames-handler): Present output like "info
3515 breakpoints" so regexps can be shared with gdb-ui
3517 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3519 * NEWS: Mention native Windows support.
3520 * Makefile.in (gdb_select_h, ser_tcp_h): New.
3521 (ALLDEPFILES): Add ser-mingw.c.
3522 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
3523 (ser-tcp.o, ser-unix.o): Update.
3524 (ser-mingw.o): New rule.
3525 * configure: Regenerated.
3526 * configure.ac: Add ser-mingw.o for mingw32.
3527 * ser-mingw.c: New file.
3528 * event-loop.c: Include "gdb_select.h".
3529 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
3530 * ser-base.c: Include "gdb_select.h".
3531 (ser_base_wait_for): Use gdb_select.
3532 * serial.c (serial_for_fd): New function.
3533 (serial_fdopen): Try "terminal" before "hardwire". Initialize
3534 the allocated struct serial.
3535 (serial_wait_handle): New function.
3536 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
3537 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
3538 * gdb_select.h: New file.
3539 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
3540 (net_close, net_read_prim, net_write_prim): Make global.
3541 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
3542 Document why we can not use gdb_select.
3543 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
3544 * ser-tcp.h: New file.
3545 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
3546 (handle_sigio): Use gdb_select.
3547 (initialize_stdin_serial): New function.
3548 * terminal.h (initialize_stdin_serial): New prototype.
3549 * top.c (gdb_init): Call initialize_stdin_serial.
3550 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
3551 event-loop.c. Add exception condition support. Use serial_for_fd
3552 and serial_wait_handle. Fix timeout handling.
3553 * posix-hdep.c: Include "gdb_select.h".
3554 (gdb_select): New function.
3555 * remote-st.c (connect_command): Use gdb_select.
3556 * ser-unix.c: Include "gdb_select.h".
3557 (hardwire_send_break, wait_for): Use gdb_select.
3559 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3561 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
3562 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
3563 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
3564 to posix-hdep.o by default.
3565 * configure: Regenerated.
3566 * configure.host: Document gdb_host_obs. Add an entry for
3567 i[34567]86-*-mingw32*.
3568 * mingw-hdep.c, posix-hdep.c: New files.
3569 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
3571 2006-02-10 Joel Brobecker <brobecker@adacore.com>
3573 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
3574 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
3575 * rs6000-tdep.h: New file.
3576 * rs6000-tdep.c: Include "rs6000-tdep.h".
3577 (rs6000_gdbarch_init): Remove enabling of software single step.
3578 Will be done in the AIX-specific initialization routine.
3579 * rs6000-aix-tdep.c: New file.
3580 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
3581 * Makefile.in (rs6000_tdep_h): New variable.
3582 (rs6000-tdep.o): Update dependencies.
3583 (rs6000-aix-tdep.o): New rule.
3585 2006-02-10 Joel Brobecker <brobecker@adacore.com>
3587 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
3588 instead of add_setshow_zinteger_cmd to defined the aix-thread
3591 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
3593 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
3595 2006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
3597 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
3598 30 bits. Add load_all_dies flag.
3599 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
3600 Load DW_TAG_member by default. Remove internal_error call.
3601 (find_partial_die): Reload the compilation unit if we can not find
3602 a DIE in the cache. Call internal_error here if we still can not
3605 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
3607 * breakpoint.c (print_one_breakpoint): Add break to case
3608 bp_catch_vfork in switch statement.
3610 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3612 * config/i386/nm-i386sol2.h: Update copyright year.
3613 * config/mips/nm-irix5.h: Ditto.
3614 * config/sparc/nm-sol2.h: Ditto.
3615 * s390-nat.c: Ditto.
3616 * ppc-linux-nat.c: Ditto.
3618 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3620 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
3621 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3622 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3623 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3624 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3625 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3626 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3627 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
3628 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
3629 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
3630 add to_region_ok_for_hw_watchpoint.
3631 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
3632 (s390_region_ok_for_hw_watchpoint): New.
3633 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
3634 and add to_region_ok_for_hw_watchpoint.
3635 * target.c (default_region_size_ok_for_hw_watchpoint,
3636 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
3637 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
3638 inheritance and default_region_size_ok_for_hw_watchpoint.
3639 (default_region_ok_for_hw_watchpoint): If len is less than or equal
3640 the length of void pointer, return ok.
3641 (default_region_size_ok_for_hw_watchpoint): Delete.
3642 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
3643 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
3644 * target.h (struct target_ops): Delete
3645 to_region_size_ok_for_hw_watchpoint.
3646 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3648 2006-02-08 Ben Elliston <bje@au1.ibm.com>
3649 Wu Zhou <woodzltc@cn.ibm.com>
3651 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
3652 PTRACE_GETSIGINFO): Define.
3653 (last_stopped_data_address): New.
3654 (ppc_linux_check_watch_resources): New function.
3655 (ppc_linux_region_ok_for_hw_watchpoint): New function.
3656 (ppc_linux_insert_watchpoint): New function.
3657 (ppc_linux_remove_watchpoint): New function.
3658 (ppc_linux_stopped_data_address): New function.
3659 (ppc_linux_stopped_by_watchpoint): New function.
3660 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
3661 related target vectors.
3662 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
3663 to have nonsteppable watchpoint.
3664 * target.c (default_region_ok_for_hw_watchpoint,
3665 debug_to_region_ok_for_hw_watchpoint): New prototypes.
3666 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
3667 and set default to_region_ok_for_hw_watchpoint.
3668 (default_region_ok_for_hw_watchpoint): New function.
3669 (debug_to_region_ok_for_hw_watchpoint): New function.
3670 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
3672 * target.h (struct target_ops): Add a new target vector
3673 to_region_ok_for_hw_watchpoint.
3674 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
3675 defined anyplace else.
3677 2005-02-07 Joel Brobecker <brobecker@adacore.com>
3678 * symfile.c (add_symbol_file_command): Abort if the user forgot
3679 to provide the address when the file has been loaded.
3681 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
3683 * MAINTAINERS: Update file based on maintainers survey. Add
3684 a note to Past Maintainers. Move unresponsive or inactive
3685 maintainers to Authorized Committers or Past Maintainers as
3686 appropriate. Correct Jim Kingdon's email address. Remove
3687 vacant areas of responsibility.
3689 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
3691 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
3694 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3696 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
3697 * exceptions.c (exception_none, exceptions_state_mc_init)
3698 (throw_vfatal): Use GDB_NO_ERROR.
3700 2006-02-02 Mark Kettenis <kettenis@gnu.org>
3702 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
3703 r_map_size members. Add r_version_offset, r_version_size and
3704 r_ldsomap_offset members.
3705 * solib-svr4.c (solib_svr4_r_map): Renamed from
3706 fetch_link_map_member. Simplify using read_memory_typed_address.
3707 (solib_svr4_r_ldsomap): New function.
3708 (open_symbol_file_object): Use solib_svr_r_map.
3709 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
3710 linker by using solib_svr4_r_ldsomap.
3711 (svr4_ilp32_fetch_link_map_offsets)
3712 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
3714 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
3715 changes to `struct link_map_offsets'.
3716 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
3717 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
3718 `struct link_map_offsets'.
3720 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3722 * linux-nat.c (struct saved_ptids, threads_to_delete)
3723 (record_dead_thread, prune_lwps, find_thread_from_lwp)
3725 (linux_nat_resume): Call prune_lwps.
3726 (wait_lwp, linux_nat_wait): Call exit_lwp.
3728 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3730 * printcmd.c (printf_command): Make format string checking
3731 stricter. Add separate cases for long_arg, ptr_arg, and
3733 * utils.c (xstrvprintf): Improve the error message issued
3734 for a bad format string.
3735 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
3737 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
3738 $(NO_WERROR_CFLAGS).
3739 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
3742 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3744 * Makefile.in (remote.o): Update.
3745 * remote.c (show_packet_config_cmd): Shorten messages.
3746 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
3747 (show_remote_cmd): Iterate.
3748 (_initialize_remote): Remove remote_set_cmdlist,
3749 remote_show_cmdlist.
3751 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3753 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
3754 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
3756 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
3757 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
3758 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
3760 * gdbtypes.c: Include "hashtab.h".
3761 (build_gdbtypes): Remove extra prototype.
3762 (struct type_pair, type_pair_hash, type_pair_eq)
3763 (create_copied_types_hash, copy_type_recursive): New.
3764 * gdbtypes.h: Include "hashtab.h".
3766 (create_copied_types_hash, copy_type_recursive): New prototypes.
3767 * objfiles.c (free_objfile): Call preserve_values.
3768 * symfile.c (reread_symbols): Likewise.
3769 (clear_symtab_users): Remove calls to clear_value_history and
3771 * value.c (clear_value_history, clear_internalvars): Removed.
3772 (preserve_one_value, preserve_values): New functions.
3773 * value.h (clear_value_history, clear_internalvars): Removed.
3774 (preserve_values): New prototype.
3776 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
3779 2006-01-29 Mark Kettenis <kettenis@gnu.org>
3781 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
3784 2006-01-27 Joel Brobecker <brobecker@adacore.com>
3786 * MAINTAINERS: Use a consistent email address for brobecker.
3788 2006-01-27 Joel Brobecker <brobecker@adacore.com>
3790 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
3791 in the previous change.
3793 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3796 * fork-child.c (fork_inferior): Don't call
3797 solib_create_inferior_hook.
3798 * infcmd.c (post_create_inferior): Call solib_add,
3799 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
3800 (attach_command): Don't call solib_add or
3801 re_enable_breakpoints_in_shlibs. Call post_create_inferior
3803 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
3804 or observer_notify_inferior_created. Call post_create_inferior
3806 * corelow.c: Don't include "observer.h".
3807 (solib_add_stub): Deleted.
3808 (core_open): Don't call observer_notify_inferior_created or
3809 solib_add_stub. Call post_create_inferior instead.
3810 * inf-ptrace.c: Don't include "observer.h".
3811 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
3812 * inf-ttrace.c: Don't include "observer.h".
3813 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
3814 * inferior.h (solib_create_inferior_hook): Remove redundant
3816 * inftarg.c: Don't include "observer.h".
3817 (child_attach): Don't call observer_notify_inferior_created.
3818 * Makefile.in: Update dependencies.
3820 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3822 * infcmd.c: Include "observer.h".
3823 (post_create_inferior): New function.
3824 (run_command_1): Call it. Also call proceed.
3825 * inferior.h (post_create_inferior): New prototype.
3826 * Makefile.in (infcmd.o): Update.
3828 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
3829 * go32-nat.c (go32_create_inferior): Likewise.
3830 * nto-procfs.c (procfs_create_inferior): Likewise.
3831 * procfs.c (procfs_create_inferior): Likewise.
3832 * remote-sim.c (gdbsim_create_inferior): Likewise.
3833 * remote.c (extended_remote_create_inferior)
3834 (extended_remote_async_create_inferior): Likewise.
3835 * win32-nat.c (win32_create_inferior): Likewise.
3836 * wince.c (child_create_inferior): Likewise.
3838 * monitor.c (monitor_create_inferior): Don't call proceed.
3839 Set the PC manually.
3840 * ocd.c (ocd_create_inferior): Likewise.
3841 * remote-e7000.c (e7000_create_inferior): Likewise.
3842 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3843 * remote-mips.c (mips_create_inferior): Likewise.
3844 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
3845 * remote-sds.c (sds_create_inferior): Likewise.
3846 * remote-st.c (st2000_create_inferior): Likewise.
3848 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
3849 proceed or observer_notify_inferior_created.
3850 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
3851 * inftarg.c (child_create_inferior): Likewise.
3853 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3855 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
3856 after mourning the inferior.
3858 2006-01-24 Jim Blandy <jimb@redhat.com>
3860 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
3862 2006-01-24 Fred Fish <fnf@specifix.com>
3864 * parse.c (source.h): Include.
3865 (parse_exp_in_context): Use static source context if no
3866 other context found.
3868 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3870 * sh-tdep.c: Include reggroups.h.
3871 (sh_register_reggroup_p): New function.
3872 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
3873 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
3875 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3877 * cli/cli-cmds.c: Include fcntl.h.
3878 (source_command): Use the GDB search path to find script files.
3880 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3883 Suggested by Till Straumann <strauman@slac.stanford.edu>:
3884 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
3885 instructions. Handle PIC bcl.
3887 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3889 * config/djgpp/README: Typo fix.
3890 * config/djgpp/fnchange.lst: Update.
3892 2006-01-22 Mark Kettenis <kettenis@gnu.org>
3894 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
3895 (sparc_address_from_register): New prototype.
3896 (sparcnbsd_step_trap): New prototype.
3897 * sparc-tdep.c (sparc_address_from_register): Make globally
3899 (sparc_analyze_control_transfer): Change prototype to accept
3900 `struct gdbarch *' as first argument. Allow for optional hnadling
3901 for trap instructions.
3902 (sparc_step_trap): New function.
3903 (sparc_software_single_step): Adjust call to
3904 sparc_analyze_control_trabsfer.
3905 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
3906 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
3907 (sparc32nbsd_init_abi): Set TDEP->step_trap.
3908 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
3909 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
3911 * sparc-tdep.c (sparc32_return_value): Convert to use
3912 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
3913 RETURN_VALUE_STRUCT_CONVENTION.
3914 (sparc32_extract_struct_value_address): Remove.
3916 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3918 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
3919 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
3921 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3923 * solib.c (info_sharedlibrary_command): Avoid internal_error.
3925 2006-01-21 Mark Kettenis <kettenis@gnu.org>
3927 * i386-tdep.c (i386_mxcsr_type): New variable.
3928 (i386_init_types): Initialize i386_mxcsr_type.
3929 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
3930 * i386-tdep.c (i386_mxcsr_type): New extern.
3931 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
3934 2006-01-20 Mark Mitchell <mark@codesourcery.com>
3936 * Makefile.in (remote-rdi.o): Remove.
3937 (rdi-share/libangsd.a): Likewise.
3938 * README: Don't mention remote-rdi.c.
3939 * NEWS: Mention removal of rdi-share.
3940 * configure.ac: Don't configure rdi-share subdirectory.
3941 * remote-rdi.c: Remove.
3942 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
3943 (TDEPLIBS): Remove rdi-share/libangsd.a.
3944 * rdi-share/Makefile.am: Remove.
3945 * rdi-share/Makefile.in: Likewise.
3946 * rdi-share/README.CYGNUS: Likewise.
3947 * rdi-share/aclocal.m4: Likewise.
3948 * rdi-share/adp.h: Likewise.
3949 * rdi-share/adperr.h: Likewise.
3950 * rdi-share/angel.h: Likewise.
3951 * rdi-share/angel_bytesex.c: Likewise.
3952 * rdi-share/angel_bytesex.h: Likewise.
3953 * rdi-share/angel_endian.h: Likewise.
3954 * rdi-share/ardi.c: Likewise.
3955 * rdi-share/ardi.h: Likewise.
3956 * rdi-share/armdbg.h: Likewise.
3957 * rdi-share/buffers.h: Likewise.
3958 * rdi-share/chandefs.h: Likewise.
3959 * rdi-share/channels.h: Likewise.
3960 * rdi-share/chanpriv.h: Likewise.
3961 * rdi-share/configure: Likewise.
3962 * rdi-share/configure.in: Likewise.
3963 * rdi-share/crc.c: Likewise.
3964 * rdi-share/crc.h: Likewise.
3965 * rdi-share/dbg_conf.h: Likewise.
3966 * rdi-share/dbg_cp.h: Likewise.
3967 * rdi-share/dbg_hif.h: Likewise.
3968 * rdi-share/dbg_rdi.h: Likewise.
3969 * rdi-share/devclnt.h: Likewise.
3970 * rdi-share/devices.h: Likewise.
3971 * rdi-share/devsw.c: Likewise.
3972 * rdi-share/devsw.h: Likewise.
3973 * rdi-share/drivers.c: Likewise.
3974 * rdi-share/drivers.h: Likewise.
3975 * rdi-share/etherdrv.c: Likewise.
3976 * rdi-share/ethernet.h: Likewise.
3977 * rdi-share/host.h: Likewise.
3978 * rdi-share/hostchan.c: Likewise.
3979 * rdi-share/hostchan.h: Likewise.
3980 * rdi-share/hsys.c: Likewise.
3981 * rdi-share/hsys.h: Likewise.
3982 * rdi-share/logging.c: Likewise.
3983 * rdi-share/logging.h: Likewise.
3984 * rdi-share/msgbuild.c: Likewise.
3985 * rdi-share/msgbuild.h: Likewise.
3986 * rdi-share/params.c: Likewise.
3987 * rdi-share/params.h: Likewise.
3988 * rdi-share/rx.c: Likewise.
3989 * rdi-share/rxtx.h: Likewise.
3990 * rdi-share/serdrv.c: Likewise.
3991 * rdi-share/serpardr.c: Likewise.
3992 * rdi-share/sys.h: Likewise.
3993 * rdi-share/tx.c: Likewise.
3994 * rdi-share/unixcomm.c: Likewise.
3995 * rdi-share/unixcomm.h: Likewise.
3997 2006-01-21 Mark Kettenis <kettenis@gnu.org>
3999 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
4000 Change type of last argument to `gdb_byte *'.
4002 2006-01-20 Mark Kettenis <kettenis@gnu.org>
4004 * hppa-tdep.h (hppa_in_solib_call_trampoline)
4005 (hppa_skip_trampoline_code): New prototypes.
4006 * hppa-tdep.c (struct insn_pattern): New.
4007 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
4008 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
4009 here from hppa-linux-tdep.c
4010 (HPPA_MAX_INSN_PATTERN_LEN): New define.
4011 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
4012 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
4013 functions based on functions removed from hppa-linux-tdep.c.
4014 * hppa-linux-tdep.c (hppa_long_branch_stub)
4015 (hppa_long_branch_pic_stub, hppa_import_stub)
4016 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
4017 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
4018 (hppa_linux_in_solib_call_trampoline)
4019 (hppa_linux_skip_trampoline_code): Removed.
4020 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
4021 hppa_in_solib_call_trampoline and skip_trampoline_code to
4022 hppa_skip_trampoline_code.
4023 * hppabsd-tdep.c (hppabsd_init_abi): Set
4024 TDEP->in_solib_call_trampoline and skip_trampoline_code.
4026 2006-01-20 Jim Blandy <jimb@redhat.com>
4028 * MAINTAINERS: Change my E-mail address.
4030 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
4031 * configure: Regenerated.
4033 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4035 * MAINTAINERS: Overhaul.
4037 2006-01-18 Mark Kettenis <kettenis@gnu.org>
4039 Based on a previous patch form Michal Ludvig:
4040 * amd64-tdep.c (amd64_sse_type): Remove.
4041 (amd64_register_info): Use i386_eflags_type and i386_sse_type
4043 (AMD64_NUM_REGS): Use ARRAY_SIZE.
4044 (amd64_register_type): Remove code to build amd_sse_type.
4045 * i386-tdep.c (i386_eflag_type): New variable.
4046 (i386_mmx_type, i386_sse_type): Make global.
4047 (i386_init_types): New function.
4048 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
4049 (i386_register_type): Return i386_eflag_type, i386_sse_type and
4050 i386_mmx_type when appropriate.
4051 (_initialize_i386_tdep): Call i386_init_types.
4052 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
4055 Based on a previous patch form Michal Ludvig:
4056 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
4058 (is_integral_type, rank_one_type, recursive_dump_type): Add
4059 support for TYPE_CODE_FLAGS.
4060 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
4061 (append_flags_type_field, init_flags_type): New prototypes.
4062 * ada-valprint.c (ada_val_print_1): Add support for
4064 * c-valprint.c (c_val_print): Likewise.
4065 * f-valprint.c (f_val_print): Likewise.
4066 * p-valprint.c (pascal_val_print): Likewise.
4067 * valprint.c (val_print_type_code_flags): New function.
4068 * valprint.h (val_print_type_code_flags): New prototype.
4069 * value.c (unpack_long, value_from_longest): Add support for
4072 2006-01-17 Christopher Faylor <cgf@timesys.com>
4074 * MAINTAINERS: Very belatedly remove myself from from the list of
4075 people caught up in the paper trail.
4077 2006-01-17 Jim Blandy <jimb@redhat.com>
4079 * symtab.h (struct general_symbol_info): Use gdb_byte for
4081 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
4082 a floating-point constant's value.
4083 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
4085 * findvar.c (read_var_value): Eliminate needless temporary.
4087 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
4088 to match prior change to dwarf2_read_section's type.
4090 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
4092 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
4093 * rs6000-tdep.c (insn_changes_sp_or_jumps)
4094 (rs6000_in_function_epilogue_p): New functions.
4095 (rs6000_gdbarch_init): Set in_function_epilogue_p.
4097 2006-01-17 Jim Blandy <jimb@redhat.com>
4099 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
4100 (struct line_header, struct partial_die_info, struct dwarf_block):
4101 Use gdb_byte for members that refer to Dwarf section contents.
4102 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
4103 dwarf_decode_macros, load_comp_unit, load_partial_dies,
4104 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
4105 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
4106 read_8_bytes, read_address, read_attribute, read_attribute_value,
4107 read_comp_unit, read_comp_unit_head, read_die_and_children,
4108 read_die_and_siblings, read_full_die, read_indirect_string,
4109 read_initial_length, read_n_bytes, read_offset, read_partial_die,
4110 read_signed_leb128, read_string, read_unsigned_leb128,
4111 skip_children, skip_leb128, skip_one_die): Same.
4113 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
4115 * complaints.c (stop_whining): Make signed.
4116 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
4118 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
4120 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
4123 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
4125 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
4126 (read_offset): Change BYTES_READ argument to unsigned int.
4127 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
4128 (create_all_comp_units, dwarf2_get_pc_bounds)
4129 (dwarf_decode_line_header, var_decode_location)
4130 (dwarf_decode_macros): Change local BYTES_READ variables to
4132 (read_indirect_string): Remove obsolete cast.
4134 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
4136 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
4138 (remote_fileio_func_open, remote_fileio_func_rename)
4139 (remote_fileio_func_unlink, remote_fileio_func_stat)
4140 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4141 (remote_fileio_func_system): Cast the arguments to
4142 remote_read_bytes and remote_write_bytes.
4143 (remote_fileio_func_read, remote_fileio_func_write): Use a
4145 * remote.h (remote_read_bytes, remote_write_bytes): Update
4147 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
4148 (threadref_to_int): Replace bogus char * cast.
4149 (remote_unpack_thread_info_response): Use int for tag.
4150 (remote_threads_extra_info, remote_check_symbols): Cast string
4151 arguments to hex2bin.
4152 (remote_wait): Use a char buffer for packets and a gdb_byte
4153 buffer for registers.
4154 (remote_async_wait): Likewise.
4155 (remote_prepare_to_store, store_register_using_P)
4156 (remote_store_registers): Use gdb_byte buffers.
4157 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
4158 for MYADDR and char buffers for strings.
4159 (remote_xfer_partial): Add casts for string operations on READBUF.
4160 (remote_rcmd): Cast strings passed to bin2hex.
4162 2006-01-16 Mark Mitchell <mark@codesourcery.com>
4164 * aclocal.m4: Regenerate.
4166 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
4168 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
4169 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
4170 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
4171 (mt_register_name): Lazily synthesize name for coprocessor pseudo
4173 (mt_copro_register_type): New. Broken out of ...
4174 (mt_register_type): ... here. Use it. Deal with coprocessor
4176 (mt_select_coprocessor): New.
4177 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
4178 coprocessor pseudo array.
4180 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
4182 * breakpoint.c (insert_breakpoints): Check that a thread exists
4183 before inserting thread specific breakpoints.
4185 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4187 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
4190 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
4191 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
4192 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
4193 * config/alpha/nm-nbsd.h: Remove file.
4194 * config/alpha/nm-fbsd.h: Remove file
4195 * config/alpha/nbsd.mh (NAT_FILE): Remove.
4196 * config/alpha/fbsd.mh (NAT_FILE): Remove.
4198 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4200 * macroexp.c (expand): Initialize argc.
4201 * stabsread.c (read_type): Handle errors from read_args.
4202 (read_args): Return NULL for errors.
4204 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4206 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
4207 strcmp to compare string to a byte buffer.
4209 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4211 * printcmd.c (output_command): Always initialize fmt.size.
4212 (printf_command): Use gdb_byte.
4213 * symfile.c (separate_debug_file_exists): Use gdb_byte.
4214 (load_section_callback, read_target_long_array): Likewise.
4215 (simple_read_overlay_table, simple_read_overlay_region_table)
4216 (simple_overlay_update_1): Correct calls to read_target_long_array.
4217 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
4218 Also change local pointers.
4219 (val_print_string): Use gdb_byte.
4221 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4223 * alphafbsd-tdep.c: Include "solib-svr4.h".
4224 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
4225 svr4_lp64_fetch_link_map_offsets.
4226 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
4227 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
4229 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4231 * config/alpha/nm-fbsd.h: Don't include "solib.h".
4233 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4235 * source.c (_initialize_source): Use add_setshow_integer_cmd.
4237 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4239 * linux-fork.c (delete_fork_command, detach_fork_command): Use
4242 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4244 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
4246 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4247 svr4_ilp32_fetch_link_map_offsets.
4248 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
4250 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4251 svr4_ilp32_fetch_link_map_offsets.
4252 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
4253 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
4254 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4255 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4257 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
4258 Simply call svr4_ilp32_fetch_link_map_offsets.
4259 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
4260 svr4_lp64_fetch_link_map_offsets.
4261 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
4263 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4264 svr4_ilp32_fetch_link_map_offsets.
4265 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
4266 (s390x_svr4_fetch_link_map_offsets): Remove functions.
4267 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4268 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4271 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4273 * arm-tdep.c (arm_return_value): Change type of readbuf and
4274 writebuf arguments to `gdb_byte *'.
4276 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
4277 * Makefile.in (s390-tdep.o): Update dependencies.
4279 2006-01-14 Mark Kettenis <kettenis@gnu.org>
4281 * sol2-tdep.h. sol2-tdep.c: New files.
4282 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
4283 (amd64_sol2_init_abi): Set skip_solib_resolver.
4284 * i386-sol2-tdep.c: Include "sol2-tdep.h".
4285 (i386_sol2_init_abi): Set skip_solib_resolver.
4286 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
4287 (sparc32_sol2_init_abi): Set skip_solib_resolver.
4288 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
4289 (sparc64_sol2_init_abi): Set skip_solib_resolver.
4290 * Makefile.in (sol2_tdep_h): New variable.
4291 (ALLDEPFILES): Add sol2-tdep.c.
4292 (sol2-tdep.o): New target.
4293 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
4294 (sparc64-sol2-tdep.o): Update dependencies
4295 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
4296 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4297 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
4298 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4300 * hppa-linux-tdep.c: Fix copyright indentation.
4302 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
4303 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
4304 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
4306 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
4307 floating-point registers.
4309 2006-01-13 Mark Mitchell <mark@codesourcery.com>
4311 * event-loop.c (gdb_select): Detect file descriptors that have
4314 2006-01-13 Mark Kettenis <kettenis@gnu.org>
4316 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
4317 and long_double_format accordingly.
4319 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
4321 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
4322 translation problems.
4323 * ada-lang.c (ada_value_struct_elt): Change interface and handling
4324 of errors to avoid translation problem (and less than optimal error
4326 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
4327 Use new interface to ada_value_struct_elt.
4328 * ada_lang.h (ada_value_struct_elt): Update declaration to new
4331 * ChangeLog: remove reference to ada-tasks.c from entry of
4334 2006-01-11 Mark Kettenis <kettenis@gnu.org>
4336 * remote.c (get_memory_packet_size, set_thread)
4337 (remote_unpack_thread_info_response, remote_get_threadinfo)
4338 (parse_threadlist_response, remote_get_threadlist)
4339 (remote_current_thread, remote_threads_info)
4340 (remote_threads_extra_info, extended_remote_restart, get_offsets)
4341 (remote_check_symbols, remote_open_1, remote_detach)
4342 (remote_async_wait, remote_fetch_registers)
4343 (remote_store_registers, check_binary_download, putpkt_binary)
4344 (remote_insert_breakpoint, remote_insert_watchpoint)
4345 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
4346 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
4347 (packet_command): Remove redundant parenthesis.
4349 2006-01-10 Mark Kettenis <kettenis@gnu.org>
4351 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
4352 (read_memory_typed_address, write_memory)
4353 (write_memory_unsigned_integer, write_memory_signed_integer): Use
4354 gdb_byte where appropriate.
4356 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
4359 * target.h (target_read_memory_partial, target_write_memory_partial):
4360 Change second argument to 'gdb_byte *'.
4361 * target.c (target_xfer_memory_partial): Change third argument to
4363 (target_read_memory_partial, target_write_memory_partial): Change
4364 second argument to 'gdb_byte *'.
4366 * linespec.c (decode_objc): Make i1 and i2 unsigned.
4367 (find_method): Set values.sals to NULL.
4369 2006-01-09 Mark Kettenis <kettenis@gnu.org>
4371 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
4372 of 'char *' in cast.
4374 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
4376 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
4377 * ada-lang.c: I18n markup.
4378 Editorial: change "can not" => "cannot" throughout.
4380 2006-01-07 Mark Kettenis <kettenis@gnu.org>
4382 * Makefile.in: Sort dependencies.
4384 2006-01-07 Eli Zaretskii <eliz@gnu.org>
4386 * top.c (control_level): Remove unused variable.
4388 2006-01-06 Fred Fish <fnf@specifix.com>
4390 * objfiles.c (source.h): Include.
4391 (free_objfile): Update comment about clear_symtab_users().
4392 (free_objfile): Check all symtabs of objfile being freed and if
4393 one of them is the current source symtab, call
4394 clear_current_source_symtab_and_line().
4396 2006-01-04 Michael Snyder <msnyder@redhat.com>
4398 Checkpoint/Restart for Linux.
4399 * linux-nat.c: Add support for debugging multiple forks.
4400 Add #include for linux-fork.h (interface spec).
4401 (super_mourn_inferior): New function pointer.
4402 (child_mourn_inferior): New function / target method.
4403 (linux_target): Claim to_mourn_inferior method pointer.
4404 (child_follow_fork): Call interface to linux-fork, conditionally
4405 add new fork processes to list of debugged processes.
4406 (kill_inferior): Use interface to linux-fork to kill
4409 * linux-fork.h: New file.
4410 * linux-fork.c: New file. Support for debugging multiple forks
4411 of the same program. Support for checkpoint and restart commands.
4413 * infrun.c (nullify_last_target_wait_ptid): New function.
4415 * Makefile.in: Add linux-fork.
4416 * config/*/linux.mh: Add linux-fork.
4417 * NEWS: Mention new functionality.
4419 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
4421 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
4422 Change uses of "illegal" to "invalid".
4424 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4426 * ada-exp.y: Considerable reorganization to move functionality
4427 from ada-lex.l to here, where it is logically more appropriate.
4428 The original reason, however, was to prevent premature name
4429 lookups for selector names in record aggregates.
4430 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
4431 NAME for all of these.
4432 (VAR): New artificial token to clarify precedence rules.
4433 (OTHERS): New lexeme.
4434 (empty_stoken): New symbol.
4435 (%union): Remove ssym, voidval.
4436 (%type): Remove <voidval> type declarations.
4437 (syntax definitions): Add aggregates.
4438 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
4439 Rename some non-terminals to be closer to reference manual usage.
4440 Tighten up expression syntax to disallow certain non-Ada
4441 constructions such as X and then Y or else Z.
4442 (ada_parse): Remove initialization of left_block_context.
4443 (write_var_from_name): Remove.
4444 (write_var_or_type): New function, containing previous code from
4445 defunct write_var_from_name and name_lookup.
4446 (block_lookup): New function, moved from ada-lex.l
4447 (select_possible_type_sym): New function, factored out of
4448 name_lookup, which used to be in ada-lex.l.
4449 (find_primitive_type): Ditto.
4450 (chop_selector): Ditto.
4451 (write_ambiguous_var): New function, factored out of defunct
4452 write_var_from_name.
4453 (write_selectors): New function.
4454 (write_name_assoc): New function.
4455 (write_exp_op_with_string): New function.
4457 * ada-lex.l (processId): Change interface to return stoken.
4458 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
4459 (block_lookup, name_lookup): Remove. Functionality moved to
4461 (state IN_STRING): Remove.
4462 (rules): Handle string escapes in processString.
4464 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
4465 yylval.sval (as simple strings).
4466 All name look-ups now handled in ada-exp.y.
4467 Introduce "::" (COLONCOLON) token and return as separate token.
4468 (processId): Change return convention. Comment.
4469 Leave leading "'" in place.
4470 (processString): New function.
4471 (find_dot_all): Add note to comment.
4472 Fix problem that allowed match only at the end.
4474 * ada-lang.c: Introduce aggregates.
4475 (find_struct_field): Add new parameter to count fields skipped, and
4476 allow other output parameters to be NULL.
4477 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
4478 new find_struct_field.
4479 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
4480 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
4481 (num_component_specs, assign_component, assign_aggregate):
4482 (aggregate_assign_from_choices,aggregate_assign_positional)
4483 (aggregate_assign_others,add_component_interval):
4485 (ada_evaluate_subexp): Declare.
4486 Add aggregate-related operators.
4487 (ada_forward_operator_length): Declare.
4488 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
4489 Consolidate Ada operators, using ada_forward_operator_length.
4490 (ada_search_struct_field): Search in forward order.
4491 (ADA_OPERATORS): Add new aggregate operators.
4492 (ada_operator_length, ada_op_name, ada_forward_operator_length)
4493 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
4494 operators and OP_NAME.
4495 (ada_type_of_array): Use longest_to_int.
4496 (value_assign_to_component): New function.
4497 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
4499 (ada_forward_operator_length, ada_dump_subexp_body):
4502 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
4503 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
4505 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4507 * ada-lang.c (process_raise_exception_name): Remove extraneous
4508 definition from unsubmitted code.
4510 (is_lower_alphanum): New function.
4511 (ada_decode): Add support for decoding protected object subprograms
4512 and entries, and of entities declared inside protected object
4514 Also add missing handling for__{DIGITS}+ suffixes.
4515 Allow '$<digits>' as valid overloading suffix.
4516 (is_name_suffix): Add handling for protected type entriy suffixes.
4517 Also add support for protected type subprogram suffixes, but keep
4518 it commented out for now, as there is an ambiguity between these
4519 entities and other internally generated entities.
4520 Allow '$<digits>' as valid overloading suffix.
4521 (is_valid_name_for_wild_match): New function.
4522 (wild_match): Add an exra level of verification of the entity name
4523 before declaring it a match for the given pattern.
4525 (ada_type_of_array, ada_evaluate_subexp): Use more proper
4526 longest_to_int rather than cast.
4528 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
4530 (ada_coerce_to_simple_array): Call check_size to make sure
4531 that the object size is reasonable.
4533 (ada_value_primitive_packed_val): Use correct location in target
4534 buffer for extracting packed record fields that are themselves records.
4536 (add_defn_to_vec): Do not try to replace a stub type by its full
4537 type. Avoids a potential infinite loop.
4539 (ada_lookup_symbol): Move return incorrectly placed return statement,
4540 causing a loop that should be scanning all object files to only
4543 (ada_tag_name_2): New function.
4544 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
4545 use alternative representation.
4547 (ada_find_renaming_symbol): Strip the function name suffix when
4548 computing the XR type name.
4550 (ada_to_fixed_type): Try determining the tag only if we have the
4552 (to_fixed_array_type): Add comments.
4554 (ada_check_typedef): Replace expression checking whether the given
4555 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
4558 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
4559 '$' in addition to '.' for runtime auxiliary function name suffixes.
4560 See changes to ada_decode above.
4562 (struct task_control_block): Add field called_task. (This change is
4563 to keep synchronized with our local sources; it does not affect the
4564 public version yet.)
4566 * ada-typeprint.c (ada_print_type): Use int_string for printing
4567 modulus of modular type.
4569 (print_range): Trivial editorial comment fix.
4571 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
4572 double quote in string.
4574 2006-01-01 Joel Brobecker <brobecker@adacore.com>
4576 * top.c: Add 2006 to list of copyright years in file header.
4578 2006-01-01 Joel Brobecker <brobecker@adacore.com>
4580 * top.c (print_gdb_version): Update copyright year to 2006.
4582 2006-01-01 Roger Sayle <roger@eyesopen.com>
4583 Elena Zannoni <ezannoni@redhat.com>
4586 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
4587 for NULL before assigning this_symtab_psymtab->objfile to objfile.
4588 (scan_xcoff_symtab): Initialize next_symbol_text_func.
4589 (Committed by Jim Blandy)
4591 For older changes see ChangeLog-2005.
4597 version-control: never