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