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