1 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
5 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7 * linux-nat.c (linux_nat_filter_event): New, refactored from
9 (linux_nat_wait): Call linux_nat_filter_event.
11 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
13 * top.c (execute_command): Fix uninitialized variable error.
15 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
17 * Makefile.in (amd64nbsd-nat.o): New dependency.
18 * amd64nbsd-nat.c: Include "nbsd-nat.h".
19 (_initialize_amd64nbsd_nat): Update target vector to use
20 nbsd_pid_to_exec_file.
21 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
23 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
25 Remove ignoring leading exec events code.
26 * fork-child.c (startup_inferior): Do not set
27 inferior_ignoring_leading_exec_events.
28 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
29 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
30 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
31 (handle_inferior_event): Remove code for ignoring leading exec
33 * target.c (update_current_target): Do not inherit, or default,
34 to_reported_exec_events_per_exec_call.
35 (debug_to_reported_exec_events_per_exec_call): Remove.
36 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
37 * target.h (target_reported_exec_events_per_exec_call): Remove.
38 (struct target): Remove the to_reported_exec_events_per_exec_call
41 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
43 Implement -thread-info.
44 * gdbthread.h (print_thread_info): Declare.
46 * thread.c (print_thread_info): New, extracted
47 from info_threads_command and adjusted to
49 (info_threads_command): Use print_thread_info.
50 * Makefile.in: Update dependencies.
52 * mi/mi-cmds.c (mi_cmds): Specify a handler
54 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
55 * mi/mi-main.c (mi_cmd_thread_info): New.
56 (mi_cmd_list_features): Include 'thread-info'.
58 2008-03-14 Kevin Buettner <kevinb@redhat.com>
60 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
61 to decide whether to match instruction patterns using "sw" and "sd".
63 2008-03-14 Pedro Alves <pedro@codesourcery.com>
65 * infcmd.c (jump_command): Postpone disabling stdin until after
68 2008-03-14 Pedro Alves <pedro@codesourcery.com>
70 * inflow.c (gdb_getpgrp): New.
71 (gdb_has_a_terminal): Use get_getpgrp.
72 (terminal_ours_1): If attach_flag is set, don't refetch
73 inferior_process_group.
75 2008-03-14 Pedro Alves <pedro@codesourcery.com>
77 * features/library-list.dtd: Allow "section" elements as children
78 of "library". Add "section" element and describe its attributes.
80 * solib-target.c (struct lm_info): Add section_bases member.
81 (library_list_start_segment): Error out if seen a section element.
82 (library_list_start_section): New.
83 (library_list_end_library): New.
84 (solib_target_free_library_list): Free section_bases.
85 (section_attributes): New.
86 (library_children): Make "segment" optional. Add "section" child.
87 (library_list_children): Register library_list_end_library.
88 (solib_target_relocate_section_addresses): Handle section bases.
90 * NEWS: Mention new qXfer:libraries:read section offsets support.
92 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
94 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
95 (make_exec_error_cleanup): Remove declarations.
96 * utils.c (exec_error_cleanup_chain): Remove.
97 (do_exec_error_cleanups, discard_exec_error_cleanups)
98 (make_exec_error_cleanup): Remove.
99 * event-loop.c (start_event_loop): Adjust call to
101 * event-top.c (async_enable_stdin): Remove the paramater dummy.
102 (async_disable_stdin): Don't register async_enable_stdin via
104 * inf-loop.c (inferior_event_handler): Don't
105 call do_exec_error_cleanups. Call async_enable_stdin instead.
106 * event-loop.c (start_event_loop): Adjust call to
108 * tui/tui-interp.c (tui_command_loop): Adjust call to
111 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
114 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
115 * breakpoint.c (bpstat_do_actions): In async mode,
116 don't jump to top expecting stop_bpstat to be already
118 * event-loop.c (start_event_loop): Call async_enable_stdin
120 * event-top.c (async_enable_stdin): Do nothing if sync_execution
122 (command_handler): Do not setup continuation here.
123 (command_line_handler_continuation): Move to...
124 * top.c (command_line_handler_continuation): ... here.
125 (execute_command): In async mode, register continuation.
126 Don't check frame's language in running in async mode.
127 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
128 * inf-loop.c (complete_execution): Inline into...
129 (inferior_event_handler): ... here. Clear target_executing before
130 doing any cleanups. Don't try to show prompt if the target was
132 * infcmd.c (signal_command): Add support for async mode.
133 (finish_command): Only add continuation if the target was
134 successfully resumed.
135 * remote.c (init_async_opts): Register to_get_thread_local_address
137 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
139 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
142 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
144 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
145 * exec.c (exec_bfd_mtime): Define.
146 (exec_close): Clear it.
147 (exec_file_attach): Set it.
148 * gdbcore.h (exec_bfd_mtime): Declare.
149 * source.c (find_source_lines): Do not use bfd_get_mtime.
151 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
153 * top.c (simplified_command_loop): Remove.
155 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
157 Remove unused remote.c hooks.
158 * remote.c (deprecated_target_resume_hook)
159 (deprecated_target_wait_loop_hook): Remove.
160 (remote_resume): Do not call deprecated_target_resume_hook.
161 (remote_wait): Do not call deprecated_target_wait_loop_hook.
162 (remote_async_wait): Likewise.
164 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
166 Implement MI notification for new threads.
167 * doc/observer.texi (new_thread): Document.
168 * observer.sh: Forward declare struct thread_info.
169 * thread.c (add_thread): Notify observer.
171 * interps.h (interp_init_ftype): New parameter
173 (interp_set): Likewise.
174 (top_level_interpreter_data): Declare.
175 * interps.c (interp_set): New parameter top_level.
176 Pass it to interpreter's init function. Remember
177 top level interpreter.
178 (interpreter_exec_cmd): Adjust.
179 (top_level_interpreter_data): New.
180 * main.c (captured_main): Pass 1 for top_level
181 parameter of interp_set.
182 * cli/cli-interp.c (cli_interpreter_init): New
184 * tui/tui-interp.c (tui_init): New parameter top_level.
186 * mi/mi-interp.c (mi_new_thread): New.
187 (mi_interpreter_init): If top level, register
188 observer for new threads.
190 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
192 2008-03-14 Pedro Alves <pedro@codesourcery.com>
194 * top.c (execute_command): Disable break and stop
195 commands in async mode.
197 2008-03-14 Pedro Alves <pedro@codesourcery.com>
200 2008-03-14 Pedro Alves <pedro@codesourcery.com>
201 * inf-loop.c (inferior_event_handler): Don't include remote.h.
202 Call target_stop in the INF_QUIT_REQ case.
203 * Makefile.in (inf-loop.o): Update.
205 2008-03-14 Pedro Alves <pedro@codesourcery.com>
207 * inf-loop.c (inferior_event_handler): Don't include remote.h.
208 Call target_stop in the INF_QUIT_REQ case.
209 * Makefile.in (inf-loop.o): Update.
211 2008-03-14 Pedro Alves <pedro@codesourcery.com>
213 * top.c (execute_command): Enable break, info and interrupt
214 commands in async mode.
216 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
217 Daniel Jacobowitz <dan@codesourcery.com>
219 * breakpoint.h (breakpoint_restore_shadows): New
221 * breakpoint.c (breakpoint_restore_shadows): New.
222 (read_memory_nobpt): Delete.
223 * gdbcore.h (read_memory_nobpt): Delete declaration.
224 * target.c (memory_xfer_partial): Call
225 breakpoint_restore_shadows.
226 (restore_show_memory_breakpoints)
227 (make_show_memory_beakpoints_cleanup): New.
228 (show_memory_breakpoints): New.
229 * target.h (make_show_memory_beakpoints_cleanup): Declare.
230 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
231 Make sure we see memory breakpoints when checking if
232 breakpoint is still there.
233 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
234 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
235 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
236 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
238 2008-03-12 Pedro Alves <pedro@codesourcery.com>
240 * thread.c (add_thread): Use printf_unfiltered to print.
242 2008-03-12 Joel Brobecker <brobecker@gnat.com>
244 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
245 that is true only on x86-solaris and x86_64-solaris.
246 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
247 with proc_get_LDT_entry.
249 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
251 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
252 * config.in, configure: Regenerate.
253 * fork-child.c (fork_inferior): Call create_tty_session.
254 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
255 (create_tty_session): New function.
256 * terminal.h: Declare create_tty_session.
258 2008-03-12 Alan Modra <amodra@bigpond.net.au>
261 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
262 * mipsread.c: Include elf/internal.h.
263 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
266 2008-03-11 Markus Deuling <deuling@de.ibm.com>
268 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
269 to get at the current architecture and at the target specific vector.
270 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
271 remove define of I387_ST0_REGNUM.
273 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
275 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
276 get at the current architecture
277 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
280 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
281 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
283 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
284 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
285 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
287 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
288 at the target specific vector.
290 (i386_get_longjmp_target): Use get_frame_arch to get at the current
291 architecture. Use gdbarch_tdep to get at the target specific vector.
293 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
294 update caller. Use gdbarch_tdep to get at the target specific vector.
296 (i386_register_to_value: Use get_frame_arch to get at the current
299 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
302 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
303 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
304 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
305 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
307 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
310 (i387_convert_register_p, i387_register_to_value,
311 i387_value_to_register): Update call for i386_fp_regnum_p.
313 * i387-tdep.h: Remove comment.
314 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
315 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
316 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
317 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
318 I387_MXCSR_REGNUM): Add target specific vector as parameter.
320 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
322 * Makefile.in (fork-child.o): Update.
323 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
324 argument. Gather all gdbserver features together.
325 * fork-child.c (exec_wrapper): New variable.
326 (fork_inferior): Use it.
327 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
328 (unset_exec_wrapper_command, _initialize_fork_child): New.
330 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
332 * source.c (directory_command): Modify the determination of
333 condition of terminal "from_tty".
335 2008-03-10 Matt Rice <ratmice@gmail.com>
337 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
339 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
341 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
342 of the data passing to strtoulst function.
343 (info_spu_signal_command): Likewise.
345 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
347 * mi/mi-interp.c (mi_command_loop): Remove
350 2008-03-07 Joel Brobecker <brobecker@adacore.com>
352 * remote.c (extended_remote_attach_1): Make local variable pid an int
355 2008-03-07 Joel Brobecker <brobecker@adacore.com>
357 * solib-svr4.c (svr4_same_1): New function, originally extracted
358 from svr4_same and expanded to handle the sparc64 case.
359 (svr4_same): Move up and reimplement using svr4_same_1.
360 (enable_break): Use svr4_same_1 to do shared library name comparisons.
362 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
364 * MAINTAINERS: Move self to Paper trail.
366 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
368 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
369 * event-loop.c (call_async_signal_handler): New.
370 * event-loop.h (call_async_signal_handler)
371 (gdb_call_async_signal_handler): Declare.
372 (mark_async_signal_handler): Add comments.
373 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
374 * mingw-hdep.c (sigint_event, sigint_handler): New.
375 (gdb_select): Use them. Wait for the readline signal handler
377 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
378 * posix-hdep.c (gdb_call_async_signal_handler): New function.
379 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
381 (remote_fileio_ctrl_c_signal_handler): Use
382 gdb_call_async_signal_handler.
383 (initialize_remote_fileio): Initialize sigint_fileio_token.
384 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
385 not initialize tokens here.
386 (handle_remote_sigint_twice): Likewise. Reinstall
387 handle_remote_sigint.
388 (async_remote_interrupt_twice): Just call interrupt_query.
389 (cleanup_sigint_signal_handler): Do not delete tokens.
390 (remote_interrupt, remote_interrupt_twice): Use
391 gdb_call_async_signal_handler.
392 (interrupt_query): Reinstall the default signal handler.
393 (_initialize_remote): Initialize tokens here.
395 2008-03-04 Joel Brobecker <brobecker@adacore.com>
397 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
398 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
399 Change the type of the lr register to code_ptr.
400 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
401 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
402 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
403 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
404 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
405 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
406 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
408 2008-03-03 James E. Wilson <wilson@tuliptree.org>
410 * MAINTAINERS: Update my email address.
412 2008-03-03 Keith Seitz <keiths@redhat.com>
414 From Dave Murphy <davem@devkitpro.org>:
415 * configure.ac: Set tcl configdir to win under mingw.
416 * configure: Regenerate.
418 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
420 * breakpoint.c (fetch_watchpoint_value): New function.
421 (update_watchpoint): Set and clear val_valid. Use
422 fetch_watchpoint_value. Handle unreadable values on the
423 value chain. Correct check for user-requested array watchpoints.
424 (breakpoint_init_inferior): Clear val_valid.
425 (watchpoint_value_print): New function.
426 (print_it_typical): Use it. Do not free or clear old_val. Print
427 watchpoints even if old_val == NULL.
428 (watchpoint_check): Use fetch_watchpoint_value. Check for values
429 becoming readable or unreadable.
430 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
431 (do_enable_watchpoint): Likewise.
432 * breakpoint.h (struct breakpoint): Update comment for val. Add
434 * NEWS: Mention watchpoints on inaccessible memory.
436 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
438 * Makefile.in (i386-nat.o): Update.
439 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
440 i386_use_watchpoints.
441 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
442 i386_use_watchpoints.
443 * i386-nat.c (i386_stopped_data_address): Take two arguments.
444 (i386_stopped_by_watchpoint): Update call.
445 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
446 * config/i386/nm-i386.h: Conditionalize definitions on
447 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
448 (i386_use_watchpoints): Declare.
449 (i386_stopped_data_address): Update.
450 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
451 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
453 2008-02-29 Joel Brobecker <brobecker@adacore.com>
455 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
456 * version.in: Bump version to 6.8.50.20080229-cvs.
458 2008-02-28 Markus Deuling <deuling@de.ibm.com>
460 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
463 2008-02-28 Tom Tromey <tromey@redhat.com>
465 * infcmd.c (notice_args_read): Print result of get_inferior_args.
467 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
469 * infcmd.c (kill_if_already_running): Make static. Use
470 target_require_runnable.
471 * target.c (target_require_runnable): New.
472 * target.h (target_require_runnable): Declare.
474 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
476 * frame.c (reinit_frame_cache): Only annotate if frames were
479 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
481 * regformats/reg-ppc.dat: Rename "ps" to "msr".
482 * regformats/reg-ppc64.dat: Likewise.
484 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
486 * features/Makefile (%.dat): Emit xmltarget statement.
488 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
489 Generate code to set gdbserver_xmltarget in init_registers_${name}.
491 * regformats/arm-with-iwmmxt.dat: Regenerate.
492 * regformats/mips64-linux.dat: Regenerate.
493 * regformats/mips-linux.dat: Regenerate.
494 * regformats/rs6000/powerpc-32.dat: Regenerate.
495 * regformats/rs6000/powerpc-64.dat: Regenerate.
496 * regformats/rs6000/powerpc-e500.dat: Regenerate.
498 * regformats/reg-arm.dat: Add xmlarch statement.
499 * regformats/reg-i386.dat: Likewise.
500 * regformats/reg-i386-linux.dat: Likewise.
501 * regformats/reg-x86-64-linux.dat: Likewise.
502 * regformats/reg-spu.dat: Likewise.
504 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
506 * remote.c (remote_wait, remote_async_wait): Stop if we receive
509 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
511 * utils.c (debug_timestamp): New.
512 (vfprintf_unfiltered): Print timestamps if requested.
513 (show_debug_timestamp): New.
514 (initialize_utils): Register "set debug timestamp".
515 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
517 2008-02-27 Joel Brobecker <brobecker@adacore.com>
519 * breakpoint.c (skip_prologue_sal): New function.
520 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
521 computed from a line number.
523 2008-02-27 Joel Brobecker <brobecker@adacore.com>
525 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
526 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
527 Set PC register type to "code_ptr".
528 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
529 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
530 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
531 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
532 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
533 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
534 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
537 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
539 * regformats/regdat.sh: Rename init_registers function in
540 generated file to init_registers_${name}.
542 * regformats/reg-crisv32.dat: Set "name" to crisv32.
543 * regformats/reg-ppc64.dat: Set "name" to ppc64.
544 * regformats/reg-s390x.dat: Set "name" to s390x.
546 2008-02-26 Greg Law <glaw@undo-software.com>
548 * regcache.c (registers_changed): Call reinit_frame_cache.
550 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
552 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
553 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
554 and svr4_fetch_objfile_link_map.
555 * Makefile.in (sh-linux-tdep.o): Update.
557 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
559 * amd64-tdep.c (amd64_classify): Add support for decimal float
561 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
562 use the struct return convention.
564 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
566 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
567 to old format. Discard breakpoint address if shared library is
569 (breakpoint_1): Adjust formatting of table header accordingly.
571 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
573 * remote.c (remote_get_threadlist): If the response
574 is empty, don't try to parse it.
576 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
578 Unbreak 'target async'.
579 * serial.c (serial_async): Set the
580 handler function before enabling async
583 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
585 * solib-svr4.c (enable_break): Convert r_brk to a code address.
587 2008-02-21 Pedro Alves <pedro@codesourcery.com>
589 * remote.c (extended_remote_attach_1): Set attach_flag.
590 (extended_remote_create_inferior_1): Clear attach_flag.
592 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
594 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
596 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
597 * solib-svr4.c (solib_svr4_r_brk): New.
598 (open_symbol_file_object, svr4_current_sos): Always check the
600 (svr4_fetch_objfile_link_map): Do not set debug_base.
601 (enable_break): Use r_brk if it is set.
602 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
603 (svr4_lp64_fetch_link_map_offsets): Likewise.
604 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
606 2008-02-20 Markus Deuling <deuling@de.ibm.com>
607 Mark Kettenis <kettenis@gnu.org>
609 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
610 trad_frame_saved_reg.
611 (trad-frame.h): New include.
613 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
614 instead of frame_obstack_zalloc.
615 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
617 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
619 2008-02-20 Markus Deuling <deuling@de.ibm.com>
621 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
622 from disassemble_info instead of gdbarch_byte_order.
624 * mips-tdep.c (gdb_print_insn_mips): Likewise.
625 * arm-tdep.c (gdb_print_insn_arm): Likewise.
627 2008-02-20 Markus Deuling <deuling@de.ibm.com>
629 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
630 gdbarch as parameter.
632 * gdbarch.{c,h}: Regenerate.
634 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
636 * mem-break.c (default_memory_insert_breakpoint)
637 (default_memory_remove_breakpoint): Likewise.
638 * target.h (default_memory_remove_breakpoint)
639 (default_memory_insert_breakpoint): Likewise.
641 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
642 parameter. Replace current_gdbarch by gdbarch.
643 * m32r-tdep.c (m32r_memory_insert_breakpoint)
644 (m32r_memory_remove_breakpoint): Likewise.
646 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
648 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
650 2008-02-19 Joel Brobecker <brobecker@adacore.com>
652 * NEWS: Add entry describing Add support improvements.
654 2008-02-18 Markus Deuling <deuling@de.ibm.com>
656 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
659 2008-02-18 Markus Deuling <deuling@de.ibm.com>
661 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
662 register_offset_hack anymore.
664 * regcache.{c,h} (register_offset_hack): Remove.
666 2008-02-18 Markus Deuling <deuling@de.ibm.com>
668 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
670 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
671 current_gdbarch by gdbarch.
672 (hppa64_hpux_find_global_pointer): Likewise.
673 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
674 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
677 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
679 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
681 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
684 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
685 replace current_gdbarch by gdbarch.
686 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
688 2008-02-18 Markus Deuling <deuling@de.ibm.com>
690 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
691 and replace current_gdbarch by gdbarch.
693 (store_register): Update call for exec_one_dummy_insn.
694 (fetch_register, store_register): Update call of regmap.
696 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
697 parameter and replace current_gdbarch by gdbarch.
699 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
700 the current architecture. Update call for getregs_supplies and
702 (ppcnbsd_fetch_inferior_registers): Likewise.
704 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
705 replace current_gdbarch by gdbarch.
706 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
707 get_regcache_arch to get at the current architecture. Update call for
710 2008-02-18 Markus Deuling <deuling@de.ibm.com>
712 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
715 2008-02-15 Markus Deuling <deuling@de.ibm.com>
717 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
719 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
721 * NEWS: Mention pending breakpints in MI.
723 2008-02-14 Markus Deuling <deuling@de.ibm.com>
725 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
727 2008-02-13 Markus Deuling <deuling@de.ibm.com>
729 Add script to build and test GDB using enable-targets=all.
731 * gdb_buildall.sh: New file.
733 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
735 * NEWS (New native configurations): Xtensa GNU/Linux.
736 (New targets): Xtensa GNU/Linux.
737 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
739 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
740 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
741 * configure.tgt (xtensa*-*-linux*): New entry.
742 * xtensa-config.c (xtensa_tdep): New variable.
743 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
744 (rmap): Change format based on new macro XTREG.
745 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
746 * xtensa-linux-nat.c: New.
747 * xtensa-linux-tdep.c: New.
748 * xtensa-xtregs.c: New.
749 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
750 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
751 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
752 (xtensa_register_t): New field coprocessor.
753 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
754 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
755 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
756 Update to handle privileged registers.
757 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
758 (xtensa_push_dummy_call): Set windowstart register correctly.
759 (call0_analyze_prologue): Initialize xtensa_default_isa.
760 (xtensa_derive_tdep): New.
761 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
762 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
763 Call xtensa_derive_tdep().
764 * config/xtensa/linux.mh: New.
765 * regformats/reg-xtensa.dat: New.
767 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
769 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
770 (filenames.h): New include.
771 * Makefile.in (corelow.o): Add dependency for filenames.h.
773 2008-02-08 Doug Evans <dje@google.com>
775 * source.c (find_and_open_source): Always rewrite absolute filenames.
777 2008-02-07 Doug Evans <dje@google.com>
779 * breakpoint.c: #include "hashtab.h".
780 (ambiguous_names_p): New fn.
781 (update_breakpoint_locations): When restoring bp enable status, don't
782 compare function names if any functions have same name.
783 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
785 2008-02-07 Joel Brobecker <brobecker@adacore.com>
787 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
788 instead of just a VEC*. Update use of SV.
789 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
791 2007-02-07 Joel Brobecker <brobecker@adacore.com>
793 * NEWS: Put all new commands since gdb-6.7 together.
795 2007-02-07 Joel Brobecker <brobecker@adacore.com>
797 * ada-lang.c: #include "vec.h".
798 (struct string_vector, new_string_vector, string_vector_append):
800 (char_ptr): New typedef.
801 (DEF_VEC_P (char_ptr)): New VEC type.
802 (symbol_completion_add): Update profile to take the new VEC type
803 instead of the old string_vector structure. Update code accordingly.
804 (ada_make_symbol_completion_list): Use the new VEC type instead of
805 the old string_vector structure, and update the code accordingly.
806 * Makefile.in (ada-lang.o): Add dependency on vec.h.
808 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
810 * p-exp.y: Set current_type in missing places.
811 (leftdiv_is_integer): New static variable.
812 Typecast right operand of BINOP_DIV to long_double if both operands
815 2008-02-06 Maciej W. Rozycki <macro@mips.com>
817 * remote-mips.c (set_breakpoint): Rename to...
818 (mips_set_breakpoint): ... this.
819 (clear_breakpoint): Rename to...
820 (mips_clear_breakpoint): ... this.
821 (common_breakpoint): Rename to...
822 (mips_common_breakpoint): ... this.
823 (check_lsi_error): Rename to...
824 (mips_check_lsi_error): ... this.
826 2007-02-05 Joel Brobecker <brobecker@adacore.com>
828 * language.h (struct language_defn): Add new field
829 la_make_symbol_completion_list.
830 * symtab.c (default_make_symbol_completion_list): Renames
831 make_symbol_completion_list.
832 (make_symbol_completion_list): New function.
833 * symtab.h (default_make_symbol_completion_list): Add declaration.
834 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
835 (auto_language, local_language): Likewise.
836 * objc-lang.c (objc_language_defn): Likewise.
837 * scm-lang.c (scm_language_defn): Likewise.
838 * m2-lang.c (m2_language_defn): Likewise.
839 * f-lang.c (f_language_defn): Likewise.
840 * jv-lang.c (java_language_defn): Likewise.
841 * p-lang.c (pascal_language_defn): Likewise.
842 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
843 (minimal_language_defn): Likewise.
844 * ada-lang.c (struct string_vector): New structure.
845 (new_string_vector, string_vector_append, ada_unqualified_name)
846 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
847 (ada_make_symbol_completion_list): New functions.
848 (ada_language_defn): Set la_make_symbol_completion_list.
849 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
850 this function is static.
852 2008-02-05 Kevin Buettner <kevinb@redhat.com>
854 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
855 to account for call site optimizations.
857 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
859 * tracepoint.c (read_actions): Handle end-of-text indicator
860 in action list properly. (Committed by Jim Blandy)
862 2008-02-05 Jim Blandy <jimb@red-bean.com>
864 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
865 pseudoregister, not an internal error.
866 Reported by: Andrzej Zaborowski
868 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
870 * varobj.c (c_value_of_variable): Use xstrdup.
872 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
874 Update stored rendition of varobj value when format changes.
875 * varobj.c (varobj_set_display_format): Recomputed
877 (c_value_of_variable): Return print_value.
879 2008-02-03 Doug Evans <dje@google.com>
881 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
882 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
883 * valops.c (value_one): New function.
884 * value.h (value_one): Declare.
886 Fix argument promotion for binary arithmetic ops for C.
887 * valarith.c (unop_result_type): New fn.
888 (binop_result_type): New fn.
889 (value_binop): Move result type computation to binop_result_type.
890 (value_pos, value_neg, value_complement): Move result type
891 computation to unop_result_type.
894 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
895 Return basetype, fieldno if found. All callers updated.
896 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
898 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
899 * symfile.h (fill_in_vptr_fieldno): Delete.
901 2008-02-02 Doug Evans <dje@google.com>
903 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
905 * typeprint.c (*): Whitespace cleanup.
907 2008-02-02 Mark Kettenis <kettenis@gnu.org>
908 Luis Machado <luisgpm@br.ibm.com>
909 Thiago Jung Bauermann <bauerman@br.ibm.com>
911 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
912 don't fit into registerson the stack the way GCC does.
914 2008-02-01 Joel Brobecker <brobecker@adacore.com>
916 * symtab.c (symbol_set_names): Do not add an entry in the demangling
917 hash table for Ada symbols. Just store the linkage name as is,
918 and leave the demangled_name as NULL.
920 2007-02-01 Joel Brobecker <brobecker@adacore.com>
922 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
924 (new_symbol): Likewise.
926 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
928 * breakpoint.c (break_command_1): Return void.
929 (break_command_really): Return void. Rethrow
930 exceptions instead of returning.
931 (gdb_breakpoint): Remove the error_message parameter.
932 Return void. Rename to set_breakpoint.
933 * gdb.h (gdb_breakpoint): Rename and move to...
934 * breakpoint.h (set_breakpoint): ...here.
935 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
936 event hooks even if exception is thrown. Adjust to
937 gdb_breakpoint interface changes.
940 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
942 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
943 float in both first and second word in the doubleword, to support
946 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
948 Properly rethrow exception. This fixes errors
949 about non-existent functions for -break-insert.
950 * breakpoint.c (break_command_really): Use throw_exception
951 for rethrowing. If rethrowing, don't print the exception.
953 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
955 * NEWS: Mention Decimal Floating Point support.
957 2008-01-31 Joel Brobecker <brobecker@adacore.com>
959 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
960 value type to builtin_type_void_func_ptr.
962 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
964 * s390-tdep.c (is_float_singleton, is_float_like,
965 alignment_of, s390_return_value): Make checks for
966 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
968 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
969 Thiago Jung Bauermann <bauerman@br.ibm.com>
971 * infcmd.c (default_print_registers_info): Also print hex
972 raw contents for TYPE_CODE_DECFLOAT registers.
973 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
974 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
975 (rs6000_register_name): Add support for DFP pseudo-registers.
976 (rs6000_pseudo_register_type): Likewise.
977 rs6000_pseudo_register_reggroup_p): Likewise.
978 (ppc_pseudo_register_read): New function.
979 (ppc_pseudo_register_write): Likewise.
980 (rs6000_pseudo_register_read): Likewise.
981 (rs6000_pseudo_register_write): Likewise.
982 (e500_pseudo_register_read): Move checks to
983 rs6000_pseudo_register_read.
984 (e500_pseudo_register_write): Move checks to
985 rs6000_pseudo_register_write.
986 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
987 rs6000_pseudo_register_read and rs6000_pseudo_register_write
988 in gdbarch if SPE or DFP is available. Adjust gdbarch's
989 num_pseudo_regs to account for DFP pseudo regs.
991 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
993 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
994 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
995 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
996 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
997 e500_pseudo_register_read, e500_pseudo_register_write): Use
998 IS_SPE_PSEUDOREG macro.
999 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1000 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1001 Remove initialization of tdep->ppc_ev31_regnum.
1003 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1005 * printcmd.c (print_formatted): Handle references as for unformatted
1008 2008-01-30 Joel Brobecker <brobecker@adacore.com>
1010 * eval.c (evaluate_subexp_standard): Add handling of user
1011 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1013 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1015 * eval.c (evaluate_subexp_standard): Support
1016 BINOP_INTDIV opcode.
1018 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1020 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1022 For BINOP_EXP, use length and signedness of left operand only for
1023 result, as for shifts.
1024 For integral operands to BINOP_EXP, use new integer_pow and
1025 uinteger_pow functions so as to get full range of results.
1026 (integer_pow): New function.
1027 (uinteger_pow): New function.
1029 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1031 Use vector for varobj_list_children interface.
1032 * gdb/varobj.c (varobj_list_children): Return vector
1034 * gdb/varobj.h (varobj_list_children): Adjust
1036 (varobj_p): Declare. Declare vector thereof.
1037 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1038 for varobj_list_children change.
1039 * Makefile.in (varobj_h): Update dependencies.
1041 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1043 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1044 TYPE_CODE_DECFLOAT arguments.
1045 (ppc64_sysv_abi_push_dummy_call) Likewise.
1046 (get_decimal_float_return_value): New function.
1047 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1048 values by calling get_decimal_float_return_value.
1049 (ppc64_sysv_abi_return_value): Likewise.
1051 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1053 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1054 for preprocessor macro information. Formatting changes.
1056 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1058 * remote.c (struct remote_state): Add cached_wait_status.
1059 (remote_exec_file): New variable.
1060 (PACKET_vAttach, PACKET_vRun): New constants.
1061 (extended_remote_restart): Do not query for status.
1062 (struct start_remote_args): New.
1063 (remote_start_remote): Take it as a second argument. Check
1064 whether the target is running. Issue an error for non-running
1065 non-extended targets. Cache the wait status. Set inferior_ptid
1067 (remote_open_1): Prompt to disconnect non-running targets. Make
1068 sure the target is marked running. Do not set inferior_ptid here.
1069 Update call to remote_start_remote. Do not call remote_check_symbols
1070 if the target is not running.
1071 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1072 argument. Handle a non-running target.
1073 (remote_detach): Use it.
1074 (extended_remote_detach): New.
1075 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1076 (extended_remote_attach_1, extended_remote_attach)
1077 (extended_async_remote_attach): New.
1078 (remote_vcont_resume): Remove unused variable.
1079 (remote_wait, remote_async_wait): Use any cached wait status.
1080 (putpkt_binary, getpkt): Clear any cached wait status.
1081 (extended_remoute_mourn_1): New.
1082 (extended_remote_mourn): Use it.
1083 (extended_async_remote_mourn, extended_remote_run): New.
1084 (extended_remote_create_inferior_1): New.
1085 (extended_remote_create_inferior): Use it.
1086 (extended_remote_async_create_inferior): Likewise.
1087 (remote_xfer_partial): Skip for non-executing targets.
1088 (init_extended_remote_ops): Set to_detach and to_attach.
1089 (init_extended_async_remote_ops): Likewise. Use
1090 extended_async_remote_mourn.
1091 (_initialize_remote): Register vAttach, vRun, and
1092 set remote exec-file.
1093 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1095 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1097 * Makefile.in (symfile.o): Update.
1098 * NEWS: Mention exec tracing support.
1099 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1101 * infcmd.c (kill_if_already_running, detach_command)
1102 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1103 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1104 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1105 targets. Apply the sysroot path to the loaded executable. Use
1106 no_shared_libraries.
1107 * linux-nat.c (linux_child_follow_fork): Print fork following
1108 messages if verbose.
1109 (kill_wait_callback): Kill again before waiting a second time.
1110 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1111 no_shared_libraries.
1113 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1115 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1117 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1119 * nto-tdep.h: Remove #include "defs.h".
1120 * nto-tdep.c: Add #include "defs.h".
1121 * Makefile.in (nto_tdep_h): Update dependencies.
1122 (nto-tdep.o): Likewise.
1124 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1126 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1128 (proceed, start_remote): Update call to wait_for_inferior.
1129 * inferior.h (wait_for_inferior): Update declaration.
1130 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1131 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1132 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1133 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1135 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1137 * varobj (adjust_value_for_child_access): Added checking for
1138 returned value from gdb_value_ind.
1139 (c_describe_child): Likewise.
1140 (cplus_describe_child): Fixed a typo.
1142 2008-01-29 Jim Blandy <jimb@red-bean.com>
1144 * MAINTAINERS: Update my info.
1146 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1148 Use multiple locations for hardware watchpoints.
1149 This eliminates the need to traverse value chain, doing
1150 various checks, in three different places.
1152 * breakpoint.h (struct bp_location): New fields
1153 lengths and watchpoint_type.
1154 (struct breakpoint): Remove the val_chain field.
1155 * breakpoint.c (is_hardware_watchpoint): New.
1156 (free_valchain): Remove.
1157 (update_watchpoint): New.
1158 (insert_bp_location): For hardware watchpoint, just
1160 (insert_breakpoints): Call update_watchpoint_locations
1161 on all watchpoints. If we have failed to insert
1162 any location of a hardware watchpoint, remove all inserted
1164 (remove_breakpoint): For hardware watchpoints, directly
1166 (watchpoints_triggered): Iterate over locations.
1167 (bpstat_stop_status): Use only first location of
1168 a resource watchpoint.
1169 (delete_breakpoint): Don't call free_valchain.
1170 (print_one_breakpoint): Don't print all
1171 locations for watchpoints.
1172 (breakpoint_re_set_one): Use update_watchpoint for
1175 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1177 Don't reset watchpoint block on solib load.
1179 * breakpoint.c (insert_bp_location): For watchpoints,
1180 recompute condition.
1181 (breakpoint_re_set_one): Instead of recomputing value
1182 and condition for watchpoints, just reset value and
1183 let insert_breakpoints/insert_bp_location recompute it.
1184 Don't do anything about disabled watchpoint.
1186 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1188 * valarith.c (value_binop): Handle unsigned integer
1191 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1193 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1194 instruction pattern that appears frequently in position
1195 independent code. Fix bug in code which looks for "fmov" and
1196 backtracks if no "fmov" is found.
1198 2008-01-28 Doug Evans <dje@google.com>
1200 * dbxread.c (read_dbx_symtab): Fix indentation.
1201 Reformat comments to 80 columns.
1202 Move local var def closer to only use.
1204 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1206 * fork-child.c (SHELL_FILE): Remove #ifndef.
1207 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1209 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1211 * i386-tdep.c (i386_skip_noop): New function.
1212 (i386_analyze_prologue): Call i386_skip_noop function.
1214 2008-01-24 Michael Snyder <msnyder@specifix.com>
1216 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1217 * win32-nat.c (win32_xfer_partial): Ditto.
1218 * target.c (default_xfer_partial): Minor whitespace adjustment.
1220 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1222 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1223 strip bit 1 even if pc doesn't point to thumb code.
1225 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1227 * remote.c (remote_wait): Handle SIGINT between packets.
1228 (remote_async_wait): Likewise.
1230 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1231 Chris Demetriou <cgd@google.com>
1233 * thread.c (add_thread_silent): Renamed
1235 (print_thread_events): New variable definition.
1236 (show_print_thread_events): New function.
1237 (_initialize_thread): Add "set print thread-events" and
1238 "show print thread-events" commands.
1239 (add_thread): Announce new thread.
1240 * gdbthread.h (add_thread_silent): Declare.
1241 (print_thread_events): New variable declaration.
1242 * inf-ttrace.c (inf_ttrace_wait): Don't
1243 inform about new thread, as add_thread is always
1244 called too, and will take care of that.
1245 * infrun.c (handle_inferior_event): Likewise.
1246 * procfs.c (procfs_wait): Likewise.
1247 * remote.c (remote_currthread): Likewise.
1248 * sol-thread.c (sol_thread_wait): Likewise.
1249 * win32-nat.c (get_win32_debug_event): Likewise.
1250 * linux-thread-db.c (attach_thread): Likewise.
1251 Remove the verbose parameter.
1252 (check_event): Make detach_thread be verbose
1253 only if print_thread_events is set.
1254 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1255 about new thread. This is called only from
1256 linux-thread-db.c:attach_thread, which will take care.
1257 Remove the verbose parameter.
1258 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1260 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1262 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1264 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1266 * breakpoint.c (break_command_really): New parameter
1268 (break_command_1): Pass 0 as
1269 ignore_count to break_command_really.
1270 (gdb_breakpoint): Pass ignore_count to
1271 break_command_really.
1273 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1275 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1276 sigcontext struct via pointer.
1277 (struct sigframe comment): Update to show new field `psc'.
1279 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1281 * infrun.c (handle_inferior_event): If
1282 we failed to remove breakpoints, error,
1283 don't try to increment PC by hand.
1285 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1287 Add NetBSD/hppa target and host support.
1289 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1290 (hppabsd_gregset): Move to ...
1291 (hppabsd_regset_from_core_section): Rename
1292 hppaobsd_regset_from_core_section and move to ...
1293 (hppabsd_find_global_pointer): Update comment.
1294 (hppabsd_init_abi): Make global. Do not register
1295 hppabsd_regset_from_core_section.
1296 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1298 (_initialize_hppabsd_tdep): Move to ...
1299 * hppaobsd-tdep.c: ... here. New file.
1300 * hppnbsd-tdep.c: New file.
1301 * hppnbsd-nat.c: New file.
1302 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1303 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1304 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1305 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1306 * configure.host (hppa*-*-netbsd*): New entry.
1307 * configure.tgt (hppa*-*-netbsd*): New entry.
1308 (hppa*-*-openbsd*): Update.
1309 * NEWS (New native configuration): Mention NetBSD/hppa.
1310 (New targets): Mention NetBSD/hppa.
1312 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1314 * gdbarch.sh (function_list): Add new property bits_big_endian to
1316 * gdbarch.{c,h}: Regenerate.
1318 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1319 gdbarch_bits_big_endian (comment).
1320 (unpack_field_as_long, modify_field): Likewise.
1321 * value.h: Likewise (comment).
1322 * valops.c (value_slice): Likewise.
1323 * valarith.c (value_subscript, value_bit_index): Likewise.
1324 * gdbtypes.h (field): Likewise (comment).
1325 * eval.c (evaluate_subexp_standard): Likewise.
1326 * dwarf2read.c (dwarf2_add_field): Likewise.
1327 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1328 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1330 * defs.h (BITS_BIG_ENDIAN): Remove.
1332 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1334 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1336 * m2-exp.y (yylex): Likewise.
1337 * objc-exp.y (yylex): Likewise.
1339 * defs.h (DEPRECATED_STREQN): Remove.
1341 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1343 * MAINTAINERS: Update my email address.
1345 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1347 * README: Mention gdbserver/README.
1349 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1351 * valarith.c (value_binop): Handle BINOP_INTDIV
1352 for unsigned and signed integers.
1354 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1356 * s390-tdep.c (s390_gdbarch_init): Set default long double
1357 type to 128-bit IEEE quad.
1359 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1361 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1363 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1365 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1367 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1368 * value.c: All callers changed.
1370 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1372 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1373 DEPRECATED_STREQ by its expression.
1374 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1375 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1376 (scan_xcoff_symtab): Likewise.
1377 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1378 * f-lang.c (find_common_for_function): Likewise.
1379 * objc-exp.y (parse_number): Likewise.
1381 * defs.h (DEPRECATED_STREQ): Remove.
1383 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1385 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1386 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1387 get_frame_arch to get at the current_architecture. Update AM33_MODE
1389 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1390 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1392 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1394 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1396 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1398 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1400 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1401 current_gdbarch by gdbarch. Update caller.
1403 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1404 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1405 the current architecture. Update calls of
1406 amd64_native_gregset_supplies_p.
1407 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1408 (amd64bsd_store_inferior_registers): Likewise.
1410 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1412 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1413 Replace current_gdbarch by gdbarch. Update caller.
1415 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1417 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1418 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1419 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1420 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1421 (stabsect_build_psymtabs): Fix indentation.
1423 2008-01-15 Michael Snyder <msnyder@specifix.com>
1425 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1427 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1429 * win32-nat.c (win32_create_inferior): Restore code calling
1430 CloseHandle on ProcessInformation structure.
1432 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1434 * configure.ac: Check for void * as 3 argument of ptrace.
1435 * configure: regenerate.
1437 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1439 * alpha-tdep.c (alpha_heuristic_proc_start)
1440 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1441 current_gdbarch by gdbarch.
1443 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1444 current architecture by frame_info. Update alpha_heuristic_proc_start
1447 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1448 get_frame_arch to get at the current architecture by frame_info. Update
1449 alpha_sigtramp_register_address call.
1451 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1452 current_gdbarch by gdbarch. Update caller.
1453 (convert_to_extended, convert_from_extended): Add endianess parameter
1454 for comparison. Update caller.
1455 (arm_extract_return_value, arm_store_return_value): Use
1456 get_regcache_arch to get at the current architecture.
1458 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1459 current_gdbarch by gdbarch. Update caller.
1460 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1461 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1463 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1464 gdbarch as parameter. Update caller.
1465 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1466 current_gdbarch by gdbarch. Update caller.
1468 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1469 update caller. Replace current_gdbarch by gdbarch.
1471 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1472 the current architecture. Replace current_gdbarch by gdbarch.
1473 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1474 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1475 expression. Add gdbarch as parameter and replace current_gdbarch with
1477 (M6811_TDEP): Remove.
1478 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1480 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1481 current_gdbarch by gdbarch. Update caller.
1483 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1485 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1488 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1489 caller. Relace current_gdbarch by gdbarch.
1490 (altivec_register_p, spe_register_p): Likewise.
1491 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1493 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1494 altivec_register_p and spe_register_p.
1496 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1497 caller. Replace current_gdbarch by gdbarch.
1498 (score_analyze_prologue): use get_frame_arch to get at the current
1501 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1502 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1503 current_gdbarch by gdbarch. Update caller.
1504 (sparc_frame_cache): Use get_frame_arch to get at the current
1506 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1507 sparc_analyze_prologue.
1509 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1512 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1514 * exec.c: #include "arch-utils.h"
1515 (print_section_info): Use gdbarch_from_bfd to get at the
1516 current architecture. Replace current_gdbarch. Fix indention. Replace
1517 deprecated_print_address_numeric by paddress.
1518 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1520 * valprint.c (val_print_string): Replace
1521 deprecated_print_address_numeric.
1522 * tracepoint.c (trace_mention, scope_info): Likewise.
1523 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1524 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1525 (maintenance_check_symtabs): Likewise.
1526 * symfile.c (list_overlays_command): Likewise.
1527 * stack.c (frame_info, print_block_frame_labels): Likewise.
1528 * printcmd.c (print_address, print_address_demangle)
1529 (address_info): Likewise.
1530 * corefile.c (memory_error): Likewise.
1531 * infcmd.c (jump_command): Likewise.
1532 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1533 (mention, delete_breakpoint): Likewise.
1534 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1535 * dwarf2read.c (dump_die): Likewise.
1536 * ada-valprint.c (ada_val_print_1): Likewise.
1537 * f-valprint.c (f_val_print): Likewise.
1538 * linux-fork.c (info_forks_command): Likewise.
1539 * m32r-com.c (m32r_load_section, m32r_load)
1540 (m32r_upload_command): Likewise.
1542 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1544 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1546 * gdbarch.sh (skip_prologue): Add gdbarch
1548 * gdbarch.{c,h}: Regenerate.
1550 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1551 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1552 * avr-tdep.c (avr_skip_prologue): Likewise.
1553 * cris-tdep.c (cris_skip_prologue): Likewise.
1554 * frv-tdep.c (frv_skip_prologue): Likewise.
1555 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1556 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1557 * i386-tdep.c (i386_skip_prologue): Likewise.
1558 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1559 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1560 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1561 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1562 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1563 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1564 * mep-tdep.c (mep_skip_prologue): Likewise.
1565 * mips-tdep.c (mips_skip_prologue): Likewise.
1566 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1567 * mt-tdep.c (mt_skip_prologue): Likewise.
1568 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1569 * score-tdep.c (score_skip_prologue): Likewise.
1570 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1571 * sh-tdep.c (sh_skip_prologue): Likewise.
1572 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1573 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1574 * spu-tdep.c (spu_skip_prologue): Likewise.
1575 * v850-tdep.c (v850_skip_prologue): Likewise.
1576 * vax-tdep.c (vax_skip_prologue): Likewise.
1577 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1578 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1580 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1581 current_gdbarch by gdbarch.
1582 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1583 * s390-tdep.c (s390_skip_prologue): Likewise.
1585 2008-01-10 Doug Evans <dje@google.com>
1587 * defs.h (struct continuation_arg): Fix typo in comment.
1588 * target.c (target_translate_tls_address): Fix comment spelling error.
1590 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1592 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1593 (DOUBLEST_SCAN_FORMAT): Likewise.
1594 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1595 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1596 * c-exp.y (parse_number): Likewise.
1597 * jv-exp.y (parse_number): Likewise.
1598 * objc-exp.y (parse_number): Likewise.
1599 * p-exp.y (parse_number): Likewise.
1601 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1603 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1604 (check_typedef): Likewise.
1606 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1608 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1609 seen_double_big_d, treat the new H, D, and DD modifiers as length
1612 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1614 * dwarf2read.c (read_enumeration_type): Add comment.
1616 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1618 * config.in: Regenerate.
1620 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1622 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1624 (ada_convert_actuals): Delete.
1625 * ada-lang.h (ada_convert_actual): Add declaration.
1626 (ada_convert_actuals): Remove declaration.
1627 * infcall.c: #include "ada-lang.h".
1628 (value_arg_coerce): Add new parameter sp. Update function
1629 documetnation. Add handling of Ada function call parameters.
1630 * Makefile.in (infcall.o): Update dependencies.
1632 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1634 * ada-lang.c (ensure_lval): Fix value lval kind.
1635 (convert_actual): Add handling for arguments passed by reference.
1637 2008-01-08 Doug Evans <dje@google.com>
1639 * dbxread.c (read_dbx_symtab): Fix indentation.
1641 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1643 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1644 (valarith.o): Depend on dfp.h.
1645 (valops.o): Likewise.
1646 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1647 (set_decnumber_context): New function.
1648 (decimal_check_errors): Likewise.
1649 (decimal_from_number): Likewise.
1650 (decimal_to_number): Likewise.
1651 (decimal_from_string): Use set_decnumber_context and
1652 decimal_check_errors.
1653 (decimal_from_integral): New function.
1654 (decimal_from_floating): Likewise.
1655 (decimal_to_double): Likewise.
1656 (promote_decimal): Likewise.
1657 (decimal_binop): Likewise.
1658 (decimal_is_zero): Likewise.
1659 (decimal_compare): Likewise.
1660 (decimal_convert): Likewise.
1661 * dfp.h (decimal_from_integral): New prototype.
1662 (decimal_from_floating): Likewise.
1663 (decimal_to_double): Likewise.
1664 (decimal_binop): Likewise.
1665 (decimal_is_zero): Likewise.
1666 (decimal_compare): Likewise.
1667 (decimal_convert): Likewise.
1668 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1669 call to value_from_decfloat.
1670 * valarith.c: Include dfp.h.
1671 (value_args_as_decimal): New function.
1672 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1673 (value_logical_not): Likewise.
1674 (value_equal): Likewise.
1675 (value_less): Likewise.
1676 (value_pos): Likewise.
1677 (value_neg): Formatting fix.
1678 * valops.c: Include dfp.h.
1679 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1680 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1681 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1682 (value_from_decfloat): Remove expect_type argument.
1683 * value.h (value_from_decfloat): Update prototype.
1685 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1687 Ignore change in name of dynamic linker during
1688 execution on Solaris. This also unbreaks pending breakpoints.
1690 * solist.h (struct target_so_ops): New field same.
1691 * solib-svr4.c (svr4_same): New.
1692 (_initialize_svr4_solib): Register svr4_same.
1693 * solib.c (update_solib_list): Use ops->same, if available.
1695 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1697 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1698 when using MS-DOS paths.
1700 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1702 * NEWS: Mention --pid and --core command line behaviour changes.
1704 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1706 * main.c (captured_main): Remove 'count' varible and the
1707 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1708 --pid options were issued simultaneously. If an explicit pid
1709 option was passed, don't fallback to core file. Detect extra
1710 arguments better in the presence of explicit pid or core
1713 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1715 * ada-lang.c (ada_which_variant_applies): Correctly compute
1716 the value of the discriminant when the variant record is packed.
1718 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1720 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1721 that are used to differentiate homonyms.
1723 2008-01-04 Jerome Guitton <guitton@adacore.com>
1725 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1726 when the type is an anonymous pointer type.
1727 (ada_check_typedef): Avoid a seg fault when the type is null.
1728 * ada-typeprint.c (print_array_type): Add support for pointer
1731 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1733 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1735 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1737 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1738 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1740 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1742 * ada-exp.y (chop_separator): New function.
1743 (write_selectors): Rewrite to re-use chop_separator.
1744 (ada_nget_field_index, get_symbol_field_type): New functions.
1745 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1748 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1750 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1751 of SYMBOL_VALUE when working with function symbols.
1753 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1755 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1756 expressions. These expressions do not need to be rewriten.
1758 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1760 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1761 the given die is a declaration.
1763 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1765 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1766 Handle properly the case when the index type is an enumerated type.
1767 Do not return the subtype of the bounds type, just return the
1768 bounds type directly - this is not needed and is more consistent
1769 with what we do for arrays when no XA parallel type exists.
1771 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1773 * ada-lang.c (static_unwrap_type): Add forward declaration.
1774 (template_to_static_fixed_type): Fields of dynamic types sometimes
1775 also need to be unwrapped. Take this into account.
1776 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1777 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1778 * ada-typeprint.c (ada_print_type): Get the typename from
1779 the original type, not the base type.
1781 2008-01-03 Jerome Guitton <guitton@adacore.com>
1783 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1784 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1785 Update calls to ada_to_fixed_type.
1786 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1788 (ada_to_fixed_type): Add check_tag parameter; do not look for
1789 tag if null. When looking for a tag, use a fixed record type.
1790 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1791 * ada-valprint.c (printable_val_type, ada_value_print): Update
1792 calls to ada_to_fixed_type.
1794 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1796 * doublest.c (convert_floatformat_to_doublest): Call
1797 floatformat_to_doublest instead of floatformat_to_double and use
1799 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1800 instead of floatformat_from_double and use DOUBLEST variables.
1802 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1804 * MAINTAINERS (Write After Approval): Add self.
1806 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1808 * symfile.c (set_initial_language): Make non-static.
1809 * symfile.h (set_initial_language): Add declaration.
1810 * language.c: #include "symfile.h".
1811 (set_language): Call set_initial_language if the frame language
1812 could not be determined.
1814 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1816 * eval.c (evaluate_subexp_for_address): Provide frame address to
1817 locate_var_value only if it will be needed.
1819 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1821 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1823 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1825 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1826 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1827 This is needed to make sure that any other treatment applied
1828 to the resulting value does not fail for spurious reason,
1829 such as trying to take the address of this value.
1831 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1833 * ada-lang.c (ada_value_equal): Dereference reference types when
1836 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1838 Updated copyright notices for most files.
1840 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1842 * win32-nat.c (psapi_module_handle): Remove static.
1843 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1844 return first module found if base_address is zero. Don't initialize
1845 psapi function pointers here. Convert to cygwin paths when
1847 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1848 executable name. Use get_module_name when that fails or when
1850 (_initialize_psapi): New function. Initialize psapi stuff before it is
1851 needed or issue a warning if it is not found. Move psapi_module_handle
1854 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1856 * ada-lang.c (ada_remove_trailing_digits): New function.
1857 (ada_remove_po_subprogram_suffix): New function.
1858 (ada_decode): Improve. Move the description of the algorithm
1859 directly inside the code, instead of in the function global
1862 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1864 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1865 and always print the dereferenced value.
1867 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1869 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1870 of the case where the first argument is a reference.
1871 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1873 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1875 Implement support for Ada interface types.
1877 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1878 (ada_is_ignored_field): Ignore fields that are a dispatch table
1881 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1883 * top.c (print_gdb_version): Update copyright year.
1885 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1887 * ChangeLog-2007: New ChangeLog rotation.
1888 * ChangeLog: Reset for 2008.
1889 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1892 For older changes see ChangeLog-2007.
1898 version-control: never