1 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3 Remove ignoring leading exec events code.
4 * fork-child.c (startup_inferior): Do not set
5 inferior_ignoring_leading_exec_events.
6 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
7 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
8 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9 (handle_inferior_event): Remove code for ignoring leading exec
11 * target.c (update_current_target): Do not inherit, or default,
12 to_reported_exec_events_per_exec_call.
13 (debug_to_reported_exec_events_per_exec_call): Remove.
14 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
15 * target.h (target_reported_exec_events_per_exec_call): Remove.
16 (struct target): Remove the to_reported_exec_events_per_exec_call
19 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
21 Implement -thread-info.
22 * gdbthread.h (print_thread_info): Declare.
24 * thread.c (print_thread_info): New, extracted
25 from info_threads_command and adjusted to
27 (info_threads_command): Use print_thread_info.
28 * Makefile.in: Update dependencies.
30 * mi/mi-cmds.c (mi_cmds): Specify a handler
32 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
33 * mi/mi-main.c (mi_cmd_thread_info): New.
34 (mi_cmd_list_features): Include 'thread-info'.
36 2008-03-14 Kevin Buettner <kevinb@redhat.com>
38 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
39 to decide whether to match instruction patterns using "sw" and "sd".
41 2008-03-14 Pedro Alves <pedro@codesourcery.com>
43 * infcmd.c (jump_command): Postpone disabling stdin until after
46 2008-03-14 Pedro Alves <pedro@codesourcery.com>
48 * inflow.c (gdb_getpgrp): New.
49 (gdb_has_a_terminal): Use get_getpgrp.
50 (terminal_ours_1): If attach_flag is set, don't refetch
51 inferior_process_group.
53 2008-03-14 Pedro Alves <pedro@codesourcery.com>
55 * features/library-list.dtd: Allow "section" elements as children
56 of "library". Add "section" element and describe its attributes.
58 * solib-target.c (struct lm_info): Add section_bases member.
59 (library_list_start_segment): Error out if seen a section element.
60 (library_list_start_section): New.
61 (library_list_end_library): New.
62 (solib_target_free_library_list): Free section_bases.
63 (section_attributes): New.
64 (library_children): Make "segment" optional. Add "section" child.
65 (library_list_children): Register library_list_end_library.
66 (solib_target_relocate_section_addresses): Handle section bases.
68 * NEWS: Mention new qXfer:libraries:read section offsets support.
70 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
72 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
73 (make_exec_error_cleanup): Remove declarations.
74 * utils.c (exec_error_cleanup_chain): Remove.
75 (do_exec_error_cleanups, discard_exec_error_cleanups)
76 (make_exec_error_cleanup): Remove.
77 * event-loop.c (start_event_loop): Adjust call to
79 * event-top.c (async_enable_stdin): Remove the paramater dummy.
80 (async_disable_stdin): Don't register async_enable_stdin via
82 * inf-loop.c (inferior_event_handler): Don't
83 call do_exec_error_cleanups. Call async_enable_stdin instead.
84 * event-loop.c (start_event_loop): Adjust call to
86 * tui/tui-interp.c (tui_command_loop): Adjust call to
89 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
92 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
93 * breakpoint.c (bpstat_do_actions): In async mode,
94 don't jump to top expecting stop_bpstat to be already
96 * event-loop.c (start_event_loop): Call async_enable_stdin
98 * event-top.c (async_enable_stdin): Do nothing if sync_execution
100 (command_handler): Do not setup continuation here.
101 (command_line_handler_continuation): Move to...
102 * top.c (command_line_handler_continuation): ... here.
103 (execute_command): In async mode, register continuation.
104 Don't check frame's language in running in async mode.
105 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
106 * inf-loop.c (complete_execution): Inline into...
107 (inferior_event_handler): ... here. Clear target_executing before
108 doing any cleanups. Don't try to show prompt if the target was
110 * infcmd.c (signal_command): Add support for async mode.
111 (finish_command): Only add continuation if the target was
112 successfully resumed.
113 * remote.c (init_async_opts): Register to_get_thread_local_address
115 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
117 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
120 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
122 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
123 * exec.c (exec_bfd_mtime): Define.
124 (exec_close): Clear it.
125 (exec_file_attach): Set it.
126 * gdbcore.h (exec_bfd_mtime): Declare.
127 * source.c (find_source_lines): Do not use bfd_get_mtime.
129 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
131 * top.c (simplified_command_loop): Remove.
133 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
135 Remove unused remote.c hooks.
136 * remote.c (deprecated_target_resume_hook)
137 (deprecated_target_wait_loop_hook): Remove.
138 (remote_resume): Do not call deprecated_target_resume_hook.
139 (remote_wait): Do not call deprecated_target_wait_loop_hook.
140 (remote_async_wait): Likewise.
142 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
144 Implement MI notification for new threads.
145 * doc/observer.texi (new_thread): Document.
146 * observer.sh: Forward declare struct thread_info.
147 * thread.c (add_thread): Notify observer.
149 * interps.h (interp_init_ftype): New parameter
151 (interp_set): Likewise.
152 (top_level_interpreter_data): Declare.
153 * interps.c (interp_set): New parameter top_level.
154 Pass it to interpreter's init function. Remember
155 top level interpreter.
156 (interpreter_exec_cmd): Adjust.
157 (top_level_interpreter_data): New.
158 * main.c (captured_main): Pass 1 for top_level
159 parameter of interp_set.
160 * cli/cli-interp.c (cli_interpreter_init): New
162 * tui/tui-interp.c (tui_init): New parameter top_level.
164 * mi/mi-interp.c (mi_new_thread): New.
165 (mi_interpreter_init): If top level, register
166 observer for new threads.
168 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
170 2008-03-14 Pedro Alves <pedro@codesourcery.com>
172 * top.c (execute_command): Disable break and stop
173 commands in async mode.
175 2008-03-14 Pedro Alves <pedro@codesourcery.com>
178 2008-03-14 Pedro Alves <pedro@codesourcery.com>
179 * inf-loop.c (inferior_event_handler): Don't include remote.h.
180 Call target_stop in the INF_QUIT_REQ case.
181 * Makefile.in (inf-loop.o): Update.
183 2008-03-14 Pedro Alves <pedro@codesourcery.com>
185 * inf-loop.c (inferior_event_handler): Don't include remote.h.
186 Call target_stop in the INF_QUIT_REQ case.
187 * Makefile.in (inf-loop.o): Update.
189 2008-03-14 Pedro Alves <pedro@codesourcery.com>
191 * top.c (execute_command): Enable break, info and interrupt
192 commands in async mode.
194 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
195 Daniel Jacobowitz <dan@codesourcery.com>
197 * breakpoint.h (breakpoint_restore_shadows): New
199 * breakpoint.c (breakpoint_restore_shadows): New.
200 (read_memory_nobpt): Delete.
201 * gdbcore.h (read_memory_nobpt): Delete declaration.
202 * target.c (memory_xfer_partial): Call
203 breakpoint_restore_shadows.
204 (restore_show_memory_breakpoints)
205 (make_show_memory_beakpoints_cleanup): New.
206 (show_memory_breakpoints): New.
207 * target.h (make_show_memory_beakpoints_cleanup): Declare.
208 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
209 Make sure we see memory breakpoints when checking if
210 breakpoint is still there.
211 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
212 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
213 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
214 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
216 2008-03-12 Pedro Alves <pedro@codesourcery.com>
218 * thread.c (add_thread): Use printf_unfiltered to print.
220 2008-03-12 Joel Brobecker <brobecker@gnat.com>
222 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
223 that is true only on x86-solaris and x86_64-solaris.
224 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
225 with proc_get_LDT_entry.
227 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
229 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
230 * config.in, configure: Regenerate.
231 * fork-child.c (fork_inferior): Call create_tty_session.
232 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
233 (create_tty_session): New function.
234 * terminal.h: Declare create_tty_session.
236 2008-03-12 Alan Modra <amodra@bigpond.net.au>
239 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
240 * mipsread.c: Include elf/internal.h.
241 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
244 2008-03-11 Markus Deuling <deuling@de.ibm.com>
246 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
247 to get at the current architecture and at the target specific vector.
248 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
249 remove define of I387_ST0_REGNUM.
251 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
253 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
254 get at the current architecture
255 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
258 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
259 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
261 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
262 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
263 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
265 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
266 at the target specific vector.
268 (i386_get_longjmp_target): Use get_frame_arch to get at the current
269 architecture. Use gdbarch_tdep to get at the target specific vector.
271 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
272 update caller. Use gdbarch_tdep to get at the target specific vector.
274 (i386_register_to_value: Use get_frame_arch to get at the current
277 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
280 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
281 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
282 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
283 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
285 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
288 (i387_convert_register_p, i387_register_to_value,
289 i387_value_to_register): Update call for i386_fp_regnum_p.
291 * i387-tdep.h: Remove comment.
292 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
293 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
294 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
295 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
296 I387_MXCSR_REGNUM): Add target specific vector as parameter.
298 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
300 * Makefile.in (fork-child.o): Update.
301 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
302 argument. Gather all gdbserver features together.
303 * fork-child.c (exec_wrapper): New variable.
304 (fork_inferior): Use it.
305 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
306 (unset_exec_wrapper_command, _initialize_fork_child): New.
308 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
310 * source.c (directory_command): Modify the determination of
311 condition of terminal "from_tty".
313 2008-03-10 Matt Rice <ratmice@gmail.com>
315 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
317 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
319 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
320 of the data passing to strtoulst function.
321 (info_spu_signal_command): Likewise.
323 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
325 * mi/mi-interp.c (mi_command_loop): Remove
328 2008-03-07 Joel Brobecker <brobecker@adacore.com>
330 * remote.c (extended_remote_attach_1): Make local variable pid an int
333 2008-03-07 Joel Brobecker <brobecker@adacore.com>
335 * solib-svr4.c (svr4_same_1): New function, originally extracted
336 from svr4_same and expanded to handle the sparc64 case.
337 (svr4_same): Move up and reimplement using svr4_same_1.
338 (enable_break): Use svr4_same_1 to do shared library name comparisons.
340 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
342 * MAINTAINERS: Move self to Paper trail.
344 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
346 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
347 * event-loop.c (call_async_signal_handler): New.
348 * event-loop.h (call_async_signal_handler)
349 (gdb_call_async_signal_handler): Declare.
350 (mark_async_signal_handler): Add comments.
351 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
352 * mingw-hdep.c (sigint_event, sigint_handler): New.
353 (gdb_select): Use them. Wait for the readline signal handler
355 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
356 * posix-hdep.c (gdb_call_async_signal_handler): New function.
357 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
359 (remote_fileio_ctrl_c_signal_handler): Use
360 gdb_call_async_signal_handler.
361 (initialize_remote_fileio): Initialize sigint_fileio_token.
362 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
363 not initialize tokens here.
364 (handle_remote_sigint_twice): Likewise. Reinstall
365 handle_remote_sigint.
366 (async_remote_interrupt_twice): Just call interrupt_query.
367 (cleanup_sigint_signal_handler): Do not delete tokens.
368 (remote_interrupt, remote_interrupt_twice): Use
369 gdb_call_async_signal_handler.
370 (interrupt_query): Reinstall the default signal handler.
371 (_initialize_remote): Initialize tokens here.
373 2008-03-04 Joel Brobecker <brobecker@adacore.com>
375 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
376 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
377 Change the type of the lr register to code_ptr.
378 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
379 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
380 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
381 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
382 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
383 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
384 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
386 2008-03-03 James E. Wilson <wilson@tuliptree.org>
388 * MAINTAINERS: Update my email address.
390 2008-03-03 Keith Seitz <keiths@redhat.com>
392 From Dave Murphy <davem@devkitpro.org>:
393 * configure.ac: Set tcl configdir to win under mingw.
394 * configure: Regenerate.
396 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
398 * breakpoint.c (fetch_watchpoint_value): New function.
399 (update_watchpoint): Set and clear val_valid. Use
400 fetch_watchpoint_value. Handle unreadable values on the
401 value chain. Correct check for user-requested array watchpoints.
402 (breakpoint_init_inferior): Clear val_valid.
403 (watchpoint_value_print): New function.
404 (print_it_typical): Use it. Do not free or clear old_val. Print
405 watchpoints even if old_val == NULL.
406 (watchpoint_check): Use fetch_watchpoint_value. Check for values
407 becoming readable or unreadable.
408 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
409 (do_enable_watchpoint): Likewise.
410 * breakpoint.h (struct breakpoint): Update comment for val. Add
412 * NEWS: Mention watchpoints on inaccessible memory.
414 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
416 * Makefile.in (i386-nat.o): Update.
417 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
418 i386_use_watchpoints.
419 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
420 i386_use_watchpoints.
421 * i386-nat.c (i386_stopped_data_address): Take two arguments.
422 (i386_stopped_by_watchpoint): Update call.
423 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
424 * config/i386/nm-i386.h: Conditionalize definitions on
425 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
426 (i386_use_watchpoints): Declare.
427 (i386_stopped_data_address): Update.
428 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
429 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
431 2008-02-29 Joel Brobecker <brobecker@adacore.com>
433 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
434 * version.in: Bump version to 6.8.50.20080229-cvs.
436 2008-02-28 Markus Deuling <deuling@de.ibm.com>
438 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
441 2008-02-28 Tom Tromey <tromey@redhat.com>
443 * infcmd.c (notice_args_read): Print result of get_inferior_args.
445 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
447 * infcmd.c (kill_if_already_running): Make static. Use
448 target_require_runnable.
449 * target.c (target_require_runnable): New.
450 * target.h (target_require_runnable): Declare.
452 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
454 * frame.c (reinit_frame_cache): Only annotate if frames were
457 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
459 * regformats/reg-ppc.dat: Rename "ps" to "msr".
460 * regformats/reg-ppc64.dat: Likewise.
462 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
464 * features/Makefile (%.dat): Emit xmltarget statement.
466 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
467 Generate code to set gdbserver_xmltarget in init_registers_${name}.
469 * regformats/arm-with-iwmmxt.dat: Regenerate.
470 * regformats/mips64-linux.dat: Regenerate.
471 * regformats/mips-linux.dat: Regenerate.
472 * regformats/rs6000/powerpc-32.dat: Regenerate.
473 * regformats/rs6000/powerpc-64.dat: Regenerate.
474 * regformats/rs6000/powerpc-e500.dat: Regenerate.
476 * regformats/reg-arm.dat: Add xmlarch statement.
477 * regformats/reg-i386.dat: Likewise.
478 * regformats/reg-i386-linux.dat: Likewise.
479 * regformats/reg-x86-64-linux.dat: Likewise.
480 * regformats/reg-spu.dat: Likewise.
482 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
484 * remote.c (remote_wait, remote_async_wait): Stop if we receive
487 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
489 * utils.c (debug_timestamp): New.
490 (vfprintf_unfiltered): Print timestamps if requested.
491 (show_debug_timestamp): New.
492 (initialize_utils): Register "set debug timestamp".
493 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
495 2008-02-27 Joel Brobecker <brobecker@adacore.com>
497 * breakpoint.c (skip_prologue_sal): New function.
498 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
499 computed from a line number.
501 2008-02-27 Joel Brobecker <brobecker@adacore.com>
503 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
504 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
505 Set PC register type to "code_ptr".
506 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
507 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
508 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
509 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
510 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
511 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
512 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
515 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
517 * regformats/regdat.sh: Rename init_registers function in
518 generated file to init_registers_${name}.
520 * regformats/reg-crisv32.dat: Set "name" to crisv32.
521 * regformats/reg-ppc64.dat: Set "name" to ppc64.
522 * regformats/reg-s390x.dat: Set "name" to s390x.
524 2008-02-26 Greg Law <glaw@undo-software.com>
526 * regcache.c (registers_changed): Call reinit_frame_cache.
528 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
530 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
531 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
532 and svr4_fetch_objfile_link_map.
533 * Makefile.in (sh-linux-tdep.o): Update.
535 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
537 * amd64-tdep.c (amd64_classify): Add support for decimal float
539 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
540 use the struct return convention.
542 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
544 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
545 to old format. Discard breakpoint address if shared library is
547 (breakpoint_1): Adjust formatting of table header accordingly.
549 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
551 * remote.c (remote_get_threadlist): If the response
552 is empty, don't try to parse it.
554 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
556 Unbreak 'target async'.
557 * serial.c (serial_async): Set the
558 handler function before enabling async
561 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
563 * solib-svr4.c (enable_break): Convert r_brk to a code address.
565 2008-02-21 Pedro Alves <pedro@codesourcery.com>
567 * remote.c (extended_remote_attach_1): Set attach_flag.
568 (extended_remote_create_inferior_1): Clear attach_flag.
570 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
572 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
574 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
575 * solib-svr4.c (solib_svr4_r_brk): New.
576 (open_symbol_file_object, svr4_current_sos): Always check the
578 (svr4_fetch_objfile_link_map): Do not set debug_base.
579 (enable_break): Use r_brk if it is set.
580 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
581 (svr4_lp64_fetch_link_map_offsets): Likewise.
582 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
584 2008-02-20 Markus Deuling <deuling@de.ibm.com>
585 Mark Kettenis <kettenis@gnu.org>
587 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
588 trad_frame_saved_reg.
589 (trad-frame.h): New include.
591 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
592 instead of frame_obstack_zalloc.
593 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
595 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
597 2008-02-20 Markus Deuling <deuling@de.ibm.com>
599 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
600 from disassemble_info instead of gdbarch_byte_order.
602 * mips-tdep.c (gdb_print_insn_mips): Likewise.
603 * arm-tdep.c (gdb_print_insn_arm): Likewise.
605 2008-02-20 Markus Deuling <deuling@de.ibm.com>
607 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
608 gdbarch as parameter.
610 * gdbarch.{c,h}: Regenerate.
612 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
614 * mem-break.c (default_memory_insert_breakpoint)
615 (default_memory_remove_breakpoint): Likewise.
616 * target.h (default_memory_remove_breakpoint)
617 (default_memory_insert_breakpoint): Likewise.
619 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
620 parameter. Replace current_gdbarch by gdbarch.
621 * m32r-tdep.c (m32r_memory_insert_breakpoint)
622 (m32r_memory_remove_breakpoint): Likewise.
624 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
626 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
628 2008-02-19 Joel Brobecker <brobecker@adacore.com>
630 * NEWS: Add entry describing Add support improvements.
632 2008-02-18 Markus Deuling <deuling@de.ibm.com>
634 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
637 2008-02-18 Markus Deuling <deuling@de.ibm.com>
639 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
640 register_offset_hack anymore.
642 * regcache.{c,h} (register_offset_hack): Remove.
644 2008-02-18 Markus Deuling <deuling@de.ibm.com>
646 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
648 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
649 current_gdbarch by gdbarch.
650 (hppa64_hpux_find_global_pointer): Likewise.
651 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
652 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
655 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
657 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
659 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
662 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
663 replace current_gdbarch by gdbarch.
664 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
666 2008-02-18 Markus Deuling <deuling@de.ibm.com>
668 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
669 and replace current_gdbarch by gdbarch.
671 (store_register): Update call for exec_one_dummy_insn.
672 (fetch_register, store_register): Update call of regmap.
674 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
675 parameter and replace current_gdbarch by gdbarch.
677 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
678 the current architecture. Update call for getregs_supplies and
680 (ppcnbsd_fetch_inferior_registers): Likewise.
682 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
683 replace current_gdbarch by gdbarch.
684 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
685 get_regcache_arch to get at the current architecture. Update call for
688 2008-02-18 Markus Deuling <deuling@de.ibm.com>
690 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
693 2008-02-15 Markus Deuling <deuling@de.ibm.com>
695 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
697 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
699 * NEWS: Mention pending breakpints in MI.
701 2008-02-14 Markus Deuling <deuling@de.ibm.com>
703 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
705 2008-02-13 Markus Deuling <deuling@de.ibm.com>
707 Add script to build and test GDB using enable-targets=all.
709 * gdb_buildall.sh: New file.
711 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
713 * NEWS (New native configurations): Xtensa GNU/Linux.
714 (New targets): Xtensa GNU/Linux.
715 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
717 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
718 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
719 * configure.tgt (xtensa*-*-linux*): New entry.
720 * xtensa-config.c (xtensa_tdep): New variable.
721 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
722 (rmap): Change format based on new macro XTREG.
723 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
724 * xtensa-linux-nat.c: New.
725 * xtensa-linux-tdep.c: New.
726 * xtensa-xtregs.c: New.
727 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
728 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
729 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
730 (xtensa_register_t): New field coprocessor.
731 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
732 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
733 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
734 Update to handle privileged registers.
735 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
736 (xtensa_push_dummy_call): Set windowstart register correctly.
737 (call0_analyze_prologue): Initialize xtensa_default_isa.
738 (xtensa_derive_tdep): New.
739 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
740 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
741 Call xtensa_derive_tdep().
742 * config/xtensa/linux.mh: New.
743 * regformats/reg-xtensa.dat: New.
745 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
747 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
748 (filenames.h): New include.
749 * Makefile.in (corelow.o): Add dependency for filenames.h.
751 2008-02-08 Doug Evans <dje@google.com>
753 * source.c (find_and_open_source): Always rewrite absolute filenames.
755 2008-02-07 Doug Evans <dje@google.com>
757 * breakpoint.c: #include "hashtab.h".
758 (ambiguous_names_p): New fn.
759 (update_breakpoint_locations): When restoring bp enable status, don't
760 compare function names if any functions have same name.
761 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
763 2008-02-07 Joel Brobecker <brobecker@adacore.com>
765 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
766 instead of just a VEC*. Update use of SV.
767 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
769 2007-02-07 Joel Brobecker <brobecker@adacore.com>
771 * NEWS: Put all new commands since gdb-6.7 together.
773 2007-02-07 Joel Brobecker <brobecker@adacore.com>
775 * ada-lang.c: #include "vec.h".
776 (struct string_vector, new_string_vector, string_vector_append):
778 (char_ptr): New typedef.
779 (DEF_VEC_P (char_ptr)): New VEC type.
780 (symbol_completion_add): Update profile to take the new VEC type
781 instead of the old string_vector structure. Update code accordingly.
782 (ada_make_symbol_completion_list): Use the new VEC type instead of
783 the old string_vector structure, and update the code accordingly.
784 * Makefile.in (ada-lang.o): Add dependency on vec.h.
786 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
788 * p-exp.y: Set current_type in missing places.
789 (leftdiv_is_integer): New static variable.
790 Typecast right operand of BINOP_DIV to long_double if both operands
793 2008-02-06 Maciej W. Rozycki <macro@mips.com>
795 * remote-mips.c (set_breakpoint): Rename to...
796 (mips_set_breakpoint): ... this.
797 (clear_breakpoint): Rename to...
798 (mips_clear_breakpoint): ... this.
799 (common_breakpoint): Rename to...
800 (mips_common_breakpoint): ... this.
801 (check_lsi_error): Rename to...
802 (mips_check_lsi_error): ... this.
804 2007-02-05 Joel Brobecker <brobecker@adacore.com>
806 * language.h (struct language_defn): Add new field
807 la_make_symbol_completion_list.
808 * symtab.c (default_make_symbol_completion_list): Renames
809 make_symbol_completion_list.
810 (make_symbol_completion_list): New function.
811 * symtab.h (default_make_symbol_completion_list): Add declaration.
812 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
813 (auto_language, local_language): Likewise.
814 * objc-lang.c (objc_language_defn): Likewise.
815 * scm-lang.c (scm_language_defn): Likewise.
816 * m2-lang.c (m2_language_defn): Likewise.
817 * f-lang.c (f_language_defn): Likewise.
818 * jv-lang.c (java_language_defn): Likewise.
819 * p-lang.c (pascal_language_defn): Likewise.
820 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
821 (minimal_language_defn): Likewise.
822 * ada-lang.c (struct string_vector): New structure.
823 (new_string_vector, string_vector_append, ada_unqualified_name)
824 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
825 (ada_make_symbol_completion_list): New functions.
826 (ada_language_defn): Set la_make_symbol_completion_list.
827 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
828 this function is static.
830 2008-02-05 Kevin Buettner <kevinb@redhat.com>
832 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
833 to account for call site optimizations.
835 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
837 * tracepoint.c (read_actions): Handle end-of-text indicator
838 in action list properly. (Committed by Jim Blandy)
840 2008-02-05 Jim Blandy <jimb@red-bean.com>
842 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
843 pseudoregister, not an internal error.
844 Reported by: Andrzej Zaborowski
846 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
848 * varobj.c (c_value_of_variable): Use xstrdup.
850 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
852 Update stored rendition of varobj value when format changes.
853 * varobj.c (varobj_set_display_format): Recomputed
855 (c_value_of_variable): Return print_value.
857 2008-02-03 Doug Evans <dje@google.com>
859 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
860 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
861 * valops.c (value_one): New function.
862 * value.h (value_one): Declare.
864 Fix argument promotion for binary arithmetic ops for C.
865 * valarith.c (unop_result_type): New fn.
866 (binop_result_type): New fn.
867 (value_binop): Move result type computation to binop_result_type.
868 (value_pos, value_neg, value_complement): Move result type
869 computation to unop_result_type.
872 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
873 Return basetype, fieldno if found. All callers updated.
874 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
876 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
877 * symfile.h (fill_in_vptr_fieldno): Delete.
879 2008-02-02 Doug Evans <dje@google.com>
881 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
883 * typeprint.c (*): Whitespace cleanup.
885 2008-02-02 Mark Kettenis <kettenis@gnu.org>
886 Luis Machado <luisgpm@br.ibm.com>
887 Thiago Jung Bauermann <bauerman@br.ibm.com>
889 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
890 don't fit into registerson the stack the way GCC does.
892 2008-02-01 Joel Brobecker <brobecker@adacore.com>
894 * symtab.c (symbol_set_names): Do not add an entry in the demangling
895 hash table for Ada symbols. Just store the linkage name as is,
896 and leave the demangled_name as NULL.
898 2007-02-01 Joel Brobecker <brobecker@adacore.com>
900 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
902 (new_symbol): Likewise.
904 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
906 * breakpoint.c (break_command_1): Return void.
907 (break_command_really): Return void. Rethrow
908 exceptions instead of returning.
909 (gdb_breakpoint): Remove the error_message parameter.
910 Return void. Rename to set_breakpoint.
911 * gdb.h (gdb_breakpoint): Rename and move to...
912 * breakpoint.h (set_breakpoint): ...here.
913 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
914 event hooks even if exception is thrown. Adjust to
915 gdb_breakpoint interface changes.
918 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
921 float in both first and second word in the doubleword, to support
924 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
926 Properly rethrow exception. This fixes errors
927 about non-existent functions for -break-insert.
928 * breakpoint.c (break_command_really): Use throw_exception
929 for rethrowing. If rethrowing, don't print the exception.
931 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
933 * NEWS: Mention Decimal Floating Point support.
935 2008-01-31 Joel Brobecker <brobecker@adacore.com>
937 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
938 value type to builtin_type_void_func_ptr.
940 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
942 * s390-tdep.c (is_float_singleton, is_float_like,
943 alignment_of, s390_return_value): Make checks for
944 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
946 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
947 Thiago Jung Bauermann <bauerman@br.ibm.com>
949 * infcmd.c (default_print_registers_info): Also print hex
950 raw contents for TYPE_CODE_DECFLOAT registers.
951 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
952 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
953 (rs6000_register_name): Add support for DFP pseudo-registers.
954 (rs6000_pseudo_register_type): Likewise.
955 rs6000_pseudo_register_reggroup_p): Likewise.
956 (ppc_pseudo_register_read): New function.
957 (ppc_pseudo_register_write): Likewise.
958 (rs6000_pseudo_register_read): Likewise.
959 (rs6000_pseudo_register_write): Likewise.
960 (e500_pseudo_register_read): Move checks to
961 rs6000_pseudo_register_read.
962 (e500_pseudo_register_write): Move checks to
963 rs6000_pseudo_register_write.
964 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
965 rs6000_pseudo_register_read and rs6000_pseudo_register_write
966 in gdbarch if SPE or DFP is available. Adjust gdbarch's
967 num_pseudo_regs to account for DFP pseudo regs.
969 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
971 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
972 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
973 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
974 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
975 e500_pseudo_register_read, e500_pseudo_register_write): Use
976 IS_SPE_PSEUDOREG macro.
977 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
978 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
979 Remove initialization of tdep->ppc_ev31_regnum.
981 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
983 * printcmd.c (print_formatted): Handle references as for unformatted
986 2008-01-30 Joel Brobecker <brobecker@adacore.com>
988 * eval.c (evaluate_subexp_standard): Add handling of user
989 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
991 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
993 * eval.c (evaluate_subexp_standard): Support
996 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
998 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1000 For BINOP_EXP, use length and signedness of left operand only for
1001 result, as for shifts.
1002 For integral operands to BINOP_EXP, use new integer_pow and
1003 uinteger_pow functions so as to get full range of results.
1004 (integer_pow): New function.
1005 (uinteger_pow): New function.
1007 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
1009 Use vector for varobj_list_children interface.
1010 * gdb/varobj.c (varobj_list_children): Return vector
1012 * gdb/varobj.h (varobj_list_children): Adjust
1014 (varobj_p): Declare. Declare vector thereof.
1015 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1016 for varobj_list_children change.
1017 * Makefile.in (varobj_h): Update dependencies.
1019 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1021 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1022 TYPE_CODE_DECFLOAT arguments.
1023 (ppc64_sysv_abi_push_dummy_call) Likewise.
1024 (get_decimal_float_return_value): New function.
1025 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1026 values by calling get_decimal_float_return_value.
1027 (ppc64_sysv_abi_return_value): Likewise.
1029 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
1031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1032 for preprocessor macro information. Formatting changes.
1034 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1036 * remote.c (struct remote_state): Add cached_wait_status.
1037 (remote_exec_file): New variable.
1038 (PACKET_vAttach, PACKET_vRun): New constants.
1039 (extended_remote_restart): Do not query for status.
1040 (struct start_remote_args): New.
1041 (remote_start_remote): Take it as a second argument. Check
1042 whether the target is running. Issue an error for non-running
1043 non-extended targets. Cache the wait status. Set inferior_ptid
1045 (remote_open_1): Prompt to disconnect non-running targets. Make
1046 sure the target is marked running. Do not set inferior_ptid here.
1047 Update call to remote_start_remote. Do not call remote_check_symbols
1048 if the target is not running.
1049 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1050 argument. Handle a non-running target.
1051 (remote_detach): Use it.
1052 (extended_remote_detach): New.
1053 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1054 (extended_remote_attach_1, extended_remote_attach)
1055 (extended_async_remote_attach): New.
1056 (remote_vcont_resume): Remove unused variable.
1057 (remote_wait, remote_async_wait): Use any cached wait status.
1058 (putpkt_binary, getpkt): Clear any cached wait status.
1059 (extended_remoute_mourn_1): New.
1060 (extended_remote_mourn): Use it.
1061 (extended_async_remote_mourn, extended_remote_run): New.
1062 (extended_remote_create_inferior_1): New.
1063 (extended_remote_create_inferior): Use it.
1064 (extended_remote_async_create_inferior): Likewise.
1065 (remote_xfer_partial): Skip for non-executing targets.
1066 (init_extended_remote_ops): Set to_detach and to_attach.
1067 (init_extended_async_remote_ops): Likewise. Use
1068 extended_async_remote_mourn.
1069 (_initialize_remote): Register vAttach, vRun, and
1070 set remote exec-file.
1071 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1073 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1075 * Makefile.in (symfile.o): Update.
1076 * NEWS: Mention exec tracing support.
1077 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1079 * infcmd.c (kill_if_already_running, detach_command)
1080 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1081 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1082 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1083 targets. Apply the sysroot path to the loaded executable. Use
1084 no_shared_libraries.
1085 * linux-nat.c (linux_child_follow_fork): Print fork following
1086 messages if verbose.
1087 (kill_wait_callback): Kill again before waiting a second time.
1088 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1089 no_shared_libraries.
1091 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1093 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1095 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1097 * nto-tdep.h: Remove #include "defs.h".
1098 * nto-tdep.c: Add #include "defs.h".
1099 * Makefile.in (nto_tdep_h): Update dependencies.
1100 (nto-tdep.o): Likewise.
1102 2008-01-29 Joel Brobecker <brobecker@adacore.com>
1104 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1106 (proceed, start_remote): Update call to wait_for_inferior.
1107 * inferior.h (wait_for_inferior): Update declaration.
1108 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1109 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1110 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1111 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1113 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
1115 * varobj (adjust_value_for_child_access): Added checking for
1116 returned value from gdb_value_ind.
1117 (c_describe_child): Likewise.
1118 (cplus_describe_child): Fixed a typo.
1120 2008-01-29 Jim Blandy <jimb@red-bean.com>
1122 * MAINTAINERS: Update my info.
1124 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1126 Use multiple locations for hardware watchpoints.
1127 This eliminates the need to traverse value chain, doing
1128 various checks, in three different places.
1130 * breakpoint.h (struct bp_location): New fields
1131 lengths and watchpoint_type.
1132 (struct breakpoint): Remove the val_chain field.
1133 * breakpoint.c (is_hardware_watchpoint): New.
1134 (free_valchain): Remove.
1135 (update_watchpoint): New.
1136 (insert_bp_location): For hardware watchpoint, just
1138 (insert_breakpoints): Call update_watchpoint_locations
1139 on all watchpoints. If we have failed to insert
1140 any location of a hardware watchpoint, remove all inserted
1142 (remove_breakpoint): For hardware watchpoints, directly
1144 (watchpoints_triggered): Iterate over locations.
1145 (bpstat_stop_status): Use only first location of
1146 a resource watchpoint.
1147 (delete_breakpoint): Don't call free_valchain.
1148 (print_one_breakpoint): Don't print all
1149 locations for watchpoints.
1150 (breakpoint_re_set_one): Use update_watchpoint for
1153 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
1155 Don't reset watchpoint block on solib load.
1157 * breakpoint.c (insert_bp_location): For watchpoints,
1158 recompute condition.
1159 (breakpoint_re_set_one): Instead of recomputing value
1160 and condition for watchpoints, just reset value and
1161 let insert_breakpoints/insert_bp_location recompute it.
1162 Don't do anything about disabled watchpoint.
1164 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
1166 * valarith.c (value_binop): Handle unsigned integer
1169 2008-01-28 Kevin Buettner <kevinb@redhat.com>
1171 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1172 instruction pattern that appears frequently in position
1173 independent code. Fix bug in code which looks for "fmov" and
1174 backtracks if no "fmov" is found.
1176 2008-01-28 Doug Evans <dje@google.com>
1178 * dbxread.c (read_dbx_symtab): Fix indentation.
1179 Reformat comments to 80 columns.
1180 Move local var def closer to only use.
1182 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1184 * fork-child.c (SHELL_FILE): Remove #ifndef.
1185 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1187 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
1189 * i386-tdep.c (i386_skip_noop): New function.
1190 (i386_analyze_prologue): Call i386_skip_noop function.
1192 2008-01-24 Michael Snyder <msnyder@specifix.com>
1194 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1195 * win32-nat.c (win32_xfer_partial): Ditto.
1196 * target.c (default_xfer_partial): Minor whitespace adjustment.
1198 2008-01-24 Pedro Alves <pedro@codesourcery.com>
1200 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1201 strip bit 1 even if pc doesn't point to thumb code.
1203 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
1205 * remote.c (remote_wait): Handle SIGINT between packets.
1206 (remote_async_wait): Likewise.
1208 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
1209 Chris Demetriou <cgd@google.com>
1211 * thread.c (add_thread_silent): Renamed
1213 (print_thread_events): New variable definition.
1214 (show_print_thread_events): New function.
1215 (_initialize_thread): Add "set print thread-events" and
1216 "show print thread-events" commands.
1217 (add_thread): Announce new thread.
1218 * gdbthread.h (add_thread_silent): Declare.
1219 (print_thread_events): New variable declaration.
1220 * inf-ttrace.c (inf_ttrace_wait): Don't
1221 inform about new thread, as add_thread is always
1222 called too, and will take care of that.
1223 * infrun.c (handle_inferior_event): Likewise.
1224 * procfs.c (procfs_wait): Likewise.
1225 * remote.c (remote_currthread): Likewise.
1226 * sol-thread.c (sol_thread_wait): Likewise.
1227 * win32-nat.c (get_win32_debug_event): Likewise.
1228 * linux-thread-db.c (attach_thread): Likewise.
1229 Remove the verbose parameter.
1230 (check_event): Make detach_thread be verbose
1231 only if print_thread_events is set.
1232 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1233 about new thread. This is called only from
1234 linux-thread-db.c:attach_thread, which will take care.
1235 Remove the verbose parameter.
1236 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1238 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
1240 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1242 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
1244 * breakpoint.c (break_command_really): New parameter
1246 (break_command_1): Pass 0 as
1247 ignore_count to break_command_really.
1248 (gdb_breakpoint): Pass ignore_count to
1249 break_command_really.
1251 2008-01-21 Kevin Buettner <kevinb@redhat.com>
1253 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1254 sigcontext struct via pointer.
1255 (struct sigframe comment): Update to show new field `psc'.
1257 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
1259 * infrun.c (handle_inferior_event): If
1260 we failed to remove breakpoints, error,
1261 don't try to increment PC by hand.
1263 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
1265 Add NetBSD/hppa target and host support.
1267 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1268 (hppabsd_gregset): Move to ...
1269 (hppabsd_regset_from_core_section): Rename
1270 hppaobsd_regset_from_core_section and move to ...
1271 (hppabsd_find_global_pointer): Update comment.
1272 (hppabsd_init_abi): Make global. Do not register
1273 hppabsd_regset_from_core_section.
1274 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1276 (_initialize_hppabsd_tdep): Move to ...
1277 * hppaobsd-tdep.c: ... here. New file.
1278 * hppnbsd-tdep.c: New file.
1279 * hppnbsd-nat.c: New file.
1280 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1281 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1282 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1283 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1284 * configure.host (hppa*-*-netbsd*): New entry.
1285 * configure.tgt (hppa*-*-netbsd*): New entry.
1286 (hppa*-*-openbsd*): Update.
1287 * NEWS (New native configuration): Mention NetBSD/hppa.
1288 (New targets): Mention NetBSD/hppa.
1290 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1292 * gdbarch.sh (function_list): Add new property bits_big_endian to
1294 * gdbarch.{c,h}: Regenerate.
1296 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1297 gdbarch_bits_big_endian (comment).
1298 (unpack_field_as_long, modify_field): Likewise.
1299 * value.h: Likewise (comment).
1300 * valops.c (value_slice): Likewise.
1301 * valarith.c (value_subscript, value_bit_index): Likewise.
1302 * gdbtypes.h (field): Likewise (comment).
1303 * eval.c (evaluate_subexp_standard): Likewise.
1304 * dwarf2read.c (dwarf2_add_field): Likewise.
1305 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1306 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1308 * defs.h (BITS_BIG_ENDIAN): Remove.
1310 2008-01-18 Markus Deuling <deuling@de.ibm.com>
1312 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1314 * m2-exp.y (yylex): Likewise.
1315 * objc-exp.y (yylex): Likewise.
1317 * defs.h (DEPRECATED_STREQN): Remove.
1319 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
1321 * MAINTAINERS: Update my email address.
1323 2008-01-17 Jim Blandy <jimb@codesourcery.com>
1325 * README: Mention gdbserver/README.
1327 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1329 * valarith.c (value_binop): Handle BINOP_INTDIV
1330 for unsigned and signed integers.
1332 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
1334 * s390-tdep.c (s390_gdbarch_init): Set default long double
1335 type to 128-bit IEEE quad.
1337 2008-01-17 Joel Brobecker <brobecker@adacore.com>
1339 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1341 2008-01-16 Mark Kettenis <kettenis@gnu.org>
1343 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1345 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1346 * value.c: All callers changed.
1348 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1350 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1351 DEPRECATED_STREQ by its expression.
1352 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1353 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1354 (scan_xcoff_symtab): Likewise.
1355 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1356 * f-lang.c (find_common_for_function): Likewise.
1357 * objc-exp.y (parse_number): Likewise.
1359 * defs.h (DEPRECATED_STREQ): Remove.
1361 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1363 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1364 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1365 get_frame_arch to get at the current_architecture. Update AM33_MODE
1367 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1368 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1370 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1372 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1374 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1376 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1378 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1379 current_gdbarch by gdbarch. Update caller.
1381 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1382 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1383 the current architecture. Update calls of
1384 amd64_native_gregset_supplies_p.
1385 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1386 (amd64bsd_store_inferior_registers): Likewise.
1388 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1390 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1391 Replace current_gdbarch by gdbarch. Update caller.
1393 2008-01-16 Markus Deuling <deuling@de.ibm.com>
1395 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1396 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1397 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1398 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1399 (stabsect_build_psymtabs): Fix indentation.
1401 2008-01-15 Michael Snyder <msnyder@specifix.com>
1403 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1405 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1407 * win32-nat.c (win32_create_inferior): Restore code calling
1408 CloseHandle on ProcessInformation structure.
1410 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
1412 * configure.ac: Check for void * as 3 argument of ptrace.
1413 * configure: regenerate.
1415 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1417 * alpha-tdep.c (alpha_heuristic_proc_start)
1418 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1419 current_gdbarch by gdbarch.
1421 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1422 current architecture by frame_info. Update alpha_heuristic_proc_start
1425 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1426 get_frame_arch to get at the current architecture by frame_info. Update
1427 alpha_sigtramp_register_address call.
1429 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1430 current_gdbarch by gdbarch. Update caller.
1431 (convert_to_extended, convert_from_extended): Add endianess parameter
1432 for comparison. Update caller.
1433 (arm_extract_return_value, arm_store_return_value): Use
1434 get_regcache_arch to get at the current architecture.
1436 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1437 current_gdbarch by gdbarch. Update caller.
1438 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1439 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1441 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1442 gdbarch as parameter. Update caller.
1443 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1444 current_gdbarch by gdbarch. Update caller.
1446 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1447 update caller. Replace current_gdbarch by gdbarch.
1449 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1450 the current architecture. Replace current_gdbarch by gdbarch.
1451 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1452 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1453 expression. Add gdbarch as parameter and replace current_gdbarch with
1455 (M6811_TDEP): Remove.
1456 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1458 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1459 current_gdbarch by gdbarch. Update caller.
1461 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1463 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1466 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1467 caller. Relace current_gdbarch by gdbarch.
1468 (altivec_register_p, spe_register_p): Likewise.
1469 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1471 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1472 altivec_register_p and spe_register_p.
1474 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1475 caller. Replace current_gdbarch by gdbarch.
1476 (score_analyze_prologue): use get_frame_arch to get at the current
1479 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1480 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1481 current_gdbarch by gdbarch. Update caller.
1482 (sparc_frame_cache): Use get_frame_arch to get at the current
1484 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1485 sparc_analyze_prologue.
1487 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1490 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1492 * exec.c: #include "arch-utils.h"
1493 (print_section_info): Use gdbarch_from_bfd to get at the
1494 current architecture. Replace current_gdbarch. Fix indention. Replace
1495 deprecated_print_address_numeric by paddress.
1496 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1498 * valprint.c (val_print_string): Replace
1499 deprecated_print_address_numeric.
1500 * tracepoint.c (trace_mention, scope_info): Likewise.
1501 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1502 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1503 (maintenance_check_symtabs): Likewise.
1504 * symfile.c (list_overlays_command): Likewise.
1505 * stack.c (frame_info, print_block_frame_labels): Likewise.
1506 * printcmd.c (print_address, print_address_demangle)
1507 (address_info): Likewise.
1508 * corefile.c (memory_error): Likewise.
1509 * infcmd.c (jump_command): Likewise.
1510 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1511 (mention, delete_breakpoint): Likewise.
1512 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1513 * dwarf2read.c (dump_die): Likewise.
1514 * ada-valprint.c (ada_val_print_1): Likewise.
1515 * f-valprint.c (f_val_print): Likewise.
1516 * linux-fork.c (info_forks_command): Likewise.
1517 * m32r-com.c (m32r_load_section, m32r_load)
1518 (m32r_upload_command): Likewise.
1520 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1522 2008-01-11 Markus Deuling <deuling@de.ibm.com>
1524 * gdbarch.sh (skip_prologue): Add gdbarch
1526 * gdbarch.{c,h}: Regenerate.
1528 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1529 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1530 * avr-tdep.c (avr_skip_prologue): Likewise.
1531 * cris-tdep.c (cris_skip_prologue): Likewise.
1532 * frv-tdep.c (frv_skip_prologue): Likewise.
1533 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1534 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1535 * i386-tdep.c (i386_skip_prologue): Likewise.
1536 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1537 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1538 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1539 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1540 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1541 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1542 * mep-tdep.c (mep_skip_prologue): Likewise.
1543 * mips-tdep.c (mips_skip_prologue): Likewise.
1544 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1545 * mt-tdep.c (mt_skip_prologue): Likewise.
1546 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1547 * score-tdep.c (score_skip_prologue): Likewise.
1548 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1549 * sh-tdep.c (sh_skip_prologue): Likewise.
1550 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1551 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1552 * spu-tdep.c (spu_skip_prologue): Likewise.
1553 * v850-tdep.c (v850_skip_prologue): Likewise.
1554 * vax-tdep.c (vax_skip_prologue): Likewise.
1555 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1556 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1558 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1559 current_gdbarch by gdbarch.
1560 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1561 * s390-tdep.c (s390_skip_prologue): Likewise.
1563 2008-01-10 Doug Evans <dje@google.com>
1565 * defs.h (struct continuation_arg): Fix typo in comment.
1566 * target.c (target_translate_tls_address): Fix comment spelling error.
1568 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
1570 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1571 (DOUBLEST_SCAN_FORMAT): Likewise.
1572 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1573 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1574 * c-exp.y (parse_number): Likewise.
1575 * jv-exp.y (parse_number): Likewise.
1576 * objc-exp.y (parse_number): Likewise.
1577 * p-exp.y (parse_number): Likewise.
1579 2008-01-09 Joel Brobecker <brobecker@adacore.com>
1581 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1582 (check_typedef): Likewise.
1584 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
1586 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1587 seen_double_big_d, treat the new H, D, and DD modifiers as length
1590 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1592 * dwarf2read.c (read_enumeration_type): Add comment.
1594 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1596 * config.in: Regenerate.
1598 2008-01-08 Joel Brobecker <brobecker@adacore.com>
1600 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1602 (ada_convert_actuals): Delete.
1603 * ada-lang.h (ada_convert_actual): Add declaration.
1604 (ada_convert_actuals): Remove declaration.
1605 * infcall.c: #include "ada-lang.h".
1606 (value_arg_coerce): Add new parameter sp. Update function
1607 documetnation. Add handling of Ada function call parameters.
1608 * Makefile.in (infcall.o): Update dependencies.
1610 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
1612 * ada-lang.c (ensure_lval): Fix value lval kind.
1613 (convert_actual): Add handling for arguments passed by reference.
1615 2008-01-08 Doug Evans <dje@google.com>
1617 * dbxread.c (read_dbx_symtab): Fix indentation.
1619 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1621 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1622 (valarith.o): Depend on dfp.h.
1623 (valops.o): Likewise.
1624 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1625 (set_decnumber_context): New function.
1626 (decimal_check_errors): Likewise.
1627 (decimal_from_number): Likewise.
1628 (decimal_to_number): Likewise.
1629 (decimal_from_string): Use set_decnumber_context and
1630 decimal_check_errors.
1631 (decimal_from_integral): New function.
1632 (decimal_from_floating): Likewise.
1633 (decimal_to_double): Likewise.
1634 (promote_decimal): Likewise.
1635 (decimal_binop): Likewise.
1636 (decimal_is_zero): Likewise.
1637 (decimal_compare): Likewise.
1638 (decimal_convert): Likewise.
1639 * dfp.h (decimal_from_integral): New prototype.
1640 (decimal_from_floating): Likewise.
1641 (decimal_to_double): Likewise.
1642 (decimal_binop): Likewise.
1643 (decimal_is_zero): Likewise.
1644 (decimal_compare): Likewise.
1645 (decimal_convert): Likewise.
1646 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1647 call to value_from_decfloat.
1648 * valarith.c: Include dfp.h.
1649 (value_args_as_decimal): New function.
1650 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1651 (value_logical_not): Likewise.
1652 (value_equal): Likewise.
1653 (value_less): Likewise.
1654 (value_pos): Likewise.
1655 (value_neg): Formatting fix.
1656 * valops.c: Include dfp.h.
1657 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1658 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1659 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1660 (value_from_decfloat): Remove expect_type argument.
1661 * value.h (value_from_decfloat): Update prototype.
1663 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
1665 Ignore change in name of dynamic linker during
1666 execution on Solaris. This also unbreaks pending breakpoints.
1668 * solist.h (struct target_so_ops): New field same.
1669 * solib-svr4.c (svr4_same): New.
1670 (_initialize_svr4_solib): Register svr4_same.
1671 * solib.c (update_solib_list): Use ops->same, if available.
1673 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
1675 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1676 when using MS-DOS paths.
1678 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1680 * NEWS: Mention --pid and --core command line behaviour changes.
1682 2008-01-05 Pedro Alves <pedro@codesourcery.com>
1684 * main.c (captured_main): Remove 'count' varible and the
1685 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1686 --pid options were issued simultaneously. If an explicit pid
1687 option was passed, don't fallback to core file. Detect extra
1688 arguments better in the presence of explicit pid or core
1691 2008-01-05 Joel Brobecker <brobecker@adacore.com>
1693 * ada-lang.c (ada_which_variant_applies): Correctly compute
1694 the value of the discriminant when the variant record is packed.
1696 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1698 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1699 that are used to differentiate homonyms.
1701 2008-01-04 Jerome Guitton <guitton@adacore.com>
1703 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1704 when the type is an anonymous pointer type.
1705 (ada_check_typedef): Avoid a seg fault when the type is null.
1706 * ada-typeprint.c (print_array_type): Add support for pointer
1709 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
1711 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1713 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1715 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1716 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1718 2008-01-04 Joel Brobecker <brobecker@adacore.com>
1720 * ada-exp.y (chop_separator): New function.
1721 (write_selectors): Rewrite to re-use chop_separator.
1722 (ada_nget_field_index, get_symbol_field_type): New functions.
1723 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1726 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1728 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1729 of SYMBOL_VALUE when working with function symbols.
1731 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1733 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1734 expressions. These expressions do not need to be rewriten.
1736 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1738 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1739 the given die is a declaration.
1741 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1743 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1744 Handle properly the case when the index type is an enumerated type.
1745 Do not return the subtype of the bounds type, just return the
1746 bounds type directly - this is not needed and is more consistent
1747 with what we do for arrays when no XA parallel type exists.
1749 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1751 * ada-lang.c (static_unwrap_type): Add forward declaration.
1752 (template_to_static_fixed_type): Fields of dynamic types sometimes
1753 also need to be unwrapped. Take this into account.
1754 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1755 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1756 * ada-typeprint.c (ada_print_type): Get the typename from
1757 the original type, not the base type.
1759 2008-01-03 Jerome Guitton <guitton@adacore.com>
1761 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1762 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1763 Update calls to ada_to_fixed_type.
1764 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1766 (ada_to_fixed_type): Add check_tag parameter; do not look for
1767 tag if null. When looking for a tag, use a fixed record type.
1768 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1769 * ada-valprint.c (printable_val_type, ada_value_print): Update
1770 calls to ada_to_fixed_type.
1772 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
1774 * doublest.c (convert_floatformat_to_doublest): Call
1775 floatformat_to_doublest instead of floatformat_to_double and use
1777 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1778 instead of floatformat_from_double and use DOUBLEST variables.
1780 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
1782 * MAINTAINERS (Write After Approval): Add self.
1784 2008-01-03 Joel Brobecker <brobecker@adacore.com>
1786 * symfile.c (set_initial_language): Make non-static.
1787 * symfile.h (set_initial_language): Add declaration.
1788 * language.c: #include "symfile.h".
1789 (set_language): Call set_initial_language if the frame language
1790 could not be determined.
1792 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
1794 * eval.c (evaluate_subexp_for_address): Provide frame address to
1795 locate_var_value only if it will be needed.
1797 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1799 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1801 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1803 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1804 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1805 This is needed to make sure that any other treatment applied
1806 to the resulting value does not fail for spurious reason,
1807 such as trying to take the address of this value.
1809 2008-01-02 Joel Brobecker <brobecker@adacore.com>
1811 * ada-lang.c (ada_value_equal): Dereference reference types when
1814 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
1816 Updated copyright notices for most files.
1818 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
1820 * win32-nat.c (psapi_module_handle): Remove static.
1821 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1822 return first module found if base_address is zero. Don't initialize
1823 psapi function pointers here. Convert to cygwin paths when
1825 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1826 executable name. Use get_module_name when that fails or when
1828 (_initialize_psapi): New function. Initialize psapi stuff before it is
1829 needed or issue a warning if it is not found. Move psapi_module_handle
1832 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1834 * ada-lang.c (ada_remove_trailing_digits): New function.
1835 (ada_remove_po_subprogram_suffix): New function.
1836 (ada_decode): Improve. Move the description of the algorithm
1837 directly inside the code, instead of in the function global
1840 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1842 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1843 and always print the dereferenced value.
1845 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1847 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1848 of the case where the first argument is a reference.
1849 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1851 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1853 Implement support for Ada interface types.
1855 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1856 (ada_is_ignored_field): Ignore fields that are a dispatch table
1859 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1861 * top.c (print_gdb_version): Update copyright year.
1863 2008-01-01 Joel Brobecker <brobecker@adacore.com>
1865 * ChangeLog-2007: New ChangeLog rotation.
1866 * ChangeLog: Reset for 2008.
1867 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1870 For older changes see ChangeLog-2007.
1876 version-control: never