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