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