1 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3 * Makefile.in (amd64nbsd-nat.o): New dependency.
4 * amd64nbsd-nat.c: Include "nbsd-nat.h".
5 (_initialize_amd64nbsd_nat): Update target vector to use
7 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
9 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
11 Remove ignoring leading exec events code.
12 * fork-child.c (startup_inferior): Do not set
13 inferior_ignoring_leading_exec_events.
14 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
15 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
16 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
17 (handle_inferior_event): Remove code for ignoring leading exec
19 * target.c (update_current_target): Do not inherit, or default,
20 to_reported_exec_events_per_exec_call.
21 (debug_to_reported_exec_events_per_exec_call): Remove.
22 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
23 * target.h (target_reported_exec_events_per_exec_call): Remove.
24 (struct target): Remove the to_reported_exec_events_per_exec_call
27 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
29 Implement -thread-info.
30 * gdbthread.h (print_thread_info): Declare.
32 * thread.c (print_thread_info): New, extracted
33 from info_threads_command and adjusted to
35 (info_threads_command): Use print_thread_info.
36 * Makefile.in: Update dependencies.
38 * mi/mi-cmds.c (mi_cmds): Specify a handler
40 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
41 * mi/mi-main.c (mi_cmd_thread_info): New.
42 (mi_cmd_list_features): Include 'thread-info'.
44 2008-03-14 Kevin Buettner <kevinb@redhat.com>
46 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
47 to decide whether to match instruction patterns using "sw" and "sd".
49 2008-03-14 Pedro Alves <pedro@codesourcery.com>
51 * infcmd.c (jump_command): Postpone disabling stdin until after
54 2008-03-14 Pedro Alves <pedro@codesourcery.com>
56 * inflow.c (gdb_getpgrp): New.
57 (gdb_has_a_terminal): Use get_getpgrp.
58 (terminal_ours_1): If attach_flag is set, don't refetch
59 inferior_process_group.
61 2008-03-14 Pedro Alves <pedro@codesourcery.com>
63 * features/library-list.dtd: Allow "section" elements as children
64 of "library". Add "section" element and describe its attributes.
66 * solib-target.c (struct lm_info): Add section_bases member.
67 (library_list_start_segment): Error out if seen a section element.
68 (library_list_start_section): New.
69 (library_list_end_library): New.
70 (solib_target_free_library_list): Free section_bases.
71 (section_attributes): New.
72 (library_children): Make "segment" optional. Add "section" child.
73 (library_list_children): Register library_list_end_library.
74 (solib_target_relocate_section_addresses): Handle section bases.
76 * NEWS: Mention new qXfer:libraries:read section offsets support.
78 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
80 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
81 (make_exec_error_cleanup): Remove declarations.
82 * utils.c (exec_error_cleanup_chain): Remove.
83 (do_exec_error_cleanups, discard_exec_error_cleanups)
84 (make_exec_error_cleanup): Remove.
85 * event-loop.c (start_event_loop): Adjust call to
87 * event-top.c (async_enable_stdin): Remove the paramater dummy.
88 (async_disable_stdin): Don't register async_enable_stdin via
90 * inf-loop.c (inferior_event_handler): Don't
91 call do_exec_error_cleanups. Call async_enable_stdin instead.
92 * event-loop.c (start_event_loop): Adjust call to
94 * tui/tui-interp.c (tui_command_loop): Adjust call to
97 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
100 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
101 * breakpoint.c (bpstat_do_actions): In async mode,
102 don't jump to top expecting stop_bpstat to be already
104 * event-loop.c (start_event_loop): Call async_enable_stdin
106 * event-top.c (async_enable_stdin): Do nothing if sync_execution
108 (command_handler): Do not setup continuation here.
109 (command_line_handler_continuation): Move to...
110 * top.c (command_line_handler_continuation): ... here.
111 (execute_command): In async mode, register continuation.
112 Don't check frame's language in running in async mode.
113 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
114 * inf-loop.c (complete_execution): Inline into...
115 (inferior_event_handler): ... here. Clear target_executing before
116 doing any cleanups. Don't try to show prompt if the target was
118 * infcmd.c (signal_command): Add support for async mode.
119 (finish_command): Only add continuation if the target was
120 successfully resumed.
121 * remote.c (init_async_opts): Register to_get_thread_local_address
123 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
125 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
128 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
130 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
131 * exec.c (exec_bfd_mtime): Define.
132 (exec_close): Clear it.
133 (exec_file_attach): Set it.
134 * gdbcore.h (exec_bfd_mtime): Declare.
135 * source.c (find_source_lines): Do not use bfd_get_mtime.
137 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
139 * top.c (simplified_command_loop): Remove.
141 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
143 Remove unused remote.c hooks.
144 * remote.c (deprecated_target_resume_hook)
145 (deprecated_target_wait_loop_hook): Remove.
146 (remote_resume): Do not call deprecated_target_resume_hook.
147 (remote_wait): Do not call deprecated_target_wait_loop_hook.
148 (remote_async_wait): Likewise.
150 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
152 Implement MI notification for new threads.
153 * doc/observer.texi (new_thread): Document.
154 * observer.sh: Forward declare struct thread_info.
155 * thread.c (add_thread): Notify observer.
157 * interps.h (interp_init_ftype): New parameter
159 (interp_set): Likewise.
160 (top_level_interpreter_data): Declare.
161 * interps.c (interp_set): New parameter top_level.
162 Pass it to interpreter's init function. Remember
163 top level interpreter.
164 (interpreter_exec_cmd): Adjust.
165 (top_level_interpreter_data): New.
166 * main.c (captured_main): Pass 1 for top_level
167 parameter of interp_set.
168 * cli/cli-interp.c (cli_interpreter_init): New
170 * tui/tui-interp.c (tui_init): New parameter top_level.
172 * mi/mi-interp.c (mi_new_thread): New.
173 (mi_interpreter_init): If top level, register
174 observer for new threads.
176 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
178 2008-03-14 Pedro Alves <pedro@codesourcery.com>
180 * top.c (execute_command): Disable break and stop
181 commands in async mode.
183 2008-03-14 Pedro Alves <pedro@codesourcery.com>
186 2008-03-14 Pedro Alves <pedro@codesourcery.com>
187 * inf-loop.c (inferior_event_handler): Don't include remote.h.
188 Call target_stop in the INF_QUIT_REQ case.
189 * Makefile.in (inf-loop.o): Update.
191 2008-03-14 Pedro Alves <pedro@codesourcery.com>
193 * inf-loop.c (inferior_event_handler): Don't include remote.h.
194 Call target_stop in the INF_QUIT_REQ case.
195 * Makefile.in (inf-loop.o): Update.
197 2008-03-14 Pedro Alves <pedro@codesourcery.com>
199 * top.c (execute_command): Enable break, info and interrupt
200 commands in async mode.
202 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
203 Daniel Jacobowitz <dan@codesourcery.com>
205 * breakpoint.h (breakpoint_restore_shadows): New
207 * breakpoint.c (breakpoint_restore_shadows): New.
208 (read_memory_nobpt): Delete.
209 * gdbcore.h (read_memory_nobpt): Delete declaration.
210 * target.c (memory_xfer_partial): Call
211 breakpoint_restore_shadows.
212 (restore_show_memory_breakpoints)
213 (make_show_memory_beakpoints_cleanup): New.
214 (show_memory_breakpoints): New.
215 * target.h (make_show_memory_beakpoints_cleanup): Declare.
216 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
217 Make sure we see memory breakpoints when checking if
218 breakpoint is still there.
219 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
220 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
221 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
222 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
224 2008-03-12 Pedro Alves <pedro@codesourcery.com>
226 * thread.c (add_thread): Use printf_unfiltered to print.
228 2008-03-12 Joel Brobecker <brobecker@gnat.com>
230 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
231 that is true only on x86-solaris and x86_64-solaris.
232 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
233 with proc_get_LDT_entry.
235 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
237 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
238 * config.in, configure: Regenerate.
239 * fork-child.c (fork_inferior): Call create_tty_session.
240 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
241 (create_tty_session): New function.
242 * terminal.h: Declare create_tty_session.
244 2008-03-12 Alan Modra <amodra@bigpond.net.au>
247 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
248 * mipsread.c: Include elf/internal.h.
249 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
252 2008-03-11 Markus Deuling <deuling@de.ibm.com>
254 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
255 to get at the current architecture and at the target specific vector.
256 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
257 remove define of I387_ST0_REGNUM.
259 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
261 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
262 get at the current architecture
263 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
266 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
267 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
269 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
270 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
271 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
273 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
274 at the target specific vector.
276 (i386_get_longjmp_target): Use get_frame_arch to get at the current
277 architecture. Use gdbarch_tdep to get at the target specific vector.
279 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
280 update caller. Use gdbarch_tdep to get at the target specific vector.
282 (i386_register_to_value: Use get_frame_arch to get at the current
285 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
288 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
289 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
290 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
291 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
293 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
296 (i387_convert_register_p, i387_register_to_value,
297 i387_value_to_register): Update call for i386_fp_regnum_p.
299 * i387-tdep.h: Remove comment.
300 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
301 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
302 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
303 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
304 I387_MXCSR_REGNUM): Add target specific vector as parameter.
306 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
308 * Makefile.in (fork-child.o): Update.
309 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
310 argument. Gather all gdbserver features together.
311 * fork-child.c (exec_wrapper): New variable.
312 (fork_inferior): Use it.
313 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
314 (unset_exec_wrapper_command, _initialize_fork_child): New.
316 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
318 * source.c (directory_command): Modify the determination of
319 condition of terminal "from_tty".
321 2008-03-10 Matt Rice <ratmice@gmail.com>
323 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
325 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
327 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
328 of the data passing to strtoulst function.
329 (info_spu_signal_command): Likewise.
331 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
333 * mi/mi-interp.c (mi_command_loop): Remove
336 2008-03-07 Joel Brobecker <brobecker@adacore.com>
338 * remote.c (extended_remote_attach_1): Make local variable pid an int
341 2008-03-07 Joel Brobecker <brobecker@adacore.com>
343 * solib-svr4.c (svr4_same_1): New function, originally extracted
344 from svr4_same and expanded to handle the sparc64 case.
345 (svr4_same): Move up and reimplement using svr4_same_1.
346 (enable_break): Use svr4_same_1 to do shared library name comparisons.
348 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
350 * MAINTAINERS: Move self to Paper trail.
352 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
354 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
355 * event-loop.c (call_async_signal_handler): New.
356 * event-loop.h (call_async_signal_handler)
357 (gdb_call_async_signal_handler): Declare.
358 (mark_async_signal_handler): Add comments.
359 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
360 * mingw-hdep.c (sigint_event, sigint_handler): New.
361 (gdb_select): Use them. Wait for the readline signal handler
363 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
364 * posix-hdep.c (gdb_call_async_signal_handler): New function.
365 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
367 (remote_fileio_ctrl_c_signal_handler): Use
368 gdb_call_async_signal_handler.
369 (initialize_remote_fileio): Initialize sigint_fileio_token.
370 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
371 not initialize tokens here.
372 (handle_remote_sigint_twice): Likewise. Reinstall
373 handle_remote_sigint.
374 (async_remote_interrupt_twice): Just call interrupt_query.
375 (cleanup_sigint_signal_handler): Do not delete tokens.
376 (remote_interrupt, remote_interrupt_twice): Use
377 gdb_call_async_signal_handler.
378 (interrupt_query): Reinstall the default signal handler.
379 (_initialize_remote): Initialize tokens here.
381 2008-03-04 Joel Brobecker <brobecker@adacore.com>
383 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
384 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
385 Change the type of the lr register to code_ptr.
386 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
387 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
388 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
389 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
390 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
391 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
392 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
394 2008-03-03 James E. Wilson <wilson@tuliptree.org>
396 * MAINTAINERS: Update my email address.
398 2008-03-03 Keith Seitz <keiths@redhat.com>
400 From Dave Murphy <davem@devkitpro.org>:
401 * configure.ac: Set tcl configdir to win under mingw.
402 * configure: Regenerate.
404 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
406 * breakpoint.c (fetch_watchpoint_value): New function.
407 (update_watchpoint): Set and clear val_valid. Use
408 fetch_watchpoint_value. Handle unreadable values on the
409 value chain. Correct check for user-requested array watchpoints.
410 (breakpoint_init_inferior): Clear val_valid.
411 (watchpoint_value_print): New function.
412 (print_it_typical): Use it. Do not free or clear old_val. Print
413 watchpoints even if old_val == NULL.
414 (watchpoint_check): Use fetch_watchpoint_value. Check for values
415 becoming readable or unreadable.
416 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
417 (do_enable_watchpoint): Likewise.
418 * breakpoint.h (struct breakpoint): Update comment for val. Add
420 * NEWS: Mention watchpoints on inaccessible memory.
422 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
424 * Makefile.in (i386-nat.o): Update.
425 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
426 i386_use_watchpoints.
427 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
428 i386_use_watchpoints.
429 * i386-nat.c (i386_stopped_data_address): Take two arguments.
430 (i386_stopped_by_watchpoint): Update call.
431 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
432 * config/i386/nm-i386.h: Conditionalize definitions on
433 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
434 (i386_use_watchpoints): Declare.
435 (i386_stopped_data_address): Update.
436 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
437 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
439 2008-02-29 Joel Brobecker <brobecker@adacore.com>
441 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
442 * version.in: Bump version to 6.8.50.20080229-cvs.
444 2008-02-28 Markus Deuling <deuling@de.ibm.com>
446 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
449 2008-02-28 Tom Tromey <tromey@redhat.com>
451 * infcmd.c (notice_args_read): Print result of get_inferior_args.
453 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
455 * infcmd.c (kill_if_already_running): Make static. Use
456 target_require_runnable.
457 * target.c (target_require_runnable): New.
458 * target.h (target_require_runnable): Declare.
460 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
462 * frame.c (reinit_frame_cache): Only annotate if frames were
465 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
467 * regformats/reg-ppc.dat: Rename "ps" to "msr".
468 * regformats/reg-ppc64.dat: Likewise.
470 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
472 * features/Makefile (%.dat): Emit xmltarget statement.
474 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
475 Generate code to set gdbserver_xmltarget in init_registers_${name}.
477 * regformats/arm-with-iwmmxt.dat: Regenerate.
478 * regformats/mips64-linux.dat: Regenerate.
479 * regformats/mips-linux.dat: Regenerate.
480 * regformats/rs6000/powerpc-32.dat: Regenerate.
481 * regformats/rs6000/powerpc-64.dat: Regenerate.
482 * regformats/rs6000/powerpc-e500.dat: Regenerate.
484 * regformats/reg-arm.dat: Add xmlarch statement.
485 * regformats/reg-i386.dat: Likewise.
486 * regformats/reg-i386-linux.dat: Likewise.
487 * regformats/reg-x86-64-linux.dat: Likewise.
488 * regformats/reg-spu.dat: Likewise.
490 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
492 * remote.c (remote_wait, remote_async_wait): Stop if we receive
495 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
497 * utils.c (debug_timestamp): New.
498 (vfprintf_unfiltered): Print timestamps if requested.
499 (show_debug_timestamp): New.
500 (initialize_utils): Register "set debug timestamp".
501 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
503 2008-02-27 Joel Brobecker <brobecker@adacore.com>
505 * breakpoint.c (skip_prologue_sal): New function.
506 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
507 computed from a line number.
509 2008-02-27 Joel Brobecker <brobecker@adacore.com>
511 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
512 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
513 Set PC register type to "code_ptr".
514 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
515 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
516 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
517 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
518 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
519 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
520 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
523 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
525 * regformats/regdat.sh: Rename init_registers function in
526 generated file to init_registers_${name}.
528 * regformats/reg-crisv32.dat: Set "name" to crisv32.
529 * regformats/reg-ppc64.dat: Set "name" to ppc64.
530 * regformats/reg-s390x.dat: Set "name" to s390x.
532 2008-02-26 Greg Law <glaw@undo-software.com>
534 * regcache.c (registers_changed): Call reinit_frame_cache.
536 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
538 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
539 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
540 and svr4_fetch_objfile_link_map.
541 * Makefile.in (sh-linux-tdep.o): Update.
543 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
545 * amd64-tdep.c (amd64_classify): Add support for decimal float
547 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
548 use the struct return convention.
550 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
552 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
553 to old format. Discard breakpoint address if shared library is
555 (breakpoint_1): Adjust formatting of table header accordingly.
557 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
559 * remote.c (remote_get_threadlist): If the response
560 is empty, don't try to parse it.
562 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
564 Unbreak 'target async'.
565 * serial.c (serial_async): Set the
566 handler function before enabling async
569 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
571 * solib-svr4.c (enable_break): Convert r_brk to a code address.
573 2008-02-21 Pedro Alves <pedro@codesourcery.com>
575 * remote.c (extended_remote_attach_1): Set attach_flag.
576 (extended_remote_create_inferior_1): Clear attach_flag.
578 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
580 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
582 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
583 * solib-svr4.c (solib_svr4_r_brk): New.
584 (open_symbol_file_object, svr4_current_sos): Always check the
586 (svr4_fetch_objfile_link_map): Do not set debug_base.
587 (enable_break): Use r_brk if it is set.
588 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
589 (svr4_lp64_fetch_link_map_offsets): Likewise.
590 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
592 2008-02-20 Markus Deuling <deuling@de.ibm.com>
593 Mark Kettenis <kettenis@gnu.org>
595 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
596 trad_frame_saved_reg.
597 (trad-frame.h): New include.
599 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
600 instead of frame_obstack_zalloc.
601 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
603 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
605 2008-02-20 Markus Deuling <deuling@de.ibm.com>
607 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
608 from disassemble_info instead of gdbarch_byte_order.
610 * mips-tdep.c (gdb_print_insn_mips): Likewise.
611 * arm-tdep.c (gdb_print_insn_arm): Likewise.
613 2008-02-20 Markus Deuling <deuling@de.ibm.com>
615 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
616 gdbarch as parameter.
618 * gdbarch.{c,h}: Regenerate.
620 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
622 * mem-break.c (default_memory_insert_breakpoint)
623 (default_memory_remove_breakpoint): Likewise.
624 * target.h (default_memory_remove_breakpoint)
625 (default_memory_insert_breakpoint): Likewise.
627 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
628 parameter. Replace current_gdbarch by gdbarch.
629 * m32r-tdep.c (m32r_memory_insert_breakpoint)
630 (m32r_memory_remove_breakpoint): Likewise.
632 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
634 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
636 2008-02-19 Joel Brobecker <brobecker@adacore.com>
638 * NEWS: Add entry describing Add support improvements.
640 2008-02-18 Markus Deuling <deuling@de.ibm.com>
642 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
645 2008-02-18 Markus Deuling <deuling@de.ibm.com>
647 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
648 register_offset_hack anymore.
650 * regcache.{c,h} (register_offset_hack): Remove.
652 2008-02-18 Markus Deuling <deuling@de.ibm.com>
654 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
656 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
657 current_gdbarch by gdbarch.
658 (hppa64_hpux_find_global_pointer): Likewise.
659 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
660 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
663 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
665 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
667 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
670 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
671 replace current_gdbarch by gdbarch.
672 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
674 2008-02-18 Markus Deuling <deuling@de.ibm.com>
676 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
677 and replace current_gdbarch by gdbarch.
679 (store_register): Update call for exec_one_dummy_insn.
680 (fetch_register, store_register): Update call of regmap.
682 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
683 parameter and replace current_gdbarch by gdbarch.
685 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
686 the current architecture. Update call for getregs_supplies and
688 (ppcnbsd_fetch_inferior_registers): Likewise.
690 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
691 replace current_gdbarch by gdbarch.
692 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
693 get_regcache_arch to get at the current architecture. Update call for
696 2008-02-18 Markus Deuling <deuling@de.ibm.com>
698 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
701 2008-02-15 Markus Deuling <deuling@de.ibm.com>
703 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
705 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
707 * NEWS: Mention pending breakpints in MI.
709 2008-02-14 Markus Deuling <deuling@de.ibm.com>
711 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
713 2008-02-13 Markus Deuling <deuling@de.ibm.com>
715 Add script to build and test GDB using enable-targets=all.
717 * gdb_buildall.sh: New file.
719 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
721 * NEWS (New native configurations): Xtensa GNU/Linux.
722 (New targets): Xtensa GNU/Linux.
723 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
725 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
726 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
727 * configure.tgt (xtensa*-*-linux*): New entry.
728 * xtensa-config.c (xtensa_tdep): New variable.
729 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
730 (rmap): Change format based on new macro XTREG.
731 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
732 * xtensa-linux-nat.c: New.
733 * xtensa-linux-tdep.c: New.
734 * xtensa-xtregs.c: New.
735 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
736 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
737 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
738 (xtensa_register_t): New field coprocessor.
739 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
740 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
741 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
742 Update to handle privileged registers.
743 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
744 (xtensa_push_dummy_call): Set windowstart register correctly.
745 (call0_analyze_prologue): Initialize xtensa_default_isa.
746 (xtensa_derive_tdep): New.
747 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
748 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
749 Call xtensa_derive_tdep().
750 * config/xtensa/linux.mh: New.
751 * regformats/reg-xtensa.dat: New.
753 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
755 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
756 (filenames.h): New include.
757 * Makefile.in (corelow.o): Add dependency for filenames.h.
759 2008-02-08 Doug Evans <dje@google.com>
761 * source.c (find_and_open_source): Always rewrite absolute filenames.
763 2008-02-07 Doug Evans <dje@google.com>
765 * breakpoint.c: #include "hashtab.h".
766 (ambiguous_names_p): New fn.
767 (update_breakpoint_locations): When restoring bp enable status, don't
768 compare function names if any functions have same name.
769 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
771 2008-02-07 Joel Brobecker <brobecker@adacore.com>
773 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
774 instead of just a VEC*. Update use of SV.
775 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
777 2007-02-07 Joel Brobecker <brobecker@adacore.com>
779 * NEWS: Put all new commands since gdb-6.7 together.
781 2007-02-07 Joel Brobecker <brobecker@adacore.com>
783 * ada-lang.c: #include "vec.h".
784 (struct string_vector, new_string_vector, string_vector_append):
786 (char_ptr): New typedef.
787 (DEF_VEC_P (char_ptr)): New VEC type.
788 (symbol_completion_add): Update profile to take the new VEC type
789 instead of the old string_vector structure. Update code accordingly.
790 (ada_make_symbol_completion_list): Use the new VEC type instead of
791 the old string_vector structure, and update the code accordingly.
792 * Makefile.in (ada-lang.o): Add dependency on vec.h.
794 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
796 * p-exp.y: Set current_type in missing places.
797 (leftdiv_is_integer): New static variable.
798 Typecast right operand of BINOP_DIV to long_double if both operands
801 2008-02-06 Maciej W. Rozycki <macro@mips.com>
803 * remote-mips.c (set_breakpoint): Rename to...
804 (mips_set_breakpoint): ... this.
805 (clear_breakpoint): Rename to...
806 (mips_clear_breakpoint): ... this.
807 (common_breakpoint): Rename to...
808 (mips_common_breakpoint): ... this.
809 (check_lsi_error): Rename to...
810 (mips_check_lsi_error): ... this.
812 2007-02-05 Joel Brobecker <brobecker@adacore.com>
814 * language.h (struct language_defn): Add new field
815 la_make_symbol_completion_list.
816 * symtab.c (default_make_symbol_completion_list): Renames
817 make_symbol_completion_list.
818 (make_symbol_completion_list): New function.
819 * symtab.h (default_make_symbol_completion_list): Add declaration.
820 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
821 (auto_language, local_language): Likewise.
822 * objc-lang.c (objc_language_defn): Likewise.
823 * scm-lang.c (scm_language_defn): Likewise.
824 * m2-lang.c (m2_language_defn): Likewise.
825 * f-lang.c (f_language_defn): Likewise.
826 * jv-lang.c (java_language_defn): Likewise.
827 * p-lang.c (pascal_language_defn): Likewise.
828 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
829 (minimal_language_defn): Likewise.
830 * ada-lang.c (struct string_vector): New structure.
831 (new_string_vector, string_vector_append, ada_unqualified_name)
832 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
833 (ada_make_symbol_completion_list): New functions.
834 (ada_language_defn): Set la_make_symbol_completion_list.
835 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
836 this function is static.
838 2008-02-05 Kevin Buettner <kevinb@redhat.com>
840 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
841 to account for call site optimizations.
843 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
845 * tracepoint.c (read_actions): Handle end-of-text indicator
846 in action list properly. (Committed by Jim Blandy)
848 2008-02-05 Jim Blandy <jimb@red-bean.com>
850 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
851 pseudoregister, not an internal error.
852 Reported by: Andrzej Zaborowski
854 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
856 * varobj.c (c_value_of_variable): Use xstrdup.
858 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
860 Update stored rendition of varobj value when format changes.
861 * varobj.c (varobj_set_display_format): Recomputed
863 (c_value_of_variable): Return print_value.
865 2008-02-03 Doug Evans <dje@google.com>
867 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
868 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
869 * valops.c (value_one): New function.
870 * value.h (value_one): Declare.
872 Fix argument promotion for binary arithmetic ops for C.
873 * valarith.c (unop_result_type): New fn.
874 (binop_result_type): New fn.
875 (value_binop): Move result type computation to binop_result_type.
876 (value_pos, value_neg, value_complement): Move result type
877 computation to unop_result_type.
880 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
881 Return basetype, fieldno if found. All callers updated.
882 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
884 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
885 * symfile.h (fill_in_vptr_fieldno): Delete.
887 2008-02-02 Doug Evans <dje@google.com>
889 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
891 * typeprint.c (*): Whitespace cleanup.
893 2008-02-02 Mark Kettenis <kettenis@gnu.org>
894 Luis Machado <luisgpm@br.ibm.com>
895 Thiago Jung Bauermann <bauerman@br.ibm.com>
897 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
898 don't fit into registerson the stack the way GCC does.
900 2008-02-01 Joel Brobecker <brobecker@adacore.com>
902 * symtab.c (symbol_set_names): Do not add an entry in the demangling
903 hash table for Ada symbols. Just store the linkage name as is,
904 and leave the demangled_name as NULL.
906 2007-02-01 Joel Brobecker <brobecker@adacore.com>
908 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
910 (new_symbol): Likewise.
912 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
914 * breakpoint.c (break_command_1): Return void.
915 (break_command_really): Return void. Rethrow
916 exceptions instead of returning.
917 (gdb_breakpoint): Remove the error_message parameter.
918 Return void. Rename to set_breakpoint.
919 * gdb.h (gdb_breakpoint): Rename and move to...
920 * breakpoint.h (set_breakpoint): ...here.
921 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
922 event hooks even if exception is thrown. Adjust to
923 gdb_breakpoint interface changes.
926 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
929 float in both first and second word in the doubleword, to support
932 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
934 Properly rethrow exception. This fixes errors
935 about non-existent functions for -break-insert.
936 * breakpoint.c (break_command_really): Use throw_exception
937 for rethrowing. If rethrowing, don't print the exception.
939 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
941 * NEWS: Mention Decimal Floating Point support.
943 2008-01-31 Joel Brobecker <brobecker@adacore.com>
945 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
946 value type to builtin_type_void_func_ptr.
948 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
950 * s390-tdep.c (is_float_singleton, is_float_like,
951 alignment_of, s390_return_value): Make checks for
952 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
954 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
955 Thiago Jung Bauermann <bauerman@br.ibm.com>
957 * infcmd.c (default_print_registers_info): Also print hex
958 raw contents for TYPE_CODE_DECFLOAT registers.
959 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
960 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
961 (rs6000_register_name): Add support for DFP pseudo-registers.
962 (rs6000_pseudo_register_type): Likewise.
963 rs6000_pseudo_register_reggroup_p): Likewise.
964 (ppc_pseudo_register_read): New function.
965 (ppc_pseudo_register_write): Likewise.
966 (rs6000_pseudo_register_read): Likewise.
967 (rs6000_pseudo_register_write): Likewise.
968 (e500_pseudo_register_read): Move checks to
969 rs6000_pseudo_register_read.
970 (e500_pseudo_register_write): Move checks to
971 rs6000_pseudo_register_write.
972 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
973 rs6000_pseudo_register_read and rs6000_pseudo_register_write
974 in gdbarch if SPE or DFP is available. Adjust gdbarch's
975 num_pseudo_regs to account for DFP pseudo regs.
977 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
979 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
980 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
981 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
982 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
983 e500_pseudo_register_read, e500_pseudo_register_write): Use
984 IS_SPE_PSEUDOREG macro.
985 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
986 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
987 Remove initialization of tdep->ppc_ev31_regnum.
989 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
991 * printcmd.c (print_formatted): Handle references as for unformatted
994 2008-01-30 Joel Brobecker <brobecker@adacore.com>
996 * eval.c (evaluate_subexp_standard): Add handling of user
997 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
999 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1001 * eval.c (evaluate_subexp_standard): Support
1002 BINOP_INTDIV opcode.
1004 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1006 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1008 For BINOP_EXP, use length and signedness of left operand only for
1009 result, as for shifts.
1010 For integral operands to BINOP_EXP, use new integer_pow and
1011 uinteger_pow functions so as to get full range of results.
1012 (integer_pow): New function.
1013 (uinteger_pow): New function.
1015 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1017 Use vector for varobj_list_children interface.
1018 * gdb/varobj.c (varobj_list_children): Return vector
1020 * gdb/varobj.h (varobj_list_children): Adjust
1022 (varobj_p): Declare. Declare vector thereof.
1023 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1024 for varobj_list_children change.
1025 * Makefile.in (varobj_h): Update dependencies.
1027 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1029 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1030 TYPE_CODE_DECFLOAT arguments.
1031 (ppc64_sysv_abi_push_dummy_call) Likewise.
1032 (get_decimal_float_return_value): New function.
1033 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1034 values by calling get_decimal_float_return_value.
1035 (ppc64_sysv_abi_return_value): Likewise.
1037 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1040 for preprocessor macro information. Formatting changes.
1042 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1044 * remote.c (struct remote_state): Add cached_wait_status.
1045 (remote_exec_file): New variable.
1046 (PACKET_vAttach, PACKET_vRun): New constants.
1047 (extended_remote_restart): Do not query for status.
1048 (struct start_remote_args): New.
1049 (remote_start_remote): Take it as a second argument. Check
1050 whether the target is running. Issue an error for non-running
1051 non-extended targets. Cache the wait status. Set inferior_ptid
1053 (remote_open_1): Prompt to disconnect non-running targets. Make
1054 sure the target is marked running. Do not set inferior_ptid here.
1055 Update call to remote_start_remote. Do not call remote_check_symbols
1056 if the target is not running.
1057 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1058 argument. Handle a non-running target.
1059 (remote_detach): Use it.
1060 (extended_remote_detach): New.
1061 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1062 (extended_remote_attach_1, extended_remote_attach)
1063 (extended_async_remote_attach): New.
1064 (remote_vcont_resume): Remove unused variable.
1065 (remote_wait, remote_async_wait): Use any cached wait status.
1066 (putpkt_binary, getpkt): Clear any cached wait status.
1067 (extended_remoute_mourn_1): New.
1068 (extended_remote_mourn): Use it.
1069 (extended_async_remote_mourn, extended_remote_run): New.
1070 (extended_remote_create_inferior_1): New.
1071 (extended_remote_create_inferior): Use it.
1072 (extended_remote_async_create_inferior): Likewise.
1073 (remote_xfer_partial): Skip for non-executing targets.
1074 (init_extended_remote_ops): Set to_detach and to_attach.
1075 (init_extended_async_remote_ops): Likewise. Use
1076 extended_async_remote_mourn.
1077 (_initialize_remote): Register vAttach, vRun, and
1078 set remote exec-file.
1079 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1081 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1083 * Makefile.in (symfile.o): Update.
1084 * NEWS: Mention exec tracing support.
1085 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1087 * infcmd.c (kill_if_already_running, detach_command)
1088 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1089 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1090 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1091 targets. Apply the sysroot path to the loaded executable. Use
1092 no_shared_libraries.
1093 * linux-nat.c (linux_child_follow_fork): Print fork following
1094 messages if verbose.
1095 (kill_wait_callback): Kill again before waiting a second time.
1096 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1097 no_shared_libraries.
1099 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1101 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1103 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1105 * nto-tdep.h: Remove #include "defs.h".
1106 * nto-tdep.c: Add #include "defs.h".
1107 * Makefile.in (nto_tdep_h): Update dependencies.
1108 (nto-tdep.o): Likewise.
1110 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1112 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1114 (proceed, start_remote): Update call to wait_for_inferior.
1115 * inferior.h (wait_for_inferior): Update declaration.
1116 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1117 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1118 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1119 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1121 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1123 * varobj (adjust_value_for_child_access): Added checking for
1124 returned value from gdb_value_ind.
1125 (c_describe_child): Likewise.
1126 (cplus_describe_child): Fixed a typo.
1128 2008-01-29 Jim Blandy <jimb@red-bean.com>
1130 * MAINTAINERS: Update my info.
1132 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1134 Use multiple locations for hardware watchpoints.
1135 This eliminates the need to traverse value chain, doing
1136 various checks, in three different places.
1138 * breakpoint.h (struct bp_location): New fields
1139 lengths and watchpoint_type.
1140 (struct breakpoint): Remove the val_chain field.
1141 * breakpoint.c (is_hardware_watchpoint): New.
1142 (free_valchain): Remove.
1143 (update_watchpoint): New.
1144 (insert_bp_location): For hardware watchpoint, just
1146 (insert_breakpoints): Call update_watchpoint_locations
1147 on all watchpoints. If we have failed to insert
1148 any location of a hardware watchpoint, remove all inserted
1150 (remove_breakpoint): For hardware watchpoints, directly
1152 (watchpoints_triggered): Iterate over locations.
1153 (bpstat_stop_status): Use only first location of
1154 a resource watchpoint.
1155 (delete_breakpoint): Don't call free_valchain.
1156 (print_one_breakpoint): Don't print all
1157 locations for watchpoints.
1158 (breakpoint_re_set_one): Use update_watchpoint for
1161 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1163 Don't reset watchpoint block on solib load.
1165 * breakpoint.c (insert_bp_location): For watchpoints,
1166 recompute condition.
1167 (breakpoint_re_set_one): Instead of recomputing value
1168 and condition for watchpoints, just reset value and
1169 let insert_breakpoints/insert_bp_location recompute it.
1170 Don't do anything about disabled watchpoint.
1172 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1174 * valarith.c (value_binop): Handle unsigned integer
1177 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1179 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1180 instruction pattern that appears frequently in position
1181 independent code. Fix bug in code which looks for "fmov" and
1182 backtracks if no "fmov" is found.
1184 2008-01-28 Doug Evans <dje@google.com>
1186 * dbxread.c (read_dbx_symtab): Fix indentation.
1187 Reformat comments to 80 columns.
1188 Move local var def closer to only use.
1190 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1192 * fork-child.c (SHELL_FILE): Remove #ifndef.
1193 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1195 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1197 * i386-tdep.c (i386_skip_noop): New function.
1198 (i386_analyze_prologue): Call i386_skip_noop function.
1200 2008-01-24 Michael Snyder <msnyder@specifix.com>
1202 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1203 * win32-nat.c (win32_xfer_partial): Ditto.
1204 * target.c (default_xfer_partial): Minor whitespace adjustment.
1206 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1208 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1209 strip bit 1 even if pc doesn't point to thumb code.
1211 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1213 * remote.c (remote_wait): Handle SIGINT between packets.
1214 (remote_async_wait): Likewise.
1216 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1217 Chris Demetriou <cgd@google.com>
1219 * thread.c (add_thread_silent): Renamed
1221 (print_thread_events): New variable definition.
1222 (show_print_thread_events): New function.
1223 (_initialize_thread): Add "set print thread-events" and
1224 "show print thread-events" commands.
1225 (add_thread): Announce new thread.
1226 * gdbthread.h (add_thread_silent): Declare.
1227 (print_thread_events): New variable declaration.
1228 * inf-ttrace.c (inf_ttrace_wait): Don't
1229 inform about new thread, as add_thread is always
1230 called too, and will take care of that.
1231 * infrun.c (handle_inferior_event): Likewise.
1232 * procfs.c (procfs_wait): Likewise.
1233 * remote.c (remote_currthread): Likewise.
1234 * sol-thread.c (sol_thread_wait): Likewise.
1235 * win32-nat.c (get_win32_debug_event): Likewise.
1236 * linux-thread-db.c (attach_thread): Likewise.
1237 Remove the verbose parameter.
1238 (check_event): Make detach_thread be verbose
1239 only if print_thread_events is set.
1240 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1241 about new thread. This is called only from
1242 linux-thread-db.c:attach_thread, which will take care.
1243 Remove the verbose parameter.
1244 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1246 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1248 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1250 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1252 * breakpoint.c (break_command_really): New parameter
1254 (break_command_1): Pass 0 as
1255 ignore_count to break_command_really.
1256 (gdb_breakpoint): Pass ignore_count to
1257 break_command_really.
1259 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1261 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1262 sigcontext struct via pointer.
1263 (struct sigframe comment): Update to show new field `psc'.
1265 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1267 * infrun.c (handle_inferior_event): If
1268 we failed to remove breakpoints, error,
1269 don't try to increment PC by hand.
1271 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1273 Add NetBSD/hppa target and host support.
1275 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1276 (hppabsd_gregset): Move to ...
1277 (hppabsd_regset_from_core_section): Rename
1278 hppaobsd_regset_from_core_section and move to ...
1279 (hppabsd_find_global_pointer): Update comment.
1280 (hppabsd_init_abi): Make global. Do not register
1281 hppabsd_regset_from_core_section.
1282 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1284 (_initialize_hppabsd_tdep): Move to ...
1285 * hppaobsd-tdep.c: ... here. New file.
1286 * hppnbsd-tdep.c: New file.
1287 * hppnbsd-nat.c: New file.
1288 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1289 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1290 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1291 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1292 * configure.host (hppa*-*-netbsd*): New entry.
1293 * configure.tgt (hppa*-*-netbsd*): New entry.
1294 (hppa*-*-openbsd*): Update.
1295 * NEWS (New native configuration): Mention NetBSD/hppa.
1296 (New targets): Mention NetBSD/hppa.
1298 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1300 * gdbarch.sh (function_list): Add new property bits_big_endian to
1302 * gdbarch.{c,h}: Regenerate.
1304 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1305 gdbarch_bits_big_endian (comment).
1306 (unpack_field_as_long, modify_field): Likewise.
1307 * value.h: Likewise (comment).
1308 * valops.c (value_slice): Likewise.
1309 * valarith.c (value_subscript, value_bit_index): Likewise.
1310 * gdbtypes.h (field): Likewise (comment).
1311 * eval.c (evaluate_subexp_standard): Likewise.
1312 * dwarf2read.c (dwarf2_add_field): Likewise.
1313 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1314 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1316 * defs.h (BITS_BIG_ENDIAN): Remove.
1318 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1320 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1322 * m2-exp.y (yylex): Likewise.
1323 * objc-exp.y (yylex): Likewise.
1325 * defs.h (DEPRECATED_STREQN): Remove.
1327 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1329 * MAINTAINERS: Update my email address.
1331 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1333 * README: Mention gdbserver/README.
1335 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1337 * valarith.c (value_binop): Handle BINOP_INTDIV
1338 for unsigned and signed integers.
1340 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1342 * s390-tdep.c (s390_gdbarch_init): Set default long double
1343 type to 128-bit IEEE quad.
1345 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1347 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1349 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1351 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1353 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1354 * value.c: All callers changed.
1356 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1358 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1359 DEPRECATED_STREQ by its expression.
1360 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1361 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1362 (scan_xcoff_symtab): Likewise.
1363 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1364 * f-lang.c (find_common_for_function): Likewise.
1365 * objc-exp.y (parse_number): Likewise.
1367 * defs.h (DEPRECATED_STREQ): Remove.
1369 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1371 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1372 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1373 get_frame_arch to get at the current_architecture. Update AM33_MODE
1375 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1376 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1378 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1380 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1382 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1384 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1386 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1387 current_gdbarch by gdbarch. Update caller.
1389 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1390 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1391 the current architecture. Update calls of
1392 amd64_native_gregset_supplies_p.
1393 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1394 (amd64bsd_store_inferior_registers): Likewise.
1396 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1398 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1399 Replace current_gdbarch by gdbarch. Update caller.
1401 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1403 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1404 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1405 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1406 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1407 (stabsect_build_psymtabs): Fix indentation.
1409 2008-01-15 Michael Snyder <msnyder@specifix.com>
1411 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1413 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1415 * win32-nat.c (win32_create_inferior): Restore code calling
1416 CloseHandle on ProcessInformation structure.
1418 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1420 * configure.ac: Check for void * as 3 argument of ptrace.
1421 * configure: regenerate.
1423 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1425 * alpha-tdep.c (alpha_heuristic_proc_start)
1426 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1427 current_gdbarch by gdbarch.
1429 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1430 current architecture by frame_info. Update alpha_heuristic_proc_start
1433 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1434 get_frame_arch to get at the current architecture by frame_info. Update
1435 alpha_sigtramp_register_address call.
1437 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1438 current_gdbarch by gdbarch. Update caller.
1439 (convert_to_extended, convert_from_extended): Add endianess parameter
1440 for comparison. Update caller.
1441 (arm_extract_return_value, arm_store_return_value): Use
1442 get_regcache_arch to get at the current architecture.
1444 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1445 current_gdbarch by gdbarch. Update caller.
1446 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1447 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1449 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1450 gdbarch as parameter. Update caller.
1451 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1452 current_gdbarch by gdbarch. Update caller.
1454 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1455 update caller. Replace current_gdbarch by gdbarch.
1457 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1458 the current architecture. Replace current_gdbarch by gdbarch.
1459 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1460 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1461 expression. Add gdbarch as parameter and replace current_gdbarch with
1463 (M6811_TDEP): Remove.
1464 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1466 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1467 current_gdbarch by gdbarch. Update caller.
1469 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1471 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1474 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1475 caller. Relace current_gdbarch by gdbarch.
1476 (altivec_register_p, spe_register_p): Likewise.
1477 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1479 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1480 altivec_register_p and spe_register_p.
1482 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1483 caller. Replace current_gdbarch by gdbarch.
1484 (score_analyze_prologue): use get_frame_arch to get at the current
1487 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1488 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1489 current_gdbarch by gdbarch. Update caller.
1490 (sparc_frame_cache): Use get_frame_arch to get at the current
1492 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1493 sparc_analyze_prologue.
1495 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1498 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1500 * exec.c: #include "arch-utils.h"
1501 (print_section_info): Use gdbarch_from_bfd to get at the
1502 current architecture. Replace current_gdbarch. Fix indention. Replace
1503 deprecated_print_address_numeric by paddress.
1504 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1506 * valprint.c (val_print_string): Replace
1507 deprecated_print_address_numeric.
1508 * tracepoint.c (trace_mention, scope_info): Likewise.
1509 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1510 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1511 (maintenance_check_symtabs): Likewise.
1512 * symfile.c (list_overlays_command): Likewise.
1513 * stack.c (frame_info, print_block_frame_labels): Likewise.
1514 * printcmd.c (print_address, print_address_demangle)
1515 (address_info): Likewise.
1516 * corefile.c (memory_error): Likewise.
1517 * infcmd.c (jump_command): Likewise.
1518 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1519 (mention, delete_breakpoint): Likewise.
1520 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1521 * dwarf2read.c (dump_die): Likewise.
1522 * ada-valprint.c (ada_val_print_1): Likewise.
1523 * f-valprint.c (f_val_print): Likewise.
1524 * linux-fork.c (info_forks_command): Likewise.
1525 * m32r-com.c (m32r_load_section, m32r_load)
1526 (m32r_upload_command): Likewise.
1528 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1530 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1532 * gdbarch.sh (skip_prologue): Add gdbarch
1534 * gdbarch.{c,h}: Regenerate.
1536 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1537 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1538 * avr-tdep.c (avr_skip_prologue): Likewise.
1539 * cris-tdep.c (cris_skip_prologue): Likewise.
1540 * frv-tdep.c (frv_skip_prologue): Likewise.
1541 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1542 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1543 * i386-tdep.c (i386_skip_prologue): Likewise.
1544 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1545 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1546 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1547 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1548 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1549 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1550 * mep-tdep.c (mep_skip_prologue): Likewise.
1551 * mips-tdep.c (mips_skip_prologue): Likewise.
1552 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1553 * mt-tdep.c (mt_skip_prologue): Likewise.
1554 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1555 * score-tdep.c (score_skip_prologue): Likewise.
1556 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1557 * sh-tdep.c (sh_skip_prologue): Likewise.
1558 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1559 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1560 * spu-tdep.c (spu_skip_prologue): Likewise.
1561 * v850-tdep.c (v850_skip_prologue): Likewise.
1562 * vax-tdep.c (vax_skip_prologue): Likewise.
1563 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1564 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1566 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1567 current_gdbarch by gdbarch.
1568 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1569 * s390-tdep.c (s390_skip_prologue): Likewise.
1571 2008-01-10 Doug Evans <dje@google.com>
1573 * defs.h (struct continuation_arg): Fix typo in comment.
1574 * target.c (target_translate_tls_address): Fix comment spelling error.
1576 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1578 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1579 (DOUBLEST_SCAN_FORMAT): Likewise.
1580 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1581 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1582 * c-exp.y (parse_number): Likewise.
1583 * jv-exp.y (parse_number): Likewise.
1584 * objc-exp.y (parse_number): Likewise.
1585 * p-exp.y (parse_number): Likewise.
1587 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1589 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1590 (check_typedef): Likewise.
1592 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1594 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1595 seen_double_big_d, treat the new H, D, and DD modifiers as length
1598 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1600 * dwarf2read.c (read_enumeration_type): Add comment.
1602 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1604 * config.in: Regenerate.
1606 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1608 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1610 (ada_convert_actuals): Delete.
1611 * ada-lang.h (ada_convert_actual): Add declaration.
1612 (ada_convert_actuals): Remove declaration.
1613 * infcall.c: #include "ada-lang.h".
1614 (value_arg_coerce): Add new parameter sp. Update function
1615 documetnation. Add handling of Ada function call parameters.
1616 * Makefile.in (infcall.o): Update dependencies.
1618 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1620 * ada-lang.c (ensure_lval): Fix value lval kind.
1621 (convert_actual): Add handling for arguments passed by reference.
1623 2008-01-08 Doug Evans <dje@google.com>
1625 * dbxread.c (read_dbx_symtab): Fix indentation.
1627 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1629 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1630 (valarith.o): Depend on dfp.h.
1631 (valops.o): Likewise.
1632 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1633 (set_decnumber_context): New function.
1634 (decimal_check_errors): Likewise.
1635 (decimal_from_number): Likewise.
1636 (decimal_to_number): Likewise.
1637 (decimal_from_string): Use set_decnumber_context and
1638 decimal_check_errors.
1639 (decimal_from_integral): New function.
1640 (decimal_from_floating): Likewise.
1641 (decimal_to_double): Likewise.
1642 (promote_decimal): Likewise.
1643 (decimal_binop): Likewise.
1644 (decimal_is_zero): Likewise.
1645 (decimal_compare): Likewise.
1646 (decimal_convert): Likewise.
1647 * dfp.h (decimal_from_integral): New prototype.
1648 (decimal_from_floating): Likewise.
1649 (decimal_to_double): Likewise.
1650 (decimal_binop): Likewise.
1651 (decimal_is_zero): Likewise.
1652 (decimal_compare): Likewise.
1653 (decimal_convert): Likewise.
1654 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1655 call to value_from_decfloat.
1656 * valarith.c: Include dfp.h.
1657 (value_args_as_decimal): New function.
1658 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1659 (value_logical_not): Likewise.
1660 (value_equal): Likewise.
1661 (value_less): Likewise.
1662 (value_pos): Likewise.
1663 (value_neg): Formatting fix.
1664 * valops.c: Include dfp.h.
1665 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1666 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1667 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1668 (value_from_decfloat): Remove expect_type argument.
1669 * value.h (value_from_decfloat): Update prototype.
1671 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1673 Ignore change in name of dynamic linker during
1674 execution on Solaris. This also unbreaks pending breakpoints.
1676 * solist.h (struct target_so_ops): New field same.
1677 * solib-svr4.c (svr4_same): New.
1678 (_initialize_svr4_solib): Register svr4_same.
1679 * solib.c (update_solib_list): Use ops->same, if available.
1681 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1683 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1684 when using MS-DOS paths.
1686 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1688 * NEWS: Mention --pid and --core command line behaviour changes.
1690 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1692 * main.c (captured_main): Remove 'count' varible and the
1693 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1694 --pid options were issued simultaneously. If an explicit pid
1695 option was passed, don't fallback to core file. Detect extra
1696 arguments better in the presence of explicit pid or core
1699 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1701 * ada-lang.c (ada_which_variant_applies): Correctly compute
1702 the value of the discriminant when the variant record is packed.
1704 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1706 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1707 that are used to differentiate homonyms.
1709 2008-01-04 Jerome Guitton <guitton@adacore.com>
1711 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1712 when the type is an anonymous pointer type.
1713 (ada_check_typedef): Avoid a seg fault when the type is null.
1714 * ada-typeprint.c (print_array_type): Add support for pointer
1717 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1719 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1721 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1723 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1724 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1726 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1728 * ada-exp.y (chop_separator): New function.
1729 (write_selectors): Rewrite to re-use chop_separator.
1730 (ada_nget_field_index, get_symbol_field_type): New functions.
1731 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1734 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1736 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1737 of SYMBOL_VALUE when working with function symbols.
1739 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1741 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1742 expressions. These expressions do not need to be rewriten.
1744 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1746 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1747 the given die is a declaration.
1749 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1751 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1752 Handle properly the case when the index type is an enumerated type.
1753 Do not return the subtype of the bounds type, just return the
1754 bounds type directly - this is not needed and is more consistent
1755 with what we do for arrays when no XA parallel type exists.
1757 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1759 * ada-lang.c (static_unwrap_type): Add forward declaration.
1760 (template_to_static_fixed_type): Fields of dynamic types sometimes
1761 also need to be unwrapped. Take this into account.
1762 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1763 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1764 * ada-typeprint.c (ada_print_type): Get the typename from
1765 the original type, not the base type.
1767 2008-01-03 Jerome Guitton <guitton@adacore.com>
1769 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1770 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1771 Update calls to ada_to_fixed_type.
1772 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1774 (ada_to_fixed_type): Add check_tag parameter; do not look for
1775 tag if null. When looking for a tag, use a fixed record type.
1776 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1777 * ada-valprint.c (printable_val_type, ada_value_print): Update
1778 calls to ada_to_fixed_type.
1780 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1782 * doublest.c (convert_floatformat_to_doublest): Call
1783 floatformat_to_doublest instead of floatformat_to_double and use
1785 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1786 instead of floatformat_from_double and use DOUBLEST variables.
1788 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1790 * MAINTAINERS (Write After Approval): Add self.
1792 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1794 * symfile.c (set_initial_language): Make non-static.
1795 * symfile.h (set_initial_language): Add declaration.
1796 * language.c: #include "symfile.h".
1797 (set_language): Call set_initial_language if the frame language
1798 could not be determined.
1800 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1802 * eval.c (evaluate_subexp_for_address): Provide frame address to
1803 locate_var_value only if it will be needed.
1805 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1807 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1809 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1811 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1812 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1813 This is needed to make sure that any other treatment applied
1814 to the resulting value does not fail for spurious reason,
1815 such as trying to take the address of this value.
1817 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1819 * ada-lang.c (ada_value_equal): Dereference reference types when
1822 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1824 Updated copyright notices for most files.
1826 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1828 * win32-nat.c (psapi_module_handle): Remove static.
1829 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1830 return first module found if base_address is zero. Don't initialize
1831 psapi function pointers here. Convert to cygwin paths when
1833 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1834 executable name. Use get_module_name when that fails or when
1836 (_initialize_psapi): New function. Initialize psapi stuff before it is
1837 needed or issue a warning if it is not found. Move psapi_module_handle
1840 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1842 * ada-lang.c (ada_remove_trailing_digits): New function.
1843 (ada_remove_po_subprogram_suffix): New function.
1844 (ada_decode): Improve. Move the description of the algorithm
1845 directly inside the code, instead of in the function global
1848 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1850 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1851 and always print the dereferenced value.
1853 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1855 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1856 of the case where the first argument is a reference.
1857 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1859 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1861 Implement support for Ada interface types.
1863 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1864 (ada_is_ignored_field): Ignore fields that are a dispatch table
1867 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1869 * top.c (print_gdb_version): Update copyright year.
1871 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1873 * ChangeLog-2007: New ChangeLog rotation.
1874 * ChangeLog: Reset for 2008.
1875 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1878 For older changes see ChangeLog-2007.
1884 version-control: never