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