1 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4 to decide whether to match instruction patterns using "sw" and "sd".
6 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8 * infcmd.c (jump_command): Postpone disabling stdin until after
11 2008-03-14 Pedro Alves <pedro@codesourcery.com>
13 * inflow.c (gdb_getpgrp): New.
14 (gdb_has_a_terminal): Use get_getpgrp.
15 (terminal_ours_1): If attach_flag is set, don't refetch
16 inferior_process_group.
18 2008-03-14 Pedro Alves <pedro@codesourcery.com>
20 * features/library-list.dtd: Allow "section" elements as children
21 of "library". Add "section" element and describe its attributes.
23 * solib-target.c (struct lm_info): Add section_bases member.
24 (library_list_start_segment): Error out if seen a section element.
25 (library_list_start_section): New.
26 (library_list_end_library): New.
27 (solib_target_free_library_list): Free section_bases.
28 (section_attributes): New.
29 (library_children): Make "segment" optional. Add "section" child.
30 (library_list_children): Register library_list_end_library.
31 (solib_target_relocate_section_addresses): Handle section bases.
33 * NEWS: Mention new qXfer:libraries:read section offsets support.
35 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
37 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
38 (make_exec_error_cleanup): Remove declarations.
39 * utils.c (exec_error_cleanup_chain): Remove.
40 (do_exec_error_cleanups, discard_exec_error_cleanups)
41 (make_exec_error_cleanup): Remove.
42 * event-loop.c (start_event_loop): Adjust call to
44 * event-top.c (async_enable_stdin): Remove the paramater dummy.
45 (async_disable_stdin): Don't register async_enable_stdin via
47 * inf-loop.c (inferior_event_handler): Don't
48 call do_exec_error_cleanups. Call async_enable_stdin instead.
49 * event-loop.c (start_event_loop): Adjust call to
51 * tui/tui-interp.c (tui_command_loop): Adjust call to
54 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
57 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
58 * breakpoint.c (bpstat_do_actions): In async mode,
59 don't jump to top expecting stop_bpstat to be already
61 * event-loop.c (start_event_loop): Call async_enable_stdin
63 * event-top.c (async_enable_stdin): Do nothing if sync_execution
65 (command_handler): Do not setup continuation here.
66 (command_line_handler_continuation): Move to...
67 * top.c (command_line_handler_continuation): ... here.
68 (execute_command): In async mode, register continuation.
69 Don't check frame's language in running in async mode.
70 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
71 * inf-loop.c (complete_execution): Inline into...
72 (inferior_event_handler): ... here. Clear target_executing before
73 doing any cleanups. Don't try to show prompt if the target was
75 * infcmd.c (signal_command): Add support for async mode.
76 (finish_command): Only add continuation if the target was
78 * remote.c (init_async_opts): Register to_get_thread_local_address
80 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
82 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
85 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
87 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
88 * exec.c (exec_bfd_mtime): Define.
89 (exec_close): Clear it.
90 (exec_file_attach): Set it.
91 * gdbcore.h (exec_bfd_mtime): Declare.
92 * source.c (find_source_lines): Do not use bfd_get_mtime.
94 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
96 * top.c (simplified_command_loop): Remove.
98 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
100 Remove unused remote.c hooks.
101 * remote.c (deprecated_target_resume_hook)
102 (deprecated_target_wait_loop_hook): Remove.
103 (remote_resume): Do not call deprecated_target_resume_hook.
104 (remote_wait): Do not call deprecated_target_wait_loop_hook.
105 (remote_async_wait): Likewise.
107 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
109 Implement MI notification for new threads.
110 * doc/observer.texi (new_thread): Document.
111 * observer.sh: Forward declare struct thread_info.
112 * thread.c (add_thread): Notify observer.
114 * interps.h (interp_init_ftype): New parameter
116 (interp_set): Likewise.
117 (top_level_interpreter_data): Declare.
118 * interps.c (interp_set): New parameter top_level.
119 Pass it to interpreter's init function. Remember
120 top level interpreter.
121 (interpreter_exec_cmd): Adjust.
122 (top_level_interpreter_data): New.
123 * main.c (captured_main): Pass 1 for top_level
124 parameter of interp_set.
125 * cli/cli-interp.c (cli_interpreter_init): New
127 * tui/tui-interp.c (tui_init): New parameter top_level.
129 * mi/mi-interp.c (mi_new_thread): New.
130 (mi_interpreter_init): If top level, register
131 observer for new threads.
133 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
135 2008-03-14 Pedro Alves <pedro@codesourcery.com>
137 * top.c (execute_command): Disable break and stop
138 commands in async mode.
140 2008-03-14 Pedro Alves <pedro@codesourcery.com>
143 2008-03-14 Pedro Alves <pedro@codesourcery.com>
144 * inf-loop.c (inferior_event_handler): Don't include remote.h.
145 Call target_stop in the INF_QUIT_REQ case.
146 * Makefile.in (inf-loop.o): Update.
148 2008-03-14 Pedro Alves <pedro@codesourcery.com>
150 * inf-loop.c (inferior_event_handler): Don't include remote.h.
151 Call target_stop in the INF_QUIT_REQ case.
152 * Makefile.in (inf-loop.o): Update.
154 2008-03-14 Pedro Alves <pedro@codesourcery.com>
156 * top.c (execute_command): Enable break, info and interrupt
157 commands in async mode.
159 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
160 Daniel Jacobowitz <dan@codesourcery.com>
162 * breakpoint.h (breakpoint_restore_shadows): New
164 * breakpoint.c (breakpoint_restore_shadows): New.
165 (read_memory_nobpt): Delete.
166 * gdbcore.h (read_memory_nobpt): Delete declaration.
167 * target.c (memory_xfer_partial): Call
168 breakpoint_restore_shadows.
169 (restore_show_memory_breakpoints)
170 (make_show_memory_beakpoints_cleanup): New.
171 (show_memory_breakpoints): New.
172 * target.h (make_show_memory_beakpoints_cleanup): Declare.
173 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
174 Make sure we see memory breakpoints when checking if
175 breakpoint is still there.
176 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
177 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
178 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
179 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
181 2008-03-12 Pedro Alves <pedro@codesourcery.com>
183 * thread.c (add_thread): Use printf_unfiltered to print.
185 2008-03-12 Joel Brobecker <brobecker@gnat.com>
187 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
188 that is true only on x86-solaris and x86_64-solaris.
189 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
190 with proc_get_LDT_entry.
192 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
194 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
195 * config.in, configure: Regenerate.
196 * fork-child.c (fork_inferior): Call create_tty_session.
197 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
198 (create_tty_session): New function.
199 * terminal.h: Declare create_tty_session.
201 2008-03-12 Alan Modra <amodra@bigpond.net.au>
204 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
205 * mipsread.c: Include elf/internal.h.
206 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
209 2008-03-11 Markus Deuling <deuling@de.ibm.com>
211 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
212 to get at the current architecture and at the target specific vector.
213 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
214 remove define of I387_ST0_REGNUM.
216 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
218 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
219 get at the current architecture
220 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
223 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
224 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
226 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
227 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
228 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
230 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
231 at the target specific vector.
233 (i386_get_longjmp_target): Use get_frame_arch to get at the current
234 architecture. Use gdbarch_tdep to get at the target specific vector.
236 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
237 update caller. Use gdbarch_tdep to get at the target specific vector.
239 (i386_register_to_value: Use get_frame_arch to get at the current
242 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
245 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
246 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
247 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
248 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
250 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
253 (i387_convert_register_p, i387_register_to_value,
254 i387_value_to_register): Update call for i386_fp_regnum_p.
256 * i387-tdep.h: Remove comment.
257 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
258 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
259 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
260 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
261 I387_MXCSR_REGNUM): Add target specific vector as parameter.
263 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
265 * Makefile.in (fork-child.o): Update.
266 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
267 argument. Gather all gdbserver features together.
268 * fork-child.c (exec_wrapper): New variable.
269 (fork_inferior): Use it.
270 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
271 (unset_exec_wrapper_command, _initialize_fork_child): New.
273 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
275 * source.c (directory_command): Modify the determination of
276 condition of terminal "from_tty".
278 2008-03-10 Matt Rice <ratmice@gmail.com>
280 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
282 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
284 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
285 of the data passing to strtoulst function.
286 (info_spu_signal_command): Likewise.
288 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
290 * mi/mi-interp.c (mi_command_loop): Remove
293 2008-03-07 Joel Brobecker <brobecker@adacore.com>
295 * remote.c (extended_remote_attach_1): Make local variable pid an int
298 2008-03-07 Joel Brobecker <brobecker@adacore.com>
300 * solib-svr4.c (svr4_same_1): New function, originally extracted
301 from svr4_same and expanded to handle the sparc64 case.
302 (svr4_same): Move up and reimplement using svr4_same_1.
303 (enable_break): Use svr4_same_1 to do shared library name comparisons.
305 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
307 * MAINTAINERS: Move self to Paper trail.
309 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
311 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
312 * event-loop.c (call_async_signal_handler): New.
313 * event-loop.h (call_async_signal_handler)
314 (gdb_call_async_signal_handler): Declare.
315 (mark_async_signal_handler): Add comments.
316 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
317 * mingw-hdep.c (sigint_event, sigint_handler): New.
318 (gdb_select): Use them. Wait for the readline signal handler
320 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
321 * posix-hdep.c (gdb_call_async_signal_handler): New function.
322 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
324 (remote_fileio_ctrl_c_signal_handler): Use
325 gdb_call_async_signal_handler.
326 (initialize_remote_fileio): Initialize sigint_fileio_token.
327 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
328 not initialize tokens here.
329 (handle_remote_sigint_twice): Likewise. Reinstall
330 handle_remote_sigint.
331 (async_remote_interrupt_twice): Just call interrupt_query.
332 (cleanup_sigint_signal_handler): Do not delete tokens.
333 (remote_interrupt, remote_interrupt_twice): Use
334 gdb_call_async_signal_handler.
335 (interrupt_query): Reinstall the default signal handler.
336 (_initialize_remote): Initialize tokens here.
338 2008-03-04 Joel Brobecker <brobecker@adacore.com>
340 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
341 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
342 Change the type of the lr register to code_ptr.
343 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
344 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
345 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
346 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
347 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
348 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
349 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
351 2008-03-03 James E. Wilson <wilson@tuliptree.org>
353 * MAINTAINERS: Update my email address.
355 2008-03-03 Keith Seitz <keiths@redhat.com>
357 From Dave Murphy <davem@devkitpro.org>:
358 * configure.ac: Set tcl configdir to win under mingw.
359 * configure: Regenerate.
361 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
363 * breakpoint.c (fetch_watchpoint_value): New function.
364 (update_watchpoint): Set and clear val_valid. Use
365 fetch_watchpoint_value. Handle unreadable values on the
366 value chain. Correct check for user-requested array watchpoints.
367 (breakpoint_init_inferior): Clear val_valid.
368 (watchpoint_value_print): New function.
369 (print_it_typical): Use it. Do not free or clear old_val. Print
370 watchpoints even if old_val == NULL.
371 (watchpoint_check): Use fetch_watchpoint_value. Check for values
372 becoming readable or unreadable.
373 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
374 (do_enable_watchpoint): Likewise.
375 * breakpoint.h (struct breakpoint): Update comment for val. Add
377 * NEWS: Mention watchpoints on inaccessible memory.
379 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
381 * Makefile.in (i386-nat.o): Update.
382 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
383 i386_use_watchpoints.
384 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
385 i386_use_watchpoints.
386 * i386-nat.c (i386_stopped_data_address): Take two arguments.
387 (i386_stopped_by_watchpoint): Update call.
388 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
389 * config/i386/nm-i386.h: Conditionalize definitions on
390 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
391 (i386_use_watchpoints): Declare.
392 (i386_stopped_data_address): Update.
393 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
394 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
396 2008-02-29 Joel Brobecker <brobecker@adacore.com>
398 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
399 * version.in: Bump version to 6.8.50.20080229-cvs.
401 2008-02-28 Markus Deuling <deuling@de.ibm.com>
403 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
406 2008-02-28 Tom Tromey <tromey@redhat.com>
408 * infcmd.c (notice_args_read): Print result of get_inferior_args.
410 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
412 * infcmd.c (kill_if_already_running): Make static. Use
413 target_require_runnable.
414 * target.c (target_require_runnable): New.
415 * target.h (target_require_runnable): Declare.
417 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
419 * frame.c (reinit_frame_cache): Only annotate if frames were
422 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
424 * regformats/reg-ppc.dat: Rename "ps" to "msr".
425 * regformats/reg-ppc64.dat: Likewise.
427 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
429 * features/Makefile (%.dat): Emit xmltarget statement.
431 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
432 Generate code to set gdbserver_xmltarget in init_registers_${name}.
434 * regformats/arm-with-iwmmxt.dat: Regenerate.
435 * regformats/mips64-linux.dat: Regenerate.
436 * regformats/mips-linux.dat: Regenerate.
437 * regformats/rs6000/powerpc-32.dat: Regenerate.
438 * regformats/rs6000/powerpc-64.dat: Regenerate.
439 * regformats/rs6000/powerpc-e500.dat: Regenerate.
441 * regformats/reg-arm.dat: Add xmlarch statement.
442 * regformats/reg-i386.dat: Likewise.
443 * regformats/reg-i386-linux.dat: Likewise.
444 * regformats/reg-x86-64-linux.dat: Likewise.
445 * regformats/reg-spu.dat: Likewise.
447 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
449 * remote.c (remote_wait, remote_async_wait): Stop if we receive
452 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
454 * utils.c (debug_timestamp): New.
455 (vfprintf_unfiltered): Print timestamps if requested.
456 (show_debug_timestamp): New.
457 (initialize_utils): Register "set debug timestamp".
458 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
460 2008-02-27 Joel Brobecker <brobecker@adacore.com>
462 * breakpoint.c (skip_prologue_sal): New function.
463 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
464 computed from a line number.
466 2008-02-27 Joel Brobecker <brobecker@adacore.com>
468 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
469 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
470 Set PC register type to "code_ptr".
471 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
472 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
473 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
474 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
475 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
476 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
477 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
480 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
482 * regformats/regdat.sh: Rename init_registers function in
483 generated file to init_registers_${name}.
485 * regformats/reg-crisv32.dat: Set "name" to crisv32.
486 * regformats/reg-ppc64.dat: Set "name" to ppc64.
487 * regformats/reg-s390x.dat: Set "name" to s390x.
489 2008-02-26 Greg Law <glaw@undo-software.com>
491 * regcache.c (registers_changed): Call reinit_frame_cache.
493 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
495 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
496 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
497 and svr4_fetch_objfile_link_map.
498 * Makefile.in (sh-linux-tdep.o): Update.
500 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
502 * amd64-tdep.c (amd64_classify): Add support for decimal float
504 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
505 use the struct return convention.
507 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
509 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
510 to old format. Discard breakpoint address if shared library is
512 (breakpoint_1): Adjust formatting of table header accordingly.
514 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
516 * remote.c (remote_get_threadlist): If the response
517 is empty, don't try to parse it.
519 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
521 Unbreak 'target async'.
522 * serial.c (serial_async): Set the
523 handler function before enabling async
526 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
528 * solib-svr4.c (enable_break): Convert r_brk to a code address.
530 2008-02-21 Pedro Alves <pedro@codesourcery.com>
532 * remote.c (extended_remote_attach_1): Set attach_flag.
533 (extended_remote_create_inferior_1): Clear attach_flag.
535 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
537 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
539 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
540 * solib-svr4.c (solib_svr4_r_brk): New.
541 (open_symbol_file_object, svr4_current_sos): Always check the
543 (svr4_fetch_objfile_link_map): Do not set debug_base.
544 (enable_break): Use r_brk if it is set.
545 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
546 (svr4_lp64_fetch_link_map_offsets): Likewise.
547 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
549 2008-02-20 Markus Deuling <deuling@de.ibm.com>
550 Mark Kettenis <kettenis@gnu.org>
552 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
553 trad_frame_saved_reg.
554 (trad-frame.h): New include.
556 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
557 instead of frame_obstack_zalloc.
558 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
560 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
562 2008-02-20 Markus Deuling <deuling@de.ibm.com>
564 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
565 from disassemble_info instead of gdbarch_byte_order.
567 * mips-tdep.c (gdb_print_insn_mips): Likewise.
568 * arm-tdep.c (gdb_print_insn_arm): Likewise.
570 2008-02-20 Markus Deuling <deuling@de.ibm.com>
572 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
573 gdbarch as parameter.
575 * gdbarch.{c,h}: Regenerate.
577 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
579 * mem-break.c (default_memory_insert_breakpoint)
580 (default_memory_remove_breakpoint): Likewise.
581 * target.h (default_memory_remove_breakpoint)
582 (default_memory_insert_breakpoint): Likewise.
584 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
585 parameter. Replace current_gdbarch by gdbarch.
586 * m32r-tdep.c (m32r_memory_insert_breakpoint)
587 (m32r_memory_remove_breakpoint): Likewise.
589 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
591 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
593 2008-02-19 Joel Brobecker <brobecker@adacore.com>
595 * NEWS: Add entry describing Add support improvements.
597 2008-02-18 Markus Deuling <deuling@de.ibm.com>
599 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
602 2008-02-18 Markus Deuling <deuling@de.ibm.com>
604 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
605 register_offset_hack anymore.
607 * regcache.{c,h} (register_offset_hack): Remove.
609 2008-02-18 Markus Deuling <deuling@de.ibm.com>
611 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
613 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
614 current_gdbarch by gdbarch.
615 (hppa64_hpux_find_global_pointer): Likewise.
616 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
617 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
620 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
622 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
624 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
627 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
628 replace current_gdbarch by gdbarch.
629 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
631 2008-02-18 Markus Deuling <deuling@de.ibm.com>
633 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
634 and replace current_gdbarch by gdbarch.
636 (store_register): Update call for exec_one_dummy_insn.
637 (fetch_register, store_register): Update call of regmap.
639 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
640 parameter and replace current_gdbarch by gdbarch.
642 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
643 the current architecture. Update call for getregs_supplies and
645 (ppcnbsd_fetch_inferior_registers): Likewise.
647 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
648 replace current_gdbarch by gdbarch.
649 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
650 get_regcache_arch to get at the current architecture. Update call for
653 2008-02-18 Markus Deuling <deuling@de.ibm.com>
655 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
658 2008-02-15 Markus Deuling <deuling@de.ibm.com>
660 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
662 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
664 * NEWS: Mention pending breakpints in MI.
666 2008-02-14 Markus Deuling <deuling@de.ibm.com>
668 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
670 2008-02-13 Markus Deuling <deuling@de.ibm.com>
672 Add script to build and test GDB using enable-targets=all.
674 * gdb_buildall.sh: New file.
676 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
678 * NEWS (New native configurations): Xtensa GNU/Linux.
679 (New targets): Xtensa GNU/Linux.
680 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
682 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
683 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
684 * configure.tgt (xtensa*-*-linux*): New entry.
685 * xtensa-config.c (xtensa_tdep): New variable.
686 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
687 (rmap): Change format based on new macro XTREG.
688 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
689 * xtensa-linux-nat.c: New.
690 * xtensa-linux-tdep.c: New.
691 * xtensa-xtregs.c: New.
692 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
693 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
694 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
695 (xtensa_register_t): New field coprocessor.
696 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
697 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
698 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
699 Update to handle privileged registers.
700 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
701 (xtensa_push_dummy_call): Set windowstart register correctly.
702 (call0_analyze_prologue): Initialize xtensa_default_isa.
703 (xtensa_derive_tdep): New.
704 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
705 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
706 Call xtensa_derive_tdep().
707 * config/xtensa/linux.mh: New.
708 * regformats/reg-xtensa.dat: New.
710 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
712 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
713 (filenames.h): New include.
714 * Makefile.in (corelow.o): Add dependency for filenames.h.
716 2008-02-08 Doug Evans <dje@google.com>
718 * source.c (find_and_open_source): Always rewrite absolute filenames.
720 2008-02-07 Doug Evans <dje@google.com>
722 * breakpoint.c: #include "hashtab.h".
723 (ambiguous_names_p): New fn.
724 (update_breakpoint_locations): When restoring bp enable status, don't
725 compare function names if any functions have same name.
726 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
728 2008-02-07 Joel Brobecker <brobecker@adacore.com>
730 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
731 instead of just a VEC*. Update use of SV.
732 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
734 2007-02-07 Joel Brobecker <brobecker@adacore.com>
736 * NEWS: Put all new commands since gdb-6.7 together.
738 2007-02-07 Joel Brobecker <brobecker@adacore.com>
740 * ada-lang.c: #include "vec.h".
741 (struct string_vector, new_string_vector, string_vector_append):
743 (char_ptr): New typedef.
744 (DEF_VEC_P (char_ptr)): New VEC type.
745 (symbol_completion_add): Update profile to take the new VEC type
746 instead of the old string_vector structure. Update code accordingly.
747 (ada_make_symbol_completion_list): Use the new VEC type instead of
748 the old string_vector structure, and update the code accordingly.
749 * Makefile.in (ada-lang.o): Add dependency on vec.h.
751 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
753 * p-exp.y: Set current_type in missing places.
754 (leftdiv_is_integer): New static variable.
755 Typecast right operand of BINOP_DIV to long_double if both operands
758 2008-02-06 Maciej W. Rozycki <macro@mips.com>
760 * remote-mips.c (set_breakpoint): Rename to...
761 (mips_set_breakpoint): ... this.
762 (clear_breakpoint): Rename to...
763 (mips_clear_breakpoint): ... this.
764 (common_breakpoint): Rename to...
765 (mips_common_breakpoint): ... this.
766 (check_lsi_error): Rename to...
767 (mips_check_lsi_error): ... this.
769 2007-02-05 Joel Brobecker <brobecker@adacore.com>
771 * language.h (struct language_defn): Add new field
772 la_make_symbol_completion_list.
773 * symtab.c (default_make_symbol_completion_list): Renames
774 make_symbol_completion_list.
775 (make_symbol_completion_list): New function.
776 * symtab.h (default_make_symbol_completion_list): Add declaration.
777 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
778 (auto_language, local_language): Likewise.
779 * objc-lang.c (objc_language_defn): Likewise.
780 * scm-lang.c (scm_language_defn): Likewise.
781 * m2-lang.c (m2_language_defn): Likewise.
782 * f-lang.c (f_language_defn): Likewise.
783 * jv-lang.c (java_language_defn): Likewise.
784 * p-lang.c (pascal_language_defn): Likewise.
785 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
786 (minimal_language_defn): Likewise.
787 * ada-lang.c (struct string_vector): New structure.
788 (new_string_vector, string_vector_append, ada_unqualified_name)
789 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
790 (ada_make_symbol_completion_list): New functions.
791 (ada_language_defn): Set la_make_symbol_completion_list.
792 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
793 this function is static.
795 2008-02-05 Kevin Buettner <kevinb@redhat.com>
797 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
798 to account for call site optimizations.
800 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
802 * tracepoint.c (read_actions): Handle end-of-text indicator
803 in action list properly. (Committed by Jim Blandy)
805 2008-02-05 Jim Blandy <jimb@red-bean.com>
807 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
808 pseudoregister, not an internal error.
809 Reported by: Andrzej Zaborowski
811 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
813 * varobj.c (c_value_of_variable): Use xstrdup.
815 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
817 Update stored rendition of varobj value when format changes.
818 * varobj.c (varobj_set_display_format): Recomputed
820 (c_value_of_variable): Return print_value.
822 2008-02-03 Doug Evans <dje@google.com>
824 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
825 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
826 * valops.c (value_one): New function.
827 * value.h (value_one): Declare.
829 Fix argument promotion for binary arithmetic ops for C.
830 * valarith.c (unop_result_type): New fn.
831 (binop_result_type): New fn.
832 (value_binop): Move result type computation to binop_result_type.
833 (value_pos, value_neg, value_complement): Move result type
834 computation to unop_result_type.
837 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
838 Return basetype, fieldno if found. All callers updated.
839 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
841 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
842 * symfile.h (fill_in_vptr_fieldno): Delete.
844 2008-02-02 Doug Evans <dje@google.com>
846 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
848 * typeprint.c (*): Whitespace cleanup.
850 2008-02-02 Mark Kettenis <kettenis@gnu.org>
851 Luis Machado <luisgpm@br.ibm.com>
852 Thiago Jung Bauermann <bauerman@br.ibm.com>
854 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
855 don't fit into registerson the stack the way GCC does.
857 2008-02-01 Joel Brobecker <brobecker@adacore.com>
859 * symtab.c (symbol_set_names): Do not add an entry in the demangling
860 hash table for Ada symbols. Just store the linkage name as is,
861 and leave the demangled_name as NULL.
863 2007-02-01 Joel Brobecker <brobecker@adacore.com>
865 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
867 (new_symbol): Likewise.
869 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
871 * breakpoint.c (break_command_1): Return void.
872 (break_command_really): Return void. Rethrow
873 exceptions instead of returning.
874 (gdb_breakpoint): Remove the error_message parameter.
875 Return void. Rename to set_breakpoint.
876 * gdb.h (gdb_breakpoint): Rename and move to...
877 * breakpoint.h (set_breakpoint): ...here.
878 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
879 event hooks even if exception is thrown. Adjust to
880 gdb_breakpoint interface changes.
883 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
885 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
886 float in both first and second word in the doubleword, to support
889 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
891 Properly rethrow exception. This fixes errors
892 about non-existent functions for -break-insert.
893 * breakpoint.c (break_command_really): Use throw_exception
894 for rethrowing. If rethrowing, don't print the exception.
896 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
898 * NEWS: Mention Decimal Floating Point support.
900 2008-01-31 Joel Brobecker <brobecker@adacore.com>
902 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
903 value type to builtin_type_void_func_ptr.
905 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
907 * s390-tdep.c (is_float_singleton, is_float_like,
908 alignment_of, s390_return_value): Make checks for
909 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
911 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
912 Thiago Jung Bauermann <bauerman@br.ibm.com>
914 * infcmd.c (default_print_registers_info): Also print hex
915 raw contents for TYPE_CODE_DECFLOAT registers.
916 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
917 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
918 (rs6000_register_name): Add support for DFP pseudo-registers.
919 (rs6000_pseudo_register_type): Likewise.
920 rs6000_pseudo_register_reggroup_p): Likewise.
921 (ppc_pseudo_register_read): New function.
922 (ppc_pseudo_register_write): Likewise.
923 (rs6000_pseudo_register_read): Likewise.
924 (rs6000_pseudo_register_write): Likewise.
925 (e500_pseudo_register_read): Move checks to
926 rs6000_pseudo_register_read.
927 (e500_pseudo_register_write): Move checks to
928 rs6000_pseudo_register_write.
929 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
930 rs6000_pseudo_register_read and rs6000_pseudo_register_write
931 in gdbarch if SPE or DFP is available. Adjust gdbarch's
932 num_pseudo_regs to account for DFP pseudo regs.
934 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
936 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
937 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
938 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
939 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
940 e500_pseudo_register_read, e500_pseudo_register_write): Use
941 IS_SPE_PSEUDOREG macro.
942 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
943 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
944 Remove initialization of tdep->ppc_ev31_regnum.
946 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
948 * printcmd.c (print_formatted): Handle references as for unformatted
951 2008-01-30 Joel Brobecker <brobecker@adacore.com>
953 * eval.c (evaluate_subexp_standard): Add handling of user
954 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
956 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
958 * eval.c (evaluate_subexp_standard): Support
961 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
963 * valarith.c (value_binop): Add floating-point BINOP_MIN and
965 For BINOP_EXP, use length and signedness of left operand only for
966 result, as for shifts.
967 For integral operands to BINOP_EXP, use new integer_pow and
968 uinteger_pow functions so as to get full range of results.
969 (integer_pow): New function.
970 (uinteger_pow): New function.
972 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
974 Use vector for varobj_list_children interface.
975 * gdb/varobj.c (varobj_list_children): Return vector
977 * gdb/varobj.h (varobj_list_children): Adjust
979 (varobj_p): Declare. Declare vector thereof.
980 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
981 for varobj_list_children change.
982 * Makefile.in (varobj_h): Update dependencies.
984 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
986 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
987 TYPE_CODE_DECFLOAT arguments.
988 (ppc64_sysv_abi_push_dummy_call) Likewise.
989 (get_decimal_float_return_value): New function.
990 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
991 values by calling get_decimal_float_return_value.
992 (ppc64_sysv_abi_return_value): Likewise.
994 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
996 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
997 for preprocessor macro information. Formatting changes.
999 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1001 * remote.c (struct remote_state): Add cached_wait_status.
1002 (remote_exec_file): New variable.
1003 (PACKET_vAttach, PACKET_vRun): New constants.
1004 (extended_remote_restart): Do not query for status.
1005 (struct start_remote_args): New.
1006 (remote_start_remote): Take it as a second argument. Check
1007 whether the target is running. Issue an error for non-running
1008 non-extended targets. Cache the wait status. Set inferior_ptid
1010 (remote_open_1): Prompt to disconnect non-running targets. Make
1011 sure the target is marked running. Do not set inferior_ptid here.
1012 Update call to remote_start_remote. Do not call remote_check_symbols
1013 if the target is not running.
1014 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1015 argument. Handle a non-running target.
1016 (remote_detach): Use it.
1017 (extended_remote_detach): New.
1018 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1019 (extended_remote_attach_1, extended_remote_attach)
1020 (extended_async_remote_attach): New.
1021 (remote_vcont_resume): Remove unused variable.
1022 (remote_wait, remote_async_wait): Use any cached wait status.
1023 (putpkt_binary, getpkt): Clear any cached wait status.
1024 (extended_remoute_mourn_1): New.
1025 (extended_remote_mourn): Use it.
1026 (extended_async_remote_mourn, extended_remote_run): New.
1027 (extended_remote_create_inferior_1): New.
1028 (extended_remote_create_inferior): Use it.
1029 (extended_remote_async_create_inferior): Likewise.
1030 (remote_xfer_partial): Skip for non-executing targets.
1031 (init_extended_remote_ops): Set to_detach and to_attach.
1032 (init_extended_async_remote_ops): Likewise. Use
1033 extended_async_remote_mourn.
1034 (_initialize_remote): Register vAttach, vRun, and
1035 set remote exec-file.
1036 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1038 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1040 * Makefile.in (symfile.o): Update.
1041 * NEWS: Mention exec tracing support.
1042 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1044 * infcmd.c (kill_if_already_running, detach_command)
1045 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1046 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1047 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1048 targets. Apply the sysroot path to the loaded executable. Use
1049 no_shared_libraries.
1050 * linux-nat.c (linux_child_follow_fork): Print fork following
1051 messages if verbose.
1052 (kill_wait_callback): Kill again before waiting a second time.
1053 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1054 no_shared_libraries.
1056 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1058 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1060 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1062 * nto-tdep.h: Remove #include "defs.h".
1063 * nto-tdep.c: Add #include "defs.h".
1064 * Makefile.in (nto_tdep_h): Update dependencies.
1065 (nto-tdep.o): Likewise.
1067 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1069 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1071 (proceed, start_remote): Update call to wait_for_inferior.
1072 * inferior.h (wait_for_inferior): Update declaration.
1073 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1074 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1075 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1076 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1078 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1080 * varobj (adjust_value_for_child_access): Added checking for
1081 returned value from gdb_value_ind.
1082 (c_describe_child): Likewise.
1083 (cplus_describe_child): Fixed a typo.
1085 2008-01-29 Jim Blandy <jimb@red-bean.com>
1087 * MAINTAINERS: Update my info.
1089 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1091 Use multiple locations for hardware watchpoints.
1092 This eliminates the need to traverse value chain, doing
1093 various checks, in three different places.
1095 * breakpoint.h (struct bp_location): New fields
1096 lengths and watchpoint_type.
1097 (struct breakpoint): Remove the val_chain field.
1098 * breakpoint.c (is_hardware_watchpoint): New.
1099 (free_valchain): Remove.
1100 (update_watchpoint): New.
1101 (insert_bp_location): For hardware watchpoint, just
1103 (insert_breakpoints): Call update_watchpoint_locations
1104 on all watchpoints. If we have failed to insert
1105 any location of a hardware watchpoint, remove all inserted
1107 (remove_breakpoint): For hardware watchpoints, directly
1109 (watchpoints_triggered): Iterate over locations.
1110 (bpstat_stop_status): Use only first location of
1111 a resource watchpoint.
1112 (delete_breakpoint): Don't call free_valchain.
1113 (print_one_breakpoint): Don't print all
1114 locations for watchpoints.
1115 (breakpoint_re_set_one): Use update_watchpoint for
1118 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1120 Don't reset watchpoint block on solib load.
1122 * breakpoint.c (insert_bp_location): For watchpoints,
1123 recompute condition.
1124 (breakpoint_re_set_one): Instead of recomputing value
1125 and condition for watchpoints, just reset value and
1126 let insert_breakpoints/insert_bp_location recompute it.
1127 Don't do anything about disabled watchpoint.
1129 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1131 * valarith.c (value_binop): Handle unsigned integer
1134 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1136 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1137 instruction pattern that appears frequently in position
1138 independent code. Fix bug in code which looks for "fmov" and
1139 backtracks if no "fmov" is found.
1141 2008-01-28 Doug Evans <dje@google.com>
1143 * dbxread.c (read_dbx_symtab): Fix indentation.
1144 Reformat comments to 80 columns.
1145 Move local var def closer to only use.
1147 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1149 * fork-child.c (SHELL_FILE): Remove #ifndef.
1150 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1152 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1154 * i386-tdep.c (i386_skip_noop): New function.
1155 (i386_analyze_prologue): Call i386_skip_noop function.
1157 2008-01-24 Michael Snyder <msnyder@specifix.com>
1159 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1160 * win32-nat.c (win32_xfer_partial): Ditto.
1161 * target.c (default_xfer_partial): Minor whitespace adjustment.
1163 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1165 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1166 strip bit 1 even if pc doesn't point to thumb code.
1168 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1170 * remote.c (remote_wait): Handle SIGINT between packets.
1171 (remote_async_wait): Likewise.
1173 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1174 Chris Demetriou <cgd@google.com>
1176 * thread.c (add_thread_silent): Renamed
1178 (print_thread_events): New variable definition.
1179 (show_print_thread_events): New function.
1180 (_initialize_thread): Add "set print thread-events" and
1181 "show print thread-events" commands.
1182 (add_thread): Announce new thread.
1183 * gdbthread.h (add_thread_silent): Declare.
1184 (print_thread_events): New variable declaration.
1185 * inf-ttrace.c (inf_ttrace_wait): Don't
1186 inform about new thread, as add_thread is always
1187 called too, and will take care of that.
1188 * infrun.c (handle_inferior_event): Likewise.
1189 * procfs.c (procfs_wait): Likewise.
1190 * remote.c (remote_currthread): Likewise.
1191 * sol-thread.c (sol_thread_wait): Likewise.
1192 * win32-nat.c (get_win32_debug_event): Likewise.
1193 * linux-thread-db.c (attach_thread): Likewise.
1194 Remove the verbose parameter.
1195 (check_event): Make detach_thread be verbose
1196 only if print_thread_events is set.
1197 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1198 about new thread. This is called only from
1199 linux-thread-db.c:attach_thread, which will take care.
1200 Remove the verbose parameter.
1201 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1203 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1205 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1207 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1209 * breakpoint.c (break_command_really): New parameter
1211 (break_command_1): Pass 0 as
1212 ignore_count to break_command_really.
1213 (gdb_breakpoint): Pass ignore_count to
1214 break_command_really.
1216 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1218 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1219 sigcontext struct via pointer.
1220 (struct sigframe comment): Update to show new field `psc'.
1222 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1224 * infrun.c (handle_inferior_event): If
1225 we failed to remove breakpoints, error,
1226 don't try to increment PC by hand.
1228 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1230 Add NetBSD/hppa target and host support.
1232 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1233 (hppabsd_gregset): Move to ...
1234 (hppabsd_regset_from_core_section): Rename
1235 hppaobsd_regset_from_core_section and move to ...
1236 (hppabsd_find_global_pointer): Update comment.
1237 (hppabsd_init_abi): Make global. Do not register
1238 hppabsd_regset_from_core_section.
1239 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1241 (_initialize_hppabsd_tdep): Move to ...
1242 * hppaobsd-tdep.c: ... here. New file.
1243 * hppnbsd-tdep.c: New file.
1244 * hppnbsd-nat.c: New file.
1245 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1246 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1247 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1248 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1249 * configure.host (hppa*-*-netbsd*): New entry.
1250 * configure.tgt (hppa*-*-netbsd*): New entry.
1251 (hppa*-*-openbsd*): Update.
1252 * NEWS (New native configuration): Mention NetBSD/hppa.
1253 (New targets): Mention NetBSD/hppa.
1255 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1257 * gdbarch.sh (function_list): Add new property bits_big_endian to
1259 * gdbarch.{c,h}: Regenerate.
1261 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1262 gdbarch_bits_big_endian (comment).
1263 (unpack_field_as_long, modify_field): Likewise.
1264 * value.h: Likewise (comment).
1265 * valops.c (value_slice): Likewise.
1266 * valarith.c (value_subscript, value_bit_index): Likewise.
1267 * gdbtypes.h (field): Likewise (comment).
1268 * eval.c (evaluate_subexp_standard): Likewise.
1269 * dwarf2read.c (dwarf2_add_field): Likewise.
1270 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1271 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1273 * defs.h (BITS_BIG_ENDIAN): Remove.
1275 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1277 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1279 * m2-exp.y (yylex): Likewise.
1280 * objc-exp.y (yylex): Likewise.
1282 * defs.h (DEPRECATED_STREQN): Remove.
1284 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1286 * MAINTAINERS: Update my email address.
1288 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1290 * README: Mention gdbserver/README.
1292 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1294 * valarith.c (value_binop): Handle BINOP_INTDIV
1295 for unsigned and signed integers.
1297 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1299 * s390-tdep.c (s390_gdbarch_init): Set default long double
1300 type to 128-bit IEEE quad.
1302 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1304 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1306 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1308 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1310 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1311 * value.c: All callers changed.
1313 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1315 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1316 DEPRECATED_STREQ by its expression.
1317 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1318 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1319 (scan_xcoff_symtab): Likewise.
1320 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1321 * f-lang.c (find_common_for_function): Likewise.
1322 * objc-exp.y (parse_number): Likewise.
1324 * defs.h (DEPRECATED_STREQ): Remove.
1326 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1328 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1329 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1330 get_frame_arch to get at the current_architecture. Update AM33_MODE
1332 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1333 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1335 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1337 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1339 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1341 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1343 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1344 current_gdbarch by gdbarch. Update caller.
1346 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1347 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1348 the current architecture. Update calls of
1349 amd64_native_gregset_supplies_p.
1350 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1351 (amd64bsd_store_inferior_registers): Likewise.
1353 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1355 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1356 Replace current_gdbarch by gdbarch. Update caller.
1358 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1360 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1361 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1362 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1363 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1364 (stabsect_build_psymtabs): Fix indentation.
1366 2008-01-15 Michael Snyder <msnyder@specifix.com>
1368 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1370 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1372 * win32-nat.c (win32_create_inferior): Restore code calling
1373 CloseHandle on ProcessInformation structure.
1375 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1377 * configure.ac: Check for void * as 3 argument of ptrace.
1378 * configure: regenerate.
1380 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1382 * alpha-tdep.c (alpha_heuristic_proc_start)
1383 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1384 current_gdbarch by gdbarch.
1386 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1387 current architecture by frame_info. Update alpha_heuristic_proc_start
1390 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1391 get_frame_arch to get at the current architecture by frame_info. Update
1392 alpha_sigtramp_register_address call.
1394 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1395 current_gdbarch by gdbarch. Update caller.
1396 (convert_to_extended, convert_from_extended): Add endianess parameter
1397 for comparison. Update caller.
1398 (arm_extract_return_value, arm_store_return_value): Use
1399 get_regcache_arch to get at the current architecture.
1401 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1402 current_gdbarch by gdbarch. Update caller.
1403 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1404 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1406 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1407 gdbarch as parameter. Update caller.
1408 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1409 current_gdbarch by gdbarch. Update caller.
1411 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1412 update caller. Replace current_gdbarch by gdbarch.
1414 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1415 the current architecture. Replace current_gdbarch by gdbarch.
1416 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1417 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1418 expression. Add gdbarch as parameter and replace current_gdbarch with
1420 (M6811_TDEP): Remove.
1421 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1423 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1424 current_gdbarch by gdbarch. Update caller.
1426 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1428 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1431 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1432 caller. Relace current_gdbarch by gdbarch.
1433 (altivec_register_p, spe_register_p): Likewise.
1434 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1436 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1437 altivec_register_p and spe_register_p.
1439 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1440 caller. Replace current_gdbarch by gdbarch.
1441 (score_analyze_prologue): use get_frame_arch to get at the current
1444 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1445 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1446 current_gdbarch by gdbarch. Update caller.
1447 (sparc_frame_cache): Use get_frame_arch to get at the current
1449 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1450 sparc_analyze_prologue.
1452 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1455 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1457 * exec.c: #include "arch-utils.h"
1458 (print_section_info): Use gdbarch_from_bfd to get at the
1459 current architecture. Replace current_gdbarch. Fix indention. Replace
1460 deprecated_print_address_numeric by paddress.
1461 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1463 * valprint.c (val_print_string): Replace
1464 deprecated_print_address_numeric.
1465 * tracepoint.c (trace_mention, scope_info): Likewise.
1466 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1467 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1468 (maintenance_check_symtabs): Likewise.
1469 * symfile.c (list_overlays_command): Likewise.
1470 * stack.c (frame_info, print_block_frame_labels): Likewise.
1471 * printcmd.c (print_address, print_address_demangle)
1472 (address_info): Likewise.
1473 * corefile.c (memory_error): Likewise.
1474 * infcmd.c (jump_command): Likewise.
1475 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1476 (mention, delete_breakpoint): Likewise.
1477 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1478 * dwarf2read.c (dump_die): Likewise.
1479 * ada-valprint.c (ada_val_print_1): Likewise.
1480 * f-valprint.c (f_val_print): Likewise.
1481 * linux-fork.c (info_forks_command): Likewise.
1482 * m32r-com.c (m32r_load_section, m32r_load)
1483 (m32r_upload_command): Likewise.
1485 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1487 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1489 * gdbarch.sh (skip_prologue): Add gdbarch
1491 * gdbarch.{c,h}: Regenerate.
1493 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1494 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1495 * avr-tdep.c (avr_skip_prologue): Likewise.
1496 * cris-tdep.c (cris_skip_prologue): Likewise.
1497 * frv-tdep.c (frv_skip_prologue): Likewise.
1498 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1499 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1500 * i386-tdep.c (i386_skip_prologue): Likewise.
1501 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1502 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1503 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1504 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1505 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1506 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1507 * mep-tdep.c (mep_skip_prologue): Likewise.
1508 * mips-tdep.c (mips_skip_prologue): Likewise.
1509 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1510 * mt-tdep.c (mt_skip_prologue): Likewise.
1511 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1512 * score-tdep.c (score_skip_prologue): Likewise.
1513 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1514 * sh-tdep.c (sh_skip_prologue): Likewise.
1515 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1516 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1517 * spu-tdep.c (spu_skip_prologue): Likewise.
1518 * v850-tdep.c (v850_skip_prologue): Likewise.
1519 * vax-tdep.c (vax_skip_prologue): Likewise.
1520 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1521 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1523 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1524 current_gdbarch by gdbarch.
1525 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1526 * s390-tdep.c (s390_skip_prologue): Likewise.
1528 2008-01-10 Doug Evans <dje@google.com>
1530 * defs.h (struct continuation_arg): Fix typo in comment.
1531 * target.c (target_translate_tls_address): Fix comment spelling error.
1533 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1535 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1536 (DOUBLEST_SCAN_FORMAT): Likewise.
1537 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1538 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1539 * c-exp.y (parse_number): Likewise.
1540 * jv-exp.y (parse_number): Likewise.
1541 * objc-exp.y (parse_number): Likewise.
1542 * p-exp.y (parse_number): Likewise.
1544 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1546 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1547 (check_typedef): Likewise.
1549 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1551 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1552 seen_double_big_d, treat the new H, D, and DD modifiers as length
1555 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1557 * dwarf2read.c (read_enumeration_type): Add comment.
1559 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1561 * config.in: Regenerate.
1563 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1565 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1567 (ada_convert_actuals): Delete.
1568 * ada-lang.h (ada_convert_actual): Add declaration.
1569 (ada_convert_actuals): Remove declaration.
1570 * infcall.c: #include "ada-lang.h".
1571 (value_arg_coerce): Add new parameter sp. Update function
1572 documetnation. Add handling of Ada function call parameters.
1573 * Makefile.in (infcall.o): Update dependencies.
1575 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1577 * ada-lang.c (ensure_lval): Fix value lval kind.
1578 (convert_actual): Add handling for arguments passed by reference.
1580 2008-01-08 Doug Evans <dje@google.com>
1582 * dbxread.c (read_dbx_symtab): Fix indentation.
1584 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1586 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1587 (valarith.o): Depend on dfp.h.
1588 (valops.o): Likewise.
1589 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1590 (set_decnumber_context): New function.
1591 (decimal_check_errors): Likewise.
1592 (decimal_from_number): Likewise.
1593 (decimal_to_number): Likewise.
1594 (decimal_from_string): Use set_decnumber_context and
1595 decimal_check_errors.
1596 (decimal_from_integral): New function.
1597 (decimal_from_floating): Likewise.
1598 (decimal_to_double): Likewise.
1599 (promote_decimal): Likewise.
1600 (decimal_binop): Likewise.
1601 (decimal_is_zero): Likewise.
1602 (decimal_compare): Likewise.
1603 (decimal_convert): Likewise.
1604 * dfp.h (decimal_from_integral): New prototype.
1605 (decimal_from_floating): Likewise.
1606 (decimal_to_double): Likewise.
1607 (decimal_binop): Likewise.
1608 (decimal_is_zero): Likewise.
1609 (decimal_compare): Likewise.
1610 (decimal_convert): Likewise.
1611 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1612 call to value_from_decfloat.
1613 * valarith.c: Include dfp.h.
1614 (value_args_as_decimal): New function.
1615 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1616 (value_logical_not): Likewise.
1617 (value_equal): Likewise.
1618 (value_less): Likewise.
1619 (value_pos): Likewise.
1620 (value_neg): Formatting fix.
1621 * valops.c: Include dfp.h.
1622 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1623 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1624 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1625 (value_from_decfloat): Remove expect_type argument.
1626 * value.h (value_from_decfloat): Update prototype.
1628 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1630 Ignore change in name of dynamic linker during
1631 execution on Solaris. This also unbreaks pending breakpoints.
1633 * solist.h (struct target_so_ops): New field same.
1634 * solib-svr4.c (svr4_same): New.
1635 (_initialize_svr4_solib): Register svr4_same.
1636 * solib.c (update_solib_list): Use ops->same, if available.
1638 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1640 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1641 when using MS-DOS paths.
1643 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1645 * NEWS: Mention --pid and --core command line behaviour changes.
1647 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1649 * main.c (captured_main): Remove 'count' varible and the
1650 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1651 --pid options were issued simultaneously. If an explicit pid
1652 option was passed, don't fallback to core file. Detect extra
1653 arguments better in the presence of explicit pid or core
1656 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1658 * ada-lang.c (ada_which_variant_applies): Correctly compute
1659 the value of the discriminant when the variant record is packed.
1661 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1663 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1664 that are used to differentiate homonyms.
1666 2008-01-04 Jerome Guitton <guitton@adacore.com>
1668 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1669 when the type is an anonymous pointer type.
1670 (ada_check_typedef): Avoid a seg fault when the type is null.
1671 * ada-typeprint.c (print_array_type): Add support for pointer
1674 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1676 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1678 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1680 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1681 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1683 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1685 * ada-exp.y (chop_separator): New function.
1686 (write_selectors): Rewrite to re-use chop_separator.
1687 (ada_nget_field_index, get_symbol_field_type): New functions.
1688 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1691 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1693 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1694 of SYMBOL_VALUE when working with function symbols.
1696 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1698 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1699 expressions. These expressions do not need to be rewriten.
1701 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1703 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1704 the given die is a declaration.
1706 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1708 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1709 Handle properly the case when the index type is an enumerated type.
1710 Do not return the subtype of the bounds type, just return the
1711 bounds type directly - this is not needed and is more consistent
1712 with what we do for arrays when no XA parallel type exists.
1714 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1716 * ada-lang.c (static_unwrap_type): Add forward declaration.
1717 (template_to_static_fixed_type): Fields of dynamic types sometimes
1718 also need to be unwrapped. Take this into account.
1719 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1720 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1721 * ada-typeprint.c (ada_print_type): Get the typename from
1722 the original type, not the base type.
1724 2008-01-03 Jerome Guitton <guitton@adacore.com>
1726 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1727 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1728 Update calls to ada_to_fixed_type.
1729 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1731 (ada_to_fixed_type): Add check_tag parameter; do not look for
1732 tag if null. When looking for a tag, use a fixed record type.
1733 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1734 * ada-valprint.c (printable_val_type, ada_value_print): Update
1735 calls to ada_to_fixed_type.
1737 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1739 * doublest.c (convert_floatformat_to_doublest): Call
1740 floatformat_to_doublest instead of floatformat_to_double and use
1742 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1743 instead of floatformat_from_double and use DOUBLEST variables.
1745 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1747 * MAINTAINERS (Write After Approval): Add self.
1749 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1751 * symfile.c (set_initial_language): Make non-static.
1752 * symfile.h (set_initial_language): Add declaration.
1753 * language.c: #include "symfile.h".
1754 (set_language): Call set_initial_language if the frame language
1755 could not be determined.
1757 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1759 * eval.c (evaluate_subexp_for_address): Provide frame address to
1760 locate_var_value only if it will be needed.
1762 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1764 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1766 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1768 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1769 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1770 This is needed to make sure that any other treatment applied
1771 to the resulting value does not fail for spurious reason,
1772 such as trying to take the address of this value.
1774 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1776 * ada-lang.c (ada_value_equal): Dereference reference types when
1779 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1781 Updated copyright notices for most files.
1783 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1785 * win32-nat.c (psapi_module_handle): Remove static.
1786 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1787 return first module found if base_address is zero. Don't initialize
1788 psapi function pointers here. Convert to cygwin paths when
1790 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1791 executable name. Use get_module_name when that fails or when
1793 (_initialize_psapi): New function. Initialize psapi stuff before it is
1794 needed or issue a warning if it is not found. Move psapi_module_handle
1797 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1799 * ada-lang.c (ada_remove_trailing_digits): New function.
1800 (ada_remove_po_subprogram_suffix): New function.
1801 (ada_decode): Improve. Move the description of the algorithm
1802 directly inside the code, instead of in the function global
1805 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1807 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1808 and always print the dereferenced value.
1810 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1812 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1813 of the case where the first argument is a reference.
1814 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1816 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1818 Implement support for Ada interface types.
1820 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1821 (ada_is_ignored_field): Ignore fields that are a dispatch table
1824 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1826 * top.c (print_gdb_version): Update copyright year.
1828 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1830 * ChangeLog-2007: New ChangeLog rotation.
1831 * ChangeLog: Reset for 2008.
1832 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1835 For older changes see ChangeLog-2007.
1841 version-control: never