1 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3 * gdbthread.h (add_thread_with_info): New.
4 * linux-thread-db.c: Add some documentation.
5 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
6 (struct private_thread_info): Remove th_valid and ti_valid.
8 (thread_get_info_callback): Do not add TID to the new ptid. Do
10 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
11 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
13 (attach_thread): Handle an already-existing thread. Use
14 add_thread_with_info. Cache the th and tid.
15 (detach_thread): Verify that private was set. Remove verbose
16 argument and printing. Update caller.
17 (thread_db_detach): Do not adjust inferior_ptid.
18 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
19 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
20 (thread_db_wait): Do not use lwp_from_thread.
21 (thread_db_pid_to_str): Use the cached TID.
22 (thread_db_extra_thread_info): Check that private is set.
23 (same_ptid_callback): Delete.
24 (thread_db_get_thread_local_address): Do not use it or check
25 is_thread. Check that private is set. Assume that the thread
26 handle is already cached.
27 (init_thread_db_ops): Remove to_resume and to_kill.
28 * thread.c (add_thread_with_info): New.
30 * linux-nat.c (find_thread_from_lwp): Delete.
31 (exit_lwp): Do not use it. Check print_thread_events. Print before
33 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
34 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
35 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
36 printf_unfiltered for thread exits.
37 * procfs.c (procfs_wait): Likewise.
39 2008-03-21 Chris Demetriou <cgd@google.com>
41 * symtab.c (rbreak_command): Quote symbol name before passing
44 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
46 * eval.c (evaluate_subexp_for_address): Clarify error message.
47 Use value_must_coerce_to_target.
48 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
49 * valops.c (value_assign): Call value_coerce_to_target when
50 assigning to anything but internalvars. Leave GDB-side arrays
51 as arrays when assigning to internalvars.
52 (value_must_coerce_to_target, value_coerce_to_target): New.
53 (value_coerce_array, value_addr): Call value_coerce_to_target.
54 (value_array): Create the array in GDB's memory instead of
56 * value.h (value_must_coerce_to_target, value_coerce_to_target):
59 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
61 * top.c (quit_confirm): Warn that we will kill the program.
63 2008-03-19 Pedro Alves <pedro@codesourcery.com>
65 * inflow.c (terminal_ours_1): Guard access to
66 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
68 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
69 Jim Blandy <jimb@codesourcery.com>
70 Daniel Jacobowitz <drow@false.org>
72 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
73 (dwarf2_read_address): Update prototype.
75 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
76 (signed_address_type): Likewise.
77 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
78 (execute_stack_op): Update calls to unsigned_address_type,
79 signed_address_type and dwarf2_read_address. Fix implementation
82 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
83 (dwarf2_per_cu_addr_size): Likewise.
84 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
85 (struct dwarf2_loclist_baton): Likewise.
87 * dwarf2loc.c (find_location_expression): Update calls to
88 dwarf2_read_address. Use dwarf2_per_cu_objfile and
89 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
90 (locexpr_describe_location): Likewise.
91 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
92 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
93 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
94 to dwarf2_per_cu_addr_size (per_cu).
95 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
96 (loclist_read_variable): Likewise.
97 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
99 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
100 instead of baton->objfile.
101 (dwarf2_per_cu_obfile): New function.
102 (dwarf2_per_cu_addr_size): Likewise.
104 * dwarf2-frame.c (struct comp_unit): Move higher.
105 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
106 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
107 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
108 parameter by using fde->eh_frame_p. Use read_encoded_value
109 to implement DW_CFA_set_loc.
110 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
111 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
112 execute_stack_op and execute_cfa_program.
113 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
114 (size_of_encoded_value): Remove.
115 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
116 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
117 (add_cie): Set cie->unit backlink.
118 (decode_frame_entry_1): Set cie->addr_size. Update calls to
120 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
122 2008-03-17 Markus Deuling <deuling@de.ibm.com>
124 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
125 gdbarch_bfd_arch_info.
127 2008-03-17 Joel Brobecker <brobecker@adacore.com>
129 * aix-thread.c (pdc_read_regs): Minor reformatting.
131 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
133 * thread.c (print_thread_info): Don't insist
134 on having current thread if there are no
137 2008-03-17 Pedro Alves <pedro@codesourcery.com>
139 * infcmd.c (attach_command_post_wait)
140 (attach_command_continuation): New.
141 (attach_command): Support background async execution, and async
142 execution in synchronous mode.
144 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
146 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
147 * symmisc.c (dump_symtab_1): Likewise.
148 * wrapper.c (gdb_value_struct_elt): Likewise.
150 2008-03-17 Pedro Alves <pedro@codesourcery.com>
152 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
154 2008-03-17 Pedro Alves <pedro@codesourcery.com>
156 * linux-nat.c (linux_nat_filter_event): New, refactored from
158 (linux_nat_wait): Call linux_nat_filter_event.
160 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
162 * top.c (execute_command): Fix uninitialized variable error.
164 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
166 * Makefile.in (amd64nbsd-nat.o): New dependency.
167 * amd64nbsd-nat.c: Include "nbsd-nat.h".
168 (_initialize_amd64nbsd_nat): Update target vector to use
169 nbsd_pid_to_exec_file.
170 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
172 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
174 Remove ignoring leading exec events code.
175 * fork-child.c (startup_inferior): Do not set
176 inferior_ignoring_leading_exec_events.
177 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
178 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
179 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
180 (handle_inferior_event): Remove code for ignoring leading exec
182 * target.c (update_current_target): Do not inherit, or default,
183 to_reported_exec_events_per_exec_call.
184 (debug_to_reported_exec_events_per_exec_call): Remove.
185 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
186 * target.h (target_reported_exec_events_per_exec_call): Remove.
187 (struct target): Remove the to_reported_exec_events_per_exec_call
190 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
192 Implement -thread-info.
193 * gdbthread.h (print_thread_info): Declare.
195 * thread.c (print_thread_info): New, extracted
196 from info_threads_command and adjusted to
198 (info_threads_command): Use print_thread_info.
199 * Makefile.in: Update dependencies.
201 * mi/mi-cmds.c (mi_cmds): Specify a handler
203 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
204 * mi/mi-main.c (mi_cmd_thread_info): New.
205 (mi_cmd_list_features): Include 'thread-info'.
207 2008-03-14 Kevin Buettner <kevinb@redhat.com>
209 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
210 to decide whether to match instruction patterns using "sw" and "sd".
212 2008-03-14 Pedro Alves <pedro@codesourcery.com>
214 * infcmd.c (jump_command): Postpone disabling stdin until after
217 2008-03-14 Pedro Alves <pedro@codesourcery.com>
219 * inflow.c (gdb_getpgrp): New.
220 (gdb_has_a_terminal): Use get_getpgrp.
221 (terminal_ours_1): If attach_flag is set, don't refetch
222 inferior_process_group.
224 2008-03-14 Pedro Alves <pedro@codesourcery.com>
226 * features/library-list.dtd: Allow "section" elements as children
227 of "library". Add "section" element and describe its attributes.
229 * solib-target.c (struct lm_info): Add section_bases member.
230 (library_list_start_segment): Error out if seen a section element.
231 (library_list_start_section): New.
232 (library_list_end_library): New.
233 (solib_target_free_library_list): Free section_bases.
234 (section_attributes): New.
235 (library_children): Make "segment" optional. Add "section" child.
236 (library_list_children): Register library_list_end_library.
237 (solib_target_relocate_section_addresses): Handle section bases.
239 * NEWS: Mention new qXfer:libraries:read section offsets support.
241 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
243 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
244 (make_exec_error_cleanup): Remove declarations.
245 * utils.c (exec_error_cleanup_chain): Remove.
246 (do_exec_error_cleanups, discard_exec_error_cleanups)
247 (make_exec_error_cleanup): Remove.
248 * event-loop.c (start_event_loop): Adjust call to
250 * event-top.c (async_enable_stdin): Remove the paramater dummy.
251 (async_disable_stdin): Don't register async_enable_stdin via
253 * inf-loop.c (inferior_event_handler): Don't
254 call do_exec_error_cleanups. Call async_enable_stdin instead.
255 * event-loop.c (start_event_loop): Adjust call to
257 * tui/tui-interp.c (tui_command_loop): Adjust call to
260 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
263 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
264 * breakpoint.c (bpstat_do_actions): In async mode,
265 don't jump to top expecting stop_bpstat to be already
267 * event-loop.c (start_event_loop): Call async_enable_stdin
269 * event-top.c (async_enable_stdin): Do nothing if sync_execution
271 (command_handler): Do not setup continuation here.
272 (command_line_handler_continuation): Move to...
273 * top.c (command_line_handler_continuation): ... here.
274 (execute_command): In async mode, register continuation.
275 Don't check frame's language in running in async mode.
276 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
277 * inf-loop.c (complete_execution): Inline into...
278 (inferior_event_handler): ... here. Clear target_executing before
279 doing any cleanups. Don't try to show prompt if the target was
281 * infcmd.c (signal_command): Add support for async mode.
282 (finish_command): Only add continuation if the target was
283 successfully resumed.
284 * remote.c (init_async_opts): Register to_get_thread_local_address
286 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
288 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
291 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
293 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
294 * exec.c (exec_bfd_mtime): Define.
295 (exec_close): Clear it.
296 (exec_file_attach): Set it.
297 * gdbcore.h (exec_bfd_mtime): Declare.
298 * source.c (find_source_lines): Do not use bfd_get_mtime.
300 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
302 * top.c (simplified_command_loop): Remove.
304 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
306 Remove unused remote.c hooks.
307 * remote.c (deprecated_target_resume_hook)
308 (deprecated_target_wait_loop_hook): Remove.
309 (remote_resume): Do not call deprecated_target_resume_hook.
310 (remote_wait): Do not call deprecated_target_wait_loop_hook.
311 (remote_async_wait): Likewise.
313 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
315 Implement MI notification for new threads.
316 * doc/observer.texi (new_thread): Document.
317 * observer.sh: Forward declare struct thread_info.
318 * thread.c (add_thread): Notify observer.
320 * interps.h (interp_init_ftype): New parameter
322 (interp_set): Likewise.
323 (top_level_interpreter_data): Declare.
324 * interps.c (interp_set): New parameter top_level.
325 Pass it to interpreter's init function. Remember
326 top level interpreter.
327 (interpreter_exec_cmd): Adjust.
328 (top_level_interpreter_data): New.
329 * main.c (captured_main): Pass 1 for top_level
330 parameter of interp_set.
331 * cli/cli-interp.c (cli_interpreter_init): New
333 * tui/tui-interp.c (tui_init): New parameter top_level.
335 * mi/mi-interp.c (mi_new_thread): New.
336 (mi_interpreter_init): If top level, register
337 observer for new threads.
339 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
341 2008-03-14 Pedro Alves <pedro@codesourcery.com>
343 * top.c (execute_command): Disable break and stop
344 commands in async mode.
346 2008-03-14 Pedro Alves <pedro@codesourcery.com>
349 2008-03-14 Pedro Alves <pedro@codesourcery.com>
350 * inf-loop.c (inferior_event_handler): Don't include remote.h.
351 Call target_stop in the INF_QUIT_REQ case.
352 * Makefile.in (inf-loop.o): Update.
354 2008-03-14 Pedro Alves <pedro@codesourcery.com>
356 * inf-loop.c (inferior_event_handler): Don't include remote.h.
357 Call target_stop in the INF_QUIT_REQ case.
358 * Makefile.in (inf-loop.o): Update.
360 2008-03-14 Pedro Alves <pedro@codesourcery.com>
362 * top.c (execute_command): Enable break, info and interrupt
363 commands in async mode.
365 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
366 Daniel Jacobowitz <dan@codesourcery.com>
368 * breakpoint.h (breakpoint_restore_shadows): New
370 * breakpoint.c (breakpoint_restore_shadows): New.
371 (read_memory_nobpt): Delete.
372 * gdbcore.h (read_memory_nobpt): Delete declaration.
373 * target.c (memory_xfer_partial): Call
374 breakpoint_restore_shadows.
375 (restore_show_memory_breakpoints)
376 (make_show_memory_beakpoints_cleanup): New.
377 (show_memory_breakpoints): New.
378 * target.h (make_show_memory_beakpoints_cleanup): Declare.
379 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
380 Make sure we see memory breakpoints when checking if
381 breakpoint is still there.
382 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
383 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
384 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
385 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
387 2008-03-12 Pedro Alves <pedro@codesourcery.com>
389 * thread.c (add_thread): Use printf_unfiltered to print.
391 2008-03-12 Joel Brobecker <brobecker@gnat.com>
393 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
394 that is true only on x86-solaris and x86_64-solaris.
395 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
396 with proc_get_LDT_entry.
398 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
400 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
401 * config.in, configure: Regenerate.
402 * fork-child.c (fork_inferior): Call create_tty_session.
403 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
404 (create_tty_session): New function.
405 * terminal.h: Declare create_tty_session.
407 2008-03-12 Alan Modra <amodra@bigpond.net.au>
410 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
411 * mipsread.c: Include elf/internal.h.
412 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
415 2008-03-11 Markus Deuling <deuling@de.ibm.com>
417 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
418 to get at the current architecture and at the target specific vector.
419 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
420 remove define of I387_ST0_REGNUM.
422 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
424 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
425 get at the current architecture
426 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
429 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
430 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
432 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
433 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
434 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
436 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
437 at the target specific vector.
439 (i386_get_longjmp_target): Use get_frame_arch to get at the current
440 architecture. Use gdbarch_tdep to get at the target specific vector.
442 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
443 update caller. Use gdbarch_tdep to get at the target specific vector.
445 (i386_register_to_value: Use get_frame_arch to get at the current
448 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
451 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
452 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
453 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
454 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
456 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
459 (i387_convert_register_p, i387_register_to_value,
460 i387_value_to_register): Update call for i386_fp_regnum_p.
462 * i387-tdep.h: Remove comment.
463 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
464 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
465 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
466 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
467 I387_MXCSR_REGNUM): Add target specific vector as parameter.
469 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
471 * Makefile.in (fork-child.o): Update.
472 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
473 argument. Gather all gdbserver features together.
474 * fork-child.c (exec_wrapper): New variable.
475 (fork_inferior): Use it.
476 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
477 (unset_exec_wrapper_command, _initialize_fork_child): New.
479 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
481 * source.c (directory_command): Modify the determination of
482 condition of terminal "from_tty".
484 2008-03-10 Matt Rice <ratmice@gmail.com>
486 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
488 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
490 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
491 of the data passing to strtoulst function.
492 (info_spu_signal_command): Likewise.
494 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
496 * mi/mi-interp.c (mi_command_loop): Remove
499 2008-03-07 Joel Brobecker <brobecker@adacore.com>
501 * remote.c (extended_remote_attach_1): Make local variable pid an int
504 2008-03-07 Joel Brobecker <brobecker@adacore.com>
506 * solib-svr4.c (svr4_same_1): New function, originally extracted
507 from svr4_same and expanded to handle the sparc64 case.
508 (svr4_same): Move up and reimplement using svr4_same_1.
509 (enable_break): Use svr4_same_1 to do shared library name comparisons.
511 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
513 * MAINTAINERS: Move self to Paper trail.
515 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
517 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
518 * event-loop.c (call_async_signal_handler): New.
519 * event-loop.h (call_async_signal_handler)
520 (gdb_call_async_signal_handler): Declare.
521 (mark_async_signal_handler): Add comments.
522 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
523 * mingw-hdep.c (sigint_event, sigint_handler): New.
524 (gdb_select): Use them. Wait for the readline signal handler
526 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
527 * posix-hdep.c (gdb_call_async_signal_handler): New function.
528 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
530 (remote_fileio_ctrl_c_signal_handler): Use
531 gdb_call_async_signal_handler.
532 (initialize_remote_fileio): Initialize sigint_fileio_token.
533 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
534 not initialize tokens here.
535 (handle_remote_sigint_twice): Likewise. Reinstall
536 handle_remote_sigint.
537 (async_remote_interrupt_twice): Just call interrupt_query.
538 (cleanup_sigint_signal_handler): Do not delete tokens.
539 (remote_interrupt, remote_interrupt_twice): Use
540 gdb_call_async_signal_handler.
541 (interrupt_query): Reinstall the default signal handler.
542 (_initialize_remote): Initialize tokens here.
544 2008-03-04 Joel Brobecker <brobecker@adacore.com>
546 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
547 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
548 Change the type of the lr register to code_ptr.
549 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
550 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
551 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
552 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
553 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
554 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
555 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
557 2008-03-03 James E. Wilson <wilson@tuliptree.org>
559 * MAINTAINERS: Update my email address.
561 2008-03-03 Keith Seitz <keiths@redhat.com>
563 From Dave Murphy <davem@devkitpro.org>:
564 * configure.ac: Set tcl configdir to win under mingw.
565 * configure: Regenerate.
567 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
569 * breakpoint.c (fetch_watchpoint_value): New function.
570 (update_watchpoint): Set and clear val_valid. Use
571 fetch_watchpoint_value. Handle unreadable values on the
572 value chain. Correct check for user-requested array watchpoints.
573 (breakpoint_init_inferior): Clear val_valid.
574 (watchpoint_value_print): New function.
575 (print_it_typical): Use it. Do not free or clear old_val. Print
576 watchpoints even if old_val == NULL.
577 (watchpoint_check): Use fetch_watchpoint_value. Check for values
578 becoming readable or unreadable.
579 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
580 (do_enable_watchpoint): Likewise.
581 * breakpoint.h (struct breakpoint): Update comment for val. Add
583 * NEWS: Mention watchpoints on inaccessible memory.
585 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
587 * Makefile.in (i386-nat.o): Update.
588 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
589 i386_use_watchpoints.
590 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
591 i386_use_watchpoints.
592 * i386-nat.c (i386_stopped_data_address): Take two arguments.
593 (i386_stopped_by_watchpoint): Update call.
594 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
595 * config/i386/nm-i386.h: Conditionalize definitions on
596 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
597 (i386_use_watchpoints): Declare.
598 (i386_stopped_data_address): Update.
599 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
600 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
602 2008-02-29 Joel Brobecker <brobecker@adacore.com>
604 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
605 * version.in: Bump version to 6.8.50.20080229-cvs.
607 2008-02-28 Markus Deuling <deuling@de.ibm.com>
609 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
612 2008-02-28 Tom Tromey <tromey@redhat.com>
614 * infcmd.c (notice_args_read): Print result of get_inferior_args.
616 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
618 * infcmd.c (kill_if_already_running): Make static. Use
619 target_require_runnable.
620 * target.c (target_require_runnable): New.
621 * target.h (target_require_runnable): Declare.
623 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
625 * frame.c (reinit_frame_cache): Only annotate if frames were
628 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
630 * regformats/reg-ppc.dat: Rename "ps" to "msr".
631 * regformats/reg-ppc64.dat: Likewise.
633 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
635 * features/Makefile (%.dat): Emit xmltarget statement.
637 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
638 Generate code to set gdbserver_xmltarget in init_registers_${name}.
640 * regformats/arm-with-iwmmxt.dat: Regenerate.
641 * regformats/mips64-linux.dat: Regenerate.
642 * regformats/mips-linux.dat: Regenerate.
643 * regformats/rs6000/powerpc-32.dat: Regenerate.
644 * regformats/rs6000/powerpc-64.dat: Regenerate.
645 * regformats/rs6000/powerpc-e500.dat: Regenerate.
647 * regformats/reg-arm.dat: Add xmlarch statement.
648 * regformats/reg-i386.dat: Likewise.
649 * regformats/reg-i386-linux.dat: Likewise.
650 * regformats/reg-x86-64-linux.dat: Likewise.
651 * regformats/reg-spu.dat: Likewise.
653 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
655 * remote.c (remote_wait, remote_async_wait): Stop if we receive
658 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
660 * utils.c (debug_timestamp): New.
661 (vfprintf_unfiltered): Print timestamps if requested.
662 (show_debug_timestamp): New.
663 (initialize_utils): Register "set debug timestamp".
664 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
666 2008-02-27 Joel Brobecker <brobecker@adacore.com>
668 * breakpoint.c (skip_prologue_sal): New function.
669 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
670 computed from a line number.
672 2008-02-27 Joel Brobecker <brobecker@adacore.com>
674 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
675 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
676 Set PC register type to "code_ptr".
677 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
678 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
679 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
680 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
681 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
682 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
683 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
686 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
688 * regformats/regdat.sh: Rename init_registers function in
689 generated file to init_registers_${name}.
691 * regformats/reg-crisv32.dat: Set "name" to crisv32.
692 * regformats/reg-ppc64.dat: Set "name" to ppc64.
693 * regformats/reg-s390x.dat: Set "name" to s390x.
695 2008-02-26 Greg Law <glaw@undo-software.com>
697 * regcache.c (registers_changed): Call reinit_frame_cache.
699 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
701 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
702 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
703 and svr4_fetch_objfile_link_map.
704 * Makefile.in (sh-linux-tdep.o): Update.
706 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
708 * amd64-tdep.c (amd64_classify): Add support for decimal float
710 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
711 use the struct return convention.
713 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
715 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
716 to old format. Discard breakpoint address if shared library is
718 (breakpoint_1): Adjust formatting of table header accordingly.
720 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
722 * remote.c (remote_get_threadlist): If the response
723 is empty, don't try to parse it.
725 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
727 Unbreak 'target async'.
728 * serial.c (serial_async): Set the
729 handler function before enabling async
732 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
734 * solib-svr4.c (enable_break): Convert r_brk to a code address.
736 2008-02-21 Pedro Alves <pedro@codesourcery.com>
738 * remote.c (extended_remote_attach_1): Set attach_flag.
739 (extended_remote_create_inferior_1): Clear attach_flag.
741 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
743 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
745 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
746 * solib-svr4.c (solib_svr4_r_brk): New.
747 (open_symbol_file_object, svr4_current_sos): Always check the
749 (svr4_fetch_objfile_link_map): Do not set debug_base.
750 (enable_break): Use r_brk if it is set.
751 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
752 (svr4_lp64_fetch_link_map_offsets): Likewise.
753 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
755 2008-02-20 Markus Deuling <deuling@de.ibm.com>
756 Mark Kettenis <kettenis@gnu.org>
758 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
759 trad_frame_saved_reg.
760 (trad-frame.h): New include.
762 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
763 instead of frame_obstack_zalloc.
764 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
766 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
768 2008-02-20 Markus Deuling <deuling@de.ibm.com>
770 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
771 from disassemble_info instead of gdbarch_byte_order.
773 * mips-tdep.c (gdb_print_insn_mips): Likewise.
774 * arm-tdep.c (gdb_print_insn_arm): Likewise.
776 2008-02-20 Markus Deuling <deuling@de.ibm.com>
778 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
779 gdbarch as parameter.
781 * gdbarch.{c,h}: Regenerate.
783 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
785 * mem-break.c (default_memory_insert_breakpoint)
786 (default_memory_remove_breakpoint): Likewise.
787 * target.h (default_memory_remove_breakpoint)
788 (default_memory_insert_breakpoint): Likewise.
790 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
791 parameter. Replace current_gdbarch by gdbarch.
792 * m32r-tdep.c (m32r_memory_insert_breakpoint)
793 (m32r_memory_remove_breakpoint): Likewise.
795 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
797 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
799 2008-02-19 Joel Brobecker <brobecker@adacore.com>
801 * NEWS: Add entry describing Add support improvements.
803 2008-02-18 Markus Deuling <deuling@de.ibm.com>
805 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
808 2008-02-18 Markus Deuling <deuling@de.ibm.com>
810 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
811 register_offset_hack anymore.
813 * regcache.{c,h} (register_offset_hack): Remove.
815 2008-02-18 Markus Deuling <deuling@de.ibm.com>
817 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
819 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
820 current_gdbarch by gdbarch.
821 (hppa64_hpux_find_global_pointer): Likewise.
822 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
823 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
826 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
828 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
830 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
833 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
834 replace current_gdbarch by gdbarch.
835 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
837 2008-02-18 Markus Deuling <deuling@de.ibm.com>
839 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
840 and replace current_gdbarch by gdbarch.
842 (store_register): Update call for exec_one_dummy_insn.
843 (fetch_register, store_register): Update call of regmap.
845 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
846 parameter and replace current_gdbarch by gdbarch.
848 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
849 the current architecture. Update call for getregs_supplies and
851 (ppcnbsd_fetch_inferior_registers): Likewise.
853 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
854 replace current_gdbarch by gdbarch.
855 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
856 get_regcache_arch to get at the current architecture. Update call for
859 2008-02-18 Markus Deuling <deuling@de.ibm.com>
861 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
864 2008-02-15 Markus Deuling <deuling@de.ibm.com>
866 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
868 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
870 * NEWS: Mention pending breakpints in MI.
872 2008-02-14 Markus Deuling <deuling@de.ibm.com>
874 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
876 2008-02-13 Markus Deuling <deuling@de.ibm.com>
878 Add script to build and test GDB using enable-targets=all.
880 * gdb_buildall.sh: New file.
882 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
884 * NEWS (New native configurations): Xtensa GNU/Linux.
885 (New targets): Xtensa GNU/Linux.
886 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
888 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
889 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
890 * configure.tgt (xtensa*-*-linux*): New entry.
891 * xtensa-config.c (xtensa_tdep): New variable.
892 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
893 (rmap): Change format based on new macro XTREG.
894 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
895 * xtensa-linux-nat.c: New.
896 * xtensa-linux-tdep.c: New.
897 * xtensa-xtregs.c: New.
898 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
899 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
900 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
901 (xtensa_register_t): New field coprocessor.
902 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
903 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
904 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
905 Update to handle privileged registers.
906 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
907 (xtensa_push_dummy_call): Set windowstart register correctly.
908 (call0_analyze_prologue): Initialize xtensa_default_isa.
909 (xtensa_derive_tdep): New.
910 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
911 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
912 Call xtensa_derive_tdep().
913 * config/xtensa/linux.mh: New.
914 * regformats/reg-xtensa.dat: New.
916 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
918 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
919 (filenames.h): New include.
920 * Makefile.in (corelow.o): Add dependency for filenames.h.
922 2008-02-08 Doug Evans <dje@google.com>
924 * source.c (find_and_open_source): Always rewrite absolute filenames.
926 2008-02-07 Doug Evans <dje@google.com>
928 * breakpoint.c: #include "hashtab.h".
929 (ambiguous_names_p): New fn.
930 (update_breakpoint_locations): When restoring bp enable status, don't
931 compare function names if any functions have same name.
932 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
934 2008-02-07 Joel Brobecker <brobecker@adacore.com>
936 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
937 instead of just a VEC*. Update use of SV.
938 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
940 2007-02-07 Joel Brobecker <brobecker@adacore.com>
942 * NEWS: Put all new commands since gdb-6.7 together.
944 2007-02-07 Joel Brobecker <brobecker@adacore.com>
946 * ada-lang.c: #include "vec.h".
947 (struct string_vector, new_string_vector, string_vector_append):
949 (char_ptr): New typedef.
950 (DEF_VEC_P (char_ptr)): New VEC type.
951 (symbol_completion_add): Update profile to take the new VEC type
952 instead of the old string_vector structure. Update code accordingly.
953 (ada_make_symbol_completion_list): Use the new VEC type instead of
954 the old string_vector structure, and update the code accordingly.
955 * Makefile.in (ada-lang.o): Add dependency on vec.h.
957 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
959 * p-exp.y: Set current_type in missing places.
960 (leftdiv_is_integer): New static variable.
961 Typecast right operand of BINOP_DIV to long_double if both operands
964 2008-02-06 Maciej W. Rozycki <macro@mips.com>
966 * remote-mips.c (set_breakpoint): Rename to...
967 (mips_set_breakpoint): ... this.
968 (clear_breakpoint): Rename to...
969 (mips_clear_breakpoint): ... this.
970 (common_breakpoint): Rename to...
971 (mips_common_breakpoint): ... this.
972 (check_lsi_error): Rename to...
973 (mips_check_lsi_error): ... this.
975 2007-02-05 Joel Brobecker <brobecker@adacore.com>
977 * language.h (struct language_defn): Add new field
978 la_make_symbol_completion_list.
979 * symtab.c (default_make_symbol_completion_list): Renames
980 make_symbol_completion_list.
981 (make_symbol_completion_list): New function.
982 * symtab.h (default_make_symbol_completion_list): Add declaration.
983 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
984 (auto_language, local_language): Likewise.
985 * objc-lang.c (objc_language_defn): Likewise.
986 * scm-lang.c (scm_language_defn): Likewise.
987 * m2-lang.c (m2_language_defn): Likewise.
988 * f-lang.c (f_language_defn): Likewise.
989 * jv-lang.c (java_language_defn): Likewise.
990 * p-lang.c (pascal_language_defn): Likewise.
991 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
992 (minimal_language_defn): Likewise.
993 * ada-lang.c (struct string_vector): New structure.
994 (new_string_vector, string_vector_append, ada_unqualified_name)
995 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
996 (ada_make_symbol_completion_list): New functions.
997 (ada_language_defn): Set la_make_symbol_completion_list.
998 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
999 this function is static.
1001 2008-02-05 Kevin Buettner <kevinb@redhat.com>
1003 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1004 to account for call site optimizations.
1006 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
1008 * tracepoint.c (read_actions): Handle end-of-text indicator
1009 in action list properly. (Committed by Jim Blandy)
1011 2008-02-05 Jim Blandy <jimb@red-bean.com>
1013 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1014 pseudoregister, not an internal error.
1015 Reported by: Andrzej Zaborowski
1017 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1019 * varobj.c (c_value_of_variable): Use xstrdup.
1021 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
1023 Update stored rendition of varobj value when format changes.
1024 * varobj.c (varobj_set_display_format): Recomputed
1026 (c_value_of_variable): Return print_value.
1028 2008-02-03 Doug Evans <dje@google.com>
1030 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1031 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1032 * valops.c (value_one): New function.
1033 * value.h (value_one): Declare.
1035 Fix argument promotion for binary arithmetic ops for C.
1036 * valarith.c (unop_result_type): New fn.
1037 (binop_result_type): New fn.
1038 (value_binop): Move result type computation to binop_result_type.
1039 (value_pos, value_neg, value_complement): Move result type
1040 computation to unop_result_type.
1043 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1044 Return basetype, fieldno if found. All callers updated.
1045 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1047 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1048 * symfile.h (fill_in_vptr_fieldno): Delete.
1050 2008-02-02 Doug Evans <dje@google.com>
1052 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1054 * typeprint.c (*): Whitespace cleanup.
1056 2008-02-02 Mark Kettenis <kettenis@gnu.org>
1057 Luis Machado <luisgpm@br.ibm.com>
1058 Thiago Jung Bauermann <bauerman@br.ibm.com>
1060 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1061 don't fit into registerson the stack the way GCC does.
1063 2008-02-01 Joel Brobecker <brobecker@adacore.com>
1065 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1066 hash table for Ada symbols. Just store the linkage name as is,
1067 and leave the demangled_name as NULL.
1069 2007-02-01 Joel Brobecker <brobecker@adacore.com>
1071 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1072 in the global scope.
1073 (new_symbol): Likewise.
1075 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1077 * breakpoint.c (break_command_1): Return void.
1078 (break_command_really): Return void. Rethrow
1079 exceptions instead of returning.
1080 (gdb_breakpoint): Remove the error_message parameter.
1081 Return void. Rename to set_breakpoint.
1082 * gdb.h (gdb_breakpoint): Rename and move to...
1083 * breakpoint.h (set_breakpoint): ...here.
1084 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1085 event hooks even if exception is thrown. Adjust to
1086 gdb_breakpoint interface changes.
1089 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1091 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1092 float in both first and second word in the doubleword, to support
1095 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
1097 Properly rethrow exception. This fixes errors
1098 about non-existent functions for -break-insert.
1099 * breakpoint.c (break_command_really): Use throw_exception
1100 for rethrowing. If rethrowing, don't print the exception.
1102 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1104 * NEWS: Mention Decimal Floating Point support.
1106 2008-01-31 Joel Brobecker <brobecker@adacore.com>
1108 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1109 value type to builtin_type_void_func_ptr.
1111 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
1113 * s390-tdep.c (is_float_singleton, is_float_like,
1114 alignment_of, s390_return_value): Make checks for
1115 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1117 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
1118 Thiago Jung Bauermann <bauerman@br.ibm.com>
1120 * infcmd.c (default_print_registers_info): Also print hex
1121 raw contents for TYPE_CODE_DECFLOAT registers.
1122 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1123 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1124 (rs6000_register_name): Add support for DFP pseudo-registers.
1125 (rs6000_pseudo_register_type): Likewise.
1126 rs6000_pseudo_register_reggroup_p): Likewise.
1127 (ppc_pseudo_register_read): New function.
1128 (ppc_pseudo_register_write): Likewise.
1129 (rs6000_pseudo_register_read): Likewise.
1130 (rs6000_pseudo_register_write): Likewise.
1131 (e500_pseudo_register_read): Move checks to
1132 rs6000_pseudo_register_read.
1133 (e500_pseudo_register_write): Move checks to
1134 rs6000_pseudo_register_write.
1135 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1136 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1137 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1138 num_pseudo_regs to account for DFP pseudo regs.
1140 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1142 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1143 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1144 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1145 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1146 e500_pseudo_register_read, e500_pseudo_register_write): Use
1147 IS_SPE_PSEUDOREG macro.
1148 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1149 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1150 Remove initialization of tdep->ppc_ev31_regnum.
1152 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1154 * printcmd.c (print_formatted): Handle references as for unformatted
1157 2008-01-30 Joel Brobecker <brobecker@adacore.com>
1159 * eval.c (evaluate_subexp_standard): Add handling of user
1160 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1162 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
1164 * eval.c (evaluate_subexp_standard): Support
1165 BINOP_INTDIV opcode.
1167 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
1169 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1171 For BINOP_EXP, use length and signedness of left operand only for
1172 result, as for shifts.
1173 For integral operands to BINOP_EXP, use new integer_pow and
1174 uinteger_pow functions so as to get full range of results.
1175 (integer_pow): New function.
1176 (uinteger_pow): New function.
1178 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1180 Use vector for varobj_list_children interface.
1181 * gdb/varobj.c (varobj_list_children): Return vector
1183 * gdb/varobj.h (varobj_list_children): Adjust
1185 (varobj_p): Declare. Declare vector thereof.
1186 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1187 for varobj_list_children change.
1188 * Makefile.in (varobj_h): Update dependencies.
1190 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1192 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1193 TYPE_CODE_DECFLOAT arguments.
1194 (ppc64_sysv_abi_push_dummy_call) Likewise.
1195 (get_decimal_float_return_value): New function.
1196 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1197 values by calling get_decimal_float_return_value.
1198 (ppc64_sysv_abi_return_value): Likewise.
1200 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1202 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1203 for preprocessor macro information. Formatting changes.
1205 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1207 * remote.c (struct remote_state): Add cached_wait_status.
1208 (remote_exec_file): New variable.
1209 (PACKET_vAttach, PACKET_vRun): New constants.
1210 (extended_remote_restart): Do not query for status.
1211 (struct start_remote_args): New.
1212 (remote_start_remote): Take it as a second argument. Check
1213 whether the target is running. Issue an error for non-running
1214 non-extended targets. Cache the wait status. Set inferior_ptid
1216 (remote_open_1): Prompt to disconnect non-running targets. Make
1217 sure the target is marked running. Do not set inferior_ptid here.
1218 Update call to remote_start_remote. Do not call remote_check_symbols
1219 if the target is not running.
1220 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1221 argument. Handle a non-running target.
1222 (remote_detach): Use it.
1223 (extended_remote_detach): New.
1224 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1225 (extended_remote_attach_1, extended_remote_attach)
1226 (extended_async_remote_attach): New.
1227 (remote_vcont_resume): Remove unused variable.
1228 (remote_wait, remote_async_wait): Use any cached wait status.
1229 (putpkt_binary, getpkt): Clear any cached wait status.
1230 (extended_remoute_mourn_1): New.
1231 (extended_remote_mourn): Use it.
1232 (extended_async_remote_mourn, extended_remote_run): New.
1233 (extended_remote_create_inferior_1): New.
1234 (extended_remote_create_inferior): Use it.
1235 (extended_remote_async_create_inferior): Likewise.
1236 (remote_xfer_partial): Skip for non-executing targets.
1237 (init_extended_remote_ops): Set to_detach and to_attach.
1238 (init_extended_async_remote_ops): Likewise. Use
1239 extended_async_remote_mourn.
1240 (_initialize_remote): Register vAttach, vRun, and
1241 set remote exec-file.
1242 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1244 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1246 * Makefile.in (symfile.o): Update.
1247 * NEWS: Mention exec tracing support.
1248 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1250 * infcmd.c (kill_if_already_running, detach_command)
1251 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1252 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1253 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1254 targets. Apply the sysroot path to the loaded executable. Use
1255 no_shared_libraries.
1256 * linux-nat.c (linux_child_follow_fork): Print fork following
1257 messages if verbose.
1258 (kill_wait_callback): Kill again before waiting a second time.
1259 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1260 no_shared_libraries.
1262 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1264 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1266 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1268 * nto-tdep.h: Remove #include "defs.h".
1269 * nto-tdep.c: Add #include "defs.h".
1270 * Makefile.in (nto_tdep_h): Update dependencies.
1271 (nto-tdep.o): Likewise.
1273 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1275 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1277 (proceed, start_remote): Update call to wait_for_inferior.
1278 * inferior.h (wait_for_inferior): Update declaration.
1279 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1280 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1281 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1282 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1284 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1286 * varobj (adjust_value_for_child_access): Added checking for
1287 returned value from gdb_value_ind.
1288 (c_describe_child): Likewise.
1289 (cplus_describe_child): Fixed a typo.
1291 2008-01-29 Jim Blandy <jimb@red-bean.com>
1293 * MAINTAINERS: Update my info.
1295 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1297 Use multiple locations for hardware watchpoints.
1298 This eliminates the need to traverse value chain, doing
1299 various checks, in three different places.
1301 * breakpoint.h (struct bp_location): New fields
1302 lengths and watchpoint_type.
1303 (struct breakpoint): Remove the val_chain field.
1304 * breakpoint.c (is_hardware_watchpoint): New.
1305 (free_valchain): Remove.
1306 (update_watchpoint): New.
1307 (insert_bp_location): For hardware watchpoint, just
1309 (insert_breakpoints): Call update_watchpoint_locations
1310 on all watchpoints. If we have failed to insert
1311 any location of a hardware watchpoint, remove all inserted
1313 (remove_breakpoint): For hardware watchpoints, directly
1315 (watchpoints_triggered): Iterate over locations.
1316 (bpstat_stop_status): Use only first location of
1317 a resource watchpoint.
1318 (delete_breakpoint): Don't call free_valchain.
1319 (print_one_breakpoint): Don't print all
1320 locations for watchpoints.
1321 (breakpoint_re_set_one): Use update_watchpoint for
1324 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1326 Don't reset watchpoint block on solib load.
1328 * breakpoint.c (insert_bp_location): For watchpoints,
1329 recompute condition.
1330 (breakpoint_re_set_one): Instead of recomputing value
1331 and condition for watchpoints, just reset value and
1332 let insert_breakpoints/insert_bp_location recompute it.
1333 Don't do anything about disabled watchpoint.
1335 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1337 * valarith.c (value_binop): Handle unsigned integer
1340 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1342 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1343 instruction pattern that appears frequently in position
1344 independent code. Fix bug in code which looks for "fmov" and
1345 backtracks if no "fmov" is found.
1347 2008-01-28 Doug Evans <dje@google.com>
1349 * dbxread.c (read_dbx_symtab): Fix indentation.
1350 Reformat comments to 80 columns.
1351 Move local var def closer to only use.
1353 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1355 * fork-child.c (SHELL_FILE): Remove #ifndef.
1356 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1358 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1360 * i386-tdep.c (i386_skip_noop): New function.
1361 (i386_analyze_prologue): Call i386_skip_noop function.
1363 2008-01-24 Michael Snyder <msnyder@specifix.com>
1365 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1366 * win32-nat.c (win32_xfer_partial): Ditto.
1367 * target.c (default_xfer_partial): Minor whitespace adjustment.
1369 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1371 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1372 strip bit 1 even if pc doesn't point to thumb code.
1374 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1376 * remote.c (remote_wait): Handle SIGINT between packets.
1377 (remote_async_wait): Likewise.
1379 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1380 Chris Demetriou <cgd@google.com>
1382 * thread.c (add_thread_silent): Renamed
1384 (print_thread_events): New variable definition.
1385 (show_print_thread_events): New function.
1386 (_initialize_thread): Add "set print thread-events" and
1387 "show print thread-events" commands.
1388 (add_thread): Announce new thread.
1389 * gdbthread.h (add_thread_silent): Declare.
1390 (print_thread_events): New variable declaration.
1391 * inf-ttrace.c (inf_ttrace_wait): Don't
1392 inform about new thread, as add_thread is always
1393 called too, and will take care of that.
1394 * infrun.c (handle_inferior_event): Likewise.
1395 * procfs.c (procfs_wait): Likewise.
1396 * remote.c (remote_currthread): Likewise.
1397 * sol-thread.c (sol_thread_wait): Likewise.
1398 * win32-nat.c (get_win32_debug_event): Likewise.
1399 * linux-thread-db.c (attach_thread): Likewise.
1400 Remove the verbose parameter.
1401 (check_event): Make detach_thread be verbose
1402 only if print_thread_events is set.
1403 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1404 about new thread. This is called only from
1405 linux-thread-db.c:attach_thread, which will take care.
1406 Remove the verbose parameter.
1407 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1409 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1411 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1413 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1415 * breakpoint.c (break_command_really): New parameter
1417 (break_command_1): Pass 0 as
1418 ignore_count to break_command_really.
1419 (gdb_breakpoint): Pass ignore_count to
1420 break_command_really.
1422 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1424 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1425 sigcontext struct via pointer.
1426 (struct sigframe comment): Update to show new field `psc'.
1428 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1430 * infrun.c (handle_inferior_event): If
1431 we failed to remove breakpoints, error,
1432 don't try to increment PC by hand.
1434 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1436 Add NetBSD/hppa target and host support.
1438 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1439 (hppabsd_gregset): Move to ...
1440 (hppabsd_regset_from_core_section): Rename
1441 hppaobsd_regset_from_core_section and move to ...
1442 (hppabsd_find_global_pointer): Update comment.
1443 (hppabsd_init_abi): Make global. Do not register
1444 hppabsd_regset_from_core_section.
1445 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1447 (_initialize_hppabsd_tdep): Move to ...
1448 * hppaobsd-tdep.c: ... here. New file.
1449 * hppnbsd-tdep.c: New file.
1450 * hppnbsd-nat.c: New file.
1451 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1452 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1453 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1454 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1455 * configure.host (hppa*-*-netbsd*): New entry.
1456 * configure.tgt (hppa*-*-netbsd*): New entry.
1457 (hppa*-*-openbsd*): Update.
1458 * NEWS (New native configuration): Mention NetBSD/hppa.
1459 (New targets): Mention NetBSD/hppa.
1461 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1463 * gdbarch.sh (function_list): Add new property bits_big_endian to
1465 * gdbarch.{c,h}: Regenerate.
1467 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1468 gdbarch_bits_big_endian (comment).
1469 (unpack_field_as_long, modify_field): Likewise.
1470 * value.h: Likewise (comment).
1471 * valops.c (value_slice): Likewise.
1472 * valarith.c (value_subscript, value_bit_index): Likewise.
1473 * gdbtypes.h (field): Likewise (comment).
1474 * eval.c (evaluate_subexp_standard): Likewise.
1475 * dwarf2read.c (dwarf2_add_field): Likewise.
1476 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1477 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1479 * defs.h (BITS_BIG_ENDIAN): Remove.
1481 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1483 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1485 * m2-exp.y (yylex): Likewise.
1486 * objc-exp.y (yylex): Likewise.
1488 * defs.h (DEPRECATED_STREQN): Remove.
1490 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1492 * MAINTAINERS: Update my email address.
1494 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1496 * README: Mention gdbserver/README.
1498 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1500 * valarith.c (value_binop): Handle BINOP_INTDIV
1501 for unsigned and signed integers.
1503 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1505 * s390-tdep.c (s390_gdbarch_init): Set default long double
1506 type to 128-bit IEEE quad.
1508 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1510 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1512 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1514 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1516 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1517 * value.c: All callers changed.
1519 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1521 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1522 DEPRECATED_STREQ by its expression.
1523 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1524 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1525 (scan_xcoff_symtab): Likewise.
1526 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1527 * f-lang.c (find_common_for_function): Likewise.
1528 * objc-exp.y (parse_number): Likewise.
1530 * defs.h (DEPRECATED_STREQ): Remove.
1532 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1534 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1535 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1536 get_frame_arch to get at the current_architecture. Update AM33_MODE
1538 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1539 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1541 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1543 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1545 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1547 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1549 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1550 current_gdbarch by gdbarch. Update caller.
1552 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1553 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1554 the current architecture. Update calls of
1555 amd64_native_gregset_supplies_p.
1556 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1557 (amd64bsd_store_inferior_registers): Likewise.
1559 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1561 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1562 Replace current_gdbarch by gdbarch. Update caller.
1564 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1566 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1567 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1568 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1569 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1570 (stabsect_build_psymtabs): Fix indentation.
1572 2008-01-15 Michael Snyder <msnyder@specifix.com>
1574 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1576 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1578 * win32-nat.c (win32_create_inferior): Restore code calling
1579 CloseHandle on ProcessInformation structure.
1581 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1583 * configure.ac: Check for void * as 3 argument of ptrace.
1584 * configure: regenerate.
1586 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1588 * alpha-tdep.c (alpha_heuristic_proc_start)
1589 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1590 current_gdbarch by gdbarch.
1592 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1593 current architecture by frame_info. Update alpha_heuristic_proc_start
1596 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1597 get_frame_arch to get at the current architecture by frame_info. Update
1598 alpha_sigtramp_register_address call.
1600 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1601 current_gdbarch by gdbarch. Update caller.
1602 (convert_to_extended, convert_from_extended): Add endianess parameter
1603 for comparison. Update caller.
1604 (arm_extract_return_value, arm_store_return_value): Use
1605 get_regcache_arch to get at the current architecture.
1607 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1608 current_gdbarch by gdbarch. Update caller.
1609 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1610 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1612 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1613 gdbarch as parameter. Update caller.
1614 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1615 current_gdbarch by gdbarch. Update caller.
1617 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1618 update caller. Replace current_gdbarch by gdbarch.
1620 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1621 the current architecture. Replace current_gdbarch by gdbarch.
1622 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1623 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1624 expression. Add gdbarch as parameter and replace current_gdbarch with
1626 (M6811_TDEP): Remove.
1627 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1629 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1630 current_gdbarch by gdbarch. Update caller.
1632 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1634 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1637 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1638 caller. Relace current_gdbarch by gdbarch.
1639 (altivec_register_p, spe_register_p): Likewise.
1640 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1642 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1643 altivec_register_p and spe_register_p.
1645 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1646 caller. Replace current_gdbarch by gdbarch.
1647 (score_analyze_prologue): use get_frame_arch to get at the current
1650 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1651 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1652 current_gdbarch by gdbarch. Update caller.
1653 (sparc_frame_cache): Use get_frame_arch to get at the current
1655 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1656 sparc_analyze_prologue.
1658 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1661 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1663 * exec.c: #include "arch-utils.h"
1664 (print_section_info): Use gdbarch_from_bfd to get at the
1665 current architecture. Replace current_gdbarch. Fix indention. Replace
1666 deprecated_print_address_numeric by paddress.
1667 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1669 * valprint.c (val_print_string): Replace
1670 deprecated_print_address_numeric.
1671 * tracepoint.c (trace_mention, scope_info): Likewise.
1672 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1673 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1674 (maintenance_check_symtabs): Likewise.
1675 * symfile.c (list_overlays_command): Likewise.
1676 * stack.c (frame_info, print_block_frame_labels): Likewise.
1677 * printcmd.c (print_address, print_address_demangle)
1678 (address_info): Likewise.
1679 * corefile.c (memory_error): Likewise.
1680 * infcmd.c (jump_command): Likewise.
1681 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1682 (mention, delete_breakpoint): Likewise.
1683 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1684 * dwarf2read.c (dump_die): Likewise.
1685 * ada-valprint.c (ada_val_print_1): Likewise.
1686 * f-valprint.c (f_val_print): Likewise.
1687 * linux-fork.c (info_forks_command): Likewise.
1688 * m32r-com.c (m32r_load_section, m32r_load)
1689 (m32r_upload_command): Likewise.
1691 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1693 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1695 * gdbarch.sh (skip_prologue): Add gdbarch
1697 * gdbarch.{c,h}: Regenerate.
1699 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1700 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1701 * avr-tdep.c (avr_skip_prologue): Likewise.
1702 * cris-tdep.c (cris_skip_prologue): Likewise.
1703 * frv-tdep.c (frv_skip_prologue): Likewise.
1704 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1705 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1706 * i386-tdep.c (i386_skip_prologue): Likewise.
1707 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1708 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1709 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1710 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1711 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1712 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1713 * mep-tdep.c (mep_skip_prologue): Likewise.
1714 * mips-tdep.c (mips_skip_prologue): Likewise.
1715 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1716 * mt-tdep.c (mt_skip_prologue): Likewise.
1717 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1718 * score-tdep.c (score_skip_prologue): Likewise.
1719 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1720 * sh-tdep.c (sh_skip_prologue): Likewise.
1721 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1722 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1723 * spu-tdep.c (spu_skip_prologue): Likewise.
1724 * v850-tdep.c (v850_skip_prologue): Likewise.
1725 * vax-tdep.c (vax_skip_prologue): Likewise.
1726 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1727 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1729 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1730 current_gdbarch by gdbarch.
1731 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1732 * s390-tdep.c (s390_skip_prologue): Likewise.
1734 2008-01-10 Doug Evans <dje@google.com>
1736 * defs.h (struct continuation_arg): Fix typo in comment.
1737 * target.c (target_translate_tls_address): Fix comment spelling error.
1739 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1741 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1742 (DOUBLEST_SCAN_FORMAT): Likewise.
1743 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1744 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1745 * c-exp.y (parse_number): Likewise.
1746 * jv-exp.y (parse_number): Likewise.
1747 * objc-exp.y (parse_number): Likewise.
1748 * p-exp.y (parse_number): Likewise.
1750 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1752 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1753 (check_typedef): Likewise.
1755 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1757 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1758 seen_double_big_d, treat the new H, D, and DD modifiers as length
1761 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1763 * dwarf2read.c (read_enumeration_type): Add comment.
1765 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1767 * config.in: Regenerate.
1769 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1771 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1773 (ada_convert_actuals): Delete.
1774 * ada-lang.h (ada_convert_actual): Add declaration.
1775 (ada_convert_actuals): Remove declaration.
1776 * infcall.c: #include "ada-lang.h".
1777 (value_arg_coerce): Add new parameter sp. Update function
1778 documetnation. Add handling of Ada function call parameters.
1779 * Makefile.in (infcall.o): Update dependencies.
1781 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1783 * ada-lang.c (ensure_lval): Fix value lval kind.
1784 (convert_actual): Add handling for arguments passed by reference.
1786 2008-01-08 Doug Evans <dje@google.com>
1788 * dbxread.c (read_dbx_symtab): Fix indentation.
1790 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1792 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1793 (valarith.o): Depend on dfp.h.
1794 (valops.o): Likewise.
1795 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1796 (set_decnumber_context): New function.
1797 (decimal_check_errors): Likewise.
1798 (decimal_from_number): Likewise.
1799 (decimal_to_number): Likewise.
1800 (decimal_from_string): Use set_decnumber_context and
1801 decimal_check_errors.
1802 (decimal_from_integral): New function.
1803 (decimal_from_floating): Likewise.
1804 (decimal_to_double): Likewise.
1805 (promote_decimal): Likewise.
1806 (decimal_binop): Likewise.
1807 (decimal_is_zero): Likewise.
1808 (decimal_compare): Likewise.
1809 (decimal_convert): Likewise.
1810 * dfp.h (decimal_from_integral): New prototype.
1811 (decimal_from_floating): Likewise.
1812 (decimal_to_double): Likewise.
1813 (decimal_binop): Likewise.
1814 (decimal_is_zero): Likewise.
1815 (decimal_compare): Likewise.
1816 (decimal_convert): Likewise.
1817 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1818 call to value_from_decfloat.
1819 * valarith.c: Include dfp.h.
1820 (value_args_as_decimal): New function.
1821 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1822 (value_logical_not): Likewise.
1823 (value_equal): Likewise.
1824 (value_less): Likewise.
1825 (value_pos): Likewise.
1826 (value_neg): Formatting fix.
1827 * valops.c: Include dfp.h.
1828 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1829 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1830 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1831 (value_from_decfloat): Remove expect_type argument.
1832 * value.h (value_from_decfloat): Update prototype.
1834 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1836 Ignore change in name of dynamic linker during
1837 execution on Solaris. This also unbreaks pending breakpoints.
1839 * solist.h (struct target_so_ops): New field same.
1840 * solib-svr4.c (svr4_same): New.
1841 (_initialize_svr4_solib): Register svr4_same.
1842 * solib.c (update_solib_list): Use ops->same, if available.
1844 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1846 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1847 when using MS-DOS paths.
1849 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1851 * NEWS: Mention --pid and --core command line behaviour changes.
1853 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1855 * main.c (captured_main): Remove 'count' varible and the
1856 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1857 --pid options were issued simultaneously. If an explicit pid
1858 option was passed, don't fallback to core file. Detect extra
1859 arguments better in the presence of explicit pid or core
1862 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1864 * ada-lang.c (ada_which_variant_applies): Correctly compute
1865 the value of the discriminant when the variant record is packed.
1867 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1869 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1870 that are used to differentiate homonyms.
1872 2008-01-04 Jerome Guitton <guitton@adacore.com>
1874 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1875 when the type is an anonymous pointer type.
1876 (ada_check_typedef): Avoid a seg fault when the type is null.
1877 * ada-typeprint.c (print_array_type): Add support for pointer
1880 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1882 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1884 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1886 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1887 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1889 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1891 * ada-exp.y (chop_separator): New function.
1892 (write_selectors): Rewrite to re-use chop_separator.
1893 (ada_nget_field_index, get_symbol_field_type): New functions.
1894 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1897 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1899 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1900 of SYMBOL_VALUE when working with function symbols.
1902 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1904 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1905 expressions. These expressions do not need to be rewriten.
1907 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1909 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1910 the given die is a declaration.
1912 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1914 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1915 Handle properly the case when the index type is an enumerated type.
1916 Do not return the subtype of the bounds type, just return the
1917 bounds type directly - this is not needed and is more consistent
1918 with what we do for arrays when no XA parallel type exists.
1920 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1922 * ada-lang.c (static_unwrap_type): Add forward declaration.
1923 (template_to_static_fixed_type): Fields of dynamic types sometimes
1924 also need to be unwrapped. Take this into account.
1925 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1926 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1927 * ada-typeprint.c (ada_print_type): Get the typename from
1928 the original type, not the base type.
1930 2008-01-03 Jerome Guitton <guitton@adacore.com>
1932 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1933 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1934 Update calls to ada_to_fixed_type.
1935 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1937 (ada_to_fixed_type): Add check_tag parameter; do not look for
1938 tag if null. When looking for a tag, use a fixed record type.
1939 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1940 * ada-valprint.c (printable_val_type, ada_value_print): Update
1941 calls to ada_to_fixed_type.
1943 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1945 * doublest.c (convert_floatformat_to_doublest): Call
1946 floatformat_to_doublest instead of floatformat_to_double and use
1948 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1949 instead of floatformat_from_double and use DOUBLEST variables.
1951 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1953 * MAINTAINERS (Write After Approval): Add self.
1955 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1957 * symfile.c (set_initial_language): Make non-static.
1958 * symfile.h (set_initial_language): Add declaration.
1959 * language.c: #include "symfile.h".
1960 (set_language): Call set_initial_language if the frame language
1961 could not be determined.
1963 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1965 * eval.c (evaluate_subexp_for_address): Provide frame address to
1966 locate_var_value only if it will be needed.
1968 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1972 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1974 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1975 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1976 This is needed to make sure that any other treatment applied
1977 to the resulting value does not fail for spurious reason,
1978 such as trying to take the address of this value.
1980 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1982 * ada-lang.c (ada_value_equal): Dereference reference types when
1985 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1987 Updated copyright notices for most files.
1989 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1991 * win32-nat.c (psapi_module_handle): Remove static.
1992 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1993 return first module found if base_address is zero. Don't initialize
1994 psapi function pointers here. Convert to cygwin paths when
1996 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1997 executable name. Use get_module_name when that fails or when
1999 (_initialize_psapi): New function. Initialize psapi stuff before it is
2000 needed or issue a warning if it is not found. Move psapi_module_handle
2003 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2005 * ada-lang.c (ada_remove_trailing_digits): New function.
2006 (ada_remove_po_subprogram_suffix): New function.
2007 (ada_decode): Improve. Move the description of the algorithm
2008 directly inside the code, instead of in the function global
2011 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2013 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2014 and always print the dereferenced value.
2016 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2018 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2019 of the case where the first argument is a reference.
2020 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2022 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2024 Implement support for Ada interface types.
2026 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2027 (ada_is_ignored_field): Ignore fields that are a dispatch table
2030 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2032 * top.c (print_gdb_version): Update copyright year.
2034 2008-01-01 Joel Brobecker <brobecker@adacore.com>
2036 * ChangeLog-2007: New ChangeLog rotation.
2037 * ChangeLog: Reset for 2008.
2038 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2041 For older changes see ChangeLog-2007.
2047 version-control: never