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