1 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
3 * config/tm-linux.h: Delete file.
4 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Set to tm-alpha.h.
5 * config/alpha/tm-alphalinux.h: Delete file.
6 * config/arm/linux.mt (DEPRECATED_TM_FILE): Set to tm-arm.h
7 * config/arm/tm-linux.h: Delete file.
8 * config/i386/tm-linux.h: Do not include "config/tm-linux.h".
9 * config/ia64/tm-linux.h: Do not include "config/tm-linux.h".
10 * config/m32r/linux.mt (DEPRECATED_TM_FILE): Remove.
11 * config/mips/tm-linux.h: Do not include "config/tm-linux.h".
12 * config/pa/linux.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
13 * config/pa/tm-linux.h: Delete file.
14 * config/powerpc/tm-linux.h: Do not include "config/tm-linux.h".
15 * config/s390/linux.mt (DEPRECATED_TM_FILE): Remove.
16 * config/sh/linux.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
17 * config/sh/tm-linux.h: Delete file.
18 * alpha-linux-tdep.c: Include "symtab.h".
19 (alpha_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
20 * i386-linux-tdep.c: Include "symtab.h".
21 (i386_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
22 * ia64-linux-tdep.c: Include "symtab.h".
23 (ia64_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
24 * m32r-linux-tdep.c: Include "symtab.h".
25 (m32r_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
26 * mips-linux-tdep.c: Include "symtab.h".
27 (mips_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
28 * sh-linux-tdep.c: Include "symtab.h".
29 (sh_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
30 * s390-tdep.c (s390_gdbarch_init): Call
31 set_gdbarch_skip_trampoline_code.
32 * s390-nat.c: Do not include "tm.h".
33 * Makefile.in (alpha-linux-tdep.o): Add dependency on $(symtab_h).
34 (i386-linux-tdep.o): Likewise.
35 (ia64-linux-tdep.o): Likewise.
36 (m32r-linux-tdep.o): Likewise.
37 (mips-linux-tdep.o): Likewise.
38 (sh-linux-tdep.o): Likewise.
39 (s390-nat.o): Remove dependency on $(tm_h).
41 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
43 * config/nm-linux.h: Do not include <signal.h>.
44 (REALTIME_LO, REALTIME_HI): Do not define.
45 * signals/signals.c (REALTIME_HI): Fix off-by-one bug.
47 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
49 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
50 handlers. Free expression.
52 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
54 * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
55 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise.
57 * config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ...
58 * config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here.
60 * config/i386/nto.mh (NAT_FILE): Define.
61 * config/i386/nto.mt (DEPRECATED_TM_FILE): Remove.
62 * config/i386/tm-nto.h: Delete file.
63 * config/tm-nto.h: Delete file.
64 * config/nm-nto.h: New file.
66 * Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h).
67 * nto-tdep.c: Include "objfiles.h" and <string.h>.
69 * coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "".
70 * xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved.
71 * config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o.
73 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
75 * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
76 without skipping the CIE.
78 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
80 Fetch varobj values from memory in a single place,
81 and only fetch the values that are really needed.
82 * varobj.c (struct varobj): Clarify comment.
83 (my_value_equal): Remove.
84 (install_new_value): New function.
85 (type_of_child): Remove.
86 (varobj_create): Use install_new_value.
87 (varobj_set_value): Use value_contents_equal, not
89 (varobj_update): Use install_new_value.
90 (create_child): Likewise. Inline type_of_child here.
91 (value_of_child): Don't fetch the value.
92 (c_value_of_root): Likewise.
93 (c_value_of_variable): Likewise.
94 (type_changeable): Improve comments.
96 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
98 * remote.c (struct remote_arch_state): Doc fix.
99 (compare_pnums): New function.
100 (init_remote_state): Only allocate packet_reg structures for raw
101 registers. Define the g/G packet format separately from creating
102 packet_reg. Don't use DEPRECATED_REGISTER_BYTE.
103 (packet_reg_from_regnum, packet_reg_from_pnum): Only iterate over
105 (register_bytes_found): Delete.
106 (fetch_register_using_p): Take a struct packet_reg. Handle disabled
107 'p' packet here. Use packet_ok.
108 (fetch_registers_using_g): New function, split out of
109 remote_fetch_registers. Check the 'g' packet more strictly. Save
110 its actual size and contents. Eliminate BUF. Only iterate over
112 (remote_fetch_registers): Use the new functions for 'p' and 'g'.
113 Mark unavailable registers.
114 (store_register_using_P): Likewise to fetch_register_using_p.
115 (store_registers_using_G): New function, split out of
116 remote_store_registers. Only iterate over raw registers. Don't
117 use register_bytes_found.
118 (remote_store_registers): Likewise to remote_fetch_registers.
120 2006-11-28 Pedro Alves <pedro_alves@portugalmail.pt>
122 * coffread.c (cs_to_bfd_section): New function.
123 (cs_to_section): Use cs_to_bfd_section.
124 (record_minimal_symbol): Take the coff_symbol* parameter instead
125 of the symbol's name as a char*.
126 Add 'int section' parameter. Call prim_record_minimal_symbol_and_info
127 instead of prim_record_minimal_symbol_and_info.
128 Change return type to struct minimal_symbol *.
129 (coff_symtab_read): Adapt to new record_minimal_symbol's signature.
130 Make all minimal symbol creations go through record_minimal_symbol.
132 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
134 * symtab.c (find_pc_sect_line): Do not return a line before
135 the start of a symtab.
137 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
139 * NEWS: SPU target is already supported in GDB 6.6.
141 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
143 * Makefile.in (mips-linux-tdep.o) Add $(solib_h) dependency.
144 (nto-procfs.o): Likewise.
145 * mips-linux-tdep.c: Include "solib.h".
146 * nto-procfs.c: Likewise.
147 * config/nm-linux.h: Do not include "solib.h".
148 * config/nm-nbsd.h: Likewise.
149 * config/tm-linux.h: Likewise.
150 * config/alpha/nm-osf.h: Likewise.
151 * config/frv/tm-frv.h: Likewise.
152 * config/i386/nm-fbsh.h: Likewise.
153 * config/i386/nm-i386gnu.h: Likewise.
154 * config/i386/nm-i386sco5.h: Likewise.
155 * config/i386/nm-i386sol2.h: Likewise.
156 * config/i386/nm-i386v4.h: Likewise.
157 * config/i386/nm-i386v42mp.h: Likewise.
158 * config/i386/tm-i386sol2.h: Likewise.
159 * config/i386/tm-nto.h: Likewise.
160 * config/mips/nm-irix5.h: Likewise.
161 * config/mips/tm-nbsd.h: Likewise.
162 * config/pa/tm-hppah.h: Likewise.
163 * config/powerpc/tm-ppc-eabi.h: Likewise.
164 * config/rs6000/tm-rs6000.h: Likewise.
165 * config/sh/tm-nbsd.h: Likewise.
166 * config/sparc/nm-sol2.h: Likewise.
167 * config/sparc/tm-sol2.h: Likewise.
168 * config/arm/nbsdaout.mh: Remove NAT_FILE.
169 * config/i386/nbsdaout.mh: Likewise.
170 * config/i386/nbsdelf.mh: Likewise.
171 * config/i386/obsdaout.mh: Likewise.
172 * config/m68k/nbsdaout.mh: Likewise.
173 * config/m68k/obsd.mh: Likewise.
174 * config/sparc/nbsdaout.mh: Likewise.
175 * config/cris/cris.mt: Remove DEPRECATED_TM_FILE.
176 * config/i386/linux64.mt: Likewise.
177 * config/m68k/linux.mt: Likewise.
178 * config/m68k/nbsd.mt: Likewise.
179 * config/sparc/linux.mt: Likewise.
180 * config/sparc/linux64.mt: Likewise.
181 * config/vax/nbsd.mt: Likewise.
183 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
185 * NEWS: New port to Cell Broadband Engine SPU.
186 * MAINTAINERS: Add myself as spu maintainer.
188 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
190 * Makefile.in (arm-tdep.o): Update dependencies.
191 * arm-tdep.c (thumb_skip_prologue): Remove.
192 (thumb_analyze_prologue): New function.
193 (arm_skip_prologue): Use thumb_analyze_prologue.
194 (thumb_scan_prologue): Ditto.
196 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
198 * configure.tgt: Enable gdbserver for SPU target.
199 * configure.ac: Build gdbserver when gdb_native is yes.
200 * configure: Regenerate.
201 * regformats/reg-spu.dat: New file.
203 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
205 * osabi.c (gdbarch_lookup_osabi): Do not return
206 GDB_OSABI_UNINITIALIZED.
208 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
210 * config/powerpc/spu-linux.mh: New file.
211 * config/spu/spu.mt: New file.
212 * configure.ac: Provide gdb_native configuration variable.
213 * configure: Regenerate.
214 * configure.host: Support powerpc64 to spu 'pseudo-native' mode.
215 * configure.tgt: Add "spu" target_cpu and "spu*-*-*" target.
216 * Makefile.in (spu_tdep_h): New variable.
217 (ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c
218 (spu-linux-nat.o, spu-tdep.o): Add dependencies.
219 * spu-linux-nat.c: New file.
220 * spu-tdep.c: New file.
221 * spu-tdep.h: New file.
223 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
225 * findvar.c (address_from_register): New function.
226 * value.h (address_from_register): Add prototype.
227 * dwarf2loc.c (dwarf_expr_read_reg): Use address_from_register.
229 2006-11-22 Vladimir Prus <vladimir@codesourcery.com>
231 * breakpoint.c: Include "memattr.h".
232 (automatic_hardware_breakpoints): New.
233 (show_automatic_hardware_breakpoints): New.
234 (insert_bp_location): Automatically use
235 hardware breakpoints.
236 (_initialize_breakpoint): Register the "auto-hw"
238 * Makefile.in (breakpoint.o): Update dependencies.
240 2006-11-21 Vladimir Prus <vladimir@codesourcery.com>
242 * memattr.h (enum mem_access_mode): New value
244 * memattr.c (unknown_mem_attrib): New.
245 (inaccessible_by_default): New.
246 (show_inaccessible_by_default): New.
247 (lookup_mem_region): Check inaccessible_by_default.
249 (mem_set_cmdlist, mem_show_cmdlist): New.
250 (_initialize_mem): Register new "set" and "show"
252 * target.c (memory_xfer_partial): If memory type
253 is MEM_NONE, return an error.
254 Clip to region size when calling to_xfer_partial.
255 If upper limit of memory range is 0, don't clip
258 2006-11-20 Joel Brobecker <brobecker@adacore.com>
260 * README: Remove obsolete information.
262 2006-11-20 Andrew Cagney <cagney@redhat.com>
264 * linux-nat.h: Refer to GNU/Linux or Linux kernel.
265 * linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
266 * infcmd.c (attach_command): Ditto.
267 * hppa-linux-tdep.c (hppa_linux_regset): Ditto.
268 * mn10300-linux-tdep.c: Ditto. Update copyright year.
269 * frv-linux-tdep.c: Ditto. Update copyright year.
271 2006-11-19 Joel Brobecker <brobecker@adacore.com>
273 * NEWS: Add a new section for changes since GDB 6.6. Rename
274 the section "Changes since GDB 6.5" into "Changes in GDB 6.6".
275 Move a couple of items into the new section as they did not
278 2006-11-19 Joel Brobecker <brobecker@adacore.com>
280 GDB 6.6 branch created (branch timestamp: 2006-11-15 12:00)
281 * version.in: Bump version to 6.6.50.20061119-cvs.
283 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
285 * prologue-value.c (clear_entries): Fix memory leak.
287 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
289 * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
292 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
294 * utils.c (string_to_core_addr): Use error instead of
296 * mi/mi-main.c (mi_execute_command): Check for a NULL message.
298 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
300 * NEWS: Mention QPassSignals.
302 2006-11-16 Maxim Grigoriev <maxim2405@gmail.com>
304 * MAINTAINERS (Responsible Maintainers): Add myself for Xtensa.
305 (Write After Approval): Add myself.
307 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
309 * remote.c (PACKET_QPassSignals): New.
310 (last_pass_packet, remote_pass_signals): New.
311 (remote_protocol_features): Add QPassSignals.
312 (remote_query_supported): Correct an infinite loop.
313 (remote_open_1): Reset last_pass_packet.
314 (remote_resume): Call remote_pass_signals.
315 (_initialize_remote): Register "set remote pass-signals".
317 2006-11-14 Maxim Grigoriev <maxim@tensilica.com>
319 * NEWS: New port to Xtensa.
320 * Makefile.in: Add dependencies for Xtensa files.
321 * configure.tgt (xtensa*, xtensa*-*-elf*): New.
322 * configure.host (xtensa*-*-elf*): New.
323 * config/xtensa/xtensa.mt: New file.
324 * xtensa-config.c: New file.
325 * xtensa-tdep.h: New file.
326 * xtensa-tdep.c: New file.
328 2006-11-14 Daniel Jacobowitz <dan@codesourcery.com>
330 * remote.c (set_remote_cmd): Call help_list.
331 (show_remote_cmd): Skip legacy aliases. Handle non-show_cmd
332 entries. Add missed cleanup.
333 * cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
335 2006-11-13 Paul Gilliam <pgilliam@us.ibm.com>
337 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Don't futz with
338 the floating point registers if there aren't any.
340 2006-11-12 Ben Harris <bjh21@NetBSD.org>
342 * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
344 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
346 * frame.c (frame_register_unwind_location): New function.
347 (get_prev_frame_1): Check for UNWIND_NO_SAVED_PC.
348 (frame_stop_reason_string): Handle UNWIND_NO_SAVED_PC.
349 * frame.h (enum unwind_stop_reason): Add UNWIND_NO_SAVED_PC.
351 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
353 * arch-utils.c (target_byte_order_user): Renamed from
355 (target_byte_order_auto, selected_byte_order): Removed.
356 (show_endian): Check target_byte_order_user.
357 (set_endian): Always update the architecture. Set
358 target_byte_order_user after success.
359 (target_architecture_auto): Removed.
360 (target_architecture_user): New.
361 (selected_architecture_name, show_architecture): Check it.
362 (set_architecture): Set target_architecture_user after success.
363 (gdbarch_from_bfd): Check the argument.
364 (default_byte_order): New.
365 (initialize_current_architecture): Set the global default
366 architecture and endianness.
367 (gdbarch_info_fill): Remove GDBARCH argument. Do not check the
368 previous architecture. Use exec_bfd, global selected architecture
369 and endianness, and global defaults.
370 * arch-utils.h (selected_byte_order): Remove prototype.
371 (gdbarch_info_fill): Update.
372 * exec.c (exec_file_attach): Update the architecture after removing
374 * gdbarch.sh: Update comments.
375 (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to
377 (gdbarch_find_by_info): Update call to find_arch_by_info.
378 * gdbarch.h, gdbarch.c: Regenerated.
379 * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER.
381 2006-11-09 Joel Brobecker <brobecker@adacore.com>
383 * sparc-tdep.c (sparc_fetch_instruction): Read instruction
384 using read_memory_nobpt.
386 2006-11-06 Jim Blandy <jimb@codesourcery.com>
388 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
389 instead of frame_register. Doc fix.
391 2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
393 * serial.c (serial_open): Strip leading spaces from program
394 name when opening pipe.
396 2006-11-03 Jim Blandy <jimb@codesourcery.com>
398 * dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
399 instead of frame_register. Doc fix.
401 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
403 * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
404 (load_full_comp_unit): Take OBJFILE argument and use it.
405 (dwarf2_build_psymtabs_hard): Skip partial units.
406 (process_queue): Pass OBJFILE to load_full_comp_unit. Check
407 type_hash for read in CUs. Test psymtab for NULL.
409 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
411 * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5.
413 2006-10-31 Vladimir Prus <vladimir@codesourcery.com>
415 * commands.h (enum command_class): Use different
416 values for class_deprecated and class_run.
417 * cli/cli-decode.c: (print_help_for_command): New.
418 (apropos_cmd): Use the above.
419 (help_list): Mention 'help all'
420 and 'apropos' when printing top-level help.
421 (help_all): Print the class name before printing
422 commands in that class. Don't print prefix commands
423 here, instead pass recurse flag to help_cmd_list.
424 Print list of unclassified commands at the end.
425 (help_cmd_list): When recursing, use all_commands class.
426 Recurse only if the class of the command matches.
428 2006-10-27 Andreas Schwab <schwab@suse.de>
430 * gdbcmd.h (detachlist): Declare.
431 * infcmd.c (_initialize_infcmd): Define "detach" as prefix
433 * linux-fork.c (_initialize_linux_fork): Rename
434 "detach-checkpoint" to "detach checkpoint" and "detach-fork" to
436 * cli/cli-cmds.c (detachlist): Define.
437 (init_cmd_lists): Initialize it.
438 * cli/cli-cmds.h (detachlist): Declare.
440 2006-10-25 Jim Blandy <jimb@codesourcery.com>
442 * p-valprint.c (pascal_object_print_value): Add 'static' keyword
443 to function definition, to match declaration earlier in file.
445 2006-10-21 Paul Brook <paul@codesourcery.com>
447 * remote.c (remote_fetch_registers): Fix error message.
449 2006-10-20 Daniel Jacobowitz <dan@codesourcery.com>
451 * gcore.c (MAX_COPY_BYTES): Define.
452 (gcore_copy_callback): Use it to limit allocation.
454 2006-10-19 Ulrich Weigand <uweigand@de.ibm.com>
456 * linux-thread-db.c (check_for_thread_db): Don't attempt to use
457 thread_db for remote targets.
458 * remote.c (remote_new_objfile): Always call predecessor on
459 new_objfile event chain.
461 2006-10-19 Joel Brobecker <brobecker@adacore.com>
463 * solib.c (libpthread_solib_p): New function.
464 (solib_add): Always read the symbols from the libpthread library.
466 2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
468 * breakpoint.c (describe_other_breakpoints): Add thread parameter.
469 Annotate display with thread number where appropriate.
470 (create_breakpoints): Add thread parameter to call to
471 describe_other_breakpoints.
473 2006-10-18 Jim Blandy <jimb@codesourcery.com>
474 Daniel Jacobowitz <dan@codesourcery.com>
476 * utils.c (query): Use defaulted_query.
477 (defaulted_query): Handle having no default answer. Print out
478 messages even if we have no terminal. Prevent memory corruption.
480 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
482 * frame.c (struct frame_info): Add stop_reason.
483 (get_prev_frame_1): Set stop_reason. Don't call error for
485 (get_frame_unwind_stop_reason, frame_stop_reason_string): New.
486 * frame.h (enum unwind_stop_reason): New.
487 (get_frame_unwind_stop_reason, frame_stop_reason_string): New
489 * stack.c (frame_info): Print the stop reason.
490 (backtrace_command_1): Print the stop reason for errors.
492 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
494 * inferior.h (start_remote): Update prototype.
495 * infrun.c (start_remote): Take FROM_TTY. Call
496 post_create_inferior.
497 * monitor.c (monitor_open): Update call to start_remote.
498 * remote-sds.c (sds_start_remote, sds_open): Likewise.
499 * remote.c (remote_start_remote): Likewise.
500 (remote_start_remote_dummy): Removed.
501 (remote_open): Update call to remote_start_remote. Do not call
502 post_create_inferior here.
504 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
506 * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
507 (debug_loader_name, svr4_default_sos): New.
508 (svr4_current_sos): Call svr4_default_sos.
509 (enable_break): Add a comment about AT_BASE. Set the new
510 variables and retry solib_add.
511 (svr4_clear_solib): Clear the new variables.
513 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
515 * NEWS: Mention support for TLS without debugging information.
517 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
519 * remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
520 (gdbsim_load): Don't bother to adjust inferior_ptid here.
521 (gdbsim_create_inferior): Mark the simulator as running.
522 (gdbsim_open): Don't bother fetching registers. Mark
523 the target as not running.
524 (gdbsim_xfer): When the program is not running, pass memory
526 (gdbsim_mourn_inferior): Mark the target as not running.
527 * target.c (target_mark_running, target_mark_exited): New.
528 * target.h (target_has_execution): Update the comment.
529 (target_mark_running, target_mark_exited): New prototypes.
531 2006-10-17 Joel Brobecker <brobecker@adacore.com>
533 * breakpoint.c (free_valchain): Minor reformatting.
535 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
537 * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch.
539 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
541 * Makefile.in (symtab.o): Update.
542 * symtab.h (matching_bfd_sections): New prototype.
543 * symtab.c (matching_bfd_sections): New.
544 (find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
545 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
546 * printcmd.c (sym_info): Ignore separate debug objfiles.
548 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
550 * remote.c (remote_pid_to_str): Capitalize "Thread".
552 2006-10-15 Daniel Jacobowitz <dan@codesourcery.com>
555 * remote.c (remote_write_bytes): Throttle packet alignment
558 2006-10-16 Jeff Johnston <jjohnstn@redhat.com>
560 * linux-thread-db.c (thread_db_wait): Don't bother continuing if
561 the wait result indicates the program terminated with a
562 signal (from gdb-6.3-ia64-sigill-20051115.patch, a patch for
565 2006-10-11 Daniel Jacobowitz <dan@codesourcery.com>
567 * dwarf2read.c (dwarf_decode_lines): Call record_line upon
568 encountering a different subfile.
570 2006-10-11 Denis Pilat <denis.pilat@st.com>
572 * tui/tui-source.c (tui_set_source_content): handle source
573 files that contain non unix end-of-line.
575 2006-10-10 Daniel Jacobowitz <dan@codesourcery.com>
577 * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
578 for changes to pipe_select_thread.
579 (pipe_done_wait_handle): New.
580 (_initialize_ser_windows): Reference it.
582 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
583 Daniel Jacobowitz <dan@codesourcery.com>
585 * Makefile.in (expprint.o, parse.o, target.o): Update.
586 * dwarf2loc.c (dwarf_expr_tls_address): Move body to
587 target_translate_tls_address. Call it.
588 * eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
589 * expprint.c (print_subexp_standard): Likewise.
590 (op_name_standard, dump_subexp_body_standard): Likewise.
591 * expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
592 (union exp_element): Add objfile.
593 * parse.c (write_exp_elt_objfile): New function.
594 (msym_tls_symbol_type): New.
595 (write_exp_msymbol): Handle TLS.
596 (operator_length_standard): Handle UNOP_MEMVAL_TLS.
597 (build_parse): Initialize msym_tls_symbol_type.
598 * parser-defs.h (write_exp_elt_objfile): New prototype.
599 * target.c (target_translate_tls_address): New.
600 * target.h (target_translate_tls_address): Add prototype.
602 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
604 * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
607 2006-10-09 Daniel Jacobowitz <dan@codesourcery.com>
609 * solib.c (solib_read_symbols): Stop if the file was not found.
611 2006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
614 * valops.c (find_overload_match): Check for a NULL name.
616 2006-10-06 Joel Brobecker <brobecker@adacore.com>
619 * dwarf2read.c (read_array_type): Set the type name if the name
620 attribute is present.
622 2006-10-05 Joel Brobecker <brobecker@adacore.com>
624 * blockframe.c (block_innermost_frame): Rewrite frame search logic.
626 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
628 * Makefile.in (gdb_expat_h): New.
629 (xml_support_h): Add gdb_expat.h dependency.
630 (memory-map.o, xml-support.o): Likewise.
631 * gdb_expat.h: New file.
632 * xml-support.h: Include it.
633 * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK
636 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
638 * remote.c (get_remote_state_raw): Renamed from get_remote_state.
639 (get_remote_state): New function.
640 (init_remote_state, _initialize_remote): Use get_remote_state_raw.
642 2006-10-04 Fred Fish <fnf@specifix.com>
644 * vec.c: Include defs.h first. This pulls in config.h which can
645 affect other includes.
647 2006-10-04 Joel Brobecker <brobecker@adacore.com>
649 * somread.c (som_symtab_read): Avoid using alloca for potentially
652 2006-10-04 Daniel Jacobowitz <dan@codesourcery.com>
654 * arch-utils.h (gdbarch_info_fill): Remove duplicate prototype.
656 2006-10-03 Daniel Jacobowitz <dan@codesourcery.com>
658 * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default
660 * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise.
662 2006-09-22 Daniel Jacobowitz <dan@codesourcery.com>
664 * remote.c (remote_write_bytes_aux): Doc fix.
666 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
667 Daniel Jacobowitz <dan@codesourcery.com>
669 * Makefile.in (SFILES): Add target-memory.c.
670 (COMMON_OBS): Add target-memory.o.
671 * memattr.c (lookup_mem_region): Adjust handling for
672 the top of memory. Improve comments.
673 * remote.c (packet_check_result): New function, split out
674 from packet_ok. Recognize "E." as an error prefix.
676 (remote_write_bytes_aux): New function, renamed from
677 remote_write_bytes. Take packet header, packet format,
678 and length flag as arguments.
679 (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
680 (remote_send_printf, restore_remote_timeout)
681 (remote_flash_timeout, remote_flash_erase, remote_flash_write)
682 (remote_flash_done): New.
683 (remote_xfer_partial): Handle flash writes.
684 (init_remote_ops, init_remote_async_ops): Set to_flash_erase
686 * symfile.c (struct load_section_data): Include a pointer to
687 the cumulative stats and a request queue. Move most members
689 (struct load_progress_data, struct load_progress_section_data): New
691 (load_progress): Handle a NULL baton and zero bytes. Update for
693 (load_section_callback): Create memory write requests instead of
694 writing to memory. Don't print the progress message here.
695 (clear_memory_write_data): New function.
696 (generic_load): Use target_write_memory_blocks.
697 * target-memory.c: New file.
698 * target.c (update_current_target): Mention new uninherited methods.
699 (memory_xfer_partial): Issue an error for flash writes.
700 (target_flash_erase, target_flash_done): New functions.
701 (target_write_with_progress): Call the progress callback at the
703 * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
704 (target_write_with_progress): Update comment.
705 (struct target_ops): Add to_flash_erase and to_flash_done.
706 (target_flash_erase, target_flash_done, struct memory_write_request)
707 (memory_write_request_s, enum flash_preserve_mode)
708 (target_write_memory_blocks): New, including a vector type
709 for memory_write_request_s.
711 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
712 Daniel Jacobowitz <dan@codesourcery.com>
713 Nathan Sidwell <nathan@codesourcery.com>
715 * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
716 (memory_map_h, xml_support_h): New.
717 (target_h): Add vec_h dependency.
718 (COMMON_OBS): Add memory-map.o and xml-support.o.
719 (memory-map.o, xml-support.o): New rules.
721 * exceptions.h (enum errors): Add XML_PARSE_ERROR.
722 * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
723 * memattr.c (default_mem_attrib): Initialize blocksize.
724 (target_mem_region_list, mem_use_target)
725 (target_mem_regions_valid, mem_region_cmp, mem_region_init)
726 (require_user_regions, require_target_regions)
727 (invalidate_target_mem_regions): New.
728 (create_mem_region): Use mem_region_init.
729 (mem_clear): Move higher.
730 (lookup_mem_region): Use require_target_regions.
731 (mem_command): Implement "mem auto".
732 (mem_info_command): Handle target-supplied regions and flash
734 (mem_enable_command, mem_disable_command, mem_delete_command): Use
735 require_user_regions.
736 (_initialize_mem): Mention "mem auto" in help.
737 * memattr.h (enum mem_access_mode): Add MEM_FLASH.
738 (struct mem_attrib): Add blocksize.
739 (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
741 * remote.c: Include "memory-map.h".
742 (PACKET_qXfer_memory_map): New enum value.
743 (remote_protocol_features): Add qXfer:memory-map:read.
744 (remote_xfer_partial): Handle memory maps.
745 (remote_memory_map): New.
746 (init_remote_ops, init_remote_async_ops): Set to_memory_map.
747 (_initialize_remote): Register qXfer:memory-map:read.
748 * target.c (update_current_target): Mention to_memory_map.
749 (target_memory_map, target_pre_inferior): New.
750 (target_preopen): Call target_pre_inferior.
751 * target.h: Include "vec.h".
752 (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
753 (struct target_ops): Add to_memory_map.
754 (target_memory_map, target_pre_inferior): New prototypes.
755 * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
757 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
759 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
760 (strtoulst): Moved to ...
761 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
762 (strtoulst): ... here. Enhanced to behave more similarly
764 * defs.h (strtoulst): New prototype.
766 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
768 * Makefile.in (memattr_h, memattr.o): Update.
769 * memattr.h: Include "vec.h".
770 (struct mem_region): Remove linked list pointer.
771 (mem_region_s): New typedef and corresponding vector.
772 * memattr.c: Include "vec.h".
773 (mem_region_chain): Delete.
774 (mem_region_list): New vector pointer.
775 (mem_region_lessthan): New function.
776 (create_mem_region): Remove unused return value. Use vector
777 operations. Remove linear search.
778 (delete_mem_region): Delete.
779 (lookup_mem_region): Use vector operations. Add a FIXME.
780 (mem_info_command): Update to work with vectors.
781 (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
782 (mem_free, mem_delete): Likewise.
784 2006-09-21 Nathan Sidwell <nathan@codesourcery.com>
788 * Makefile.in (SFILES): Add vec.c.
790 (COMMON_OBJS): Add vec.o.
793 2006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
796 * remote.c (remote_thread_alive): Remove local buf.
797 (remote_get_threadinfo): Remove local threadinfo_pkt.
798 (remote_get_threadlist): Remove unused threadlist_packet.
799 (remote_current_thread): Remove local buf.
800 (remote_threads_info): Set bufp after getpkt.
801 (remote_threads_extra_info): Remove local bufp.
802 (get_offsets): Set buf after getpkt.
803 (remote_check_symbols): Set reply after getpkt.
804 (remote_vcont_probe): Set buf after getpkt.
805 (remote_resume): Set buf after set_thread.
806 (remote_wait, remote_async_wait): Set buf after getpkt.
807 (fetch_register_using_p): Set buf after remote_send.
808 (remote_fetch_registers): Likewise.
809 (store_register_using_P): Don't use buf after remote_send.
810 (check_binary_download, remote_write_bytes)
811 (remote_read_bytes, remote_rcmd): Remove local buf.
813 2006-09-17 Vladimir Prus <vladimir@codesourcery.com>
815 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
816 if high requested frame number is larger than number of available
819 2006-09-16 Nick Roberts <nickrob@snap.net.nz>
821 * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
824 2006-09-16 Andrzej Zaborowski <balrog@zabor.org>
826 * interps.c (interpreter_exec_cmd): Restore interpreter properties.
828 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
831 * infrun.c (handle_inferior_event): Context switch after fork
834 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
836 * infcall.c (call_function_by_hand): Check for function pointer
839 2006-09-10 Andreas Schwab <schwab@suse.de>
841 * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
844 2006-09-07 Vladimir Prus <vladimir@codesourcery.com>
846 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
847 error if high requested frame number is larger then number
850 2006-09-07 Joel Brobecker <brobecker@adacore.com>
852 From Stephan Springl <springl-gdb@bfw-online.de>
853 * fork-child.c (fork_inferior): Fix typo.
855 2006-08-28 DJ Delorie <dj@redhat.com>
857 * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
858 that may not be initialized elsewhere.
859 (m32c_decode_sd23): Likewise.
861 2006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
863 * buildsym.c (finish_block): Don't adjust the boundaries of
866 2006-08-24 Andreas Schwab <schwab@suse.de>
868 * symfile.c (add_symbol_file_command): Fix off-by-one when
871 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
873 * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
875 2006-08-23 Nick Roberts <nickrob@snap.net.nz>
877 * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
879 (gdbmi-send): Ensure any text properties can be removed.
880 (gdbmi-prompt1): Update to gdb-ui.el
881 (gud-gdbmi-marker-filter): Defer setting of gud-running.
882 Keep gdb-done-regexp for partial-output-buffer.
883 (gdb-stack-list-frames-handler): Add face to function names.
885 2006-08-22 Mark Kettenis <kettenis@gnu.org>
887 * valprint.c (val_print_type_code_flags): Fix GNU coding standards
890 * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
891 (alpha_push_dummy_call, alpha_extract_return_value)
892 (alpha_breakpoint_from_pc, alpha_read_insn)
893 (alpha_get_longjmp_target, alpha_supply_int_regs)
894 (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
895 (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
898 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
899 (sparc64_fprs_type): New variables.
900 (sparc64_init_types): New function.:
901 (sparc64_register_info): Use appropriate flag types for %fsr and
903 (sparc64_pseudo_register_info): Use appropriate type for %pstate.
904 (_initialize_sparc64_tdep): New function.
906 * valprint.c (val_print_type_code_flags): Fix for bitfields larger
909 * gdbtypes.c (init_flags_type): Set all fields to zero instead of
912 2006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
914 * Makefile.in (INTERNAL_CPPFLAGS): New.
915 (INTERNAL_CFLAGS_BASE): Use it.
917 2006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
919 * MAINTAINERS: Update my email address.
921 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
923 * Makefile.in (amd64_linux_tdep_h): New.
924 (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
925 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
927 (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
928 * amd64-linux-tdep.c (amd64_linux_register_name)
929 (amd64_linux_register_type, amd64_linux_register_reggroup_p)
930 (amd64_linux_write_pc): New.
931 (amd64_linux_init_abi): Use them, and update num_regs.
932 * amd64-linux-tdep.h: New file.
933 * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
935 * amd64-tdep.h (amd64_register_name, amd64_register_type): New
938 * regformats/reg-x86-64-linux.dat: New file.
940 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
942 * infrun.c (handle_inferior_event): Check the current frame ID
943 before unwinding to the previous frame.
945 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
947 * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
950 2006-08-18 Mark Kettenis <kettenis@gnu.org>
952 * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
954 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
956 * dwarf2read.c (quirk_gcc_member_function_pointer): New.
957 (read_structure_type): Call it.
959 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
961 * NEWS: Mention "set trust-readonly-sections" fix.
963 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
965 * remote.c, target.c: Strip trailing whitespace.
967 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
970 * dcache.c (dcache_write_line): Use target_write.
971 (dcache_read_line): Use target_read.
972 * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
973 * symfile.c (struct load_section_data): Add new per-section
975 (load_progress): New function.
976 (load_section_callback): Pass load_progress to the new
977 target_write_with_progress.
978 * target.c (current_xfer_partial, memory_xfer_partial): New.
979 (target_xfer_partial): New prototype.
980 (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
981 (do_xfer_memory, target_xfer_memory_partial)
982 (target_read_memory_partial, target_write_memory_partial): Delete.
983 (trust_readonly): Move higher in the file.
984 (update_current_target): Use current_xer_partial.
985 (target_xfer_partial): Use memory_xfer_partial. Handle
986 TARGET_OBJECT_RAW_MEMORY specially.
987 (target_read_memory): Use target_read.
988 (target_write_memory): Use target_write.
989 (default_xfer_partial): Call to_xfer_partial directly.
990 (target_write_with_progress): New function, based on target_write.
991 (target_write): Call it.
992 * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
993 (target_write_with_progress): New prototype.
994 (do_xfer_memory, target_read_memory_partial)
995 (target_write_memory_partial): Delete prototypes.
997 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
999 * remote.c (remote_write_bytes): Take a const buffer argument.
1000 Do the checks from remote_xfer_memory.
1001 (remote_read_bytes): Do the checks from remote_xfer_memory.
1002 (remote_xfer_memory): Remove checks pushed into lower level
1004 (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
1006 * remote.h (remote_write_bytes): Update prototype.
1008 2006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
1010 * NEWS: Add 'set trace-commands' command.
1012 2006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
1014 * cli/cli-script.c (execute_user_command): Update command_next_depth
1015 on user-command call.
1017 2006-08-09 Joel Brobecker <brobecker@adacore.com>
1019 * NEWS: Add entry for new substitute-path commands.
1021 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1023 * source.c: #include gdb_assert.h.
1024 (substitute_path_rule): New struct.
1025 (substitute_path_rules): New static global variable.
1026 (substitute_path_rule_matches): New function.
1027 (get_substitute_path_rule): New function.
1028 (rewrite_source_path): New function.
1029 (find_and_open_source): Add source path rewriting support.
1030 (strip_trailing_directory_separator): New function.
1031 (find_substitute_path_rule): New function.
1032 (add_substitute_path_rule): New function.
1033 (delete_substitute_path_rule): New function.
1034 (show_substitute_path_command): New function.
1035 (unset_substitute_path_command): New function.
1036 (set_substitute_path_command): New function.
1037 (_initialize_source): Add new substitute-path commands.
1038 * Makefile.in (source.o): Add dependency on gdb_assert.h.
1040 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1042 * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
1044 (i386_analyze_struct_return): Likewise.
1045 (i386_skip_probe): Likewise.
1046 (i386_match_insn): Likewise.
1047 (i386_analyze_frame_setup): Likewise.
1048 (i386_analyze_register_saves): Likewise.
1049 (i386_skip_prologue): Likewise.
1051 2006-08-08 Joel Brobecker <brobecker@adacore.com>
1053 * gdbcore.h (read_memory_nobpt): New function name instead of
1054 deprecated_read_memory_nobpt.
1055 * breakpoint.c (read_memory_nobpt): New function name instead
1056 of deprecated_read_memory_nobpt.
1057 Adjust calls to old deprecated_read_memory_nobpt accordingly.
1058 * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
1060 * alphanbsd-tdep.c: Likewise.
1061 * frame.c: Likewise.
1062 * frv-tdep.c: Likewise.
1063 * hppa-linux-tdep.c: Likewise.
1064 * hppa-tdep.c: Likewise.
1065 * i386-linux-nat.c: Likewise.
1066 * m68klinux-tdep.c: Likewise.
1067 * mips-tdep.c: Likewise.
1068 * s390-tdep.c: Likewise.
1070 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1072 * configure.ac: Check for expat.
1073 * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
1074 * Makefile.in (LIBEXPAT): New.
1075 (CLIBS): Include $(LIBEXPAT).
1076 * README: Mention expat.
1077 * configure, config.in: Regenerated.
1079 2006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
1081 * config/sparc/embed.mt: New file.
1082 * configure.tgt (sparc-*-rtems*): Use embed.mt.
1084 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
1086 * Makefile.in (objfiles.o, symfile.o): Update.
1087 * objfiles.c: Include "expression.h" and "parser-defs.h".
1088 (free_objfile): Clear global blocks.
1089 * symfile.c: Include "parser-defs.h".
1090 (clear_symtab_users): Clear global blocks.
1092 2006-08-08 Thiemo Seufer <ths@mips.com>
1094 * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
1096 2006-08-08 Vladimir Prus <vladimir@codesourcery.com>
1098 * symfile.c (download_write_size): Remove.
1099 (show_download_write_size): Remove.
1100 (load_section_callback): Don't use download_write_size.
1101 (_initialize_symfile): Don't register download_write_size.
1102 * NEWS: Mention 'download-write-size' removal.
1104 2006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
1106 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
1107 support for member pointers.
1109 2006-08-02 Mark Kettenis <kettenis@gnu.org>
1111 * arm-tdep.h: Add multiple inclusion protection.
1112 (struct gdbarch): Add forward declaration.
1113 (armobsd_regset_from_core_section): New prototype.
1114 * armbsd-tdep.c: New file.
1115 * armobsd-tdep.c: Include "gdb_string.h".
1116 (armobsd_init_abi): Set regset_from_core_section.
1117 (armobsd_core_osabi_sniffer): New function.
1118 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
1119 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
1120 (armbsd-tdep.o): New dependency.
1121 (armnbsd-tdep.o): Update dependencies.
1122 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
1124 2006-08-02 Thiemo Seufer <ths@mips.com>
1126 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
1128 * tui/tui-stack.c (tui_show_frame_info): Likewise.
1130 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1132 * c-exp.y (type): Remove incorrect pointer to member case.
1133 * objc-exp.y (type): Likewise.
1134 * p-exp.y (type): Likewise.
1136 2006-08-01 Mark Kettenis <kettenis@gnu.org>
1138 * arm-tdep.h (enum struct_return): New.
1139 (struct gdbarch_tdep): Add struct_return member.
1140 * arm-tdep.c (arm_return_value): Return
1141 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
1143 (arm_gdbarch_init): Default to reg_struct_return.
1144 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
1146 2006-07-31 Mark Kettenis <kettenis@gnu.org>
1148 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
1149 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
1150 <machine/pcb.h> and "bsd-kvm.h".
1151 (alphabsd_supply_pcb): New function.
1152 (_initialize_alphabsd_nat): Enable libkvm interface.
1153 * Makefile.in (alphabsd-nat.o): Update dependencies.
1154 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1155 (LOADLIBES): New variable.
1156 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1157 (LOADLIBES): New variable.
1159 2006-07-31 Fred Fish <fnf@specifix.com>
1161 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
1162 instead of calling frame_obstack_zalloc directly.
1163 (arm_make_stub_cache): Ditto.
1164 * frame-unwind.h: Ditto.
1165 * frame.c (create_new_frame): Ditto.
1167 2006-07-27 Bob Wilson <bob.wilson@acm.org>
1169 * MAINTAINERS (Write After Approval): Add myself.
1171 2006-07-27 Bob Wilson <bob.wilson@acm.org>
1173 * main.c (captured_main): Print a newline after calling
1174 print_gdb_version instead of waiting until after the symbol file
1175 has been read. Adjust error_pre_print, quit_pre_print, and
1176 warning_pre_print values.
1178 2006-07-27 Roger Sayle <roger@eyesopen.com>
1179 Daniel Jacobowitz <dan@codesourcery.com>
1181 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
1183 2006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1185 * target.h (target_read_stralloc): New prototype.
1186 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
1187 Take new PADDING argument.
1188 (target_read_alloc): Use it.
1189 (target_read_stralloc): New function.
1191 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1193 * remote.c (remote_protocol_features): Correct qPart to qXfer.
1195 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
1197 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
1198 calls to C++ operator*.
1200 2006-07-24 Roger Sayle <roger@eyesopen.com>
1201 Daniel Jacobowitz <dan@codesourcery.com>
1203 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
1204 (gdb_int64_bytes): Likewise.
1205 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
1206 as first argument to extract_unsigned_integer to silence compiler
1209 2006-07-24 Frederic Riss <frederic.riss@st.com>
1211 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
1213 (dwarf2_locate_sections): Initialize
1214 dwarf2_per_objfile->has_section_at_zero.
1215 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
1216 instead of HAS_RELOC test.
1217 (read_partial_die): Ditto.
1219 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1221 * corefile.c (reopen_exec_file): Only check for an open exec file.
1222 Use exec_file_attach.
1223 * exec.c (exec_open): Make static.
1224 (exec_file_command): Don't use target_preopen. Query directly about
1226 * gdbcore.h (exec_open): Remove prototype.
1228 2006-07-24 Frederic Riss <frederic.riss@st.com>
1230 * regcache.c (struct regcache): Make register_valid_p a signed char
1233 2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 Daniel Jacobowitz <dan@codesourcery.com>
1236 * linux-thread-db.c (thread_db_wait): Remove libthread_db
1239 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
1241 * NEWS: Mention Windows cross debugging support.
1243 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
1245 * linux-nat.c (linux_nat_add_target): Remove extern.
1246 * linux-nat.h (thread_db_init): New prototype.
1248 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1250 * configure.tgt: Build gdbserver for Cygwin and mingw32.
1252 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
1254 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
1255 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
1256 * config/i386/tm-cygwin.h: Delete file.
1258 2006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1260 * infrun.c (handle_inferior_event): Typo.
1262 2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
1264 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
1265 (source_script): New function.
1266 (source_verbose_cleanup): New function.
1267 (source_command): Move old contents to source_script.
1268 Make function static. Parse -v option and call source_script.
1269 (init_cli_cmds): Update source command help.
1270 Add 'set trace-commands' command.
1271 * cli/cli-script.c (command_next_depth): New static variable.
1272 (suppress_next_print_command_trace): New static variable.
1273 (reset_command_nest_depth): New function.
1274 (print_command_trace): New function.
1275 (execute_control_command): Split the continue_control and break_control
1276 cases, add calls to print_command_trace and count the nest depth.
1277 (while_command): Set suppress_next_print_command_trace.
1278 (if_command): Likewise.
1279 * top.c (execute_command): Call print_command_trace.
1280 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
1281 (source_command): Change to source_script.
1282 * main.c (captued_main): Use source_script instead of source_command.
1283 * top.h (source_command): Change to source_script.
1284 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
1285 * cli/cli-script.h (print_command_trace): Export.
1286 (reset_command_nest_depth): Likewise.
1288 2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
1290 * eval.c (evaluate_struct_tuple): Skip static fields.
1292 2006-07-19 Mark Kettenis <kettenis@gnu.org>
1294 * alphaobsd-tdep.c: Include "obsd-tdep.h".
1295 (alphaobsd_init_abi): Set skip_solib_resolver.
1296 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
1297 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1299 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
1300 from ELF flags for binaries produced by the GNU toolchain.
1302 2006-07-18 Nathan Sidwell <nathan@codesourcery.com>
1304 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
1305 input buffer before reading memory.
1306 (remote_fileio_func_stat): Likewise.
1308 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1310 * blockframe.c (find_pc_partial_function): Use the minimal symbol
1311 size to control the cache entry, if available.
1312 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
1313 symbols with zero and non-zero sizes differently.
1315 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1317 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
1318 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
1319 (thread_db_fetch_registers, thread_db_store_registers)
1320 (thread_db_thread_alive, thread_db_state_str): Delete.
1321 (thread_db_load): Don't look up regset functions.
1322 (thread_db_pid_to_str): Simplify.
1323 (thread_db_extra_thread_info): New.
1324 (init_thread_db_ops): Do not set to_fetch_registers,
1325 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
1326 * Makefile.in: Remove linux-thread-db.o rule.
1328 2006-07-18 Mark Kettenis <kettenis@gnu.org>
1330 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
1331 (armobsd_sigframe_init): New function.
1332 (armobsd_sigframe): New variable.
1333 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
1334 * Makefile.in (armobsd-tdep.o): Update dependencies.
1336 2006-07-18 Denis PILAT <denis.pilat@st.com>
1338 * monitor.c: Remove unused prototypes.
1340 2006-07-18 Vladimir Prus <vladimir@codesourcery.com>
1342 * target.c (tcomplain): Mark with ATTR_NORETURN.
1344 * defs.h (print_transfer_performance): Improve comments.
1346 2006-07-17 Mark Kettenis <kettenis@gnu.org>
1348 * printcmd.c: Coding style fixes: add missing spaces in comments
1349 and wrapping long lines.
1350 (delete_display, enable_display_command, disable_display_command)
1351 (printf_command, display_info, undisplay_command, free_display)
1352 (display_command, x_command, address_info, set_command)
1353 (inspect_command, call_command, print_command, print_command_1)
1354 (validate_format, print_formatted, decode_format, sym_format):
1356 (x_command): Make static.
1357 (printf_command): Convert error into internal consistency check.
1358 (address_info): Avoid assignment within function call.
1359 (printf_command): Avoid redundant cast.
1360 * tracepoint.c (x_command): Remove extern prototype.
1362 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
1363 * Makefile.in (armobsd-tdep.o): Update dependencies.
1364 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
1366 2006-07-16 Mark Kettenis <kettenis@gnu.org>
1368 * armobsd-tdep.c: New file.
1369 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
1370 (armobsd-tdep.o): New dependency.
1371 * config/arm/obsd.mt: New file.
1372 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
1374 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
1375 * gdbarch.h, gdbarch.c: Re-generate.
1377 * arm-tdep.c (arm_saved_pc_after_call): Delete.
1378 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
1380 2006-07-16 Alfred M. Szmidt <ams@gnu.org>
1382 * gnu-nat.c: Undefine _process_user_ before including
1383 <hurd/process_request.h>.
1384 (gnu_resume): Supply missing argument to error().
1385 (gnu_read_inferior): Add extra parenthesis around arithmetic
1386 expression to silence warnings from GCC.
1387 (gnu_write_inferior): Likewise.
1388 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
1390 2006-07-16 Mark Kettenis <kettenis@gnu.org>
1392 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
1393 svr4_ilp_fetch_link_map_offsets.
1395 2006-07-15 Mark Kettenis <kettenis@gnu.org>
1397 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
1398 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1399 (DEPRECATED_TM_FILE): Remove.
1400 * Makefile.in (armnbsd-tdep.o): Update dependencies.
1402 2006-07-14 Joel Brobecker <brobecker@adacore.com>
1404 * PROBLEMS: Document threads/2137.
1406 2006-07-13 Mark Kettenis <kettenis@gnu.org>
1408 * config/alpha/tm-nbsd.h: Remove file.
1409 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1411 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
1413 * mips-tdep.c (mips_integer_to_address): Simplify be calling
1414 extract_signed_integer directly. Fix comment.
1416 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
1418 * m32c-tdep.c (m32c_banked_register): New function.
1419 (m32c_banked_read): Use m32c_banked_register function to evaluate
1420 real register number.
1421 (m32c_banked_write): Ditto.
1422 (m32c_virtual_frame_pointer): New function.
1423 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
1425 2006-07-13 Nathan Sidwell <nathan@codesourcery.com>
1427 * m68k-tdep.c (m68k_frame_align): New.
1428 (m68k_gdbarch_init): Set frame_align here.
1430 2006-07-13 Denis PILAT <denis.pilat@st.com>
1432 * interps.c (interpreter_completer): Allocate one more item to the
1433 'matches' list and set them all to 0 with a xcalloc.
1435 2006-07-13 Nick Roberts <nickrob@snap.net.nz>
1437 * annotate.c (annotate_frame_begin): Re-instate frame-begin
1438 annotation for level 3 annotations.
1440 2006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
1441 Daniel Jacobowitz <dan@codesourcery.com>
1443 * infcall.c (value_arg_coerce): Use value_cast_pointers for
1444 references. Avoid value_cast to a reference type. Don't silently
1445 convert pointers to references.
1446 * valops.c (value_cast_pointers): New, based on value_cast.
1447 (value_cast): Use it. Reject reference types.
1450 * value.h (value_cast_pointers, value_ref): New prototypes.
1452 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1454 * remote.c (unpack_varlen_hex): Correct type of retval.
1455 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
1457 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1459 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
1460 or missing location list information. Suggested by Jan
1461 Kratochvil <lace@jankratochvil.net>.
1463 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1465 * Makefile.in (arm_linux_tdep_h): New variable.
1466 (arm-linux-nat.o, arm-linux-tdep.o): Update.
1467 * arm-linux-nat.c: Include "arm-linux-tdep.h".
1468 (typeNone, typeSingle, typeDouble, typeExtended)
1469 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
1470 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
1471 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
1472 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
1474 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
1475 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
1476 and collect_nwfpe_register.
1477 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
1478 new regset functions.
1479 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
1480 (arm_apcs_32): New declaration.
1481 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1482 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
1483 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
1484 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
1485 (arm_linux_regset_from_core_section): New.
1486 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
1487 * arm-linux-tdep.h: New file.
1488 * arm-tdep.h (struct regset): Declare.
1489 (struct gdbarch_tdep): Add gregset, fpregset members.
1490 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
1492 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
1494 2006-07-12 Jan Kratochvil <lace@jankratochvil.net>
1496 * infrun.c (handle_inferior_event): Fixed typos in printf.
1498 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1499 Nathan Sidwell <nathan@codesourcery.com>
1501 * remote.c (REMOTE_ALIGN_WRITES): New.
1502 (remote_write_bytes): Align large write packets. Remove unused
1503 payload_start variable.
1505 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1507 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
1508 (remote_supported_packet): Remove #if 0.
1509 (remote_protocol_features): Add qPart:auxv:read.
1510 (remote_unescape_input): New function.
1511 (readchar): Don't mask off the high bit.
1512 (read_frame): Use fputstrn_filtered for packet data.
1513 (getpkt_sane): Return the number of bytes read or -1. Use
1514 fputstrn_unfiltered.
1515 (remote_read_qxfer): New.
1516 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
1517 (_initialize_remote): Update packet registration.
1518 * defs.h (fputstrn_filtered): New prototype.
1519 * utils.c (fputstrn_filtered): New.
1520 * NEWS: Mention qXfer.
1522 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1524 * target.c (target_read): Stop if target_read_partial returns 0
1525 when some bytes have already been read.
1526 (target_write): Likewise for target_write_partial.
1527 (target_read_partial, target_write_partial): Make static.
1528 (target_read_alloc): New.
1529 * target.h: Doc fixes.
1530 (target_read_partial, target_write_partial): Delete prototypes.
1531 (target_read_alloc): New prototype.
1533 * auxv.c (target_auxv_read): Delete.
1534 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
1535 * auxv.h (target_auxv_read): Delete prototype.
1536 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
1537 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
1538 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
1539 * procfs.c (procfs_make_note_section): Likewise.
1540 * remote.c (remote_xfer_partial): Don't loop here.
1541 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
1543 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1545 * arm-linux-tdep.c: Doc fixes.
1546 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
1547 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
1548 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
1550 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
1551 the new signal frame layouts.
1553 2006-07-12 Mike Frysinger <vapier@gentoo.org>:
1554 Daniel Jacobowitz <dan@codesourcery.com>
1556 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
1557 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
1558 * gdbarch.sh: Correct comment.
1560 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
1562 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
1564 2006-07-11 Mark Kettenis <kettenis@gnu.org>
1566 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
1568 2006-07-10 Mark Kettenis <kettenis@gnu.org>
1570 * alphaobsd-tdep.c: New file.
1571 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
1572 handler for GDB_OSABI_OPENBSD_ELF.
1573 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
1574 (alphaobsd-tdep.o): New target.
1575 * config/alpha/obsd.mt: New file.
1576 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
1578 2006-07-10 Richard Henderson <rth@redhat.com>
1580 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
1581 * alpha-tdep.c (alpha_register_byte): Remove.
1582 (alpha_extract_struct_value_address): Remove.
1583 (alpha_return_value): New.
1584 (alpha_return_in_memory_always): New.
1585 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
1586 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
1587 instead of set_gdbarch_deprecated_use_struct_convention,
1588 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1589 or set_gdbarch_deprecated_extract_struct_value_address.
1590 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
1591 alphafbsd_use_struct_convention, remove gcc_p argument.
1592 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
1593 set_gdbarch_deprecated_use_struct_convention.
1595 2006-07-09 Mark Kettenis <kettenis@gnu.org>
1597 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
1599 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
1600 a.out-style core file format here. Make global.
1601 (alphanbsd_regset_from_core_section): Remove.
1602 (alphanbsd_sigtramp_offset): Make static.
1603 (alphanbsd_aout_init_abi): Remove.
1604 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
1605 a.out style core files.
1606 (_initialize_alphanbsd_tdep): Do not register a handler for
1607 GDB_OSABI_NETBSD_AOUT.
1609 * alphabsd-tdep.h: Tweak comments.
1610 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
1611 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
1612 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
1613 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
1614 (alphanbsd_aout_supply_gregset): New functions.
1615 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
1617 (alphanbsd_regset_from_core_section)
1618 (alphanbsd_aout_regset_from_core_section): New functions.
1619 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1620 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
1621 (alphanbsd_init_abi): Set regset_from_core_section.
1622 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
1624 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
1625 Use alphanbsd_aout_init_abi whre appropriate. Don't call
1626 deprecated_add_core_fns.
1627 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
1629 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
1630 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
1632 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
1633 svr4_lp64_fetch_link_map_offsets instead of
1634 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1636 2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
1638 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
1639 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
1640 write_exp_elt_intern): Zero initialize tmp.
1642 2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
1644 * remote.c (remote_xfer_partial): Remove KOD support.
1645 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
1646 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
1647 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
1649 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
1650 * NEWS: Mention KOD.
1651 * kod.h, kod.c, kod-cisco.c: Delete files.
1653 2006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
1655 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
1657 2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
1659 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
1662 2006-06-24 Eli Zaretskii <eliz@gnu.org>
1664 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
1666 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
1668 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
1669 Add special types for sp and pc.
1670 * Makefile.in (arm-tdep.o): Update.
1672 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1674 * remote.c (remote_escape_output): New function.
1675 (remote_write_bytes): Use remote_escape_output.
1677 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1679 * NEWS: Mention qSupported.
1680 * remote.c (struct remote_state): Add explicit_packet_size.
1681 (get_remote_packet_size): Check explicit_packet_size.
1682 (get_memory_packet_size): Likewise.
1683 (PACKET_qSupported): New enum value.
1684 (struct protocol_feature, remote_supported_packet)
1685 (remote_packet_size, remote_protocol_features)
1686 (remote_query_supported): New.
1687 (remote_open_1): Reset explicit_packet_size. Call
1688 remote_query_supported.
1689 (_initialize_remote): Register qSupported.
1691 2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
1693 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
1695 2006-06-20 Joel Brobecker <brobecker@adacore.com>
1697 * GDB 6.5 released from GDB 6.5 branch.
1699 2006-06-19 Michael Snyder <msnyder@redhat.com>
1701 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
1702 decide how many registers it takes to pass a floating point
1703 argument, what matters is the size of a floating point register
1704 (not the size of a general purpose register).
1705 (mips_o32_push_dummy_call): Ditto.
1707 2006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1709 * configure.tgt: Add gdbserver support for m32r-linux.
1711 2006-06-18 Mark Kettenis <kettenis@gnu.org>
1713 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
1715 2006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
1717 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
1718 based on insert_step_resume_breakpoint_at_frame.
1719 (handle_inferior_event): Update comments. Use
1720 insert_step_resume_breakpoint_at_caller.
1721 (insert_step_resume_breakpoint_at_frame): Revise comments.
1723 2006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
1725 * dwarf2read.c (read_unspecified_type): New function.
1726 (read_type_die): Handle DW_TAG_unspecified_type.
1727 (Committed by Julian Brown.)
1729 2006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1731 * symfile.c (load_command): Check for a changed executable before
1734 2006-06-13 Fred Fish <fnf@specifix.com>
1736 * mips-tdep.c (mips_find_long_section): New function.
1737 (mips_gdbarch_init): Use it to set long and pointer sizes.
1739 2006-06-13 Nathan Sidwell <nathan@codesourcery.com>
1741 * remote-file.io.c (remote_fileio_func_system): Treat zero length
1742 string as NULL. Adjust for NULL pointer argument.
1743 * doc/gdb.texinfo (system): Document behaviour with zero length
1746 2006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1748 * remote.c (set_remote_protocol_packet_cmd)
1749 (show_remote_protocol_packet_cmd): New prototypes.
1750 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
1751 (struct packet_config): Make name and title const.
1752 (add_packet_config_cmd): Remove unnecessary arguments.
1753 (_initialize_remote): Update calls.
1755 2006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1757 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
1758 before calling FD_ISSET. Correct check for exceptfds which
1759 previously tested writefds.
1761 2006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1762 Julian Brown <julian@codesourcery.com>
1764 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
1766 2006-06-09 Julian Brown <julian@codesourcery.com>
1768 * MAINTAINERS (Write After Approval): Add myself.
1770 2006-06-08 Michael Snyder <msnyder@redhat.com>
1772 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
1774 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
1776 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
1777 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
1778 conversion. Use M68K_NUM_REGS for number of regs.
1780 * remote-fileio.c (remote_fileio_reset): New.
1781 * remote-fileio.h (remote_fileio_reset): Prototype.
1782 * remote.c (extended_remote_restart, remote_open_1): Call it.
1784 * remote.c (remote_open_1): Do preopen tasks before
1785 irreversably destroying state.
1787 2006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
1789 * remote.c (struct remote_state): New type, only containing
1791 (remote_state): New variable.
1792 (get_remote_state): New function.
1793 (struct remote_arch_state): Renamed from struct remote_state.
1794 Removed buf and buf_size.
1795 (get_remote_arch_state): Renamed from get_remote_state. All
1796 necessary callers updated to call this function.
1797 (init_remote_state): Initialize the architecture-specific state.
1798 Update the target-specific state if necessary.
1799 (get_remote_packet_size): New function. All previous references
1800 changed to use this accessor function.
1801 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
1802 remote_arch_state instead of a remote_state. All callers changed.
1803 (_initialize_remote): Initialize the packet buffer here.
1805 2006-06-06 Nathan Sidwell <nathan@codesourcery.com>
1807 * remote.c (remote_insert_watchpoint): Return -1, rather than
1808 fatal error if packet is disabled.
1809 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
1810 remote_remove_hw_breakpoint): Likewise.
1812 2006-06-02 Nick Roberts <nickrob@snap.net.nz>
1814 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
1816 2006-05-31 Michael Snyder <msnyder@redhat.com>
1818 * mips-tdep.c: Comment tweaks.
1820 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1822 * Makefile.in (top_builddir): Update comments.
1823 (INTL_DIR, INTL_SRC): Delete.
1824 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
1825 * acinclude.m4: Include new gettext macros.
1826 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
1828 * aclocal.m4, configure: Regenerated.
1830 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1832 * Makefile.in (arm-linux-nat.o): Update dependencies.
1833 * arm-linux-nat.c: Include "gdb_proc_service.h".
1834 (PTRACE_GET_THREAD_AREA): Define.
1835 (ps_get_thread_area): New function.
1837 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
1839 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1840 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
1841 DWARF2_FRAME_REG_SAVED_VAL_EXP.
1842 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
1843 val_offset_sf and val_expression.
1844 (dwarf2_frame_prev_register): Handle the new reg rules.
1845 (dwarf2_frame_this_id): Use pc instead of function entry point.
1847 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
1849 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
1850 (dwarf2_frame_sniffer): Use it.
1851 (decode_frame_entry_1): Set it according to augmentation "S".
1853 2006-05-27 Joel Brobecker <brobecker@adacore.com>
1855 From Peter Schauer <peterschauer@gmx.net>
1856 * m2-typeprint.c (m2_record_fields): Move variable declarations
1857 to the begining of the block.
1859 2006-05-23 Mark Mitchell <mark@codesourcery.com>
1861 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
1862 include additional registers.
1864 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
1865 Iscramb2, Qscramb2, Qchannel2.
1866 (mt_register_name): Likewise.
1867 (mt_copro_register_type): Describe ZI2 and ZQ2.
1869 * mt-tdep.c (mt_gdb_regnums): Define
1870 MT_COPRO_PSEUDOREG_MAC_REGNUM.
1871 (mt_register_name): Use it.
1872 (mt_copro_register_type): Likewise.
1873 (mt_register_type): Likewise.
1874 (mt_pseudo_register_read): Likewise. Read the MAC register, not
1875 the coprocessor register.
1876 (mt_pseudo_register_write): Likewise.
1878 2006-05-21 Christopher Faylor <cgf@timesys.com>
1880 * win32-nat.c (cygwin_exceptions): New variable.
1881 (handle_exception): Treat a cygwin exception like a normal exception if
1882 cygwin_exceptions is true.
1883 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
1885 2006-05-20 Gaius Mulley <gaius@glam.ac.uk>
1887 * NEWS: (Improved Modula-2 language support): New section.
1889 2006-05-19 Joel Brobecker <brobecker@adacore.com>
1891 * configure: Regenerate using proper version of autoconf.
1893 2006-05-19 Fred Fish <fnf@specifix.com>
1895 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
1896 * dwarfread.c: Fix spelling of 'unexpected'.
1897 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
1898 * stack.c: Fix spelling of 'RETURN_VALUE'.
1900 2006-05-18 Paul Gilliam <pgilliam@us.ibm.com
1902 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
1904 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1906 * dwarf2-frame.c: Include "value.h".
1907 (read_reg): Use unpack_long and register_type.
1908 * Makefile.in (dwarf2-frame.o): Update.
1910 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1912 * remote-rdp.c: Deleted.
1913 * NEWS: Mention removal of remote-rdp.c.
1915 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
1916 (remote-rdp.o): Delete.
1917 * README: Remove description of remote-rdp.c.
1918 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
1919 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
1921 2006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1923 * ser-e7kpc.c: Include <time.h> if it is available.
1925 2006-05-16 Joel Brobecker <brobecker@adacore.com>
1927 * version.in (version.in): Bump version number to 6.5.50 now
1928 that the gdb-6.5 branch has been created.
1929 * NEWS: Create a new section for changes that are included
1930 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
1933 2006-05-16 Jim Blandy <jimb@codesourcery.com>
1935 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
1936 the Global Maintainers' invitation to be an authorized committer
1937 for the Modula-2 support.
1939 2006-05-15 Mark Kettenis <kettenis@gnu.org>
1941 * ppcobsd-nat.c: Include "gdb_assert.h".
1942 [PT_GETFPREGS] (getfpregs_supplies): New function.
1943 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
1944 versions that have PT_GETFPREGS.
1945 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
1946 ppcobsd_fpreg_offsets.
1947 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
1949 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
1951 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
1952 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1954 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1956 * configure.ac: Use GCC_HEADER_STDINT.
1957 * acinclude.m4: Include stdint.m4.
1958 * Makefile.in (gdb_stdint_h): Define.
1959 (distclean): Remove gdb_stdint.h.
1960 (Makefile, stamp-h): Update rules to generate only the correct
1962 (gdb_stdint.h, stamp-int): New rules.
1963 * config.in, configure: Regenerated.
1965 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1967 * valprint.c: Include "exceptions.h".
1968 (val_print): If something goes wrong while printing, supply an
1971 2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
1973 * source.c (get_current_source_symtab_and_line)
1974 (set_current_source_symtab_and_line): Use { 0 }.
1975 * cli/cli-cmds.c (list_command): Likewise.
1977 2006-05-14 Nick Roberts <nickrob@snap.net.nz>
1979 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
1980 (gdbmi): Use new variable name gdb-pc-address.
1981 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
1982 Check that a match has been found.
1984 2006-05-13 Gaius Mulley <gaius@glam.ac.uk>
1986 * m2-lang.h: Added function extern prototypes for
1987 m2_is_long_set and get_long_set_bounds.
1988 * m2-typeprint.c: Complete replacement.
1989 (m2_print_type): Walk the Modula-2 type tree.
1990 (m2_type_name): New function.
1991 (m2_range): New function.
1992 (m2_typedef): New function.
1993 (m2_array): New function.
1994 (m2_pointer): New function.
1995 (m2_ref): New function.
1996 (m2_unknown): New function.
1997 (m2_union): New function.
1998 (m2_procedure): New function.
1999 (m2_print_bounds): New function.
2000 (m2_short_set): New function.
2001 (m2_is_long_set): New function.
2002 (m2_get_discrete_bounds): New function.
2003 (m2_is_long_set_of_type): New function.
2004 (m2_long_set): New function.
2005 (m2_record_fields): New function.
2006 (m2_enum): New function.
2007 * dwarf2read.c: Modified.
2008 (read_set_type): New function.
2009 (process_die): Call read_set_type.
2010 (read_base_type): Modifed.
2011 (set_cu_language): Added Modula-2 case clause.
2012 * m2-valprint.c: Complete replacement.
2013 (print_function_pointer_address): New function.
2014 (get_long_set_bounds): New function.
2015 (m2_print_long_set): New function.
2016 (print_unpacked_pointer): New function.
2017 (print_variable_at_address): New function.
2018 (m2_val_print): Replaced.
2019 * gdb/MAINTAINERS (Write After Approval): Added
2020 Gaius Mulley <gaius@glam.ac.uk>
2022 2006-05-12 Mark Kettenis <kettenis@gnu.org>
2024 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
2025 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2026 (ppcnbsd_fill_fpreg): Remove prototypes.
2027 (struct regset): Add forward declaration.
2028 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
2029 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
2030 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
2031 "value.h", target.h and nbsd-tdep.h". Reorder includes.
2032 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
2033 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
2034 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
2036 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
2037 (ppcnbsd_fill_fpreg): Remove functions.
2038 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
2039 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
2040 (ppcnbsd_reg_offsets): New variable.
2041 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
2042 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
2043 introduced in NetBSD 2.0.
2044 (ppcnbsd_sigtramp): Provide complete signal trampoline.
2045 (ppcnbsd2_sigtramp): New variable.
2046 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
2047 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
2048 Add ppcnbs2_sigtramp unwinder.
2049 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
2050 Initialize ppcnbsd_reg_offsets.
2051 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
2052 (getregs_supplies): Use regnum instead of regno.
2053 (getfpregs_supplies): Likewise.
2054 (ppcnbsd_fetch_inferior_registers): Likewise. Call
2055 ppc_supply_gregset and ppc_suppply_fpregset instead of
2056 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
2057 (ppcnbsd_store_inferior_registers): Likewise. Call
2058 ppc_collect_gregset and ppc_collect_fpregset instead of
2059 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
2060 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
2061 (_initialize_ppcnbsd_nat): Add some whitespace.
2062 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
2063 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
2065 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
2067 2006-05-11 Alfred M. Szmidt <ams@gnu.org>
2069 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
2071 2006-05-11 Fred Fish <fnf@specifix.com>
2073 * symtab.c (skip_prologue_using_sal): Handle single line functions
2074 like "foo(){}", which may optimize down to a single return inst.
2076 2006-05-10 Steve Ellcey <sje@cup.hp.com>
2078 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
2081 2006-05-09 Andreas Schwab <schwab@suse.de>
2083 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
2084 (execute_cfa_program): Add parameter eh_frame_p. Call
2085 dwarf2_frame_eh_frame_regnum when true.
2086 (dwarf2_frame_cache): Pass eh_frame_p from fde to
2087 execute_cfa_program.
2088 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
2089 processing .eh_frame. Copy eh_frame_p to the new fde.
2090 (struct dwarf2_frame_ops): Add eh_frame_regnum.
2091 (dwarf2_frame_set_eh_frame_regnum): Define.
2092 (dwarf2_frame_eh_frame_regnum): Define.
2094 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
2095 (dwarf2_frame_eh_frame_regnum): Declare.
2097 2006-05-06 David S. Miller <davem@sunset.davemloft.net>
2099 * linux-nat.c (linux_nat_do_thread_registers): Check for
2100 NULL collect_regset method.
2102 2006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2104 * s390-tdep.c (s390_collect_regset): New function.
2105 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
2107 2006-05-06 Nick Roberts <nickrob@snap.net.nz>
2109 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
2112 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2114 * linux-nat.c (exit_lwp): Fix NULL pointer access.
2115 (linux_nat_handle_extended): New parameter STOPPING.
2116 (wait_lwp): Call it with STOPPING equals 1.
2117 (linux_nat_wait): Call it with STOPPING equals 0.
2119 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2121 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
2122 of 'uninteresting' signals when single-stepping.
2124 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2126 * MAINTAINERS: Move NEWS to the documentation entry.
2128 2006-05-05 David S. Miller <davem@sunset.davemloft.net>
2130 * linux-nat.c (linux_nat_do_thread_registers): Use the
2131 regset_from_core_section infrastructure if the target
2133 * Makefile.in: Update dependencies.
2134 * linux-thread-db.c (thread_db_store_registers): Use
2135 regcache_raw_collect.
2137 2006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
2139 * ppc-linux-nat.c: Clean up types for ptrace.
2140 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
2141 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
2143 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2145 * remote.c (remote_disconnect): Add TARGET argument.
2146 * target.c (debug_to_disconnect): Delete.
2147 (update_current_target): Do not inherit to_disconnect.
2148 (target_disconnect): Search for a target to implement to_disconnect.
2149 (setup_target_debug): Do not reference to_disconnect.
2150 * target.h (struct target_ops): Add target argument to
2153 2006-05-06 Fred Fish <fnf@specifix.com>
2155 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
2156 structs or unions independent of ABI register size.
2158 2006-05-06 Fred Fish <fnf@specifix.com>
2160 * mips-tdep.c (mips_o64_return_value): Replace stub that always
2161 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2163 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
2165 * mi/mi-main.c (captured_mi_execute_command): Check the return
2166 value of -interpreter-exec.
2168 2006-05-03 Vladimir Prus <ghost@cs.msu.su>
2170 * varobj.c (c_value_of_variable): Ignore top-level references.
2171 (Committed by Jim Blandy.)
2173 2006-04-30 Mark Kettenis <kettenis@gnu.org>
2175 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
2176 insert a single-step breakpoint an error instead of a warning.
2178 2006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
2180 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
2181 arguments from void * to gdb_byte *.
2183 2006-04-26 Michael Snyder <msnyder@redhat.com>
2185 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
2186 command to "delete fork" (no hyphen), compatible with other
2188 (info_forks_command): Accept a fork ID argument, for info
2189 on a single fork. Report if no matching forks.
2191 2006-04-25 Mark Kettenis <kettenis@gnu.org>
2193 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
2194 no breakpoints are inserted.
2196 From Masaki MURANAKA <monaka@monami-software.com>:
2197 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
2198 type of last argument to `gdb_byte *'
2200 2006-04-25 Jim Blandy <jimb@codesourcery.com>
2202 Add support for 'target remote |' on MinGW.
2203 * ser-mingw.c (struct pipe_state): New structure.
2204 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
2205 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
2206 (pipe_windows_write, pipe_wait_handle): New functions.
2207 (_initialize_ser_windows): Register a "pipe" interface based on
2210 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
2212 * ser-mingw.c: Include <conio.h>.
2213 (struct ser_console_state, struct net_windows_state): Add exit_select,
2214 have_stopped, thread.
2215 (pipe_select_thread, console_select_thread)
2216 (net_windows_select_thread): Don't create a local state copy or
2217 close stop_select. Exit on exit_select instead of stop_select. Set
2219 (console_select_thread): Don't report control keypresses as pending
2221 (pipe_select_thread): Allow stop_select to interrupt sleeping.
2222 (set_console_wait_handle): Create exit_select and have_stopped.
2223 Save the thread handle. Check _kbhit before starting a thread.
2224 (ser_console_done_wait_handle): New.
2225 (ser_console_close): Close new handles. Wait for the thread to
2227 (new_windows_select_thread): Assert that an event occurred.
2228 (net_windows_wait_handle): Check for pending input before starting
2230 (net_windows_done_wait_handle): New.
2231 (net_windows_open): Create exit_select and have_stopped.
2232 Save the thread handle.
2233 (net_windows_close): Close new handles. Wait for the thread to
2235 (_intiialize_ser_windows): Register done_wait_handle methods.
2237 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
2238 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
2239 [USE_WIN32API] (serial_done_wait_handle): New prototype.
2240 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
2242 2006-04-23 Andreas Schwab <schwab@suse.de>
2244 * rs6000-tdep.c: Include "reggroups.h" only once.
2245 * Makefile.in (rs6000-tdep.o): Update dependencies.
2247 2006-04-21 Frederic Riss <frederic.riss@st.com>
2249 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
2250 compilation directory as last argument.
2251 Always pass comp_dir as second argument to start_subfile and prepend
2252 dirname to the filename when necessary.
2253 Remove now superfluous search for pre-existing subfile.
2254 (dwarf_decode_lines): Pass the compilation directory to
2255 dwarf2_start_subfile.
2257 2006-04-20 Michael Snyder <msnyder@redhat.com>
2259 * 2006-03-22 Jim Blandy <jimb@redhat.com>
2260 Add support for the Renesas M32C and M16C.
2262 * configure.tgt (m32c-*-*): New entry.
2263 * config/m32c/m32c.mt: New file.
2264 * m32c-tdep.c: New file.
2265 * Makefile.in (elf_m32c_h): New variable.
2266 (m32c-tdep.o): New rule.
2267 * NEWS: Mention new target.
2268 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
2270 2006-04-20 Michael Snyder <msnyder@redhat.com>
2272 * remote.c: Fix spelling error in comment.
2274 2006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
2276 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
2277 Correct type of VALUEP. Reported by Jean-Rene Peulve
2278 <jr.peulve@wanadoo.fr>.
2280 2006-04-19 Masaki Muranaka <monaka@monami-software.com>
2282 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
2283 netdb.h, netinet/in.h.
2284 (m32r_upload_command); Add calls WSAStartup().
2285 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
2288 2006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
2290 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
2292 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
2293 (delete_breakpoint): Update calls to changed methods.
2294 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2295 (single_step_breakpoints, insert_single_step_breakpoint)
2296 (remove_single_step_breakpoints): New.
2297 * breakpoint.h (struct bp_target_info): New.
2298 (struct bp_location): Replace shadow_contents with
2299 target_info and overlay_target_info.
2300 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
2301 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
2303 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
2304 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
2306 * mem-break.c (default_memory_insert_breakpoint): Update. Set
2307 placed_address, placed_size, and shadow_len.
2308 (default_memory_remove_breakpoint): Update. Don't use
2310 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
2311 * target.c (update_current_target): Update prototypes for changed
2313 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
2314 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
2316 * target.h: Forward declare struct bp_target_info.
2317 (struct target_ops): Use a bp_target_info argument for
2318 to_insert_breakpoint, to_remove_breakpoint,
2319 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
2320 (target_insert_breakpoint, target_remove_breakpoint)
2321 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
2322 (memory_insert_breakpoint, memory_remove_breakpoint)
2323 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
2325 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
2326 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
2327 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
2329 * gdbarch.c, gdbarch.h: Regenerated.
2331 * alpha-tdep.c (alpha_software_single_step): Use
2332 insert_single_step_breakpoint and remove_single_step_breakpoints.
2333 Remove unused statics.
2334 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
2335 * cris-tdep.c (cris_software_single_step): Likewise.
2336 * mips-tdep.c (mips_software_single_step): Likewise.
2337 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2338 * sparc-tdep.c (sparc_software_single_step): Likewise.
2339 * wince.c (struct thread_info_struct): Remove step_prev.
2340 (undoSStep): Use remove_single_step_breakpoints.
2341 (wince_software_single_step): Use insert_single_step_breakpoint.
2343 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
2344 * exec.c (ignore): Likewise.
2345 * sol-thread.c (ignore): Likewise.
2347 * procfs.c (dbx_link_shadow_contents): Delete.
2348 (dbx_link_bpt): New.
2349 (procfs_mourn_inferior): Remove it if necessary.
2350 (remove_dbx_link_breakpoint): Use it.
2351 (insert_dbx_link_bpt_in_file): Set it.
2352 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
2353 * rs6000-nat.c (exec_one_dummy_insn): Use
2354 deprecated_insert_raw_breakpoint and
2355 deprecated_remove_raw_breakpoint.
2356 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
2357 (base_breakpoint): New.
2358 (disable_break): Use it.
2359 (enable_break): Set it.
2361 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
2363 * ia64-tdep.c (ia64_memory_insert_breakpoint)
2364 (ia64_memory_remove_breakpoint): Likewise.
2365 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2366 (m32r_memory_remove_breakpoint): Likewise.
2367 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2368 Likewise. Remove unnecessary prototypes. Use placed_address
2369 and placed_size. Removed useless read from memory.
2370 * nto-procfs.c (procfs_insert_breakpoint)
2371 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
2372 (procfs_remove_hw_breakpoint): Update.
2373 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2374 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
2375 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2376 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
2377 * remote-e7000.c (e7000_insert_breakpoint)
2378 (e7000_remove_breakpoint): Likewise.
2379 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2380 (m32r_remove_breakpoint): Likewise.
2381 * remote-mips.c (mips_insert_breakpoint)
2382 (mips_remove_breakpoint): Likewise.
2383 * remote-rdp.c (remote_rdp_insert_breakpoint)
2384 (remote_rdp_remove_breakpoint): Likewise.
2385 (rdp_step): Use deprecated_insert_raw_breakpoint and
2386 deprecated_remove_raw_breakpoint.
2387 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
2389 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
2391 (init_gdbsim_ops): Use memory_insert_breakpoint and
2392 memory_remove_breakpoint.
2393 * remote-st.c (st2000_insert_breakpoint)
2394 (st2000_remove_breakpoint): Update. Remove unused
2396 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2397 Update. Use placed_address and placed_size.
2398 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
2400 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
2402 * remote.c (extended_remote_restart): Pass the correct length
2405 2006-04-11 Jim Blandy <jimb@codesourcery.com>
2407 * serial.c (serial_open): Check for special cases at the front of
2408 the "device" name before scanning for the ':' that would indicate
2409 an IP-based connection.
2411 2006-04-10 Christopher Faylor <cgf@timesys.com>
2413 * win32-nat.c (open_symbol_file_object): New function.
2414 (in_dynsym_resolve_code): Ditto.
2415 (init_win32_ops): Fill in fields which ought not to be NULL.
2417 2006-04-10 Christopher Faylor <cgf@timesys.com>
2419 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
2420 with saved context if __COPY_CONTEXT_SIZE is not defined.
2421 (handle_output_debug_string): Ditto.
2423 2006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
2425 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
2427 2006-04-09 David S. Miller <davem@sunset.davemloft.net>
2429 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
2431 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
2432 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
2433 that the latter can override.
2434 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2436 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2438 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
2439 (s390_store): Call pv_area_store to track stack slots.
2440 (s390_load): Call pv_area_fetch to track stack slots.
2441 (s390_check_for_saved): New function.
2442 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
2444 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2446 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
2447 * s390-tdep.c: Include "prologue-value.h".
2448 (struct prologue_value): Remove.
2449 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2450 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2451 pv_logical_and, pv_is_identical, pv_is_register): Remove.
2452 (compute_x_addr): Remove, replace by ...
2453 (s390_addr): ... this new function.
2454 (struct s390_prologue_data): Use pv_t instead of prologue_value.
2455 (s390_store, s390_load): Likewise.
2456 (s390_prologue_frame_unwind_cache): Likewise.
2457 (s390_analyze_prologue): Likewise. Also, simplify and combine
2458 several conditional statements.
2460 2006-04-08 Jim Blandy <jimb@codesourcery.com>
2462 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
2465 2006-04-08 David S. Miller <davem@sunset.davemloft.net>
2467 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
2468 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
2469 (sparc32_linux_core_gregset,
2470 sparc32_linux_supply_core_gregset,
2471 sparc32_linux_collect_core_gregset,
2472 sparc32_linux_supply_core_fpregset,
2473 sparc32_linux_collect_core_fpregset): New.
2474 (sparc32_linux_init_abi): Register them with generic sparc
2475 core regset infrastructure.
2476 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
2477 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
2478 (sparc64_linux_core_gregset,
2479 sparc64_linux_supply_core_gregset,
2480 sparc64_linux_collect_core_gregset,
2481 sparc64_linux_supply_core_fpregset,
2482 sparc64_linux_collect_core_fpregset): New.
2483 (sparc64_linux_init_abi): Register them with generic sparc
2484 core regset infrastructure.
2485 * Makefile.in: Update dependencies.
2487 2006-04-07 David S. Miller <davem@sunset.davemloft.net>
2489 * linux-nat.c (linux_nat_thread_alive): Handle targets that
2490 do not implement PTRACE_PEEKUSER.
2492 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
2494 * remote.c (remote_wait): Convert warning to error before
2495 parsing corrupt packets.
2497 2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
2499 * cli/cli-script.c (struct user_args): Add command field.
2500 (arg_cleanup): Free command string.
2501 (setup_user_args): Copy the command line before relying on it.
2503 2006-04-06 Joel Brobecker <brobecker@adacore.com>
2505 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
2506 of the "delete" command.
2508 2006-04-06 Randolph Chung <tausq@debian.org>
2510 * MAINTAINERS (Patch champions): Add myself.
2512 2006-04-05 Andreas Schwab <schwab@suse.de>
2514 * Makefile.in: Update dependencies.
2516 2006-04-05 David S. Miller <davem@sunset.davemloft.net>
2518 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
2519 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
2520 * Makefile.in (sparc-tdep.o): Update dependencies.
2521 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
2522 window out of the correct stack frame.
2523 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
2524 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
2526 (dwarf2_frame_default_init_reg): Likewise.
2527 (dwarf2_frame_set_init_reg): Update init_reg arg.
2528 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
2530 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
2531 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
2532 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
2533 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2534 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2535 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2536 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
2537 (sparc32_frame_cache): Call it.
2538 (sparc32_dwarf2_struct_return_p): New function.
2539 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
2540 returns a structure and thus we have to indicate the return PC and
2541 NPC are 4 bytes later than usual.
2542 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
2543 dwarf2 frame sniffer.
2544 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
2546 2006-04-04 David S. Miller <davem@davemloft.net>
2548 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
2549 * config/linux64.h (NATDEPFILES): Likewise
2550 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2551 fill_fpregset): New.
2552 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
2553 fill_fpregset): New.
2554 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
2557 2006-04-04 Andreas Schwab <schwab@suse.de>
2559 * Makefile.in (elf_common_h): Define.
2561 2006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
2563 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
2564 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
2566 2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
2568 * value.h (struct internalvar): Add field 'endian'.
2569 * value.c (lookup_internalvar): Initialise endian.
2570 (value_of_internalvar): Flip the endian of built-in types if required.
2571 (set_internalvar): Set the endian.
2572 (show_convenience): Access the value through value_of_internalvar().
2574 2006-03-30 Vladimir Prus <ghost@cs.msu.su>
2576 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
2577 instead of hardcoded integer literals.
2579 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2581 * cli/cli-script.c (insert_args): Handle NULL user_args.
2583 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2585 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
2586 the function at zero if we have no symbols.
2588 2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
2590 * i386-stub.c (getpacket): Fix array overflow.
2591 * m32r-stub.c (getpacket): Likewise.
2592 * m68k-stub.c (getpacket): Likewise.
2593 * sh-stub.c (getpacket): Likewise.
2594 * sparc-stub.c (getpacket): Likewise.
2596 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2598 * frame.h (set_current_sal_from_frame): New prototype.
2599 * stack.c (set_current_sal_from_frame): Make global.
2600 * infrun.c (normal_stop): Call set_current_sal_from_frame.
2602 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2604 * linux-thread-db.c: Include "linux-nat.h".
2605 (check_for_thread_db): New function, split out from
2606 thread_db_new_objfile. Remove dead check for active
2607 thread_db on inapplicable targets.
2608 (thread_db_new_objfile): Call check_for_thread_db.
2609 * Makefile.in (linux-thread-db.o): Update.
2610 * linux-nat.c (child_post_attach): Call check_for_thread_db.
2611 (linux_child_post_startup_inferior): Likewise.
2612 (lin_lwp_attach_lwp): Call target_post_attach instead of
2614 * linux-nat.h (check_for_thread_db): New prototype.
2616 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2618 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
2619 (init_remote_state): Initialize the new fields.
2620 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
2621 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
2622 (remote_get_threadinfo, parse_threadlist_response)
2623 (remote_get_threadlist, remote_current_thread, remote_threads_info)
2624 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2625 (remote_check_symbols, remote_open_1, remote_detach)
2626 (remove_vcont_probe, remote_vcont_resume, remote_resume)
2627 (remote_wait, remote_async_wait, fetch_register_using_p)
2628 (remote_fetch_registers, store_register_using_P)
2629 (remote_store_registers, check_binary_download, remote_write_bytes)
2630 (remote_read_bytes, remote_insert_breakpoint)
2631 (remote_remove_breakpoint, remote_insert_watchpoint)
2632 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2633 (remote_remove_hw_breakpoint, compare_sections_command)
2634 (remote_xfer_partial, remote_rcmd, packet_command)
2635 (remote_get_thread_local_address): Use the global incoming buffer
2636 instead of alloca or xmalloc. Limit outgoing packets to
2637 rs->remote_packet_size and incoming packets to rs->buf_size.
2638 Update calls to getpkt and remote_send.
2639 (remote_send): Take arguments by reference.
2640 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
2641 (skip_frame): New function.
2642 (read_frame): Take arguments by reference. Expand the packet
2643 buffer instead of issuing an error.
2644 (getpkt, getpkt_sane): Take arguments by reference.
2645 * remote.h (getpkt): Update prototype and doc.
2646 * tracepoint.c (remote_get_noisy_reply): Take arguments by
2648 (target_buf): Change from array to pointer.
2649 (target_buf_size): New variable.
2650 (remote_set_transparent_ranges): Update call to getpkt.
2651 (trace_start_command, trace_stop_command, trace_status_command):
2652 Update calls to remote_get_noisy_reply.
2653 (finish_tfind_command): Take arguments by reference.
2654 (trace_find_command, trace_find_pc_command)
2655 (trace_find_tracepoint_command, trace_find_line_command):
2656 (trace_find_range_command, trace_find_outside_command): Update
2657 calls to finish_tfind_command.
2658 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
2660 2005-03-30 Randolph Chung <tausq@debian.org>
2662 * hppa-linux-tdep.c: Include regset.h.
2663 (GR_REGNUM, TR_REGNUM, greg_map): New.
2664 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
2665 (hppa_linux_regset, hppa_linux_fpregset): New.
2666 (hppa_linux_regset_from_core_section): New.
2667 (hppa_linux_init_abi): Set regset_from_core_section.
2668 (_initialize_hppa_linux_tdep): Register osabi handler for
2670 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
2671 * config/pa/linux.mh: Stop using core-regset.o
2673 2006-03-30 Randolph Chung <tausq@debian.org>
2675 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
2676 (hppa_frame_cache): Use new function to find unwind entry.
2677 (hppa_frame_this_id): Likewise.
2678 (hppa_frame_unwind_sniffer): Likewise.
2680 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2682 * NEWS: Mention the removal of NLM.
2684 2006-03-29 Steve Ellcey <sje@cup.hp.com>
2686 * Makefile.in (nlm): Remove target.
2687 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
2688 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
2689 * configure: Regenerate.
2690 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
2691 * nlm: Remove directory.
2693 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2695 * Makefile.in (utils.o): Update.
2696 * top.c (in_user_command): New.
2697 (command_line_input): Use input_from_terminal_p.
2698 (input_from_terminal_p): Don't check caution. Handle
2699 stdin == NULL for Insight.
2700 * top.h (in_user_command, caution): New declarations.
2701 * utils.c: Include "top.h".
2702 (query, defaulted_query): Check caution here. Move the call
2703 to input_from_terminal_p higher.
2704 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
2705 the depth. Update in_user_command if necessary.
2706 (execute_user_command): Don't clobber old_chain. Set
2707 in_user_command. Let do_restore_user_call_depth handle
2709 (read_command_lines): Check whether to prompt before calling
2711 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
2712 input_from_terminal_p check.
2714 2006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
2716 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
2717 (s390_remove_watchpoint): Likewise.
2719 2006-03-28 Jim Blandy <jimb@codesourcery.com>
2721 * prologue-value.c, prologue-value.h: New files.
2722 * Makefile.in (prologue_value_h): New variable.
2723 (HFILES_NO_SRCDIR): List prologue-value.h.
2724 (SFILES): List prologue-value.c.
2725 (COMMON_OBS): List prologue-value.o.
2726 (prologue-value.o): New rule.
2728 2006-03-27 Michael Snyder <msnyder@redhat.com>
2730 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
2731 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
2732 xstormy16_frame_prev_register): Change void* to gdb_byte*.
2733 (xstormy16_push_dummy_call): Add block-local char* val,
2734 to avoid type conflict with outer scope variable.
2736 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2738 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2740 2006-03-27 Nick Roberts <nickrob@snap.net.nz>
2743 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
2744 offsets for languages like Fortran.
2746 2006-03-26 Randolph Chung <tausq@debian.org>
2748 * config/pa/hppa64.mt: Use HPUX version of the tm file.
2750 2006-03-25 Nick Roberts <nickrob@snap.net.nz>
2752 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
2753 Try to deal with continuation line.
2754 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
2756 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
2757 Future proof against new fields being added to MI output.
2758 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
2759 (gdbmi-frame-handler): Update to new variable name
2760 gdb-get-buffer-create.
2761 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
2762 frames which except the innermost (where execution has stopped).
2764 2006-03-24 Randolph Chung <tausq@debian.org>
2766 * solib-som.c (link_map_start): Don't error out if there is
2769 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2771 * linux-nat.c (linux_ops_saved): New.
2772 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
2773 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
2774 (linux_nat_fetch_registers, linux_nat_store_registers)
2775 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
2776 (init_lwp_list): Don't set threaded.
2777 (add_lwp): Don't modify threaded.
2778 (delete_lwp): Don't mention non-threaded mode.
2779 (linux_nat_switch_fork): New.
2780 (linux_nat_attach): Update inferior_ptid.
2781 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
2783 (linux_nat_kill): Handle pending forks and saved forks.
2784 (linux_nat_mourn_inferior): Handle saved forks.
2785 (linux_nat_pid_to_str): Don't use the LWP form when there is
2787 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
2788 (linux_nat_add_target): New.
2789 (_initialize_linux_nat): Don't initialize the linux native target
2791 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
2793 * linux-fork.c: Include "linux-nat.h".
2794 (add_fork): Update initial PID.
2795 (fork_load_infrun_state): Call linux_nat_switch_fork.
2796 * Makefile.in (linux-fork.o): Update.
2798 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2799 linux_nat_add_target instead of add_target.
2800 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
2801 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
2802 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
2803 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
2804 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
2805 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
2806 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
2807 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
2808 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
2809 * s390-nat.c (_initialize_s390_nat): Likewise.
2810 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
2811 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
2813 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2815 * linux-fork.c: Include "gdb_assert.h".
2816 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
2817 Update the register cache and selected frame also.
2818 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
2819 to single fork mode if necessary.
2820 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
2821 * Makefile.in (linux_fork_h): New.
2822 (linux-fork.o, linux-nat.o): Update.
2824 2006-03-23 Andreas Schwab <schwab@suse.de>
2826 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
2828 2006-03-18 Jim Blandy <jimb@codesourcery.com>
2830 * symtab.h (enum address_class): Doc fix.
2832 2006-03-16 Michael Snyder <msnyder@redhat.com>
2834 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
2835 * target.c (push_target): Fix typo in comment.
2836 * remote.c (remote_watch_data_address): Fix typo in comment.
2837 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
2839 2006-03-15 Kevin Buettner <kevinb@redhat.com>
2841 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
2843 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
2844 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
2845 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
2846 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
2847 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
2848 (frv_elf_fpregset_t): Define types.
2849 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
2850 (frv_linux_regset_from_core_section: New functions.
2851 (frv_linux_gregset, frv_linux_fpregset): New static globals.
2852 (frv_linux_init_abi): Register the `regset_from_core_section' method.
2853 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2854 * solib-frv.c (frv_current_sos): Relocate main executable after
2856 (frv_clear_solib): Clean up space associated with
2857 `main_executable_lm_info'.
2858 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
2860 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2862 * Makefile.in (mips_linux_tdep_h): New.
2863 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
2864 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
2866 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
2867 (mips64_linux_regsets_fetch_registers)
2868 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
2869 (mips64_linux_store_registers): New.
2870 (_initialize_mips_linux_nat): Override to_fetch_registers and
2872 * mips-linux-tdep.h: New file.
2873 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
2874 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
2875 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
2876 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
2877 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
2878 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
2879 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
2880 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
2881 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
2882 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
2883 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
2884 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
2885 (supply_32bit_reg): Use gdb_byte.
2886 (supply_64bit_reg): New.
2887 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
2888 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
2889 (fill_gregset, supply_fpregset): Update for renamed types.
2890 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
2891 (mips64_fill_gregset): Make global. Handle 32-bit register
2893 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
2894 FP regsets properly.
2896 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2898 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
2899 (mips_fill_gregset): Renamed from fill_gregset.
2900 (mips_supply_fpregset): Renamed from supply_fpregset.
2901 (mips_fill_fpregset): Renamed from fill_fpregset.
2902 (fetch_core_registers): Update calls.
2903 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
2906 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2908 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2910 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2912 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
2913 Correct arithmetic for 64-bit CORE_ADDR.
2915 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2917 * mips-linux-tdep.c: Include "floatformat.h".
2918 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
2919 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
2921 (print_gp_register_row): Don't print spaces before ignored
2922 or floating point registers.
2923 * Makefile.in (mips-linux-tdep.o): Update.
2925 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2927 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
2929 (non_heuristic_proc_desc): Likewise.
2931 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2933 * mips-linux-nat.c: Include "gdb_proc_service.h".
2934 (PTRACE_GET_THREAD_AREA): Define.
2935 (ps_get_thread_area): New.
2936 * Makefile.in (mips-linux-nat.o): Update.
2938 2006-03-13 Jim Blandy <jimb@codesourcery.com>
2940 * MAINTAINERS: Use my work address.
2942 2006-03-09 Michael Snyder <msnyder@redhat.com>
2944 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
2945 instead of getting tricky for the multi-fork case.
2946 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
2947 for each fork, and then use init_fork_list to delete them.
2949 2006-03-08 Alexandre Oliva <aoliva@redhat.com>
2951 * solib-svr4.c (svr4_current_sos): Move up initialization of
2952 l_addr, such that it clearly covers all cases.
2954 2006-03-08 Andreas Schwab <schwab@suse.de>
2956 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
2957 libunwind_frame_prev_register to use a gdb_byte buffer and
2958 extract_unsigned_integer.
2959 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
2961 * libunwind-frame.c (libunwind_frame_prev_register): Change type
2962 of last argument to `gdb_byte *'
2963 * libunwind-frame.h: Adjust declaration.
2965 2006-03-08 Paul Brook <paul@codesourcery.com>
2967 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
2968 (arm_frame_align): New function.
2969 (arm_gdbarch_init): Use it.
2971 2006-03-03 Khem Raj <khem@mvista.com>
2973 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
2974 Committed by Andrew Cagney.
2976 2006-03-02 Corinna Vinschen <vinschen@redhat.com>
2978 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
2979 address to MDR register.
2981 2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2983 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
2986 2006-03-01 Randolph Chung <tausq@debian.org>
2988 * somread.c (som_symfile_read): Update comment and remove unneeded
2989 use of a deprecated variable.
2991 2006-03-01 Randolph Chung <tausq@debian.org>
2993 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
2994 runtime specification.
2995 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
2996 (unwind_command): Likewise.
2998 2006-03-01 Randolph Chung <tausq@debian.org>
3000 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
3001 Pseudo_SP_Set in unwind record.
3003 2006-03-01 Randolph Chung <tausq@debian.org>
3005 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
3006 TDEP->is_elf to determine if we are working with a SOM binary.
3007 (null_symtab_and_line): Remove unused variable.
3008 * config/pa/hppa64.mt: Use tm-hppa.h.
3009 * config/pa/tm-hppa64.h: Remove file.
3011 2006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
3013 * f-typeprint.c (f_type_print_base): Delete the redundant space.
3015 2006-02-28 Kevin Buettner <kevinb@redhat.com>
3017 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
3018 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
3020 (am33_linux_sigframe_cache_init): New function.
3021 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
3023 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
3024 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
3025 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
3026 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
3027 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
3028 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
3029 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
3030 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
3031 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
3033 (am33_linux_init_osabi): Register signal frame unwinders.
3035 2006-02-28 Kevin Buettner <kevinb@redhat.com>
3037 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
3038 out of pattern match by saving relevant state. Fix stack size
3041 2006-02-28 Alexandre Oliva <aoliva@redhat.com>
3043 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
3045 * solib-svr4.c (struct lm_info): Add l_addr field.
3046 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
3047 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
3048 (LM_DYNAMIC_FROM_LINK_MAP): New.
3049 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
3050 (svr4_current_sos): Initialize l_addr. Adjust.
3051 (svr4_relocate_section_addresses): Adjust.
3052 (svr4_ilp32_fetch_link_map_offsets): Define new members.
3053 (svr4_lp64_fetch_link_map_offsets): Likewise.
3054 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3055 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
3056 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3057 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
3059 2006-02-26 David S. Miller <davem@sunset.davemloft.net>
3061 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
3062 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3064 2006-02-27 Alan Modra <amodra@bigpond.net.au>
3066 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
3067 (ppc_linux_remove_watchpoint): Likewise, and args.
3069 2006-02-26 Mark Kettenis <kettenis@gnu.org>
3071 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
3074 2006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
3076 * gdb/defs.h: unconditionally include <fcntl.h>, and
3077 ensure that O_BINARY is defined.
3078 * gdb/solib.c(solib_open): ensure solib files are opened in
3080 * gdb/corelow.c: Remove O_BINARY macro definition.
3081 * gdb/exec.c: Remove O_BINARY macro definition
3082 * gdb/remote-rdp.c: Remove O_BINARY macro definition
3083 * gdb/source.c: Remove O_BINARY macro definition
3084 * gdb/symfile.c: Remove O_BINARY macro definition
3086 2006-02-24 Randolph Chung <tausq@debian.org>
3088 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
3090 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
3093 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
3095 * f-exp.y: Symbol '%' is not used as the modulus operator in
3096 Fortran. Delete this from Fortran expression.
3097 It is now used by Fortran 90 and later to access the member
3098 of derived type. Add this into Fortran expression.
3099 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
3100 Print each elements in the derived type.
3101 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
3102 level into the function definition to do indented printing. And
3103 call fprintfi_filtered instead to do indented printing.
3104 (f_type_print_base): Replace fprintf_filtered with the indented
3105 version (fprintfi_filtered).
3106 (f_type_print_base): Call indented print_equivalent_f77_float_type.
3107 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
3108 the definition of the derived type.
3110 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3112 * gdb_curses.h: Provide a fallback prototype for tgetnum.
3114 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3116 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
3118 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
3119 (DOUBLEST_SCAN_FORMAT): New.
3120 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
3121 (processReal): Use DOUBLEST_SCAN_FORMAT.
3122 * c-exp.y (parse_number): Likewise.
3123 * jv-exp.y (parse_number): Likewise.
3124 * objc-exp.y (parse_number): Likewise.
3125 * p-exp.y (parse_number): Likewise.
3127 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3129 * event-top.c (async_do_nothing, async_disconnect)
3130 (async_stop_sig, async_float_handler): Remove duplicated
3132 (handle_sighup): Guard prototype with SIGHUP.
3133 (async_do_nothing): Guard function and prototype with
3135 (async_disconnect): Guard prototype with SIGHUP.
3136 (async_stop_sig): Guard prototype with STOP_SIGNAL.
3138 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3140 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
3142 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3144 * win32-termcap.c (tputs): Return 0.
3146 2006-02-21 Mark Kettenis <kettenis@gnu.org>
3148 * configure.ac: Introduce ---enable-werror, which adds -Werror to
3149 the compiler command line. Enabled by default. Disable with
3151 * configure regenerate.
3153 2006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
3155 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
3158 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3160 * defs.h (directory_switch): Add prototype.
3161 * main.c (captured_main): Use directory_switch() instead of
3162 directory_command() to add directories from the -d switch.
3163 * source.c (directory_switch): New function.
3164 (add_path): Use buildargv() to parse spaces in filenames properly.
3165 Strip multiple trailing '/' rather than just one.
3167 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3169 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
3170 hand decoding the command line, to allow use of quotes and spaces.
3171 (_initialize_symfile): Reorganize the help message for add-symbol-file
3172 such that 'help files' shows a better message.
3174 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
3176 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
3177 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
3178 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
3179 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
3181 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3183 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
3186 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3188 * remote.c: Add an enumeration for configurable remote
3190 (remote_protocol_packets, set_remote_protocol_packet_cmd)
3191 (show_remote_protocol_packet_cmd): New.
3192 (remote_protocol_vcont)
3193 (set_remote_protocol_vcont_packet_cmd)
3194 (show_remote_protocol_vcont_packet_cmd)
3195 (remote_protocol_qSymbol)
3196 (set_remote_protocol_qSymbol_packet_cmd)
3197 (show_remote_protocol_qSymbol_packet_cmd)
3198 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
3199 (show_remote_protocol_P_packet_cmd)
3201 (set_remote_protocol_Z_software_bp_packet_cmd)
3202 (show_remote_protocol_Z_software_bp_packet_cmd)
3203 (set_remote_protocol_Z_hardware_bp_packet_cmd)
3204 (show_remote_protocol_Z_hardware_bp_packet_cmd)
3205 (set_remote_protocol_Z_write_wp_packet_cmd)
3206 (show_remote_protocol_Z_write_wp_packet_cmd)
3207 (set_remote_protocol_Z_read_wp_packet_cmd)
3208 (show_remote_protocol_Z_read_wp_packet_cmd)
3209 (set_remote_protocol_Z_access_wp_packet_cmd)
3210 (show_remote_protocol_Z_access_wp_packet_cmd)
3211 (remote_protocol_binary_download)
3212 (set_remote_protocol_binary_download_cmd)
3213 (show_remote_protocol_binary_download_cmd)
3214 (remote_protocol_qPart_auxv)
3215 (set_remote_protocol_qPart_auxv_packet_cmd)
3216 (show_remote_protocol_qPart_auxv_packet_cmd)
3217 (remote_protocol_qGetTLSAddr)
3218 (set_remote_protocol_qGetTLSAddr_packet_cmd)
3219 (show_remote_protocol_qGetTLSAddr_packet_cmd)
3221 (set_remote_protocol_p_packet_cmd)
3222 (show_remote_protocol_p_packet_cmd): Delete.
3224 (init_all_packet_configs): Simplify.
3225 (set_remote_protocol_Z_packet_cmd)
3226 (show_remote_protocol_Z_packet_cmd)
3227 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
3228 (remote_fetch_registers, remote_prepare_to_store)
3229 (remote_store_registers, check_binary_download)
3230 (remote_write_bytes, remote_insert_breakpoint)
3231 (remote_remove_breakpoint, remote_insert_watchpoint)
3232 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3233 (remote_remove_hw_breakpoint, remote_xfer_partial)
3234 (remote_get_thread_local_address): Update for packet array.
3235 (_initialize_remote): Likewise; also update for common
3238 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3240 * symfile.c (place_section): Correct retry logic.
3242 2006-02-19 Christopher Faylor <cgf@timesys.com>
3244 * win32_nat.c (cygwin_load_start): New variable.
3245 (cygwin_load_end): Ditto.
3246 (have_saved_context): Ditto.
3247 (saved_context): Ditto.
3248 (max_dll_name_len): Delete obsolete variable.
3249 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
3250 if we are in a cygwin signal rather than a windows signal.
3251 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
3252 if dll being loaded is the cygwin DLL.
3253 (register_loaded_dll): Remove calculation of max_dll_name_len.
3254 (win32_clear_solib): Ditto.
3255 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
3257 (handle_output_debug_string): Detect and store signal information sent
3259 (handle_exception): Silently pass on errors in the cygwin DLL. Return
3260 -1 on first pass exception.
3261 (win32_continue): Remove spurious clearing of continue_status.
3262 (get_win32_debug_event): Deal differently first chance exception.
3264 2006-02-19 Randolph Chung <tausq@debian.org>
3266 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
3269 2006-02-16 Fred Fish <fnf@specifix.com>
3271 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
3272 a non lval value zero, of the appropriate type, when avoiding
3274 * typeprint.c (ptype_eval): Remove function and declaration.
3275 (ptype_command): Simplify to just a call to whatis_exp.
3277 2006-02-15 Paul Brook <paul@codesourcery.com>
3279 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
3280 Load insn opcodes as unsigned values.
3282 2006-02-14 Alexandre Oliva <aoliva@redhat.com>
3284 * doublest.h (DOUBLEST): Use long double only if we can scan
3285 it in. Undefine HAVE_LONG_DOUBLE otherwise.
3286 (DOUBLEST_FORMAT): New.
3287 * c-exp.y (parse_number): Use it.
3288 * jv-exp.y (parse_number): Likewise.
3289 * objc-exp.y (parse_number): Likewise.
3290 * p-exp.y (parse_number): Likewise.
3291 * varobj.c (free_variable): Silence type-punning warnings.
3292 * tui/tui-data.h (struct tui_list): Change type of list member.
3293 * tui/tui-data.c: Remove no-longer-needed type casts.
3294 (source_windows): Silence type-punning warnings.
3295 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
3297 2006-02-13 Mark Kettenis <kettenis@gnu.org>
3299 Fix PR breakpoints/2080.
3300 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
3301 (i386_analyze_stack_align): New function.
3302 (i386_analyze_prologue): Use i386_analyze_stack_align.
3303 (i386_frame_cache): Deal with stack realignment.
3305 2006-02-14 Nick Roberts <nickrob@snap.net.nz>
3307 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
3308 (gdb-break-list-regexp): Match "what" field if present.
3309 (gdb-stack-list-frames-regexp): Match "from" field if present.
3310 (gdb-stack-list-frames-handler): Present output like "info
3311 breakpoints" so regexps can be shared with gdb-ui
3313 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3315 * NEWS: Mention native Windows support.
3316 * Makefile.in (gdb_select_h, ser_tcp_h): New.
3317 (ALLDEPFILES): Add ser-mingw.c.
3318 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
3319 (ser-tcp.o, ser-unix.o): Update.
3320 (ser-mingw.o): New rule.
3321 * configure: Regenerated.
3322 * configure.ac: Add ser-mingw.o for mingw32.
3323 * ser-mingw.c: New file.
3324 * event-loop.c: Include "gdb_select.h".
3325 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
3326 * ser-base.c: Include "gdb_select.h".
3327 (ser_base_wait_for): Use gdb_select.
3328 * serial.c (serial_for_fd): New function.
3329 (serial_fdopen): Try "terminal" before "hardwire". Initialize
3330 the allocated struct serial.
3331 (serial_wait_handle): New function.
3332 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
3333 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
3334 * gdb_select.h: New file.
3335 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
3336 (net_close, net_read_prim, net_write_prim): Make global.
3337 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
3338 Document why we can not use gdb_select.
3339 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
3340 * ser-tcp.h: New file.
3341 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
3342 (handle_sigio): Use gdb_select.
3343 (initialize_stdin_serial): New function.
3344 * terminal.h (initialize_stdin_serial): New prototype.
3345 * top.c (gdb_init): Call initialize_stdin_serial.
3346 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
3347 event-loop.c. Add exception condition support. Use serial_for_fd
3348 and serial_wait_handle. Fix timeout handling.
3349 * posix-hdep.c: Include "gdb_select.h".
3350 (gdb_select): New function.
3351 * remote-st.c (connect_command): Use gdb_select.
3352 * ser-unix.c: Include "gdb_select.h".
3353 (hardwire_send_break, wait_for): Use gdb_select.
3355 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
3357 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
3358 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
3359 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
3360 to posix-hdep.o by default.
3361 * configure: Regenerated.
3362 * configure.host: Document gdb_host_obs. Add an entry for
3363 i[34567]86-*-mingw32*.
3364 * mingw-hdep.c, posix-hdep.c: New files.
3365 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
3367 2006-02-10 Joel Brobecker <brobecker@adacore.com>
3369 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
3370 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
3371 * rs6000-tdep.h: New file.
3372 * rs6000-tdep.c: Include "rs6000-tdep.h".
3373 (rs6000_gdbarch_init): Remove enabling of software single step.
3374 Will be done in the AIX-specific initialization routine.
3375 * rs6000-aix-tdep.c: New file.
3376 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
3377 * Makefile.in (rs6000_tdep_h): New variable.
3378 (rs6000-tdep.o): Update dependencies.
3379 (rs6000-aix-tdep.o): New rule.
3381 2006-02-10 Joel Brobecker <brobecker@adacore.com>
3383 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
3384 instead of add_setshow_zinteger_cmd to defined the aix-thread
3387 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
3389 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
3391 2006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
3393 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
3394 30 bits. Add load_all_dies flag.
3395 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
3396 Load DW_TAG_member by default. Remove internal_error call.
3397 (find_partial_die): Reload the compilation unit if we can not find
3398 a DIE in the cache. Call internal_error here if we still can not
3401 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
3403 * breakpoint.c (print_one_breakpoint): Add break to case
3404 bp_catch_vfork in switch statement.
3406 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3408 * config/i386/nm-i386sol2.h: Update copyright year.
3409 * config/mips/nm-irix5.h: Ditto.
3410 * config/sparc/nm-sol2.h: Ditto.
3411 * s390-nat.c: Ditto.
3412 * ppc-linux-nat.c: Ditto.
3414 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
3416 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
3417 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3418 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3419 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3420 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3421 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
3422 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3423 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
3424 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
3425 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
3426 add to_region_ok_for_hw_watchpoint.
3427 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
3428 (s390_region_ok_for_hw_watchpoint): New.
3429 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
3430 and add to_region_ok_for_hw_watchpoint.
3431 * target.c (default_region_size_ok_for_hw_watchpoint,
3432 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
3433 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
3434 inheritance and default_region_size_ok_for_hw_watchpoint.
3435 (default_region_ok_for_hw_watchpoint): If len is less than or equal
3436 the length of void pointer, return ok.
3437 (default_region_size_ok_for_hw_watchpoint): Delete.
3438 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
3439 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
3440 * target.h (struct target_ops): Delete
3441 to_region_size_ok_for_hw_watchpoint.
3442 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
3444 2006-02-08 Ben Elliston <bje@au1.ibm.com>
3445 Wu Zhou <woodzltc@cn.ibm.com>
3447 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
3448 PTRACE_GETSIGINFO): Define.
3449 (last_stopped_data_address): New.
3450 (ppc_linux_check_watch_resources): New function.
3451 (ppc_linux_region_ok_for_hw_watchpoint): New function.
3452 (ppc_linux_insert_watchpoint): New function.
3453 (ppc_linux_remove_watchpoint): New function.
3454 (ppc_linux_stopped_data_address): New function.
3455 (ppc_linux_stopped_by_watchpoint): New function.
3456 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
3457 related target vectors.
3458 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
3459 to have nonsteppable watchpoint.
3460 * target.c (default_region_ok_for_hw_watchpoint,
3461 debug_to_region_ok_for_hw_watchpoint): New prototypes.
3462 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
3463 and set default to_region_ok_for_hw_watchpoint.
3464 (default_region_ok_for_hw_watchpoint): New function.
3465 (debug_to_region_ok_for_hw_watchpoint): New function.
3466 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
3468 * target.h (struct target_ops): Add a new target vector
3469 to_region_ok_for_hw_watchpoint.
3470 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
3471 defined anyplace else.
3473 2005-02-07 Joel Brobecker <brobecker@adacore.com>
3474 * symfile.c (add_symbol_file_command): Abort if the user forgot
3475 to provide the address when the file has been loaded.
3477 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
3479 * MAINTAINERS: Update file based on maintainers survey. Add
3480 a note to Past Maintainers. Move unresponsive or inactive
3481 maintainers to Authorized Committers or Past Maintainers as
3482 appropriate. Correct Jim Kingdon's email address. Remove
3483 vacant areas of responsibility.
3485 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
3487 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
3490 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3492 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
3493 * exceptions.c (exception_none, exceptions_state_mc_init)
3494 (throw_vfatal): Use GDB_NO_ERROR.
3496 2006-02-02 Mark Kettenis <kettenis@gnu.org>
3498 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
3499 r_map_size members. Add r_version_offset, r_version_size and
3500 r_ldsomap_offset members.
3501 * solib-svr4.c (solib_svr4_r_map): Renamed from
3502 fetch_link_map_member. Simplify using read_memory_typed_address.
3503 (solib_svr4_r_ldsomap): New function.
3504 (open_symbol_file_object): Use solib_svr_r_map.
3505 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
3506 linker by using solib_svr4_r_ldsomap.
3507 (svr4_ilp32_fetch_link_map_offsets)
3508 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
3510 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
3511 changes to `struct link_map_offsets'.
3512 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
3513 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
3514 `struct link_map_offsets'.
3516 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3518 * linux-nat.c (struct saved_ptids, threads_to_delete)
3519 (record_dead_thread, prune_lwps, find_thread_from_lwp)
3521 (linux_nat_resume): Call prune_lwps.
3522 (wait_lwp, linux_nat_wait): Call exit_lwp.
3524 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3526 * printcmd.c (printf_command): Make format string checking
3527 stricter. Add separate cases for long_arg, ptr_arg, and
3529 * utils.c (xstrvprintf): Improve the error message issued
3530 for a bad format string.
3531 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
3533 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
3534 $(NO_WERROR_CFLAGS).
3535 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
3538 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3540 * Makefile.in (remote.o): Update.
3541 * remote.c (show_packet_config_cmd): Shorten messages.
3542 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
3543 (show_remote_cmd): Iterate.
3544 (_initialize_remote): Remove remote_set_cmdlist,
3545 remote_show_cmdlist.
3547 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3549 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
3550 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
3552 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
3553 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
3554 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
3556 * gdbtypes.c: Include "hashtab.h".
3557 (build_gdbtypes): Remove extra prototype.
3558 (struct type_pair, type_pair_hash, type_pair_eq)
3559 (create_copied_types_hash, copy_type_recursive): New.
3560 * gdbtypes.h: Include "hashtab.h".
3562 (create_copied_types_hash, copy_type_recursive): New prototypes.
3563 * objfiles.c (free_objfile): Call preserve_values.
3564 * symfile.c (reread_symbols): Likewise.
3565 (clear_symtab_users): Remove calls to clear_value_history and
3567 * value.c (clear_value_history, clear_internalvars): Removed.
3568 (preserve_one_value, preserve_values): New functions.
3569 * value.h (clear_value_history, clear_internalvars): Removed.
3570 (preserve_values): New prototype.
3572 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
3575 2006-01-29 Mark Kettenis <kettenis@gnu.org>
3577 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
3580 2006-01-27 Joel Brobecker <brobecker@adacore.com>
3582 * MAINTAINERS: Use a consistent email address for brobecker.
3584 2006-01-27 Joel Brobecker <brobecker@adacore.com>
3586 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
3587 in the previous change.
3589 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3592 * fork-child.c (fork_inferior): Don't call
3593 solib_create_inferior_hook.
3594 * infcmd.c (post_create_inferior): Call solib_add,
3595 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
3596 (attach_command): Don't call solib_add or
3597 re_enable_breakpoints_in_shlibs. Call post_create_inferior
3599 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
3600 or observer_notify_inferior_created. Call post_create_inferior
3602 * corelow.c: Don't include "observer.h".
3603 (solib_add_stub): Deleted.
3604 (core_open): Don't call observer_notify_inferior_created or
3605 solib_add_stub. Call post_create_inferior instead.
3606 * inf-ptrace.c: Don't include "observer.h".
3607 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
3608 * inf-ttrace.c: Don't include "observer.h".
3609 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
3610 * inferior.h (solib_create_inferior_hook): Remove redundant
3612 * inftarg.c: Don't include "observer.h".
3613 (child_attach): Don't call observer_notify_inferior_created.
3614 * Makefile.in: Update dependencies.
3616 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3618 * infcmd.c: Include "observer.h".
3619 (post_create_inferior): New function.
3620 (run_command_1): Call it. Also call proceed.
3621 * inferior.h (post_create_inferior): New prototype.
3622 * Makefile.in (infcmd.o): Update.
3624 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
3625 * go32-nat.c (go32_create_inferior): Likewise.
3626 * nto-procfs.c (procfs_create_inferior): Likewise.
3627 * procfs.c (procfs_create_inferior): Likewise.
3628 * remote-sim.c (gdbsim_create_inferior): Likewise.
3629 * remote.c (extended_remote_create_inferior)
3630 (extended_remote_async_create_inferior): Likewise.
3631 * win32-nat.c (win32_create_inferior): Likewise.
3632 * wince.c (child_create_inferior): Likewise.
3634 * monitor.c (monitor_create_inferior): Don't call proceed.
3635 Set the PC manually.
3636 * ocd.c (ocd_create_inferior): Likewise.
3637 * remote-e7000.c (e7000_create_inferior): Likewise.
3638 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3639 * remote-mips.c (mips_create_inferior): Likewise.
3640 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
3641 * remote-sds.c (sds_create_inferior): Likewise.
3642 * remote-st.c (st2000_create_inferior): Likewise.
3644 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
3645 proceed or observer_notify_inferior_created.
3646 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
3647 * inftarg.c (child_create_inferior): Likewise.
3649 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3651 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
3652 after mourning the inferior.
3654 2006-01-24 Jim Blandy <jimb@redhat.com>
3656 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
3658 2006-01-24 Fred Fish <fnf@specifix.com>
3660 * parse.c (source.h): Include.
3661 (parse_exp_in_context): Use static source context if no
3662 other context found.
3664 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3666 * sh-tdep.c: Include reggroups.h.
3667 (sh_register_reggroup_p): New function.
3668 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
3669 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
3671 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3673 * cli/cli-cmds.c: Include fcntl.h.
3674 (source_command): Use the GDB search path to find script files.
3676 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3679 Suggested by Till Straumann <strauman@slac.stanford.edu>:
3680 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
3681 instructions. Handle PIC bcl.
3683 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3685 * config/djgpp/README: Typo fix.
3686 * config/djgpp/fnchange.lst: Update.
3688 2006-01-22 Mark Kettenis <kettenis@gnu.org>
3690 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
3691 (sparc_address_from_register): New prototype.
3692 (sparcnbsd_step_trap): New prototype.
3693 * sparc-tdep.c (sparc_address_from_register): Make globally
3695 (sparc_analyze_control_transfer): Change prototype to accept
3696 `struct gdbarch *' as first argument. Allow for optional hnadling
3697 for trap instructions.
3698 (sparc_step_trap): New function.
3699 (sparc_software_single_step): Adjust call to
3700 sparc_analyze_control_trabsfer.
3701 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
3702 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
3703 (sparc32nbsd_init_abi): Set TDEP->step_trap.
3704 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
3705 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
3707 * sparc-tdep.c (sparc32_return_value): Convert to use
3708 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
3709 RETURN_VALUE_STRUCT_CONVENTION.
3710 (sparc32_extract_struct_value_address): Remove.
3712 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3714 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
3715 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
3717 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3719 * solib.c (info_sharedlibrary_command): Avoid internal_error.
3721 2006-01-21 Mark Kettenis <kettenis@gnu.org>
3723 * i386-tdep.c (i386_mxcsr_type): New variable.
3724 (i386_init_types): Initialize i386_mxcsr_type.
3725 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
3726 * i386-tdep.c (i386_mxcsr_type): New extern.
3727 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
3730 2006-01-20 Mark Mitchell <mark@codesourcery.com>
3732 * Makefile.in (remote-rdi.o): Remove.
3733 (rdi-share/libangsd.a): Likewise.
3734 * README: Don't mention remote-rdi.c.
3735 * NEWS: Mention removal of rdi-share.
3736 * configure.ac: Don't configure rdi-share subdirectory.
3737 * remote-rdi.c: Remove.
3738 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
3739 (TDEPLIBS): Remove rdi-share/libangsd.a.
3740 * rdi-share/Makefile.am: Remove.
3741 * rdi-share/Makefile.in: Likewise.
3742 * rdi-share/README.CYGNUS: Likewise.
3743 * rdi-share/aclocal.m4: Likewise.
3744 * rdi-share/adp.h: Likewise.
3745 * rdi-share/adperr.h: Likewise.
3746 * rdi-share/angel.h: Likewise.
3747 * rdi-share/angel_bytesex.c: Likewise.
3748 * rdi-share/angel_bytesex.h: Likewise.
3749 * rdi-share/angel_endian.h: Likewise.
3750 * rdi-share/ardi.c: Likewise.
3751 * rdi-share/ardi.h: Likewise.
3752 * rdi-share/armdbg.h: Likewise.
3753 * rdi-share/buffers.h: Likewise.
3754 * rdi-share/chandefs.h: Likewise.
3755 * rdi-share/channels.h: Likewise.
3756 * rdi-share/chanpriv.h: Likewise.
3757 * rdi-share/configure: Likewise.
3758 * rdi-share/configure.in: Likewise.
3759 * rdi-share/crc.c: Likewise.
3760 * rdi-share/crc.h: Likewise.
3761 * rdi-share/dbg_conf.h: Likewise.
3762 * rdi-share/dbg_cp.h: Likewise.
3763 * rdi-share/dbg_hif.h: Likewise.
3764 * rdi-share/dbg_rdi.h: Likewise.
3765 * rdi-share/devclnt.h: Likewise.
3766 * rdi-share/devices.h: Likewise.
3767 * rdi-share/devsw.c: Likewise.
3768 * rdi-share/devsw.h: Likewise.
3769 * rdi-share/drivers.c: Likewise.
3770 * rdi-share/drivers.h: Likewise.
3771 * rdi-share/etherdrv.c: Likewise.
3772 * rdi-share/ethernet.h: Likewise.
3773 * rdi-share/host.h: Likewise.
3774 * rdi-share/hostchan.c: Likewise.
3775 * rdi-share/hostchan.h: Likewise.
3776 * rdi-share/hsys.c: Likewise.
3777 * rdi-share/hsys.h: Likewise.
3778 * rdi-share/logging.c: Likewise.
3779 * rdi-share/logging.h: Likewise.
3780 * rdi-share/msgbuild.c: Likewise.
3781 * rdi-share/msgbuild.h: Likewise.
3782 * rdi-share/params.c: Likewise.
3783 * rdi-share/params.h: Likewise.
3784 * rdi-share/rx.c: Likewise.
3785 * rdi-share/rxtx.h: Likewise.
3786 * rdi-share/serdrv.c: Likewise.
3787 * rdi-share/serpardr.c: Likewise.
3788 * rdi-share/sys.h: Likewise.
3789 * rdi-share/tx.c: Likewise.
3790 * rdi-share/unixcomm.c: Likewise.
3791 * rdi-share/unixcomm.h: Likewise.
3793 2006-01-21 Mark Kettenis <kettenis@gnu.org>
3795 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
3796 Change type of last argument to `gdb_byte *'.
3798 2006-01-20 Mark Kettenis <kettenis@gnu.org>
3800 * hppa-tdep.h (hppa_in_solib_call_trampoline)
3801 (hppa_skip_trampoline_code): New prototypes.
3802 * hppa-tdep.c (struct insn_pattern): New.
3803 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
3804 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
3805 here from hppa-linux-tdep.c
3806 (HPPA_MAX_INSN_PATTERN_LEN): New define.
3807 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
3808 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
3809 functions based on functions removed from hppa-linux-tdep.c.
3810 * hppa-linux-tdep.c (hppa_long_branch_stub)
3811 (hppa_long_branch_pic_stub, hppa_import_stub)
3812 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
3813 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
3814 (hppa_linux_in_solib_call_trampoline)
3815 (hppa_linux_skip_trampoline_code): Removed.
3816 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
3817 hppa_in_solib_call_trampoline and skip_trampoline_code to
3818 hppa_skip_trampoline_code.
3819 * hppabsd-tdep.c (hppabsd_init_abi): Set
3820 TDEP->in_solib_call_trampoline and skip_trampoline_code.
3822 2006-01-20 Jim Blandy <jimb@redhat.com>
3824 * MAINTAINERS: Change my E-mail address.
3826 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
3827 * configure: Regenerated.
3829 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
3831 * MAINTAINERS: Overhaul.
3833 2006-01-18 Mark Kettenis <kettenis@gnu.org>
3835 Based on a previous patch form Michal Ludvig:
3836 * amd64-tdep.c (amd64_sse_type): Remove.
3837 (amd64_register_info): Use i386_eflags_type and i386_sse_type
3839 (AMD64_NUM_REGS): Use ARRAY_SIZE.
3840 (amd64_register_type): Remove code to build amd_sse_type.
3841 * i386-tdep.c (i386_eflag_type): New variable.
3842 (i386_mmx_type, i386_sse_type): Make global.
3843 (i386_init_types): New function.
3844 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
3845 (i386_register_type): Return i386_eflag_type, i386_sse_type and
3846 i386_mmx_type when appropriate.
3847 (_initialize_i386_tdep): Call i386_init_types.
3848 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
3851 Based on a previous patch form Michal Ludvig:
3852 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
3854 (is_integral_type, rank_one_type, recursive_dump_type): Add
3855 support for TYPE_CODE_FLAGS.
3856 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
3857 (append_flags_type_field, init_flags_type): New prototypes.
3858 * ada-valprint.c (ada_val_print_1): Add support for
3860 * c-valprint.c (c_val_print): Likewise.
3861 * f-valprint.c (f_val_print): Likewise.
3862 * p-valprint.c (pascal_val_print): Likewise.
3863 * valprint.c (val_print_type_code_flags): New function.
3864 * valprint.h (val_print_type_code_flags): New prototype.
3865 * value.c (unpack_long, value_from_longest): Add support for
3868 2006-01-17 Christopher Faylor <cgf@timesys.com>
3870 * MAINTAINERS: Very belatedly remove myself from from the list of
3871 people caught up in the paper trail.
3873 2006-01-17 Jim Blandy <jimb@redhat.com>
3875 * symtab.h (struct general_symbol_info): Use gdb_byte for
3877 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
3878 a floating-point constant's value.
3879 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
3881 * findvar.c (read_var_value): Eliminate needless temporary.
3883 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
3884 to match prior change to dwarf2_read_section's type.
3886 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
3888 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
3889 * rs6000-tdep.c (insn_changes_sp_or_jumps)
3890 (rs6000_in_function_epilogue_p): New functions.
3891 (rs6000_gdbarch_init): Set in_function_epilogue_p.
3893 2006-01-17 Jim Blandy <jimb@redhat.com>
3895 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
3896 (struct line_header, struct partial_die_info, struct dwarf_block):
3897 Use gdb_byte for members that refer to Dwarf section contents.
3898 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
3899 dwarf_decode_macros, load_comp_unit, load_partial_dies,
3900 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
3901 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
3902 read_8_bytes, read_address, read_attribute, read_attribute_value,
3903 read_comp_unit, read_comp_unit_head, read_die_and_children,
3904 read_die_and_siblings, read_full_die, read_indirect_string,
3905 read_initial_length, read_n_bytes, read_offset, read_partial_die,
3906 read_signed_leb128, read_string, read_unsigned_leb128,
3907 skip_children, skip_leb128, skip_one_die): Same.
3909 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3911 * complaints.c (stop_whining): Make signed.
3912 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
3914 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3916 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
3919 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3921 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
3922 (read_offset): Change BYTES_READ argument to unsigned int.
3923 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
3924 (create_all_comp_units, dwarf2_get_pc_bounds)
3925 (dwarf_decode_line_header, var_decode_location)
3926 (dwarf_decode_macros): Change local BYTES_READ variables to
3928 (read_indirect_string): Remove obsolete cast.
3930 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3932 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
3934 (remote_fileio_func_open, remote_fileio_func_rename)
3935 (remote_fileio_func_unlink, remote_fileio_func_stat)
3936 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3937 (remote_fileio_func_system): Cast the arguments to
3938 remote_read_bytes and remote_write_bytes.
3939 (remote_fileio_func_read, remote_fileio_func_write): Use a
3941 * remote.h (remote_read_bytes, remote_write_bytes): Update
3943 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
3944 (threadref_to_int): Replace bogus char * cast.
3945 (remote_unpack_thread_info_response): Use int for tag.
3946 (remote_threads_extra_info, remote_check_symbols): Cast string
3947 arguments to hex2bin.
3948 (remote_wait): Use a char buffer for packets and a gdb_byte
3949 buffer for registers.
3950 (remote_async_wait): Likewise.
3951 (remote_prepare_to_store, store_register_using_P)
3952 (remote_store_registers): Use gdb_byte buffers.
3953 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
3954 for MYADDR and char buffers for strings.
3955 (remote_xfer_partial): Add casts for string operations on READBUF.
3956 (remote_rcmd): Cast strings passed to bin2hex.
3958 2006-01-16 Mark Mitchell <mark@codesourcery.com>
3960 * aclocal.m4: Regenerate.
3962 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
3964 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
3965 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
3966 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
3967 (mt_register_name): Lazily synthesize name for coprocessor pseudo
3969 (mt_copro_register_type): New. Broken out of ...
3970 (mt_register_type): ... here. Use it. Deal with coprocessor
3972 (mt_select_coprocessor): New.
3973 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
3974 coprocessor pseudo array.
3976 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
3978 * breakpoint.c (insert_breakpoints): Check that a thread exists
3979 before inserting thread specific breakpoints.
3981 2006-01-15 Mark Kettenis <kettenis@gnu.org>
3983 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
3986 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
3987 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
3988 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
3989 * config/alpha/nm-nbsd.h: Remove file.
3990 * config/alpha/nm-fbsd.h: Remove file
3991 * config/alpha/nbsd.mh (NAT_FILE): Remove.
3992 * config/alpha/fbsd.mh (NAT_FILE): Remove.
3994 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3996 * macroexp.c (expand): Initialize argc.
3997 * stabsread.c (read_type): Handle errors from read_args.
3998 (read_args): Return NULL for errors.
4000 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4002 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
4003 strcmp to compare string to a byte buffer.
4005 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4007 * printcmd.c (output_command): Always initialize fmt.size.
4008 (printf_command): Use gdb_byte.
4009 * symfile.c (separate_debug_file_exists): Use gdb_byte.
4010 (load_section_callback, read_target_long_array): Likewise.
4011 (simple_read_overlay_table, simple_read_overlay_region_table)
4012 (simple_overlay_update_1): Correct calls to read_target_long_array.
4013 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
4014 Also change local pointers.
4015 (val_print_string): Use gdb_byte.
4017 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4019 * alphafbsd-tdep.c: Include "solib-svr4.h".
4020 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
4021 svr4_lp64_fetch_link_map_offsets.
4022 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
4023 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
4025 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4027 * config/alpha/nm-fbsd.h: Don't include "solib.h".
4029 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4031 * source.c (_initialize_source): Use add_setshow_integer_cmd.
4033 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
4035 * linux-fork.c (delete_fork_command, detach_fork_command): Use
4038 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4040 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
4042 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4043 svr4_ilp32_fetch_link_map_offsets.
4044 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
4046 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4047 svr4_ilp32_fetch_link_map_offsets.
4048 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
4049 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
4050 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4051 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4053 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
4054 Simply call svr4_ilp32_fetch_link_map_offsets.
4055 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
4056 svr4_lp64_fetch_link_map_offsets.
4057 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
4059 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
4060 svr4_ilp32_fetch_link_map_offsets.
4061 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
4062 (s390x_svr4_fetch_link_map_offsets): Remove functions.
4063 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4064 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
4067 2006-01-15 Mark Kettenis <kettenis@gnu.org>
4069 * arm-tdep.c (arm_return_value): Change type of readbuf and
4070 writebuf arguments to `gdb_byte *'.
4072 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
4073 * Makefile.in (s390-tdep.o): Update dependencies.
4075 2006-01-14 Mark Kettenis <kettenis@gnu.org>
4077 * sol2-tdep.h. sol2-tdep.c: New files.
4078 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
4079 (amd64_sol2_init_abi): Set skip_solib_resolver.
4080 * i386-sol2-tdep.c: Include "sol2-tdep.h".
4081 (i386_sol2_init_abi): Set skip_solib_resolver.
4082 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
4083 (sparc32_sol2_init_abi): Set skip_solib_resolver.
4084 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
4085 (sparc64_sol2_init_abi): Set skip_solib_resolver.
4086 * Makefile.in (sol2_tdep_h): New variable.
4087 (ALLDEPFILES): Add sol2-tdep.c.
4088 (sol2-tdep.o): New target.
4089 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
4090 (sparc64-sol2-tdep.o): Update dependencies
4091 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
4092 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4093 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
4094 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
4096 * hppa-linux-tdep.c: Fix copyright indentation.
4098 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
4099 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
4100 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
4102 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
4103 floating-point registers.
4105 2006-01-13 Mark Mitchell <mark@codesourcery.com>
4107 * event-loop.c (gdb_select): Detect file descriptors that have
4110 2006-01-13 Mark Kettenis <kettenis@gnu.org>
4112 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
4113 and long_double_format accordingly.
4115 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
4117 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
4118 translation problems.
4119 * ada-lang.c (ada_value_struct_elt): Change interface and handling
4120 of errors to avoid translation problem (and less than optimal error
4122 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
4123 Use new interface to ada_value_struct_elt.
4124 * ada_lang.h (ada_value_struct_elt): Update declaration to new
4127 * ChangeLog: remove reference to ada-tasks.c from entry of
4130 2006-01-11 Mark Kettenis <kettenis@gnu.org>
4132 * remote.c (get_memory_packet_size, set_thread)
4133 (remote_unpack_thread_info_response, remote_get_threadinfo)
4134 (parse_threadlist_response, remote_get_threadlist)
4135 (remote_current_thread, remote_threads_info)
4136 (remote_threads_extra_info, extended_remote_restart, get_offsets)
4137 (remote_check_symbols, remote_open_1, remote_detach)
4138 (remote_async_wait, remote_fetch_registers)
4139 (remote_store_registers, check_binary_download, putpkt_binary)
4140 (remote_insert_breakpoint, remote_insert_watchpoint)
4141 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
4142 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
4143 (packet_command): Remove redundant parenthesis.
4145 2006-01-10 Mark Kettenis <kettenis@gnu.org>
4147 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
4148 (read_memory_typed_address, write_memory)
4149 (write_memory_unsigned_integer, write_memory_signed_integer): Use
4150 gdb_byte where appropriate.
4152 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
4155 * target.h (target_read_memory_partial, target_write_memory_partial):
4156 Change second argument to 'gdb_byte *'.
4157 * target.c (target_xfer_memory_partial): Change third argument to
4159 (target_read_memory_partial, target_write_memory_partial): Change
4160 second argument to 'gdb_byte *'.
4162 * linespec.c (decode_objc): Make i1 and i2 unsigned.
4163 (find_method): Set values.sals to NULL.
4165 2006-01-09 Mark Kettenis <kettenis@gnu.org>
4167 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
4168 of 'char *' in cast.
4170 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
4172 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
4173 * ada-lang.c: I18n markup.
4174 Editorial: change "can not" => "cannot" throughout.
4176 2006-01-07 Mark Kettenis <kettenis@gnu.org>
4178 * Makefile.in: Sort dependencies.
4180 2006-01-07 Eli Zaretskii <eliz@gnu.org>
4182 * top.c (control_level): Remove unused variable.
4184 2006-01-06 Fred Fish <fnf@specifix.com>
4186 * objfiles.c (source.h): Include.
4187 (free_objfile): Update comment about clear_symtab_users().
4188 (free_objfile): Check all symtabs of objfile being freed and if
4189 one of them is the current source symtab, call
4190 clear_current_source_symtab_and_line().
4192 2006-01-04 Michael Snyder <msnyder@redhat.com>
4194 Checkpoint/Restart for Linux.
4195 * linux-nat.c: Add support for debugging multiple forks.
4196 Add #include for linux-fork.h (interface spec).
4197 (super_mourn_inferior): New function pointer.
4198 (child_mourn_inferior): New function / target method.
4199 (linux_target): Claim to_mourn_inferior method pointer.
4200 (child_follow_fork): Call interface to linux-fork, conditionally
4201 add new fork processes to list of debugged processes.
4202 (kill_inferior): Use interface to linux-fork to kill
4205 * linux-fork.h: New file.
4206 * linux-fork.c: New file. Support for debugging multiple forks
4207 of the same program. Support for checkpoint and restart commands.
4209 * infrun.c (nullify_last_target_wait_ptid): New function.
4211 * Makefile.in: Add linux-fork.
4212 * config/*/linux.mh: Add linux-fork.
4213 * NEWS: Mention new functionality.
4215 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
4217 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
4218 Change uses of "illegal" to "invalid".
4220 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4222 * ada-exp.y: Considerable reorganization to move functionality
4223 from ada-lex.l to here, where it is logically more appropriate.
4224 The original reason, however, was to prevent premature name
4225 lookups for selector names in record aggregates.
4226 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
4227 NAME for all of these.
4228 (VAR): New artificial token to clarify precedence rules.
4229 (OTHERS): New lexeme.
4230 (empty_stoken): New symbol.
4231 (%union): Remove ssym, voidval.
4232 (%type): Remove <voidval> type declarations.
4233 (syntax definitions): Add aggregates.
4234 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
4235 Rename some non-terminals to be closer to reference manual usage.
4236 Tighten up expression syntax to disallow certain non-Ada
4237 constructions such as X and then Y or else Z.
4238 (ada_parse): Remove initialization of left_block_context.
4239 (write_var_from_name): Remove.
4240 (write_var_or_type): New function, containing previous code from
4241 defunct write_var_from_name and name_lookup.
4242 (block_lookup): New function, moved from ada-lex.l
4243 (select_possible_type_sym): New function, factored out of
4244 name_lookup, which used to be in ada-lex.l.
4245 (find_primitive_type): Ditto.
4246 (chop_selector): Ditto.
4247 (write_ambiguous_var): New function, factored out of defunct
4248 write_var_from_name.
4249 (write_selectors): New function.
4250 (write_name_assoc): New function.
4251 (write_exp_op_with_string): New function.
4253 * ada-lex.l (processId): Change interface to return stoken.
4254 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
4255 (block_lookup, name_lookup): Remove. Functionality moved to
4257 (state IN_STRING): Remove.
4258 (rules): Handle string escapes in processString.
4260 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
4261 yylval.sval (as simple strings).
4262 All name look-ups now handled in ada-exp.y.
4263 Introduce "::" (COLONCOLON) token and return as separate token.
4264 (processId): Change return convention. Comment.
4265 Leave leading "'" in place.
4266 (processString): New function.
4267 (find_dot_all): Add note to comment.
4268 Fix problem that allowed match only at the end.
4270 * ada-lang.c: Introduce aggregates.
4271 (find_struct_field): Add new parameter to count fields skipped, and
4272 allow other output parameters to be NULL.
4273 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
4274 new find_struct_field.
4275 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
4276 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
4277 (num_component_specs, assign_component, assign_aggregate):
4278 (aggregate_assign_from_choices,aggregate_assign_positional)
4279 (aggregate_assign_others,add_component_interval):
4281 (ada_evaluate_subexp): Declare.
4282 Add aggregate-related operators.
4283 (ada_forward_operator_length): Declare.
4284 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
4285 Consolidate Ada operators, using ada_forward_operator_length.
4286 (ada_search_struct_field): Search in forward order.
4287 (ADA_OPERATORS): Add new aggregate operators.
4288 (ada_operator_length, ada_op_name, ada_forward_operator_length)
4289 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
4290 operators and OP_NAME.
4291 (ada_type_of_array): Use longest_to_int.
4292 (value_assign_to_component): New function.
4293 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
4295 (ada_forward_operator_length, ada_dump_subexp_body):
4298 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
4299 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
4301 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
4303 * ada-lang.c (process_raise_exception_name): Remove extraneous
4304 definition from unsubmitted code.
4306 (is_lower_alphanum): New function.
4307 (ada_decode): Add support for decoding protected object subprograms
4308 and entries, and of entities declared inside protected object
4310 Also add missing handling for__{DIGITS}+ suffixes.
4311 Allow '$<digits>' as valid overloading suffix.
4312 (is_name_suffix): Add handling for protected type entriy suffixes.
4313 Also add support for protected type subprogram suffixes, but keep
4314 it commented out for now, as there is an ambiguity between these
4315 entities and other internally generated entities.
4316 Allow '$<digits>' as valid overloading suffix.
4317 (is_valid_name_for_wild_match): New function.
4318 (wild_match): Add an exra level of verification of the entity name
4319 before declaring it a match for the given pattern.
4321 (ada_type_of_array, ada_evaluate_subexp): Use more proper
4322 longest_to_int rather than cast.
4324 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
4326 (ada_coerce_to_simple_array): Call check_size to make sure
4327 that the object size is reasonable.
4329 (ada_value_primitive_packed_val): Use correct location in target
4330 buffer for extracting packed record fields that are themselves records.
4332 (add_defn_to_vec): Do not try to replace a stub type by its full
4333 type. Avoids a potential infinite loop.
4335 (ada_lookup_symbol): Move return incorrectly placed return statement,
4336 causing a loop that should be scanning all object files to only
4339 (ada_tag_name_2): New function.
4340 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
4341 use alternative representation.
4343 (ada_find_renaming_symbol): Strip the function name suffix when
4344 computing the XR type name.
4346 (ada_to_fixed_type): Try determining the tag only if we have the
4348 (to_fixed_array_type): Add comments.
4350 (ada_check_typedef): Replace expression checking whether the given
4351 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
4354 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
4355 '$' in addition to '.' for runtime auxiliary function name suffixes.
4356 See changes to ada_decode above.
4358 (struct task_control_block): Add field called_task. (This change is
4359 to keep synchronized with our local sources; it does not affect the
4360 public version yet.)
4362 * ada-typeprint.c (ada_print_type): Use int_string for printing
4363 modulus of modular type.
4365 (print_range): Trivial editorial comment fix.
4367 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
4368 double quote in string.
4370 2006-01-01 Joel Brobecker <brobecker@adacore.com>
4372 * top.c: Add 2006 to list of copyright years in file header.
4374 2006-01-01 Joel Brobecker <brobecker@adacore.com>
4376 * top.c (print_gdb_version): Update copyright year to 2006.
4378 2006-01-01 Roger Sayle <roger@eyesopen.com>
4379 Elena Zannoni <ezannoni@redhat.com>
4382 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
4383 for NULL before assigning this_symtab_psymtab->objfile to objfile.
4384 (scan_xcoff_symtab): Initialize next_symbol_text_func.
4385 (Committed by Jim Blandy)
4387 For older changes see ChangeLog-2005.
4393 version-control: never