1 2008-03-21 Chris Demetriou <cgd@google.com>
3 * symtab.c (rbreak_command): Quote symbol name before passing
6 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8 * eval.c (evaluate_subexp_for_address): Clarify error message.
9 Use value_must_coerce_to_target.
10 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
11 * valops.c (value_assign): Call value_coerce_to_target when
12 assigning to anything but internalvars. Leave GDB-side arrays
13 as arrays when assigning to internalvars.
14 (value_must_coerce_to_target, value_coerce_to_target): New.
15 (value_coerce_array, value_addr): Call value_coerce_to_target.
16 (value_array): Create the array in GDB's memory instead of
18 * value.h (value_must_coerce_to_target, value_coerce_to_target):
21 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23 * top.c (quit_confirm): Warn that we will kill the program.
25 2008-03-19 Pedro Alves <pedro@codesourcery.com>
27 * inflow.c (terminal_ours_1): Guard access to
28 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
30 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
31 Jim Blandy <jimb@codesourcery.com>
32 Daniel Jacobowitz <drow@false.org>
34 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
35 (dwarf2_read_address): Update prototype.
37 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
38 (signed_address_type): Likewise.
39 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
40 (execute_stack_op): Update calls to unsigned_address_type,
41 signed_address_type and dwarf2_read_address. Fix implementation
44 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
45 (dwarf2_per_cu_addr_size): Likewise.
46 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
47 (struct dwarf2_loclist_baton): Likewise.
49 * dwarf2loc.c (find_location_expression): Update calls to
50 dwarf2_read_address. Use dwarf2_per_cu_objfile and
51 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
52 (locexpr_describe_location): Likewise.
53 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
54 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
55 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
56 to dwarf2_per_cu_addr_size (per_cu).
57 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
58 (loclist_read_variable): Likewise.
59 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
61 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
62 instead of baton->objfile.
63 (dwarf2_per_cu_obfile): New function.
64 (dwarf2_per_cu_addr_size): Likewise.
66 * dwarf2-frame.c (struct comp_unit): Move higher.
67 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
68 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
69 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
70 parameter by using fde->eh_frame_p. Use read_encoded_value
71 to implement DW_CFA_set_loc.
72 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
73 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
74 execute_stack_op and execute_cfa_program.
75 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
76 (size_of_encoded_value): Remove.
77 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
78 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
79 (add_cie): Set cie->unit backlink.
80 (decode_frame_entry_1): Set cie->addr_size. Update calls to
82 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
84 2008-03-17 Markus Deuling <deuling@de.ibm.com>
86 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
87 gdbarch_bfd_arch_info.
89 2008-03-17 Joel Brobecker <brobecker@adacore.com>
91 * aix-thread.c (pdc_read_regs): Minor reformatting.
93 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
95 * thread.c (print_thread_info): Don't insist
96 on having current thread if there are no
99 2008-03-17 Pedro Alves <pedro@codesourcery.com>
101 * infcmd.c (attach_command_post_wait)
102 (attach_command_continuation): New.
103 (attach_command): Support background async execution, and async
104 execution in synchronous mode.
106 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
108 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
109 * symmisc.c (dump_symtab_1): Likewise.
110 * wrapper.c (gdb_value_struct_elt): Likewise.
112 2008-03-17 Pedro Alves <pedro@codesourcery.com>
114 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
116 2008-03-17 Pedro Alves <pedro@codesourcery.com>
118 * linux-nat.c (linux_nat_filter_event): New, refactored from
120 (linux_nat_wait): Call linux_nat_filter_event.
122 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
124 * top.c (execute_command): Fix uninitialized variable error.
126 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
128 * Makefile.in (amd64nbsd-nat.o): New dependency.
129 * amd64nbsd-nat.c: Include "nbsd-nat.h".
130 (_initialize_amd64nbsd_nat): Update target vector to use
131 nbsd_pid_to_exec_file.
132 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
134 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
136 Remove ignoring leading exec events code.
137 * fork-child.c (startup_inferior): Do not set
138 inferior_ignoring_leading_exec_events.
139 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
140 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
141 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
142 (handle_inferior_event): Remove code for ignoring leading exec
144 * target.c (update_current_target): Do not inherit, or default,
145 to_reported_exec_events_per_exec_call.
146 (debug_to_reported_exec_events_per_exec_call): Remove.
147 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
148 * target.h (target_reported_exec_events_per_exec_call): Remove.
149 (struct target): Remove the to_reported_exec_events_per_exec_call
152 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
154 Implement -thread-info.
155 * gdbthread.h (print_thread_info): Declare.
157 * thread.c (print_thread_info): New, extracted
158 from info_threads_command and adjusted to
160 (info_threads_command): Use print_thread_info.
161 * Makefile.in: Update dependencies.
163 * mi/mi-cmds.c (mi_cmds): Specify a handler
165 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
166 * mi/mi-main.c (mi_cmd_thread_info): New.
167 (mi_cmd_list_features): Include 'thread-info'.
169 2008-03-14 Kevin Buettner <kevinb@redhat.com>
171 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
172 to decide whether to match instruction patterns using "sw" and "sd".
174 2008-03-14 Pedro Alves <pedro@codesourcery.com>
176 * infcmd.c (jump_command): Postpone disabling stdin until after
179 2008-03-14 Pedro Alves <pedro@codesourcery.com>
181 * inflow.c (gdb_getpgrp): New.
182 (gdb_has_a_terminal): Use get_getpgrp.
183 (terminal_ours_1): If attach_flag is set, don't refetch
184 inferior_process_group.
186 2008-03-14 Pedro Alves <pedro@codesourcery.com>
188 * features/library-list.dtd: Allow "section" elements as children
189 of "library". Add "section" element and describe its attributes.
191 * solib-target.c (struct lm_info): Add section_bases member.
192 (library_list_start_segment): Error out if seen a section element.
193 (library_list_start_section): New.
194 (library_list_end_library): New.
195 (solib_target_free_library_list): Free section_bases.
196 (section_attributes): New.
197 (library_children): Make "segment" optional. Add "section" child.
198 (library_list_children): Register library_list_end_library.
199 (solib_target_relocate_section_addresses): Handle section bases.
201 * NEWS: Mention new qXfer:libraries:read section offsets support.
203 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
205 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
206 (make_exec_error_cleanup): Remove declarations.
207 * utils.c (exec_error_cleanup_chain): Remove.
208 (do_exec_error_cleanups, discard_exec_error_cleanups)
209 (make_exec_error_cleanup): Remove.
210 * event-loop.c (start_event_loop): Adjust call to
212 * event-top.c (async_enable_stdin): Remove the paramater dummy.
213 (async_disable_stdin): Don't register async_enable_stdin via
215 * inf-loop.c (inferior_event_handler): Don't
216 call do_exec_error_cleanups. Call async_enable_stdin instead.
217 * event-loop.c (start_event_loop): Adjust call to
219 * tui/tui-interp.c (tui_command_loop): Adjust call to
222 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
225 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
226 * breakpoint.c (bpstat_do_actions): In async mode,
227 don't jump to top expecting stop_bpstat to be already
229 * event-loop.c (start_event_loop): Call async_enable_stdin
231 * event-top.c (async_enable_stdin): Do nothing if sync_execution
233 (command_handler): Do not setup continuation here.
234 (command_line_handler_continuation): Move to...
235 * top.c (command_line_handler_continuation): ... here.
236 (execute_command): In async mode, register continuation.
237 Don't check frame's language in running in async mode.
238 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
239 * inf-loop.c (complete_execution): Inline into...
240 (inferior_event_handler): ... here. Clear target_executing before
241 doing any cleanups. Don't try to show prompt if the target was
243 * infcmd.c (signal_command): Add support for async mode.
244 (finish_command): Only add continuation if the target was
245 successfully resumed.
246 * remote.c (init_async_opts): Register to_get_thread_local_address
248 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
250 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
253 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
255 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
256 * exec.c (exec_bfd_mtime): Define.
257 (exec_close): Clear it.
258 (exec_file_attach): Set it.
259 * gdbcore.h (exec_bfd_mtime): Declare.
260 * source.c (find_source_lines): Do not use bfd_get_mtime.
262 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
264 * top.c (simplified_command_loop): Remove.
266 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
268 Remove unused remote.c hooks.
269 * remote.c (deprecated_target_resume_hook)
270 (deprecated_target_wait_loop_hook): Remove.
271 (remote_resume): Do not call deprecated_target_resume_hook.
272 (remote_wait): Do not call deprecated_target_wait_loop_hook.
273 (remote_async_wait): Likewise.
275 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
277 Implement MI notification for new threads.
278 * doc/observer.texi (new_thread): Document.
279 * observer.sh: Forward declare struct thread_info.
280 * thread.c (add_thread): Notify observer.
282 * interps.h (interp_init_ftype): New parameter
284 (interp_set): Likewise.
285 (top_level_interpreter_data): Declare.
286 * interps.c (interp_set): New parameter top_level.
287 Pass it to interpreter's init function. Remember
288 top level interpreter.
289 (interpreter_exec_cmd): Adjust.
290 (top_level_interpreter_data): New.
291 * main.c (captured_main): Pass 1 for top_level
292 parameter of interp_set.
293 * cli/cli-interp.c (cli_interpreter_init): New
295 * tui/tui-interp.c (tui_init): New parameter top_level.
297 * mi/mi-interp.c (mi_new_thread): New.
298 (mi_interpreter_init): If top level, register
299 observer for new threads.
301 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
303 2008-03-14 Pedro Alves <pedro@codesourcery.com>
305 * top.c (execute_command): Disable break and stop
306 commands in async mode.
308 2008-03-14 Pedro Alves <pedro@codesourcery.com>
311 2008-03-14 Pedro Alves <pedro@codesourcery.com>
312 * inf-loop.c (inferior_event_handler): Don't include remote.h.
313 Call target_stop in the INF_QUIT_REQ case.
314 * Makefile.in (inf-loop.o): Update.
316 2008-03-14 Pedro Alves <pedro@codesourcery.com>
318 * inf-loop.c (inferior_event_handler): Don't include remote.h.
319 Call target_stop in the INF_QUIT_REQ case.
320 * Makefile.in (inf-loop.o): Update.
322 2008-03-14 Pedro Alves <pedro@codesourcery.com>
324 * top.c (execute_command): Enable break, info and interrupt
325 commands in async mode.
327 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
328 Daniel Jacobowitz <dan@codesourcery.com>
330 * breakpoint.h (breakpoint_restore_shadows): New
332 * breakpoint.c (breakpoint_restore_shadows): New.
333 (read_memory_nobpt): Delete.
334 * gdbcore.h (read_memory_nobpt): Delete declaration.
335 * target.c (memory_xfer_partial): Call
336 breakpoint_restore_shadows.
337 (restore_show_memory_breakpoints)
338 (make_show_memory_beakpoints_cleanup): New.
339 (show_memory_breakpoints): New.
340 * target.h (make_show_memory_beakpoints_cleanup): Declare.
341 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
342 Make sure we see memory breakpoints when checking if
343 breakpoint is still there.
344 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
345 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
346 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
347 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
349 2008-03-12 Pedro Alves <pedro@codesourcery.com>
351 * thread.c (add_thread): Use printf_unfiltered to print.
353 2008-03-12 Joel Brobecker <brobecker@gnat.com>
355 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
356 that is true only on x86-solaris and x86_64-solaris.
357 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
358 with proc_get_LDT_entry.
360 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
362 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
363 * config.in, configure: Regenerate.
364 * fork-child.c (fork_inferior): Call create_tty_session.
365 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
366 (create_tty_session): New function.
367 * terminal.h: Declare create_tty_session.
369 2008-03-12 Alan Modra <amodra@bigpond.net.au>
372 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
373 * mipsread.c: Include elf/internal.h.
374 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
377 2008-03-11 Markus Deuling <deuling@de.ibm.com>
379 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
380 to get at the current architecture and at the target specific vector.
381 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
382 remove define of I387_ST0_REGNUM.
384 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
386 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
387 get at the current architecture
388 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
391 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
392 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
394 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
395 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
396 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
398 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
399 at the target specific vector.
401 (i386_get_longjmp_target): Use get_frame_arch to get at the current
402 architecture. Use gdbarch_tdep to get at the target specific vector.
404 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
405 update caller. Use gdbarch_tdep to get at the target specific vector.
407 (i386_register_to_value: Use get_frame_arch to get at the current
410 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
413 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
414 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
415 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
416 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
418 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
421 (i387_convert_register_p, i387_register_to_value,
422 i387_value_to_register): Update call for i386_fp_regnum_p.
424 * i387-tdep.h: Remove comment.
425 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
426 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
427 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
428 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
429 I387_MXCSR_REGNUM): Add target specific vector as parameter.
431 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
433 * Makefile.in (fork-child.o): Update.
434 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
435 argument. Gather all gdbserver features together.
436 * fork-child.c (exec_wrapper): New variable.
437 (fork_inferior): Use it.
438 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
439 (unset_exec_wrapper_command, _initialize_fork_child): New.
441 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
443 * source.c (directory_command): Modify the determination of
444 condition of terminal "from_tty".
446 2008-03-10 Matt Rice <ratmice@gmail.com>
448 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
450 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
452 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
453 of the data passing to strtoulst function.
454 (info_spu_signal_command): Likewise.
456 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
458 * mi/mi-interp.c (mi_command_loop): Remove
461 2008-03-07 Joel Brobecker <brobecker@adacore.com>
463 * remote.c (extended_remote_attach_1): Make local variable pid an int
466 2008-03-07 Joel Brobecker <brobecker@adacore.com>
468 * solib-svr4.c (svr4_same_1): New function, originally extracted
469 from svr4_same and expanded to handle the sparc64 case.
470 (svr4_same): Move up and reimplement using svr4_same_1.
471 (enable_break): Use svr4_same_1 to do shared library name comparisons.
473 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
475 * MAINTAINERS: Move self to Paper trail.
477 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
479 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
480 * event-loop.c (call_async_signal_handler): New.
481 * event-loop.h (call_async_signal_handler)
482 (gdb_call_async_signal_handler): Declare.
483 (mark_async_signal_handler): Add comments.
484 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
485 * mingw-hdep.c (sigint_event, sigint_handler): New.
486 (gdb_select): Use them. Wait for the readline signal handler
488 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
489 * posix-hdep.c (gdb_call_async_signal_handler): New function.
490 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
492 (remote_fileio_ctrl_c_signal_handler): Use
493 gdb_call_async_signal_handler.
494 (initialize_remote_fileio): Initialize sigint_fileio_token.
495 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
496 not initialize tokens here.
497 (handle_remote_sigint_twice): Likewise. Reinstall
498 handle_remote_sigint.
499 (async_remote_interrupt_twice): Just call interrupt_query.
500 (cleanup_sigint_signal_handler): Do not delete tokens.
501 (remote_interrupt, remote_interrupt_twice): Use
502 gdb_call_async_signal_handler.
503 (interrupt_query): Reinstall the default signal handler.
504 (_initialize_remote): Initialize tokens here.
506 2008-03-04 Joel Brobecker <brobecker@adacore.com>
508 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
509 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
510 Change the type of the lr register to code_ptr.
511 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
512 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
513 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
514 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
515 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
516 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
517 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
519 2008-03-03 James E. Wilson <wilson@tuliptree.org>
521 * MAINTAINERS: Update my email address.
523 2008-03-03 Keith Seitz <keiths@redhat.com>
525 From Dave Murphy <davem@devkitpro.org>:
526 * configure.ac: Set tcl configdir to win under mingw.
527 * configure: Regenerate.
529 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
531 * breakpoint.c (fetch_watchpoint_value): New function.
532 (update_watchpoint): Set and clear val_valid. Use
533 fetch_watchpoint_value. Handle unreadable values on the
534 value chain. Correct check for user-requested array watchpoints.
535 (breakpoint_init_inferior): Clear val_valid.
536 (watchpoint_value_print): New function.
537 (print_it_typical): Use it. Do not free or clear old_val. Print
538 watchpoints even if old_val == NULL.
539 (watchpoint_check): Use fetch_watchpoint_value. Check for values
540 becoming readable or unreadable.
541 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
542 (do_enable_watchpoint): Likewise.
543 * breakpoint.h (struct breakpoint): Update comment for val. Add
545 * NEWS: Mention watchpoints on inaccessible memory.
547 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
549 * Makefile.in (i386-nat.o): Update.
550 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
551 i386_use_watchpoints.
552 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
553 i386_use_watchpoints.
554 * i386-nat.c (i386_stopped_data_address): Take two arguments.
555 (i386_stopped_by_watchpoint): Update call.
556 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
557 * config/i386/nm-i386.h: Conditionalize definitions on
558 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
559 (i386_use_watchpoints): Declare.
560 (i386_stopped_data_address): Update.
561 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
562 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
564 2008-02-29 Joel Brobecker <brobecker@adacore.com>
566 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
567 * version.in: Bump version to 6.8.50.20080229-cvs.
569 2008-02-28 Markus Deuling <deuling@de.ibm.com>
571 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
574 2008-02-28 Tom Tromey <tromey@redhat.com>
576 * infcmd.c (notice_args_read): Print result of get_inferior_args.
578 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
580 * infcmd.c (kill_if_already_running): Make static. Use
581 target_require_runnable.
582 * target.c (target_require_runnable): New.
583 * target.h (target_require_runnable): Declare.
585 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
587 * frame.c (reinit_frame_cache): Only annotate if frames were
590 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
592 * regformats/reg-ppc.dat: Rename "ps" to "msr".
593 * regformats/reg-ppc64.dat: Likewise.
595 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
597 * features/Makefile (%.dat): Emit xmltarget statement.
599 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
600 Generate code to set gdbserver_xmltarget in init_registers_${name}.
602 * regformats/arm-with-iwmmxt.dat: Regenerate.
603 * regformats/mips64-linux.dat: Regenerate.
604 * regformats/mips-linux.dat: Regenerate.
605 * regformats/rs6000/powerpc-32.dat: Regenerate.
606 * regformats/rs6000/powerpc-64.dat: Regenerate.
607 * regformats/rs6000/powerpc-e500.dat: Regenerate.
609 * regformats/reg-arm.dat: Add xmlarch statement.
610 * regformats/reg-i386.dat: Likewise.
611 * regformats/reg-i386-linux.dat: Likewise.
612 * regformats/reg-x86-64-linux.dat: Likewise.
613 * regformats/reg-spu.dat: Likewise.
615 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
617 * remote.c (remote_wait, remote_async_wait): Stop if we receive
620 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
622 * utils.c (debug_timestamp): New.
623 (vfprintf_unfiltered): Print timestamps if requested.
624 (show_debug_timestamp): New.
625 (initialize_utils): Register "set debug timestamp".
626 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
628 2008-02-27 Joel Brobecker <brobecker@adacore.com>
630 * breakpoint.c (skip_prologue_sal): New function.
631 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
632 computed from a line number.
634 2008-02-27 Joel Brobecker <brobecker@adacore.com>
636 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
637 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
638 Set PC register type to "code_ptr".
639 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
640 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
641 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
642 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
643 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
644 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
645 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
648 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
650 * regformats/regdat.sh: Rename init_registers function in
651 generated file to init_registers_${name}.
653 * regformats/reg-crisv32.dat: Set "name" to crisv32.
654 * regformats/reg-ppc64.dat: Set "name" to ppc64.
655 * regformats/reg-s390x.dat: Set "name" to s390x.
657 2008-02-26 Greg Law <glaw@undo-software.com>
659 * regcache.c (registers_changed): Call reinit_frame_cache.
661 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
663 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
664 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
665 and svr4_fetch_objfile_link_map.
666 * Makefile.in (sh-linux-tdep.o): Update.
668 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
670 * amd64-tdep.c (amd64_classify): Add support for decimal float
672 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
673 use the struct return convention.
675 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
677 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
678 to old format. Discard breakpoint address if shared library is
680 (breakpoint_1): Adjust formatting of table header accordingly.
682 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
684 * remote.c (remote_get_threadlist): If the response
685 is empty, don't try to parse it.
687 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
689 Unbreak 'target async'.
690 * serial.c (serial_async): Set the
691 handler function before enabling async
694 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
696 * solib-svr4.c (enable_break): Convert r_brk to a code address.
698 2008-02-21 Pedro Alves <pedro@codesourcery.com>
700 * remote.c (extended_remote_attach_1): Set attach_flag.
701 (extended_remote_create_inferior_1): Clear attach_flag.
703 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
705 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
707 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
708 * solib-svr4.c (solib_svr4_r_brk): New.
709 (open_symbol_file_object, svr4_current_sos): Always check the
711 (svr4_fetch_objfile_link_map): Do not set debug_base.
712 (enable_break): Use r_brk if it is set.
713 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
714 (svr4_lp64_fetch_link_map_offsets): Likewise.
715 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
717 2008-02-20 Markus Deuling <deuling@de.ibm.com>
718 Mark Kettenis <kettenis@gnu.org>
720 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
721 trad_frame_saved_reg.
722 (trad-frame.h): New include.
724 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
725 instead of frame_obstack_zalloc.
726 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
728 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
730 2008-02-20 Markus Deuling <deuling@de.ibm.com>
732 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
733 from disassemble_info instead of gdbarch_byte_order.
735 * mips-tdep.c (gdb_print_insn_mips): Likewise.
736 * arm-tdep.c (gdb_print_insn_arm): Likewise.
738 2008-02-20 Markus Deuling <deuling@de.ibm.com>
740 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
741 gdbarch as parameter.
743 * gdbarch.{c,h}: Regenerate.
745 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
747 * mem-break.c (default_memory_insert_breakpoint)
748 (default_memory_remove_breakpoint): Likewise.
749 * target.h (default_memory_remove_breakpoint)
750 (default_memory_insert_breakpoint): Likewise.
752 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
753 parameter. Replace current_gdbarch by gdbarch.
754 * m32r-tdep.c (m32r_memory_insert_breakpoint)
755 (m32r_memory_remove_breakpoint): Likewise.
757 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
759 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
761 2008-02-19 Joel Brobecker <brobecker@adacore.com>
763 * NEWS: Add entry describing Add support improvements.
765 2008-02-18 Markus Deuling <deuling@de.ibm.com>
767 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
770 2008-02-18 Markus Deuling <deuling@de.ibm.com>
772 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
773 register_offset_hack anymore.
775 * regcache.{c,h} (register_offset_hack): Remove.
777 2008-02-18 Markus Deuling <deuling@de.ibm.com>
779 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
781 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
782 current_gdbarch by gdbarch.
783 (hppa64_hpux_find_global_pointer): Likewise.
784 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
785 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
788 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
790 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
792 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
795 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
796 replace current_gdbarch by gdbarch.
797 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
799 2008-02-18 Markus Deuling <deuling@de.ibm.com>
801 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
802 and replace current_gdbarch by gdbarch.
804 (store_register): Update call for exec_one_dummy_insn.
805 (fetch_register, store_register): Update call of regmap.
807 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
808 parameter and replace current_gdbarch by gdbarch.
810 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
811 the current architecture. Update call for getregs_supplies and
813 (ppcnbsd_fetch_inferior_registers): Likewise.
815 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
816 replace current_gdbarch by gdbarch.
817 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
818 get_regcache_arch to get at the current architecture. Update call for
821 2008-02-18 Markus Deuling <deuling@de.ibm.com>
823 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
826 2008-02-15 Markus Deuling <deuling@de.ibm.com>
828 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
830 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
832 * NEWS: Mention pending breakpints in MI.
834 2008-02-14 Markus Deuling <deuling@de.ibm.com>
836 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
838 2008-02-13 Markus Deuling <deuling@de.ibm.com>
840 Add script to build and test GDB using enable-targets=all.
842 * gdb_buildall.sh: New file.
844 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
846 * NEWS (New native configurations): Xtensa GNU/Linux.
847 (New targets): Xtensa GNU/Linux.
848 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
850 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
851 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
852 * configure.tgt (xtensa*-*-linux*): New entry.
853 * xtensa-config.c (xtensa_tdep): New variable.
854 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
855 (rmap): Change format based on new macro XTREG.
856 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
857 * xtensa-linux-nat.c: New.
858 * xtensa-linux-tdep.c: New.
859 * xtensa-xtregs.c: New.
860 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
861 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
862 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
863 (xtensa_register_t): New field coprocessor.
864 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
865 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
866 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
867 Update to handle privileged registers.
868 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
869 (xtensa_push_dummy_call): Set windowstart register correctly.
870 (call0_analyze_prologue): Initialize xtensa_default_isa.
871 (xtensa_derive_tdep): New.
872 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
873 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
874 Call xtensa_derive_tdep().
875 * config/xtensa/linux.mh: New.
876 * regformats/reg-xtensa.dat: New.
878 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
880 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
881 (filenames.h): New include.
882 * Makefile.in (corelow.o): Add dependency for filenames.h.
884 2008-02-08 Doug Evans <dje@google.com>
886 * source.c (find_and_open_source): Always rewrite absolute filenames.
888 2008-02-07 Doug Evans <dje@google.com>
890 * breakpoint.c: #include "hashtab.h".
891 (ambiguous_names_p): New fn.
892 (update_breakpoint_locations): When restoring bp enable status, don't
893 compare function names if any functions have same name.
894 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
896 2008-02-07 Joel Brobecker <brobecker@adacore.com>
898 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
899 instead of just a VEC*. Update use of SV.
900 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
902 2007-02-07 Joel Brobecker <brobecker@adacore.com>
904 * NEWS: Put all new commands since gdb-6.7 together.
906 2007-02-07 Joel Brobecker <brobecker@adacore.com>
908 * ada-lang.c: #include "vec.h".
909 (struct string_vector, new_string_vector, string_vector_append):
911 (char_ptr): New typedef.
912 (DEF_VEC_P (char_ptr)): New VEC type.
913 (symbol_completion_add): Update profile to take the new VEC type
914 instead of the old string_vector structure. Update code accordingly.
915 (ada_make_symbol_completion_list): Use the new VEC type instead of
916 the old string_vector structure, and update the code accordingly.
917 * Makefile.in (ada-lang.o): Add dependency on vec.h.
919 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
921 * p-exp.y: Set current_type in missing places.
922 (leftdiv_is_integer): New static variable.
923 Typecast right operand of BINOP_DIV to long_double if both operands
926 2008-02-06 Maciej W. Rozycki <macro@mips.com>
928 * remote-mips.c (set_breakpoint): Rename to...
929 (mips_set_breakpoint): ... this.
930 (clear_breakpoint): Rename to...
931 (mips_clear_breakpoint): ... this.
932 (common_breakpoint): Rename to...
933 (mips_common_breakpoint): ... this.
934 (check_lsi_error): Rename to...
935 (mips_check_lsi_error): ... this.
937 2007-02-05 Joel Brobecker <brobecker@adacore.com>
939 * language.h (struct language_defn): Add new field
940 la_make_symbol_completion_list.
941 * symtab.c (default_make_symbol_completion_list): Renames
942 make_symbol_completion_list.
943 (make_symbol_completion_list): New function.
944 * symtab.h (default_make_symbol_completion_list): Add declaration.
945 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
946 (auto_language, local_language): Likewise.
947 * objc-lang.c (objc_language_defn): Likewise.
948 * scm-lang.c (scm_language_defn): Likewise.
949 * m2-lang.c (m2_language_defn): Likewise.
950 * f-lang.c (f_language_defn): Likewise.
951 * jv-lang.c (java_language_defn): Likewise.
952 * p-lang.c (pascal_language_defn): Likewise.
953 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
954 (minimal_language_defn): Likewise.
955 * ada-lang.c (struct string_vector): New structure.
956 (new_string_vector, string_vector_append, ada_unqualified_name)
957 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
958 (ada_make_symbol_completion_list): New functions.
959 (ada_language_defn): Set la_make_symbol_completion_list.
960 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
961 this function is static.
963 2008-02-05 Kevin Buettner <kevinb@redhat.com>
965 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
966 to account for call site optimizations.
968 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
970 * tracepoint.c (read_actions): Handle end-of-text indicator
971 in action list properly. (Committed by Jim Blandy)
973 2008-02-05 Jim Blandy <jimb@red-bean.com>
975 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
976 pseudoregister, not an internal error.
977 Reported by: Andrzej Zaborowski
979 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
981 * varobj.c (c_value_of_variable): Use xstrdup.
983 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
985 Update stored rendition of varobj value when format changes.
986 * varobj.c (varobj_set_display_format): Recomputed
988 (c_value_of_variable): Return print_value.
990 2008-02-03 Doug Evans <dje@google.com>
992 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
993 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
994 * valops.c (value_one): New function.
995 * value.h (value_one): Declare.
997 Fix argument promotion for binary arithmetic ops for C.
998 * valarith.c (unop_result_type): New fn.
999 (binop_result_type): New fn.
1000 (value_binop): Move result type computation to binop_result_type.
1001 (value_pos, value_neg, value_complement): Move result type
1002 computation to unop_result_type.
1005 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1006 Return basetype, fieldno if found. All callers updated.
1007 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1009 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1010 * symfile.h (fill_in_vptr_fieldno): Delete.
1012 2008-02-02 Doug Evans <dje@google.com>
1014 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1016 * typeprint.c (*): Whitespace cleanup.
1018 2008-02-02 Mark Kettenis <kettenis@gnu.org>
1019 Luis Machado <luisgpm@br.ibm.com>
1020 Thiago Jung Bauermann <bauerman@br.ibm.com>
1022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1023 don't fit into registerson the stack the way GCC does.
1025 2008-02-01 Joel Brobecker <brobecker@adacore.com>
1027 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1028 hash table for Ada symbols. Just store the linkage name as is,
1029 and leave the demangled_name as NULL.
1031 2007-02-01 Joel Brobecker <brobecker@adacore.com>
1033 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1034 in the global scope.
1035 (new_symbol): Likewise.
1037 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1039 * breakpoint.c (break_command_1): Return void.
1040 (break_command_really): Return void. Rethrow
1041 exceptions instead of returning.
1042 (gdb_breakpoint): Remove the error_message parameter.
1043 Return void. Rename to set_breakpoint.
1044 * gdb.h (gdb_breakpoint): Rename and move to...
1045 * breakpoint.h (set_breakpoint): ...here.
1046 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1047 event hooks even if exception is thrown. Adjust to
1048 gdb_breakpoint interface changes.
1051 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1053 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1054 float in both first and second word in the doubleword, to support
1057 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1059 Properly rethrow exception. This fixes errors
1060 about non-existent functions for -break-insert.
1061 * breakpoint.c (break_command_really): Use throw_exception
1062 for rethrowing. If rethrowing, don't print the exception.
1064 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1066 * NEWS: Mention Decimal Floating Point support.
1068 2008-01-31 Joel Brobecker <brobecker@adacore.com>
1070 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1071 value type to builtin_type_void_func_ptr.
1073 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1075 * s390-tdep.c (is_float_singleton, is_float_like,
1076 alignment_of, s390_return_value): Make checks for
1077 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1079 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
1080 Thiago Jung Bauermann <bauerman@br.ibm.com>
1082 * infcmd.c (default_print_registers_info): Also print hex
1083 raw contents for TYPE_CODE_DECFLOAT registers.
1084 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1085 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1086 (rs6000_register_name): Add support for DFP pseudo-registers.
1087 (rs6000_pseudo_register_type): Likewise.
1088 rs6000_pseudo_register_reggroup_p): Likewise.
1089 (ppc_pseudo_register_read): New function.
1090 (ppc_pseudo_register_write): Likewise.
1091 (rs6000_pseudo_register_read): Likewise.
1092 (rs6000_pseudo_register_write): Likewise.
1093 (e500_pseudo_register_read): Move checks to
1094 rs6000_pseudo_register_read.
1095 (e500_pseudo_register_write): Move checks to
1096 rs6000_pseudo_register_write.
1097 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1098 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1099 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1100 num_pseudo_regs to account for DFP pseudo regs.
1102 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1104 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1105 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1106 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1107 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1108 e500_pseudo_register_read, e500_pseudo_register_write): Use
1109 IS_SPE_PSEUDOREG macro.
1110 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1111 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1112 Remove initialization of tdep->ppc_ev31_regnum.
1114 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1116 * printcmd.c (print_formatted): Handle references as for unformatted
1119 2008-01-30 Joel Brobecker <brobecker@adacore.com>
1121 * eval.c (evaluate_subexp_standard): Add handling of user
1122 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1124 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1126 * eval.c (evaluate_subexp_standard): Support
1127 BINOP_INTDIV opcode.
1129 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1131 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1133 For BINOP_EXP, use length and signedness of left operand only for
1134 result, as for shifts.
1135 For integral operands to BINOP_EXP, use new integer_pow and
1136 uinteger_pow functions so as to get full range of results.
1137 (integer_pow): New function.
1138 (uinteger_pow): New function.
1140 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1142 Use vector for varobj_list_children interface.
1143 * gdb/varobj.c (varobj_list_children): Return vector
1145 * gdb/varobj.h (varobj_list_children): Adjust
1147 (varobj_p): Declare. Declare vector thereof.
1148 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1149 for varobj_list_children change.
1150 * Makefile.in (varobj_h): Update dependencies.
1152 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1154 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1155 TYPE_CODE_DECFLOAT arguments.
1156 (ppc64_sysv_abi_push_dummy_call) Likewise.
1157 (get_decimal_float_return_value): New function.
1158 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1159 values by calling get_decimal_float_return_value.
1160 (ppc64_sysv_abi_return_value): Likewise.
1162 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1164 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1165 for preprocessor macro information. Formatting changes.
1167 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1169 * remote.c (struct remote_state): Add cached_wait_status.
1170 (remote_exec_file): New variable.
1171 (PACKET_vAttach, PACKET_vRun): New constants.
1172 (extended_remote_restart): Do not query for status.
1173 (struct start_remote_args): New.
1174 (remote_start_remote): Take it as a second argument. Check
1175 whether the target is running. Issue an error for non-running
1176 non-extended targets. Cache the wait status. Set inferior_ptid
1178 (remote_open_1): Prompt to disconnect non-running targets. Make
1179 sure the target is marked running. Do not set inferior_ptid here.
1180 Update call to remote_start_remote. Do not call remote_check_symbols
1181 if the target is not running.
1182 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1183 argument. Handle a non-running target.
1184 (remote_detach): Use it.
1185 (extended_remote_detach): New.
1186 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1187 (extended_remote_attach_1, extended_remote_attach)
1188 (extended_async_remote_attach): New.
1189 (remote_vcont_resume): Remove unused variable.
1190 (remote_wait, remote_async_wait): Use any cached wait status.
1191 (putpkt_binary, getpkt): Clear any cached wait status.
1192 (extended_remoute_mourn_1): New.
1193 (extended_remote_mourn): Use it.
1194 (extended_async_remote_mourn, extended_remote_run): New.
1195 (extended_remote_create_inferior_1): New.
1196 (extended_remote_create_inferior): Use it.
1197 (extended_remote_async_create_inferior): Likewise.
1198 (remote_xfer_partial): Skip for non-executing targets.
1199 (init_extended_remote_ops): Set to_detach and to_attach.
1200 (init_extended_async_remote_ops): Likewise. Use
1201 extended_async_remote_mourn.
1202 (_initialize_remote): Register vAttach, vRun, and
1203 set remote exec-file.
1204 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1206 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1208 * Makefile.in (symfile.o): Update.
1209 * NEWS: Mention exec tracing support.
1210 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1212 * infcmd.c (kill_if_already_running, detach_command)
1213 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1214 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1215 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1216 targets. Apply the sysroot path to the loaded executable. Use
1217 no_shared_libraries.
1218 * linux-nat.c (linux_child_follow_fork): Print fork following
1219 messages if verbose.
1220 (kill_wait_callback): Kill again before waiting a second time.
1221 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1222 no_shared_libraries.
1224 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1226 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1228 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1230 * nto-tdep.h: Remove #include "defs.h".
1231 * nto-tdep.c: Add #include "defs.h".
1232 * Makefile.in (nto_tdep_h): Update dependencies.
1233 (nto-tdep.o): Likewise.
1235 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1237 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1239 (proceed, start_remote): Update call to wait_for_inferior.
1240 * inferior.h (wait_for_inferior): Update declaration.
1241 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1242 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1243 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1244 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1246 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1248 * varobj (adjust_value_for_child_access): Added checking for
1249 returned value from gdb_value_ind.
1250 (c_describe_child): Likewise.
1251 (cplus_describe_child): Fixed a typo.
1253 2008-01-29 Jim Blandy <jimb@red-bean.com>
1255 * MAINTAINERS: Update my info.
1257 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1259 Use multiple locations for hardware watchpoints.
1260 This eliminates the need to traverse value chain, doing
1261 various checks, in three different places.
1263 * breakpoint.h (struct bp_location): New fields
1264 lengths and watchpoint_type.
1265 (struct breakpoint): Remove the val_chain field.
1266 * breakpoint.c (is_hardware_watchpoint): New.
1267 (free_valchain): Remove.
1268 (update_watchpoint): New.
1269 (insert_bp_location): For hardware watchpoint, just
1271 (insert_breakpoints): Call update_watchpoint_locations
1272 on all watchpoints. If we have failed to insert
1273 any location of a hardware watchpoint, remove all inserted
1275 (remove_breakpoint): For hardware watchpoints, directly
1277 (watchpoints_triggered): Iterate over locations.
1278 (bpstat_stop_status): Use only first location of
1279 a resource watchpoint.
1280 (delete_breakpoint): Don't call free_valchain.
1281 (print_one_breakpoint): Don't print all
1282 locations for watchpoints.
1283 (breakpoint_re_set_one): Use update_watchpoint for
1286 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1288 Don't reset watchpoint block on solib load.
1290 * breakpoint.c (insert_bp_location): For watchpoints,
1291 recompute condition.
1292 (breakpoint_re_set_one): Instead of recomputing value
1293 and condition for watchpoints, just reset value and
1294 let insert_breakpoints/insert_bp_location recompute it.
1295 Don't do anything about disabled watchpoint.
1297 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1299 * valarith.c (value_binop): Handle unsigned integer
1302 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1304 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1305 instruction pattern that appears frequently in position
1306 independent code. Fix bug in code which looks for "fmov" and
1307 backtracks if no "fmov" is found.
1309 2008-01-28 Doug Evans <dje@google.com>
1311 * dbxread.c (read_dbx_symtab): Fix indentation.
1312 Reformat comments to 80 columns.
1313 Move local var def closer to only use.
1315 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1317 * fork-child.c (SHELL_FILE): Remove #ifndef.
1318 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1320 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1322 * i386-tdep.c (i386_skip_noop): New function.
1323 (i386_analyze_prologue): Call i386_skip_noop function.
1325 2008-01-24 Michael Snyder <msnyder@specifix.com>
1327 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1328 * win32-nat.c (win32_xfer_partial): Ditto.
1329 * target.c (default_xfer_partial): Minor whitespace adjustment.
1331 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1333 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1334 strip bit 1 even if pc doesn't point to thumb code.
1336 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1338 * remote.c (remote_wait): Handle SIGINT between packets.
1339 (remote_async_wait): Likewise.
1341 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1342 Chris Demetriou <cgd@google.com>
1344 * thread.c (add_thread_silent): Renamed
1346 (print_thread_events): New variable definition.
1347 (show_print_thread_events): New function.
1348 (_initialize_thread): Add "set print thread-events" and
1349 "show print thread-events" commands.
1350 (add_thread): Announce new thread.
1351 * gdbthread.h (add_thread_silent): Declare.
1352 (print_thread_events): New variable declaration.
1353 * inf-ttrace.c (inf_ttrace_wait): Don't
1354 inform about new thread, as add_thread is always
1355 called too, and will take care of that.
1356 * infrun.c (handle_inferior_event): Likewise.
1357 * procfs.c (procfs_wait): Likewise.
1358 * remote.c (remote_currthread): Likewise.
1359 * sol-thread.c (sol_thread_wait): Likewise.
1360 * win32-nat.c (get_win32_debug_event): Likewise.
1361 * linux-thread-db.c (attach_thread): Likewise.
1362 Remove the verbose parameter.
1363 (check_event): Make detach_thread be verbose
1364 only if print_thread_events is set.
1365 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1366 about new thread. This is called only from
1367 linux-thread-db.c:attach_thread, which will take care.
1368 Remove the verbose parameter.
1369 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1371 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1373 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1375 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1377 * breakpoint.c (break_command_really): New parameter
1379 (break_command_1): Pass 0 as
1380 ignore_count to break_command_really.
1381 (gdb_breakpoint): Pass ignore_count to
1382 break_command_really.
1384 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1386 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1387 sigcontext struct via pointer.
1388 (struct sigframe comment): Update to show new field `psc'.
1390 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1392 * infrun.c (handle_inferior_event): If
1393 we failed to remove breakpoints, error,
1394 don't try to increment PC by hand.
1396 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1398 Add NetBSD/hppa target and host support.
1400 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1401 (hppabsd_gregset): Move to ...
1402 (hppabsd_regset_from_core_section): Rename
1403 hppaobsd_regset_from_core_section and move to ...
1404 (hppabsd_find_global_pointer): Update comment.
1405 (hppabsd_init_abi): Make global. Do not register
1406 hppabsd_regset_from_core_section.
1407 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1409 (_initialize_hppabsd_tdep): Move to ...
1410 * hppaobsd-tdep.c: ... here. New file.
1411 * hppnbsd-tdep.c: New file.
1412 * hppnbsd-nat.c: New file.
1413 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1414 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1415 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1416 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1417 * configure.host (hppa*-*-netbsd*): New entry.
1418 * configure.tgt (hppa*-*-netbsd*): New entry.
1419 (hppa*-*-openbsd*): Update.
1420 * NEWS (New native configuration): Mention NetBSD/hppa.
1421 (New targets): Mention NetBSD/hppa.
1423 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1425 * gdbarch.sh (function_list): Add new property bits_big_endian to
1427 * gdbarch.{c,h}: Regenerate.
1429 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1430 gdbarch_bits_big_endian (comment).
1431 (unpack_field_as_long, modify_field): Likewise.
1432 * value.h: Likewise (comment).
1433 * valops.c (value_slice): Likewise.
1434 * valarith.c (value_subscript, value_bit_index): Likewise.
1435 * gdbtypes.h (field): Likewise (comment).
1436 * eval.c (evaluate_subexp_standard): Likewise.
1437 * dwarf2read.c (dwarf2_add_field): Likewise.
1438 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1439 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1441 * defs.h (BITS_BIG_ENDIAN): Remove.
1443 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1445 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1447 * m2-exp.y (yylex): Likewise.
1448 * objc-exp.y (yylex): Likewise.
1450 * defs.h (DEPRECATED_STREQN): Remove.
1452 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1454 * MAINTAINERS: Update my email address.
1456 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1458 * README: Mention gdbserver/README.
1460 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1462 * valarith.c (value_binop): Handle BINOP_INTDIV
1463 for unsigned and signed integers.
1465 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1467 * s390-tdep.c (s390_gdbarch_init): Set default long double
1468 type to 128-bit IEEE quad.
1470 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1472 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1474 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1476 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1478 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1479 * value.c: All callers changed.
1481 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1483 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1484 DEPRECATED_STREQ by its expression.
1485 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1486 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1487 (scan_xcoff_symtab): Likewise.
1488 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1489 * f-lang.c (find_common_for_function): Likewise.
1490 * objc-exp.y (parse_number): Likewise.
1492 * defs.h (DEPRECATED_STREQ): Remove.
1494 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1496 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1497 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1498 get_frame_arch to get at the current_architecture. Update AM33_MODE
1500 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1501 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1503 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1505 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1507 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1509 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1511 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1512 current_gdbarch by gdbarch. Update caller.
1514 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1515 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1516 the current architecture. Update calls of
1517 amd64_native_gregset_supplies_p.
1518 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1519 (amd64bsd_store_inferior_registers): Likewise.
1521 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1523 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1524 Replace current_gdbarch by gdbarch. Update caller.
1526 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1528 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1529 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1530 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1531 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1532 (stabsect_build_psymtabs): Fix indentation.
1534 2008-01-15 Michael Snyder <msnyder@specifix.com>
1536 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1538 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1540 * win32-nat.c (win32_create_inferior): Restore code calling
1541 CloseHandle on ProcessInformation structure.
1543 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1545 * configure.ac: Check for void * as 3 argument of ptrace.
1546 * configure: regenerate.
1548 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1550 * alpha-tdep.c (alpha_heuristic_proc_start)
1551 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1552 current_gdbarch by gdbarch.
1554 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1555 current architecture by frame_info. Update alpha_heuristic_proc_start
1558 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1559 get_frame_arch to get at the current architecture by frame_info. Update
1560 alpha_sigtramp_register_address call.
1562 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1563 current_gdbarch by gdbarch. Update caller.
1564 (convert_to_extended, convert_from_extended): Add endianess parameter
1565 for comparison. Update caller.
1566 (arm_extract_return_value, arm_store_return_value): Use
1567 get_regcache_arch to get at the current architecture.
1569 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1570 current_gdbarch by gdbarch. Update caller.
1571 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1572 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1574 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1575 gdbarch as parameter. Update caller.
1576 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1577 current_gdbarch by gdbarch. Update caller.
1579 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1580 update caller. Replace current_gdbarch by gdbarch.
1582 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1583 the current architecture. Replace current_gdbarch by gdbarch.
1584 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1585 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1586 expression. Add gdbarch as parameter and replace current_gdbarch with
1588 (M6811_TDEP): Remove.
1589 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1591 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1592 current_gdbarch by gdbarch. Update caller.
1594 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1596 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1599 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1600 caller. Relace current_gdbarch by gdbarch.
1601 (altivec_register_p, spe_register_p): Likewise.
1602 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1604 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1605 altivec_register_p and spe_register_p.
1607 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1608 caller. Replace current_gdbarch by gdbarch.
1609 (score_analyze_prologue): use get_frame_arch to get at the current
1612 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1613 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1614 current_gdbarch by gdbarch. Update caller.
1615 (sparc_frame_cache): Use get_frame_arch to get at the current
1617 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1618 sparc_analyze_prologue.
1620 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1623 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1625 * exec.c: #include "arch-utils.h"
1626 (print_section_info): Use gdbarch_from_bfd to get at the
1627 current architecture. Replace current_gdbarch. Fix indention. Replace
1628 deprecated_print_address_numeric by paddress.
1629 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1631 * valprint.c (val_print_string): Replace
1632 deprecated_print_address_numeric.
1633 * tracepoint.c (trace_mention, scope_info): Likewise.
1634 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1635 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1636 (maintenance_check_symtabs): Likewise.
1637 * symfile.c (list_overlays_command): Likewise.
1638 * stack.c (frame_info, print_block_frame_labels): Likewise.
1639 * printcmd.c (print_address, print_address_demangle)
1640 (address_info): Likewise.
1641 * corefile.c (memory_error): Likewise.
1642 * infcmd.c (jump_command): Likewise.
1643 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1644 (mention, delete_breakpoint): Likewise.
1645 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1646 * dwarf2read.c (dump_die): Likewise.
1647 * ada-valprint.c (ada_val_print_1): Likewise.
1648 * f-valprint.c (f_val_print): Likewise.
1649 * linux-fork.c (info_forks_command): Likewise.
1650 * m32r-com.c (m32r_load_section, m32r_load)
1651 (m32r_upload_command): Likewise.
1653 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1655 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1657 * gdbarch.sh (skip_prologue): Add gdbarch
1659 * gdbarch.{c,h}: Regenerate.
1661 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1662 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1663 * avr-tdep.c (avr_skip_prologue): Likewise.
1664 * cris-tdep.c (cris_skip_prologue): Likewise.
1665 * frv-tdep.c (frv_skip_prologue): Likewise.
1666 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1667 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1668 * i386-tdep.c (i386_skip_prologue): Likewise.
1669 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1670 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1671 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1672 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1673 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1674 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1675 * mep-tdep.c (mep_skip_prologue): Likewise.
1676 * mips-tdep.c (mips_skip_prologue): Likewise.
1677 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1678 * mt-tdep.c (mt_skip_prologue): Likewise.
1679 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1680 * score-tdep.c (score_skip_prologue): Likewise.
1681 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1682 * sh-tdep.c (sh_skip_prologue): Likewise.
1683 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1684 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1685 * spu-tdep.c (spu_skip_prologue): Likewise.
1686 * v850-tdep.c (v850_skip_prologue): Likewise.
1687 * vax-tdep.c (vax_skip_prologue): Likewise.
1688 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1689 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1691 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1692 current_gdbarch by gdbarch.
1693 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1694 * s390-tdep.c (s390_skip_prologue): Likewise.
1696 2008-01-10 Doug Evans <dje@google.com>
1698 * defs.h (struct continuation_arg): Fix typo in comment.
1699 * target.c (target_translate_tls_address): Fix comment spelling error.
1701 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1703 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1704 (DOUBLEST_SCAN_FORMAT): Likewise.
1705 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1706 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1707 * c-exp.y (parse_number): Likewise.
1708 * jv-exp.y (parse_number): Likewise.
1709 * objc-exp.y (parse_number): Likewise.
1710 * p-exp.y (parse_number): Likewise.
1712 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1714 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1715 (check_typedef): Likewise.
1717 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1719 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1720 seen_double_big_d, treat the new H, D, and DD modifiers as length
1723 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1725 * dwarf2read.c (read_enumeration_type): Add comment.
1727 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1729 * config.in: Regenerate.
1731 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1733 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1735 (ada_convert_actuals): Delete.
1736 * ada-lang.h (ada_convert_actual): Add declaration.
1737 (ada_convert_actuals): Remove declaration.
1738 * infcall.c: #include "ada-lang.h".
1739 (value_arg_coerce): Add new parameter sp. Update function
1740 documetnation. Add handling of Ada function call parameters.
1741 * Makefile.in (infcall.o): Update dependencies.
1743 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1745 * ada-lang.c (ensure_lval): Fix value lval kind.
1746 (convert_actual): Add handling for arguments passed by reference.
1748 2008-01-08 Doug Evans <dje@google.com>
1750 * dbxread.c (read_dbx_symtab): Fix indentation.
1752 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1754 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1755 (valarith.o): Depend on dfp.h.
1756 (valops.o): Likewise.
1757 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1758 (set_decnumber_context): New function.
1759 (decimal_check_errors): Likewise.
1760 (decimal_from_number): Likewise.
1761 (decimal_to_number): Likewise.
1762 (decimal_from_string): Use set_decnumber_context and
1763 decimal_check_errors.
1764 (decimal_from_integral): New function.
1765 (decimal_from_floating): Likewise.
1766 (decimal_to_double): Likewise.
1767 (promote_decimal): Likewise.
1768 (decimal_binop): Likewise.
1769 (decimal_is_zero): Likewise.
1770 (decimal_compare): Likewise.
1771 (decimal_convert): Likewise.
1772 * dfp.h (decimal_from_integral): New prototype.
1773 (decimal_from_floating): Likewise.
1774 (decimal_to_double): Likewise.
1775 (decimal_binop): Likewise.
1776 (decimal_is_zero): Likewise.
1777 (decimal_compare): Likewise.
1778 (decimal_convert): Likewise.
1779 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1780 call to value_from_decfloat.
1781 * valarith.c: Include dfp.h.
1782 (value_args_as_decimal): New function.
1783 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1784 (value_logical_not): Likewise.
1785 (value_equal): Likewise.
1786 (value_less): Likewise.
1787 (value_pos): Likewise.
1788 (value_neg): Formatting fix.
1789 * valops.c: Include dfp.h.
1790 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1791 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1792 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1793 (value_from_decfloat): Remove expect_type argument.
1794 * value.h (value_from_decfloat): Update prototype.
1796 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1798 Ignore change in name of dynamic linker during
1799 execution on Solaris. This also unbreaks pending breakpoints.
1801 * solist.h (struct target_so_ops): New field same.
1802 * solib-svr4.c (svr4_same): New.
1803 (_initialize_svr4_solib): Register svr4_same.
1804 * solib.c (update_solib_list): Use ops->same, if available.
1806 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1808 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1809 when using MS-DOS paths.
1811 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1813 * NEWS: Mention --pid and --core command line behaviour changes.
1815 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1817 * main.c (captured_main): Remove 'count' varible and the
1818 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1819 --pid options were issued simultaneously. If an explicit pid
1820 option was passed, don't fallback to core file. Detect extra
1821 arguments better in the presence of explicit pid or core
1824 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1826 * ada-lang.c (ada_which_variant_applies): Correctly compute
1827 the value of the discriminant when the variant record is packed.
1829 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1831 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1832 that are used to differentiate homonyms.
1834 2008-01-04 Jerome Guitton <guitton@adacore.com>
1836 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1837 when the type is an anonymous pointer type.
1838 (ada_check_typedef): Avoid a seg fault when the type is null.
1839 * ada-typeprint.c (print_array_type): Add support for pointer
1842 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1844 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1846 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1848 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1849 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1851 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1853 * ada-exp.y (chop_separator): New function.
1854 (write_selectors): Rewrite to re-use chop_separator.
1855 (ada_nget_field_index, get_symbol_field_type): New functions.
1856 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1859 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1861 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1862 of SYMBOL_VALUE when working with function symbols.
1864 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1867 expressions. These expressions do not need to be rewriten.
1869 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1871 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1872 the given die is a declaration.
1874 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1876 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1877 Handle properly the case when the index type is an enumerated type.
1878 Do not return the subtype of the bounds type, just return the
1879 bounds type directly - this is not needed and is more consistent
1880 with what we do for arrays when no XA parallel type exists.
1882 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1884 * ada-lang.c (static_unwrap_type): Add forward declaration.
1885 (template_to_static_fixed_type): Fields of dynamic types sometimes
1886 also need to be unwrapped. Take this into account.
1887 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1888 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1889 * ada-typeprint.c (ada_print_type): Get the typename from
1890 the original type, not the base type.
1892 2008-01-03 Jerome Guitton <guitton@adacore.com>
1894 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1895 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1896 Update calls to ada_to_fixed_type.
1897 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1899 (ada_to_fixed_type): Add check_tag parameter; do not look for
1900 tag if null. When looking for a tag, use a fixed record type.
1901 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1902 * ada-valprint.c (printable_val_type, ada_value_print): Update
1903 calls to ada_to_fixed_type.
1905 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1907 * doublest.c (convert_floatformat_to_doublest): Call
1908 floatformat_to_doublest instead of floatformat_to_double and use
1910 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1911 instead of floatformat_from_double and use DOUBLEST variables.
1913 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1915 * MAINTAINERS (Write After Approval): Add self.
1917 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1919 * symfile.c (set_initial_language): Make non-static.
1920 * symfile.h (set_initial_language): Add declaration.
1921 * language.c: #include "symfile.h".
1922 (set_language): Call set_initial_language if the frame language
1923 could not be determined.
1925 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1927 * eval.c (evaluate_subexp_for_address): Provide frame address to
1928 locate_var_value only if it will be needed.
1930 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1932 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1934 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1936 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1937 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1938 This is needed to make sure that any other treatment applied
1939 to the resulting value does not fail for spurious reason,
1940 such as trying to take the address of this value.
1942 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1944 * ada-lang.c (ada_value_equal): Dereference reference types when
1947 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1949 Updated copyright notices for most files.
1951 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1953 * win32-nat.c (psapi_module_handle): Remove static.
1954 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1955 return first module found if base_address is zero. Don't initialize
1956 psapi function pointers here. Convert to cygwin paths when
1958 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1959 executable name. Use get_module_name when that fails or when
1961 (_initialize_psapi): New function. Initialize psapi stuff before it is
1962 needed or issue a warning if it is not found. Move psapi_module_handle
1965 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1967 * ada-lang.c (ada_remove_trailing_digits): New function.
1968 (ada_remove_po_subprogram_suffix): New function.
1969 (ada_decode): Improve. Move the description of the algorithm
1970 directly inside the code, instead of in the function global
1973 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1975 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1976 and always print the dereferenced value.
1978 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1980 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1981 of the case where the first argument is a reference.
1982 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1984 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1986 Implement support for Ada interface types.
1988 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1989 (ada_is_ignored_field): Ignore fields that are a dispatch table
1992 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1994 * top.c (print_gdb_version): Update copyright year.
1996 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1998 * ChangeLog-2007: New ChangeLog rotation.
1999 * ChangeLog: Reset for 2008.
2000 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2003 For older changes see ChangeLog-2007.
2009 version-control: never