1 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3 * inflow.c (gdb_getpgrp): New.
4 (gdb_has_a_terminal): Use get_getpgrp.
5 (terminal_ours_1): If attach_flag is set, don't refetch
6 inferior_process_group.
8 2008-03-14 Pedro Alves <pedro@codesourcery.com>
10 * features/library-list.dtd: Allow "section" elements as children
11 of "library". Add "section" element and describe its attributes.
13 * solib-target.c (struct lm_info): Add section_bases member.
14 (library_list_start_segment): Error out if seen a section element.
15 (library_list_start_section): New.
16 (library_list_end_library): New.
17 (solib_target_free_library_list): Free section_bases.
18 (section_attributes): New.
19 (library_children): Make "segment" optional. Add "section" child.
20 (library_list_children): Register library_list_end_library.
21 (solib_target_relocate_section_addresses): Handle section bases.
23 * NEWS: Mention new qXfer:libraries:read section offsets support.
25 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
27 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
28 (make_exec_error_cleanup): Remove declarations.
29 * utils.c (exec_error_cleanup_chain): Remove.
30 (do_exec_error_cleanups, discard_exec_error_cleanups)
31 (make_exec_error_cleanup): Remove.
32 * event-loop.c (start_event_loop): Adjust call to
34 * event-top.c (async_enable_stdin): Remove the paramater dummy.
35 (async_disable_stdin): Don't register async_enable_stdin via
37 * inf-loop.c (inferior_event_handler): Don't
38 call do_exec_error_cleanups. Call async_enable_stdin instead.
39 * event-loop.c (start_event_loop): Adjust call to
41 * tui/tui-interp.c (tui_command_loop): Adjust call to
44 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
47 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
48 * breakpoint.c (bpstat_do_actions): In async mode,
49 don't jump to top expecting stop_bpstat to be already
51 * event-loop.c (start_event_loop): Call async_enable_stdin
53 * event-top.c (async_enable_stdin): Do nothing if sync_execution
55 (command_handler): Do not setup continuation here.
56 (command_line_handler_continuation): Move to...
57 * top.c (command_line_handler_continuation): ... here.
58 (execute_command): In async mode, register continuation.
59 Don't check frame's language in running in async mode.
60 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
61 * inf-loop.c (complete_execution): Inline into...
62 (inferior_event_handler): ... here. Clear target_executing before
63 doing any cleanups. Don't try to show prompt if the target was
65 * infcmd.c (signal_command): Add support for async mode.
66 (finish_command): Only add continuation if the target was
68 * remote.c (init_async_opts): Register to_get_thread_local_address
70 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
72 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
75 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
77 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
78 * exec.c (exec_bfd_mtime): Define.
79 (exec_close): Clear it.
80 (exec_file_attach): Set it.
81 * gdbcore.h (exec_bfd_mtime): Declare.
82 * source.c (find_source_lines): Do not use bfd_get_mtime.
84 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
86 * top.c (simplified_command_loop): Remove.
88 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
90 Remove unused remote.c hooks.
91 * remote.c (deprecated_target_resume_hook)
92 (deprecated_target_wait_loop_hook): Remove.
93 (remote_resume): Do not call deprecated_target_resume_hook.
94 (remote_wait): Do not call deprecated_target_wait_loop_hook.
95 (remote_async_wait): Likewise.
97 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
99 Implement MI notification for new threads.
100 * doc/observer.texi (new_thread): Document.
101 * observer.sh: Forward declare struct thread_info.
102 * thread.c (add_thread): Notify observer.
104 * interps.h (interp_init_ftype): New parameter
106 (interp_set): Likewise.
107 (top_level_interpreter_data): Declare.
108 * interps.c (interp_set): New parameter top_level.
109 Pass it to interpreter's init function. Remember
110 top level interpreter.
111 (interpreter_exec_cmd): Adjust.
112 (top_level_interpreter_data): New.
113 * main.c (captured_main): Pass 1 for top_level
114 parameter of interp_set.
115 * cli/cli-interp.c (cli_interpreter_init): New
117 * tui/tui-interp.c (tui_init): New parameter top_level.
119 * mi/mi-interp.c (mi_new_thread): New.
120 (mi_interpreter_init): If top level, register
121 observer for new threads.
123 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
125 2008-03-14 Pedro Alves <pedro@codesourcery.com>
127 * top.c (execute_command): Disable break and stop
128 commands in async mode.
130 2008-03-14 Pedro Alves <pedro@codesourcery.com>
133 2008-03-14 Pedro Alves <pedro@codesourcery.com>
134 * inf-loop.c (inferior_event_handler): Don't include remote.h.
135 Call target_stop in the INF_QUIT_REQ case.
136 * Makefile.in (inf-loop.o): Update.
138 2008-03-14 Pedro Alves <pedro@codesourcery.com>
140 * inf-loop.c (inferior_event_handler): Don't include remote.h.
141 Call target_stop in the INF_QUIT_REQ case.
142 * Makefile.in (inf-loop.o): Update.
144 2008-03-14 Pedro Alves <pedro@codesourcery.com>
146 * top.c (execute_command): Enable break, info and interrupt
147 commands in async mode.
149 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
150 Daniel Jacobowitz <dan@codesourcery.com>
152 * breakpoint.h (breakpoint_restore_shadows): New
154 * breakpoint.c (breakpoint_restore_shadows): New.
155 (read_memory_nobpt): Delete.
156 * gdbcore.h (read_memory_nobpt): Delete declaration.
157 * target.c (memory_xfer_partial): Call
158 breakpoint_restore_shadows.
159 (restore_show_memory_breakpoints)
160 (make_show_memory_beakpoints_cleanup): New.
161 (show_memory_breakpoints): New.
162 * target.h (make_show_memory_beakpoints_cleanup): Declare.
163 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
164 Make sure we see memory breakpoints when checking if
165 breakpoint is still there.
166 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
167 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
168 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
169 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
171 2008-03-12 Pedro Alves <pedro@codesourcery.com>
173 * thread.c (add_thread): Use printf_unfiltered to print.
175 2008-03-12 Joel Brobecker <brobecker@gnat.com>
177 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
178 that is true only on x86-solaris and x86_64-solaris.
179 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
180 with proc_get_LDT_entry.
182 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
184 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
185 * config.in, configure: Regenerate.
186 * fork-child.c (fork_inferior): Call create_tty_session.
187 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
188 (create_tty_session): New function.
189 * terminal.h: Declare create_tty_session.
191 2008-03-12 Alan Modra <amodra@bigpond.net.au>
194 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
195 * mipsread.c: Include elf/internal.h.
196 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
199 2008-03-11 Markus Deuling <deuling@de.ibm.com>
201 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
202 to get at the current architecture and at the target specific vector.
203 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
204 remove define of I387_ST0_REGNUM.
206 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
208 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
209 get at the current architecture
210 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
213 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
214 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
216 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
217 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
218 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
220 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
221 at the target specific vector.
223 (i386_get_longjmp_target): Use get_frame_arch to get at the current
224 architecture. Use gdbarch_tdep to get at the target specific vector.
226 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
227 update caller. Use gdbarch_tdep to get at the target specific vector.
229 (i386_register_to_value: Use get_frame_arch to get at the current
232 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
235 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
236 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
237 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
238 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
240 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
243 (i387_convert_register_p, i387_register_to_value,
244 i387_value_to_register): Update call for i386_fp_regnum_p.
246 * i387-tdep.h: Remove comment.
247 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
248 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
249 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
250 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
251 I387_MXCSR_REGNUM): Add target specific vector as parameter.
253 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
255 * Makefile.in (fork-child.o): Update.
256 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
257 argument. Gather all gdbserver features together.
258 * fork-child.c (exec_wrapper): New variable.
259 (fork_inferior): Use it.
260 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
261 (unset_exec_wrapper_command, _initialize_fork_child): New.
263 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
265 * source.c (directory_command): Modify the determination of
266 condition of terminal "from_tty".
268 2008-03-10 Matt Rice <ratmice@gmail.com>
270 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
272 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
274 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
275 of the data passing to strtoulst function.
276 (info_spu_signal_command): Likewise.
278 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
280 * mi/mi-interp.c (mi_command_loop): Remove
283 2008-03-07 Joel Brobecker <brobecker@adacore.com>
285 * remote.c (extended_remote_attach_1): Make local variable pid an int
288 2008-03-07 Joel Brobecker <brobecker@adacore.com>
290 * solib-svr4.c (svr4_same_1): New function, originally extracted
291 from svr4_same and expanded to handle the sparc64 case.
292 (svr4_same): Move up and reimplement using svr4_same_1.
293 (enable_break): Use svr4_same_1 to do shared library name comparisons.
295 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
297 * MAINTAINERS: Move self to Paper trail.
299 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
301 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
302 * event-loop.c (call_async_signal_handler): New.
303 * event-loop.h (call_async_signal_handler)
304 (gdb_call_async_signal_handler): Declare.
305 (mark_async_signal_handler): Add comments.
306 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
307 * mingw-hdep.c (sigint_event, sigint_handler): New.
308 (gdb_select): Use them. Wait for the readline signal handler
310 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
311 * posix-hdep.c (gdb_call_async_signal_handler): New function.
312 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
314 (remote_fileio_ctrl_c_signal_handler): Use
315 gdb_call_async_signal_handler.
316 (initialize_remote_fileio): Initialize sigint_fileio_token.
317 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
318 not initialize tokens here.
319 (handle_remote_sigint_twice): Likewise. Reinstall
320 handle_remote_sigint.
321 (async_remote_interrupt_twice): Just call interrupt_query.
322 (cleanup_sigint_signal_handler): Do not delete tokens.
323 (remote_interrupt, remote_interrupt_twice): Use
324 gdb_call_async_signal_handler.
325 (interrupt_query): Reinstall the default signal handler.
326 (_initialize_remote): Initialize tokens here.
328 2008-03-04 Joel Brobecker <brobecker@adacore.com>
330 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
331 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
332 Change the type of the lr register to code_ptr.
333 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
334 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
335 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
336 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
337 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
338 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
339 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
341 2008-03-03 James E. Wilson <wilson@tuliptree.org>
343 * MAINTAINERS: Update my email address.
345 2008-03-03 Keith Seitz <keiths@redhat.com>
347 From Dave Murphy <davem@devkitpro.org>:
348 * configure.ac: Set tcl configdir to win under mingw.
349 * configure: Regenerate.
351 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
353 * breakpoint.c (fetch_watchpoint_value): New function.
354 (update_watchpoint): Set and clear val_valid. Use
355 fetch_watchpoint_value. Handle unreadable values on the
356 value chain. Correct check for user-requested array watchpoints.
357 (breakpoint_init_inferior): Clear val_valid.
358 (watchpoint_value_print): New function.
359 (print_it_typical): Use it. Do not free or clear old_val. Print
360 watchpoints even if old_val == NULL.
361 (watchpoint_check): Use fetch_watchpoint_value. Check for values
362 becoming readable or unreadable.
363 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
364 (do_enable_watchpoint): Likewise.
365 * breakpoint.h (struct breakpoint): Update comment for val. Add
367 * NEWS: Mention watchpoints on inaccessible memory.
369 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
371 * Makefile.in (i386-nat.o): Update.
372 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
373 i386_use_watchpoints.
374 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
375 i386_use_watchpoints.
376 * i386-nat.c (i386_stopped_data_address): Take two arguments.
377 (i386_stopped_by_watchpoint): Update call.
378 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
379 * config/i386/nm-i386.h: Conditionalize definitions on
380 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
381 (i386_use_watchpoints): Declare.
382 (i386_stopped_data_address): Update.
383 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
384 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
386 2008-02-29 Joel Brobecker <brobecker@adacore.com>
388 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
389 * version.in: Bump version to 6.8.50.20080229-cvs.
391 2008-02-28 Markus Deuling <deuling@de.ibm.com>
393 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
396 2008-02-28 Tom Tromey <tromey@redhat.com>
398 * infcmd.c (notice_args_read): Print result of get_inferior_args.
400 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
402 * infcmd.c (kill_if_already_running): Make static. Use
403 target_require_runnable.
404 * target.c (target_require_runnable): New.
405 * target.h (target_require_runnable): Declare.
407 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
409 * frame.c (reinit_frame_cache): Only annotate if frames were
412 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
414 * regformats/reg-ppc.dat: Rename "ps" to "msr".
415 * regformats/reg-ppc64.dat: Likewise.
417 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
419 * features/Makefile (%.dat): Emit xmltarget statement.
421 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
422 Generate code to set gdbserver_xmltarget in init_registers_${name}.
424 * regformats/arm-with-iwmmxt.dat: Regenerate.
425 * regformats/mips64-linux.dat: Regenerate.
426 * regformats/mips-linux.dat: Regenerate.
427 * regformats/rs6000/powerpc-32.dat: Regenerate.
428 * regformats/rs6000/powerpc-64.dat: Regenerate.
429 * regformats/rs6000/powerpc-e500.dat: Regenerate.
431 * regformats/reg-arm.dat: Add xmlarch statement.
432 * regformats/reg-i386.dat: Likewise.
433 * regformats/reg-i386-linux.dat: Likewise.
434 * regformats/reg-x86-64-linux.dat: Likewise.
435 * regformats/reg-spu.dat: Likewise.
437 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
439 * remote.c (remote_wait, remote_async_wait): Stop if we receive
442 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
444 * utils.c (debug_timestamp): New.
445 (vfprintf_unfiltered): Print timestamps if requested.
446 (show_debug_timestamp): New.
447 (initialize_utils): Register "set debug timestamp".
448 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
450 2008-02-27 Joel Brobecker <brobecker@adacore.com>
452 * breakpoint.c (skip_prologue_sal): New function.
453 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
454 computed from a line number.
456 2008-02-27 Joel Brobecker <brobecker@adacore.com>
458 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
459 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
460 Set PC register type to "code_ptr".
461 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
462 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
463 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
464 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
465 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
466 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
467 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
470 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
472 * regformats/regdat.sh: Rename init_registers function in
473 generated file to init_registers_${name}.
475 * regformats/reg-crisv32.dat: Set "name" to crisv32.
476 * regformats/reg-ppc64.dat: Set "name" to ppc64.
477 * regformats/reg-s390x.dat: Set "name" to s390x.
479 2008-02-26 Greg Law <glaw@undo-software.com>
481 * regcache.c (registers_changed): Call reinit_frame_cache.
483 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
485 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
486 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
487 and svr4_fetch_objfile_link_map.
488 * Makefile.in (sh-linux-tdep.o): Update.
490 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
492 * amd64-tdep.c (amd64_classify): Add support for decimal float
494 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
495 use the struct return convention.
497 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
499 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
500 to old format. Discard breakpoint address if shared library is
502 (breakpoint_1): Adjust formatting of table header accordingly.
504 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
506 * remote.c (remote_get_threadlist): If the response
507 is empty, don't try to parse it.
509 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
511 Unbreak 'target async'.
512 * serial.c (serial_async): Set the
513 handler function before enabling async
516 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
518 * solib-svr4.c (enable_break): Convert r_brk to a code address.
520 2008-02-21 Pedro Alves <pedro@codesourcery.com>
522 * remote.c (extended_remote_attach_1): Set attach_flag.
523 (extended_remote_create_inferior_1): Clear attach_flag.
525 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
527 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
529 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
530 * solib-svr4.c (solib_svr4_r_brk): New.
531 (open_symbol_file_object, svr4_current_sos): Always check the
533 (svr4_fetch_objfile_link_map): Do not set debug_base.
534 (enable_break): Use r_brk if it is set.
535 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
536 (svr4_lp64_fetch_link_map_offsets): Likewise.
537 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
539 2008-02-20 Markus Deuling <deuling@de.ibm.com>
540 Mark Kettenis <kettenis@gnu.org>
542 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
543 trad_frame_saved_reg.
544 (trad-frame.h): New include.
546 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
547 instead of frame_obstack_zalloc.
548 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
550 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
552 2008-02-20 Markus Deuling <deuling@de.ibm.com>
554 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
555 from disassemble_info instead of gdbarch_byte_order.
557 * mips-tdep.c (gdb_print_insn_mips): Likewise.
558 * arm-tdep.c (gdb_print_insn_arm): Likewise.
560 2008-02-20 Markus Deuling <deuling@de.ibm.com>
562 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
563 gdbarch as parameter.
565 * gdbarch.{c,h}: Regenerate.
567 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
569 * mem-break.c (default_memory_insert_breakpoint)
570 (default_memory_remove_breakpoint): Likewise.
571 * target.h (default_memory_remove_breakpoint)
572 (default_memory_insert_breakpoint): Likewise.
574 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
575 parameter. Replace current_gdbarch by gdbarch.
576 * m32r-tdep.c (m32r_memory_insert_breakpoint)
577 (m32r_memory_remove_breakpoint): Likewise.
579 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
581 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
583 2008-02-19 Joel Brobecker <brobecker@adacore.com>
585 * NEWS: Add entry describing Add support improvements.
587 2008-02-18 Markus Deuling <deuling@de.ibm.com>
589 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
592 2008-02-18 Markus Deuling <deuling@de.ibm.com>
594 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
595 register_offset_hack anymore.
597 * regcache.{c,h} (register_offset_hack): Remove.
599 2008-02-18 Markus Deuling <deuling@de.ibm.com>
601 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
603 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
604 current_gdbarch by gdbarch.
605 (hppa64_hpux_find_global_pointer): Likewise.
606 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
607 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
610 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
612 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
614 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
617 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
618 replace current_gdbarch by gdbarch.
619 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
621 2008-02-18 Markus Deuling <deuling@de.ibm.com>
623 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
624 and replace current_gdbarch by gdbarch.
626 (store_register): Update call for exec_one_dummy_insn.
627 (fetch_register, store_register): Update call of regmap.
629 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
630 parameter and replace current_gdbarch by gdbarch.
632 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
633 the current architecture. Update call for getregs_supplies and
635 (ppcnbsd_fetch_inferior_registers): Likewise.
637 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
638 replace current_gdbarch by gdbarch.
639 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
640 get_regcache_arch to get at the current architecture. Update call for
643 2008-02-18 Markus Deuling <deuling@de.ibm.com>
645 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
648 2008-02-15 Markus Deuling <deuling@de.ibm.com>
650 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
652 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
654 * NEWS: Mention pending breakpints in MI.
656 2008-02-14 Markus Deuling <deuling@de.ibm.com>
658 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
660 2008-02-13 Markus Deuling <deuling@de.ibm.com>
662 Add script to build and test GDB using enable-targets=all.
664 * gdb_buildall.sh: New file.
666 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
668 * NEWS (New native configurations): Xtensa GNU/Linux.
669 (New targets): Xtensa GNU/Linux.
670 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
672 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
673 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
674 * configure.tgt (xtensa*-*-linux*): New entry.
675 * xtensa-config.c (xtensa_tdep): New variable.
676 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
677 (rmap): Change format based on new macro XTREG.
678 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
679 * xtensa-linux-nat.c: New.
680 * xtensa-linux-tdep.c: New.
681 * xtensa-xtregs.c: New.
682 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
683 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
684 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
685 (xtensa_register_t): New field coprocessor.
686 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
687 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
688 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
689 Update to handle privileged registers.
690 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
691 (xtensa_push_dummy_call): Set windowstart register correctly.
692 (call0_analyze_prologue): Initialize xtensa_default_isa.
693 (xtensa_derive_tdep): New.
694 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
695 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
696 Call xtensa_derive_tdep().
697 * config/xtensa/linux.mh: New.
698 * regformats/reg-xtensa.dat: New.
700 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
702 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
703 (filenames.h): New include.
704 * Makefile.in (corelow.o): Add dependency for filenames.h.
706 2008-02-08 Doug Evans <dje@google.com>
708 * source.c (find_and_open_source): Always rewrite absolute filenames.
710 2008-02-07 Doug Evans <dje@google.com>
712 * breakpoint.c: #include "hashtab.h".
713 (ambiguous_names_p): New fn.
714 (update_breakpoint_locations): When restoring bp enable status, don't
715 compare function names if any functions have same name.
716 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
718 2008-02-07 Joel Brobecker <brobecker@adacore.com>
720 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
721 instead of just a VEC*. Update use of SV.
722 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
724 2007-02-07 Joel Brobecker <brobecker@adacore.com>
726 * NEWS: Put all new commands since gdb-6.7 together.
728 2007-02-07 Joel Brobecker <brobecker@adacore.com>
730 * ada-lang.c: #include "vec.h".
731 (struct string_vector, new_string_vector, string_vector_append):
733 (char_ptr): New typedef.
734 (DEF_VEC_P (char_ptr)): New VEC type.
735 (symbol_completion_add): Update profile to take the new VEC type
736 instead of the old string_vector structure. Update code accordingly.
737 (ada_make_symbol_completion_list): Use the new VEC type instead of
738 the old string_vector structure, and update the code accordingly.
739 * Makefile.in (ada-lang.o): Add dependency on vec.h.
741 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
743 * p-exp.y: Set current_type in missing places.
744 (leftdiv_is_integer): New static variable.
745 Typecast right operand of BINOP_DIV to long_double if both operands
748 2008-02-06 Maciej W. Rozycki <macro@mips.com>
750 * remote-mips.c (set_breakpoint): Rename to...
751 (mips_set_breakpoint): ... this.
752 (clear_breakpoint): Rename to...
753 (mips_clear_breakpoint): ... this.
754 (common_breakpoint): Rename to...
755 (mips_common_breakpoint): ... this.
756 (check_lsi_error): Rename to...
757 (mips_check_lsi_error): ... this.
759 2007-02-05 Joel Brobecker <brobecker@adacore.com>
761 * language.h (struct language_defn): Add new field
762 la_make_symbol_completion_list.
763 * symtab.c (default_make_symbol_completion_list): Renames
764 make_symbol_completion_list.
765 (make_symbol_completion_list): New function.
766 * symtab.h (default_make_symbol_completion_list): Add declaration.
767 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
768 (auto_language, local_language): Likewise.
769 * objc-lang.c (objc_language_defn): Likewise.
770 * scm-lang.c (scm_language_defn): Likewise.
771 * m2-lang.c (m2_language_defn): Likewise.
772 * f-lang.c (f_language_defn): Likewise.
773 * jv-lang.c (java_language_defn): Likewise.
774 * p-lang.c (pascal_language_defn): Likewise.
775 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
776 (minimal_language_defn): Likewise.
777 * ada-lang.c (struct string_vector): New structure.
778 (new_string_vector, string_vector_append, ada_unqualified_name)
779 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
780 (ada_make_symbol_completion_list): New functions.
781 (ada_language_defn): Set la_make_symbol_completion_list.
782 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
783 this function is static.
785 2008-02-05 Kevin Buettner <kevinb@redhat.com>
787 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
788 to account for call site optimizations.
790 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
792 * tracepoint.c (read_actions): Handle end-of-text indicator
793 in action list properly. (Committed by Jim Blandy)
795 2008-02-05 Jim Blandy <jimb@red-bean.com>
797 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
798 pseudoregister, not an internal error.
799 Reported by: Andrzej Zaborowski
801 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
803 * varobj.c (c_value_of_variable): Use xstrdup.
805 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
807 Update stored rendition of varobj value when format changes.
808 * varobj.c (varobj_set_display_format): Recomputed
810 (c_value_of_variable): Return print_value.
812 2008-02-03 Doug Evans <dje@google.com>
814 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
815 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
816 * valops.c (value_one): New function.
817 * value.h (value_one): Declare.
819 Fix argument promotion for binary arithmetic ops for C.
820 * valarith.c (unop_result_type): New fn.
821 (binop_result_type): New fn.
822 (value_binop): Move result type computation to binop_result_type.
823 (value_pos, value_neg, value_complement): Move result type
824 computation to unop_result_type.
827 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
828 Return basetype, fieldno if found. All callers updated.
829 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
831 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
832 * symfile.h (fill_in_vptr_fieldno): Delete.
834 2008-02-02 Doug Evans <dje@google.com>
836 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
838 * typeprint.c (*): Whitespace cleanup.
840 2008-02-02 Mark Kettenis <kettenis@gnu.org>
841 Luis Machado <luisgpm@br.ibm.com>
842 Thiago Jung Bauermann <bauerman@br.ibm.com>
844 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
845 don't fit into registerson the stack the way GCC does.
847 2008-02-01 Joel Brobecker <brobecker@adacore.com>
849 * symtab.c (symbol_set_names): Do not add an entry in the demangling
850 hash table for Ada symbols. Just store the linkage name as is,
851 and leave the demangled_name as NULL.
853 2007-02-01 Joel Brobecker <brobecker@adacore.com>
855 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
857 (new_symbol): Likewise.
859 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
861 * breakpoint.c (break_command_1): Return void.
862 (break_command_really): Return void. Rethrow
863 exceptions instead of returning.
864 (gdb_breakpoint): Remove the error_message parameter.
865 Return void. Rename to set_breakpoint.
866 * gdb.h (gdb_breakpoint): Rename and move to...
867 * breakpoint.h (set_breakpoint): ...here.
868 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
869 event hooks even if exception is thrown. Adjust to
870 gdb_breakpoint interface changes.
873 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
875 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
876 float in both first and second word in the doubleword, to support
879 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
881 Properly rethrow exception. This fixes errors
882 about non-existent functions for -break-insert.
883 * breakpoint.c (break_command_really): Use throw_exception
884 for rethrowing. If rethrowing, don't print the exception.
886 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
888 * NEWS: Mention Decimal Floating Point support.
890 2008-01-31 Joel Brobecker <brobecker@adacore.com>
892 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
893 value type to builtin_type_void_func_ptr.
895 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
897 * s390-tdep.c (is_float_singleton, is_float_like,
898 alignment_of, s390_return_value): Make checks for
899 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
901 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
902 Thiago Jung Bauermann <bauerman@br.ibm.com>
904 * infcmd.c (default_print_registers_info): Also print hex
905 raw contents for TYPE_CODE_DECFLOAT registers.
906 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
907 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
908 (rs6000_register_name): Add support for DFP pseudo-registers.
909 (rs6000_pseudo_register_type): Likewise.
910 rs6000_pseudo_register_reggroup_p): Likewise.
911 (ppc_pseudo_register_read): New function.
912 (ppc_pseudo_register_write): Likewise.
913 (rs6000_pseudo_register_read): Likewise.
914 (rs6000_pseudo_register_write): Likewise.
915 (e500_pseudo_register_read): Move checks to
916 rs6000_pseudo_register_read.
917 (e500_pseudo_register_write): Move checks to
918 rs6000_pseudo_register_write.
919 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
920 rs6000_pseudo_register_read and rs6000_pseudo_register_write
921 in gdbarch if SPE or DFP is available. Adjust gdbarch's
922 num_pseudo_regs to account for DFP pseudo regs.
924 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
926 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
927 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
928 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
929 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
930 e500_pseudo_register_read, e500_pseudo_register_write): Use
931 IS_SPE_PSEUDOREG macro.
932 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
933 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
934 Remove initialization of tdep->ppc_ev31_regnum.
936 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
938 * printcmd.c (print_formatted): Handle references as for unformatted
941 2008-01-30 Joel Brobecker <brobecker@adacore.com>
943 * eval.c (evaluate_subexp_standard): Add handling of user
944 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
946 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
948 * eval.c (evaluate_subexp_standard): Support
951 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
953 * valarith.c (value_binop): Add floating-point BINOP_MIN and
955 For BINOP_EXP, use length and signedness of left operand only for
956 result, as for shifts.
957 For integral operands to BINOP_EXP, use new integer_pow and
958 uinteger_pow functions so as to get full range of results.
959 (integer_pow): New function.
960 (uinteger_pow): New function.
962 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
964 Use vector for varobj_list_children interface.
965 * gdb/varobj.c (varobj_list_children): Return vector
967 * gdb/varobj.h (varobj_list_children): Adjust
969 (varobj_p): Declare. Declare vector thereof.
970 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
971 for varobj_list_children change.
972 * Makefile.in (varobj_h): Update dependencies.
974 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
976 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
977 TYPE_CODE_DECFLOAT arguments.
978 (ppc64_sysv_abi_push_dummy_call) Likewise.
979 (get_decimal_float_return_value): New function.
980 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
981 values by calling get_decimal_float_return_value.
982 (ppc64_sysv_abi_return_value): Likewise.
984 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
986 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
987 for preprocessor macro information. Formatting changes.
989 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
991 * remote.c (struct remote_state): Add cached_wait_status.
992 (remote_exec_file): New variable.
993 (PACKET_vAttach, PACKET_vRun): New constants.
994 (extended_remote_restart): Do not query for status.
995 (struct start_remote_args): New.
996 (remote_start_remote): Take it as a second argument. Check
997 whether the target is running. Issue an error for non-running
998 non-extended targets. Cache the wait status. Set inferior_ptid
1000 (remote_open_1): Prompt to disconnect non-running targets. Make
1001 sure the target is marked running. Do not set inferior_ptid here.
1002 Update call to remote_start_remote. Do not call remote_check_symbols
1003 if the target is not running.
1004 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1005 argument. Handle a non-running target.
1006 (remote_detach): Use it.
1007 (extended_remote_detach): New.
1008 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1009 (extended_remote_attach_1, extended_remote_attach)
1010 (extended_async_remote_attach): New.
1011 (remote_vcont_resume): Remove unused variable.
1012 (remote_wait, remote_async_wait): Use any cached wait status.
1013 (putpkt_binary, getpkt): Clear any cached wait status.
1014 (extended_remoute_mourn_1): New.
1015 (extended_remote_mourn): Use it.
1016 (extended_async_remote_mourn, extended_remote_run): New.
1017 (extended_remote_create_inferior_1): New.
1018 (extended_remote_create_inferior): Use it.
1019 (extended_remote_async_create_inferior): Likewise.
1020 (remote_xfer_partial): Skip for non-executing targets.
1021 (init_extended_remote_ops): Set to_detach and to_attach.
1022 (init_extended_async_remote_ops): Likewise. Use
1023 extended_async_remote_mourn.
1024 (_initialize_remote): Register vAttach, vRun, and
1025 set remote exec-file.
1026 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1028 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1030 * Makefile.in (symfile.o): Update.
1031 * NEWS: Mention exec tracing support.
1032 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1034 * infcmd.c (kill_if_already_running, detach_command)
1035 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1036 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1037 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1038 targets. Apply the sysroot path to the loaded executable. Use
1039 no_shared_libraries.
1040 * linux-nat.c (linux_child_follow_fork): Print fork following
1041 messages if verbose.
1042 (kill_wait_callback): Kill again before waiting a second time.
1043 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1044 no_shared_libraries.
1046 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1048 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1050 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1052 * nto-tdep.h: Remove #include "defs.h".
1053 * nto-tdep.c: Add #include "defs.h".
1054 * Makefile.in (nto_tdep_h): Update dependencies.
1055 (nto-tdep.o): Likewise.
1057 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1059 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1061 (proceed, start_remote): Update call to wait_for_inferior.
1062 * inferior.h (wait_for_inferior): Update declaration.
1063 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1064 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1065 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1066 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1068 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1070 * varobj (adjust_value_for_child_access): Added checking for
1071 returned value from gdb_value_ind.
1072 (c_describe_child): Likewise.
1073 (cplus_describe_child): Fixed a typo.
1075 2008-01-29 Jim Blandy <jimb@red-bean.com>
1077 * MAINTAINERS: Update my info.
1079 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1081 Use multiple locations for hardware watchpoints.
1082 This eliminates the need to traverse value chain, doing
1083 various checks, in three different places.
1085 * breakpoint.h (struct bp_location): New fields
1086 lengths and watchpoint_type.
1087 (struct breakpoint): Remove the val_chain field.
1088 * breakpoint.c (is_hardware_watchpoint): New.
1089 (free_valchain): Remove.
1090 (update_watchpoint): New.
1091 (insert_bp_location): For hardware watchpoint, just
1093 (insert_breakpoints): Call update_watchpoint_locations
1094 on all watchpoints. If we have failed to insert
1095 any location of a hardware watchpoint, remove all inserted
1097 (remove_breakpoint): For hardware watchpoints, directly
1099 (watchpoints_triggered): Iterate over locations.
1100 (bpstat_stop_status): Use only first location of
1101 a resource watchpoint.
1102 (delete_breakpoint): Don't call free_valchain.
1103 (print_one_breakpoint): Don't print all
1104 locations for watchpoints.
1105 (breakpoint_re_set_one): Use update_watchpoint for
1108 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1110 Don't reset watchpoint block on solib load.
1112 * breakpoint.c (insert_bp_location): For watchpoints,
1113 recompute condition.
1114 (breakpoint_re_set_one): Instead of recomputing value
1115 and condition for watchpoints, just reset value and
1116 let insert_breakpoints/insert_bp_location recompute it.
1117 Don't do anything about disabled watchpoint.
1119 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1121 * valarith.c (value_binop): Handle unsigned integer
1124 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1126 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1127 instruction pattern that appears frequently in position
1128 independent code. Fix bug in code which looks for "fmov" and
1129 backtracks if no "fmov" is found.
1131 2008-01-28 Doug Evans <dje@google.com>
1133 * dbxread.c (read_dbx_symtab): Fix indentation.
1134 Reformat comments to 80 columns.
1135 Move local var def closer to only use.
1137 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1139 * fork-child.c (SHELL_FILE): Remove #ifndef.
1140 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1142 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1144 * i386-tdep.c (i386_skip_noop): New function.
1145 (i386_analyze_prologue): Call i386_skip_noop function.
1147 2008-01-24 Michael Snyder <msnyder@specifix.com>
1149 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1150 * win32-nat.c (win32_xfer_partial): Ditto.
1151 * target.c (default_xfer_partial): Minor whitespace adjustment.
1153 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1155 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1156 strip bit 1 even if pc doesn't point to thumb code.
1158 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1160 * remote.c (remote_wait): Handle SIGINT between packets.
1161 (remote_async_wait): Likewise.
1163 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1164 Chris Demetriou <cgd@google.com>
1166 * thread.c (add_thread_silent): Renamed
1168 (print_thread_events): New variable definition.
1169 (show_print_thread_events): New function.
1170 (_initialize_thread): Add "set print thread-events" and
1171 "show print thread-events" commands.
1172 (add_thread): Announce new thread.
1173 * gdbthread.h (add_thread_silent): Declare.
1174 (print_thread_events): New variable declaration.
1175 * inf-ttrace.c (inf_ttrace_wait): Don't
1176 inform about new thread, as add_thread is always
1177 called too, and will take care of that.
1178 * infrun.c (handle_inferior_event): Likewise.
1179 * procfs.c (procfs_wait): Likewise.
1180 * remote.c (remote_currthread): Likewise.
1181 * sol-thread.c (sol_thread_wait): Likewise.
1182 * win32-nat.c (get_win32_debug_event): Likewise.
1183 * linux-thread-db.c (attach_thread): Likewise.
1184 Remove the verbose parameter.
1185 (check_event): Make detach_thread be verbose
1186 only if print_thread_events is set.
1187 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1188 about new thread. This is called only from
1189 linux-thread-db.c:attach_thread, which will take care.
1190 Remove the verbose parameter.
1191 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1193 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1195 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1197 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1199 * breakpoint.c (break_command_really): New parameter
1201 (break_command_1): Pass 0 as
1202 ignore_count to break_command_really.
1203 (gdb_breakpoint): Pass ignore_count to
1204 break_command_really.
1206 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1208 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1209 sigcontext struct via pointer.
1210 (struct sigframe comment): Update to show new field `psc'.
1212 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1214 * infrun.c (handle_inferior_event): If
1215 we failed to remove breakpoints, error,
1216 don't try to increment PC by hand.
1218 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1220 Add NetBSD/hppa target and host support.
1222 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1223 (hppabsd_gregset): Move to ...
1224 (hppabsd_regset_from_core_section): Rename
1225 hppaobsd_regset_from_core_section and move to ...
1226 (hppabsd_find_global_pointer): Update comment.
1227 (hppabsd_init_abi): Make global. Do not register
1228 hppabsd_regset_from_core_section.
1229 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1231 (_initialize_hppabsd_tdep): Move to ...
1232 * hppaobsd-tdep.c: ... here. New file.
1233 * hppnbsd-tdep.c: New file.
1234 * hppnbsd-nat.c: New file.
1235 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1236 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1237 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1238 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1239 * configure.host (hppa*-*-netbsd*): New entry.
1240 * configure.tgt (hppa*-*-netbsd*): New entry.
1241 (hppa*-*-openbsd*): Update.
1242 * NEWS (New native configuration): Mention NetBSD/hppa.
1243 (New targets): Mention NetBSD/hppa.
1245 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1247 * gdbarch.sh (function_list): Add new property bits_big_endian to
1249 * gdbarch.{c,h}: Regenerate.
1251 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1252 gdbarch_bits_big_endian (comment).
1253 (unpack_field_as_long, modify_field): Likewise.
1254 * value.h: Likewise (comment).
1255 * valops.c (value_slice): Likewise.
1256 * valarith.c (value_subscript, value_bit_index): Likewise.
1257 * gdbtypes.h (field): Likewise (comment).
1258 * eval.c (evaluate_subexp_standard): Likewise.
1259 * dwarf2read.c (dwarf2_add_field): Likewise.
1260 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1261 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1263 * defs.h (BITS_BIG_ENDIAN): Remove.
1265 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1267 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1269 * m2-exp.y (yylex): Likewise.
1270 * objc-exp.y (yylex): Likewise.
1272 * defs.h (DEPRECATED_STREQN): Remove.
1274 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1276 * MAINTAINERS: Update my email address.
1278 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1280 * README: Mention gdbserver/README.
1282 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1284 * valarith.c (value_binop): Handle BINOP_INTDIV
1285 for unsigned and signed integers.
1287 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1289 * s390-tdep.c (s390_gdbarch_init): Set default long double
1290 type to 128-bit IEEE quad.
1292 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1294 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1296 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1298 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1300 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1301 * value.c: All callers changed.
1303 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1305 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1306 DEPRECATED_STREQ by its expression.
1307 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1308 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1309 (scan_xcoff_symtab): Likewise.
1310 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1311 * f-lang.c (find_common_for_function): Likewise.
1312 * objc-exp.y (parse_number): Likewise.
1314 * defs.h (DEPRECATED_STREQ): Remove.
1316 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1318 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1319 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1320 get_frame_arch to get at the current_architecture. Update AM33_MODE
1322 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1323 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1325 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1327 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1329 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1331 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1333 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1334 current_gdbarch by gdbarch. Update caller.
1336 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1337 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1338 the current architecture. Update calls of
1339 amd64_native_gregset_supplies_p.
1340 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1341 (amd64bsd_store_inferior_registers): Likewise.
1343 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1345 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1346 Replace current_gdbarch by gdbarch. Update caller.
1348 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1350 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1351 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1352 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1353 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1354 (stabsect_build_psymtabs): Fix indentation.
1356 2008-01-15 Michael Snyder <msnyder@specifix.com>
1358 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1360 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1362 * win32-nat.c (win32_create_inferior): Restore code calling
1363 CloseHandle on ProcessInformation structure.
1365 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1367 * configure.ac: Check for void * as 3 argument of ptrace.
1368 * configure: regenerate.
1370 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1372 * alpha-tdep.c (alpha_heuristic_proc_start)
1373 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1374 current_gdbarch by gdbarch.
1376 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1377 current architecture by frame_info. Update alpha_heuristic_proc_start
1380 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1381 get_frame_arch to get at the current architecture by frame_info. Update
1382 alpha_sigtramp_register_address call.
1384 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1385 current_gdbarch by gdbarch. Update caller.
1386 (convert_to_extended, convert_from_extended): Add endianess parameter
1387 for comparison. Update caller.
1388 (arm_extract_return_value, arm_store_return_value): Use
1389 get_regcache_arch to get at the current architecture.
1391 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1392 current_gdbarch by gdbarch. Update caller.
1393 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1394 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1396 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1397 gdbarch as parameter. Update caller.
1398 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1399 current_gdbarch by gdbarch. Update caller.
1401 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1402 update caller. Replace current_gdbarch by gdbarch.
1404 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1405 the current architecture. Replace current_gdbarch by gdbarch.
1406 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1407 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1408 expression. Add gdbarch as parameter and replace current_gdbarch with
1410 (M6811_TDEP): Remove.
1411 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1413 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1414 current_gdbarch by gdbarch. Update caller.
1416 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1418 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1421 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1422 caller. Relace current_gdbarch by gdbarch.
1423 (altivec_register_p, spe_register_p): Likewise.
1424 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1426 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1427 altivec_register_p and spe_register_p.
1429 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1430 caller. Replace current_gdbarch by gdbarch.
1431 (score_analyze_prologue): use get_frame_arch to get at the current
1434 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1435 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1436 current_gdbarch by gdbarch. Update caller.
1437 (sparc_frame_cache): Use get_frame_arch to get at the current
1439 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1440 sparc_analyze_prologue.
1442 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1445 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1447 * exec.c: #include "arch-utils.h"
1448 (print_section_info): Use gdbarch_from_bfd to get at the
1449 current architecture. Replace current_gdbarch. Fix indention. Replace
1450 deprecated_print_address_numeric by paddress.
1451 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1453 * valprint.c (val_print_string): Replace
1454 deprecated_print_address_numeric.
1455 * tracepoint.c (trace_mention, scope_info): Likewise.
1456 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1457 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1458 (maintenance_check_symtabs): Likewise.
1459 * symfile.c (list_overlays_command): Likewise.
1460 * stack.c (frame_info, print_block_frame_labels): Likewise.
1461 * printcmd.c (print_address, print_address_demangle)
1462 (address_info): Likewise.
1463 * corefile.c (memory_error): Likewise.
1464 * infcmd.c (jump_command): Likewise.
1465 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1466 (mention, delete_breakpoint): Likewise.
1467 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1468 * dwarf2read.c (dump_die): Likewise.
1469 * ada-valprint.c (ada_val_print_1): Likewise.
1470 * f-valprint.c (f_val_print): Likewise.
1471 * linux-fork.c (info_forks_command): Likewise.
1472 * m32r-com.c (m32r_load_section, m32r_load)
1473 (m32r_upload_command): Likewise.
1475 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1477 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1479 * gdbarch.sh (skip_prologue): Add gdbarch
1481 * gdbarch.{c,h}: Regenerate.
1483 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1484 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1485 * avr-tdep.c (avr_skip_prologue): Likewise.
1486 * cris-tdep.c (cris_skip_prologue): Likewise.
1487 * frv-tdep.c (frv_skip_prologue): Likewise.
1488 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1489 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1490 * i386-tdep.c (i386_skip_prologue): Likewise.
1491 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1492 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1493 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1494 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1495 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1496 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1497 * mep-tdep.c (mep_skip_prologue): Likewise.
1498 * mips-tdep.c (mips_skip_prologue): Likewise.
1499 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1500 * mt-tdep.c (mt_skip_prologue): Likewise.
1501 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1502 * score-tdep.c (score_skip_prologue): Likewise.
1503 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1504 * sh-tdep.c (sh_skip_prologue): Likewise.
1505 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1506 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1507 * spu-tdep.c (spu_skip_prologue): Likewise.
1508 * v850-tdep.c (v850_skip_prologue): Likewise.
1509 * vax-tdep.c (vax_skip_prologue): Likewise.
1510 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1511 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1513 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1514 current_gdbarch by gdbarch.
1515 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1516 * s390-tdep.c (s390_skip_prologue): Likewise.
1518 2008-01-10 Doug Evans <dje@google.com>
1520 * defs.h (struct continuation_arg): Fix typo in comment.
1521 * target.c (target_translate_tls_address): Fix comment spelling error.
1523 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1525 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1526 (DOUBLEST_SCAN_FORMAT): Likewise.
1527 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1528 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1529 * c-exp.y (parse_number): Likewise.
1530 * jv-exp.y (parse_number): Likewise.
1531 * objc-exp.y (parse_number): Likewise.
1532 * p-exp.y (parse_number): Likewise.
1534 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1536 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1537 (check_typedef): Likewise.
1539 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1541 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1542 seen_double_big_d, treat the new H, D, and DD modifiers as length
1545 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1547 * dwarf2read.c (read_enumeration_type): Add comment.
1549 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1551 * config.in: Regenerate.
1553 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1555 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1557 (ada_convert_actuals): Delete.
1558 * ada-lang.h (ada_convert_actual): Add declaration.
1559 (ada_convert_actuals): Remove declaration.
1560 * infcall.c: #include "ada-lang.h".
1561 (value_arg_coerce): Add new parameter sp. Update function
1562 documetnation. Add handling of Ada function call parameters.
1563 * Makefile.in (infcall.o): Update dependencies.
1565 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1567 * ada-lang.c (ensure_lval): Fix value lval kind.
1568 (convert_actual): Add handling for arguments passed by reference.
1570 2008-01-08 Doug Evans <dje@google.com>
1572 * dbxread.c (read_dbx_symtab): Fix indentation.
1574 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1576 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1577 (valarith.o): Depend on dfp.h.
1578 (valops.o): Likewise.
1579 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1580 (set_decnumber_context): New function.
1581 (decimal_check_errors): Likewise.
1582 (decimal_from_number): Likewise.
1583 (decimal_to_number): Likewise.
1584 (decimal_from_string): Use set_decnumber_context and
1585 decimal_check_errors.
1586 (decimal_from_integral): New function.
1587 (decimal_from_floating): Likewise.
1588 (decimal_to_double): Likewise.
1589 (promote_decimal): Likewise.
1590 (decimal_binop): Likewise.
1591 (decimal_is_zero): Likewise.
1592 (decimal_compare): Likewise.
1593 (decimal_convert): Likewise.
1594 * dfp.h (decimal_from_integral): New prototype.
1595 (decimal_from_floating): Likewise.
1596 (decimal_to_double): Likewise.
1597 (decimal_binop): Likewise.
1598 (decimal_is_zero): Likewise.
1599 (decimal_compare): Likewise.
1600 (decimal_convert): Likewise.
1601 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1602 call to value_from_decfloat.
1603 * valarith.c: Include dfp.h.
1604 (value_args_as_decimal): New function.
1605 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1606 (value_logical_not): Likewise.
1607 (value_equal): Likewise.
1608 (value_less): Likewise.
1609 (value_pos): Likewise.
1610 (value_neg): Formatting fix.
1611 * valops.c: Include dfp.h.
1612 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1613 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1614 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1615 (value_from_decfloat): Remove expect_type argument.
1616 * value.h (value_from_decfloat): Update prototype.
1618 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1620 Ignore change in name of dynamic linker during
1621 execution on Solaris. This also unbreaks pending breakpoints.
1623 * solist.h (struct target_so_ops): New field same.
1624 * solib-svr4.c (svr4_same): New.
1625 (_initialize_svr4_solib): Register svr4_same.
1626 * solib.c (update_solib_list): Use ops->same, if available.
1628 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1630 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1631 when using MS-DOS paths.
1633 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1635 * NEWS: Mention --pid and --core command line behaviour changes.
1637 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1639 * main.c (captured_main): Remove 'count' varible and the
1640 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1641 --pid options were issued simultaneously. If an explicit pid
1642 option was passed, don't fallback to core file. Detect extra
1643 arguments better in the presence of explicit pid or core
1646 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1648 * ada-lang.c (ada_which_variant_applies): Correctly compute
1649 the value of the discriminant when the variant record is packed.
1651 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1653 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1654 that are used to differentiate homonyms.
1656 2008-01-04 Jerome Guitton <guitton@adacore.com>
1658 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1659 when the type is an anonymous pointer type.
1660 (ada_check_typedef): Avoid a seg fault when the type is null.
1661 * ada-typeprint.c (print_array_type): Add support for pointer
1664 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1666 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1668 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1670 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1671 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1673 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1675 * ada-exp.y (chop_separator): New function.
1676 (write_selectors): Rewrite to re-use chop_separator.
1677 (ada_nget_field_index, get_symbol_field_type): New functions.
1678 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1681 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1683 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1684 of SYMBOL_VALUE when working with function symbols.
1686 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1688 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1689 expressions. These expressions do not need to be rewriten.
1691 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1693 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1694 the given die is a declaration.
1696 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1698 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1699 Handle properly the case when the index type is an enumerated type.
1700 Do not return the subtype of the bounds type, just return the
1701 bounds type directly - this is not needed and is more consistent
1702 with what we do for arrays when no XA parallel type exists.
1704 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1706 * ada-lang.c (static_unwrap_type): Add forward declaration.
1707 (template_to_static_fixed_type): Fields of dynamic types sometimes
1708 also need to be unwrapped. Take this into account.
1709 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1710 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1711 * ada-typeprint.c (ada_print_type): Get the typename from
1712 the original type, not the base type.
1714 2008-01-03 Jerome Guitton <guitton@adacore.com>
1716 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1717 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1718 Update calls to ada_to_fixed_type.
1719 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1721 (ada_to_fixed_type): Add check_tag parameter; do not look for
1722 tag if null. When looking for a tag, use a fixed record type.
1723 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1724 * ada-valprint.c (printable_val_type, ada_value_print): Update
1725 calls to ada_to_fixed_type.
1727 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1729 * doublest.c (convert_floatformat_to_doublest): Call
1730 floatformat_to_doublest instead of floatformat_to_double and use
1732 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1733 instead of floatformat_from_double and use DOUBLEST variables.
1735 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1737 * MAINTAINERS (Write After Approval): Add self.
1739 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1741 * symfile.c (set_initial_language): Make non-static.
1742 * symfile.h (set_initial_language): Add declaration.
1743 * language.c: #include "symfile.h".
1744 (set_language): Call set_initial_language if the frame language
1745 could not be determined.
1747 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1749 * eval.c (evaluate_subexp_for_address): Provide frame address to
1750 locate_var_value only if it will be needed.
1752 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1754 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1756 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1758 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1759 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1760 This is needed to make sure that any other treatment applied
1761 to the resulting value does not fail for spurious reason,
1762 such as trying to take the address of this value.
1764 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1766 * ada-lang.c (ada_value_equal): Dereference reference types when
1769 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1771 Updated copyright notices for most files.
1773 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1775 * win32-nat.c (psapi_module_handle): Remove static.
1776 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1777 return first module found if base_address is zero. Don't initialize
1778 psapi function pointers here. Convert to cygwin paths when
1780 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1781 executable name. Use get_module_name when that fails or when
1783 (_initialize_psapi): New function. Initialize psapi stuff before it is
1784 needed or issue a warning if it is not found. Move psapi_module_handle
1787 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1789 * ada-lang.c (ada_remove_trailing_digits): New function.
1790 (ada_remove_po_subprogram_suffix): New function.
1791 (ada_decode): Improve. Move the description of the algorithm
1792 directly inside the code, instead of in the function global
1795 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1797 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1798 and always print the dereferenced value.
1800 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1802 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1803 of the case where the first argument is a reference.
1804 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1806 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1808 Implement support for Ada interface types.
1810 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1811 (ada_is_ignored_field): Ignore fields that are a dispatch table
1814 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1816 * top.c (print_gdb_version): Update copyright year.
1818 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1820 * ChangeLog-2007: New ChangeLog rotation.
1821 * ChangeLog: Reset for 2008.
1822 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1825 For older changes see ChangeLog-2007.
1831 version-control: never