gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * stack.c (return_command <retval_exp>): New variables retval_expr
4 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
5 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
6 if RETURN_TYPE is NULL.
7
8 2009-03-14 Pedro Alves <pedro@codesourcery.com>
9
10 * remote.c (PACKET_qAttached): New.
11 (remote_query_attached): New.
12 (remote_add_inferior): Add new `attached' argument. Handle it.
13 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
14 -1 to remote_add_inferior in new parameter.
15 (extended_remote_attach_1): Adjust to pass 1 to
16 remote_add_inferior in the new parameter.
17 (extended_remote_create_inferior_1): Adjust to pass 0 to
18 remote_add_inferior in the new parameter.
19 (_initialize_remote): Add "set/show remote query-attached-packet"
20 commands.
21
22 2009-03-13 Tom Tromey <tromey@redhat.com>
23
24 * symtab.c (lookup_symbol_in_language): Use a cleanup.
25
26 2009-03-13 Doug Evans <dje@google.com>
27
28 * exceptions.h: Clean up some comments on catch_exceptions usage.
29 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
30 catch_exceptions.
31
32 2009-02-17 Joel Brobecker <brobecker@adacore.com>
33
34 The following patch helps getting rid of a warning inside solib-som.c.
35
36 * source.c (source_full_path_of): Constify parameter filename.
37 * defs.h (source_full_path_of): Update declaration accordingly.
38
39 2009-03-12 Joel Brobecker <brobecker@adacore.com>
40
41 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
42 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
43 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
44
45 2009-03-12 Joel Brobecker <brobecker@adacore.com>
46
47 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
48 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
49
50 2009-03-12 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-tasks.c (ada_task_is_alive): Move up and make static.
53 * ada-lang.h (ada_task_is_alive): Remove declaration.
54
55 2009-03-12 Jerome Guitton <guitton@adacore.com>
56
57 * ada-lang.c (ada_delta): Change the type of numerators and
58 denominators to DOUBLEST, as they may not fit into a long.
59 (scaling_factor): Ditto.
60
61 2009-03-12 Jerome Guitton <guitton@adacore.com>
62
63 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
64
65 2009-03-12 Joel Brobecker <brobecker@adacore.com>
66
67 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
68 types, if we are unable to determine the actual symbol type
69 from its tag, then use the static approximation instead.
70
71 2009-03-12 Joel Brobecker <brobecker@adacore.com>
72
73 Fix crash printing packed record with packed array.
74
75 * ada-lang.c (ada_modulus_from_name): New function.
76 (ada_modulus): In the case where the type length is bigger than
77 the size of the type used to hold the bounds, try determining
78 the modulus from the type name.
79 (ada_value_primitive_packed_val): Fix bug in the computation of
80 ntarg causing an out-of-buffer invalid access.
81
82 2009-03-12 Joel Brobecker <brobecker@adacore.com>
83
84 Fix segfault when printing short_integer'last.
85
86 * ada-lang.c (ada_find_any_type): Search in the primitive types
87 if a symbol could not be found.
88
89 2009-03-12 Joel Brobecker <brobecker@adacore.com>
90
91 * ada-tasks.c (task_states,long_task_states): Add new states
92 Activating and Acceptor_Delay_Sleep. Update the description
93 of state Acceptor_Sleep.
94
95 2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
96
97 Fix a build failure on Darwin following some changes in
98 the profile of some target_ops methods.
99
100 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
101 where missing.
102 (darwin_stop_inferior, darwin_detach): Likewise.
103
104 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
105
106 Include token in ^running notification for CLI commands.
107
108 * mi/mi-main.c (mi_execute_command): Set current_token here.
109 (mi_cmd_execute): Do not set current_token here.
110
111 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
112
113 Fix MI timings.
114
115 * mi/mi-main.c (mi_print_timing_maybe): New.
116 (captured_mi_execute_command): Simplify. Output timings to
117 CLI commands, too.
118 (mi_execute_async_cli_command): Do not print timings.
119 * mi/mi-main.h (mi_print_timing_maybe): Declare.
120 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
121
122 2009-03-12 Jerome Guitton <guitton@adacore.com>
123
124 * xcoffread.c (process_linenos): Check if the line in the
125 include table refers to the main source file and, if so,
126 add them to the main subfile.
127
128 2009-03-12 Joel Brobecker <brobecker@adacore.com>
129
130 Fix a build failure on AIX introduced after a change in the profile
131 of some of the "methods" in the target_ops structure.
132 * aix-thread.c: Add missing target_ops parameter throughout.
133
134 Implement Ada task switching on AIX.
135 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
136 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
137
138 2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
141 value_mark and value_free_to_mark.
142 * objfiles.c (free_objfile): Call objfile_free_data before
143 freeing the BFD.
144
145 2009-03-10 Hui Zhu <teawater@gmail.com>
146
147 * disasm.c (gdb_disassembly): Remove unused argument
148 "line_num".
149 * disasm.h (gdb_disassembly): Ditto.
150 * cli/cli-cmds.c (print_disassembly): Ditto.
151 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
152
153 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
154
155 * solib.c (solib_contains_address_p): New function.
156 (solib_name_from_address): Use it.
157 * printcmd.c (display_uses_solib_p): Use it.
158 * solib.h (solib_contains_address_p): Declare it.
159
160 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * varobj.c (free_variable): Call value_free.
163
164 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 PR gdb/9873:
167 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
168 Move the variable `macinfo_type' out of the loop. Create a new
169 processing pass before the current one to pre-create `current_file'.
170 New complaint on misplaced zero/non-zero definitions/includes.
171 Skip first DW_MACINFO_start_file with `at_commandline' set.
172
173 2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
174
175 * solib.c (reload_shared_libraries): Give
176 inferior a chance to reset solib breakpoint.
177 Reinit frame cache.
178
179 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
180
181 * windows-nat.c (dr): Redefine to use largest possible integer which
182 holds a pointer.
183 (cygwin_set_dr): Avoid coercion.
184
185 2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
186
187 * windows-nat.c (windows_create_inferior): Implement --tty handling on
188 non-cygwin.
189
190 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
191
192 Rename solib_address to solib_name_from_address.
193 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
194 (disable_breakpoints_in_unloaded_shlib): Update.
195 * printcmd.c (display_uses_solib_p): Likewise.
196 * stack.c (print_frame): Likewise.
197 * solib.c: Rename.
198 * solib.h: Rename.
199
200 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
201
202 * printcmd.c (do_one_display): Reparse exp_string.
203 (display_uses_solib_p): New function.
204 (clear_dangling_display_expressions): New function.
205 (_initialize_printcmd): Add observer.
206 * solib.c (no_shared_libraries): Swap order of calls to
207 clear_solib and objfile_purge_solibs.
208
209 2009-03-05 Joel Brobecker <brobecker@adacore.com>
210
211 Implement the target-specific part of Ada tasking support
212 on Tru64.
213
214 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
215 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
216
217 2009-03-05 Joel Brobecker <brobecker@adacore.com>
218
219 Get rid of the global "base_target" and use "find_target_beneath"
220 to find the underlying target.
221 * dec-thread.c (base_target): Delete.
222 (enable_dec_thread): Remove assignement to base_target.
223 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
224 (dec_thread_fetch_registers, dec_thread_store_registers)
225 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
226 Update the function profile if necessary.
227 Use find_target_beneath to call the same method but from
228 the underlying target, removing the need for "base_target".
229
230 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
231 Fix a copy/paste error in a few debug traces...
232
233 * solib-osf.c (init_so): Use a simpler method for computing
234 the size of lm_info structure. This also gets rid of warning
235 emitted by the compiler.
236
237 2009-03-05 Pedro Alves <pedro@codesourcery.com>
238
239 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
240 duplicates of permanent breakpoints.
241
242 2009-03-04 Pedro Alves <pedro@codesourcery.com>
243
244 * inferior.h (notice_new_inferior): Declare.
245 * infcmd.c (notice_new_inferior): New.
246 * remote.c (remote_add_inferior, remote_add_thread): New.
247 (notice_new_inferiors): Rename to...
248 (remote_notice_new_inferior): ... this. Add RUNNING argument.
249 Use remote_add_thread instead of add_thread, passing it the
250 RUNNING argument. Add an inferior with remote_add_inferior. If
251 we just learned about an inferior, call notice_new_inferior.
252 (record_currthread): Adjust.
253 (remote_threads_info): Adjust to use remote_notice_new_inferior.
254 (remote_start_remote, extended_remote_attach_1): Use
255 remote_add_inferior.
256 (process_stop_reply): Adjust. Call remote_notice_new_inferior
257 after handling expedited registers and watchpoint state.
258 (extended_remote_create_inferior_1): Use remote_add_inferior.
259
260 2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
261
262 * infcmd.c (registers_info): Remove register number case.
263
264 2009-03-03 Pedro Alves <pedro@codesourcery.com>
265
266 * top.c (quit_target): Check for target_has_execution before
267 killing or detaching from inferiors.
268
269 2009-03-02 Joel Brobecker <brobecker@adacore.com>
270
271 Remove some unused routines.
272
273 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
274 Delete.
275 * ada-lang.c (ada_task_list_iterator_ftype)
276 (iterate_over_live_ada_tasks): Delete.
277 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
278 Delete.
279
280 2009-03-01 Doug Evans <dje@google.com>
281
282 * symtab.c: Remove trailing whitespace throughout the file.
283 (expand_line_sal): Fix some typos and whitespace.
284
285 * Makefile.in (clean): rm -f $(DEPDIR)/*.
286
287 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
288 (init.c): signals/ -> common/.
289 (signals.o): Update.
290 * target.h (target_signal_to_string,target_signal_to_string)
291 (target_signal_from_name,target_signal_to_host_p)
292 (target_signal_from_host,target_signal_to_host): Move to ...
293 * common/gdb_signals.h: ... here. New file.
294 * common/signals.c: Moved here from signals/signals.c.
295 #include gdb_signals.h, remove #include of target.h in gdb case.
296 (target_signal_from_command,default_target_signal_to_host)
297 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
298
299 Include thread ID in target_wait debugging output.
300 * infrun.c (print_target_wait_results): New function.
301 (wait_for_inferior,fetch_inferior_event): Call it.
302
303 2009-02-27 Pedro Alves <pedro@codesourcery.com>
304
305 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
306 with a ptid_t field.
307 * linux-thread-db.c (thread_get_info_callback): Build the ptid
308 using the pid stored in proc_handle.ptid.
309 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
310 (check_for_thread_db, thread_db_detach, check_event)
311 (thread_db_mourn_inferior, find_new_threads_callback)
312 (thread_db_find_new_threads_1): Adjust.
313 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
314 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
315
316 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
317
318 * valprint.c (read_string): Rework clean-up logic. Use
319 free_current_contents to clean-up buffer.
320
321 2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
322
323 * MAINTAINERS: Update e-mail address.
324
325 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
326
327 * python/python-utils.c (python_string_to_unicode): Always return
328 a new reference.
329 (python_string_to_target_string): Decrement transient python
330 instance.
331 (python_string_to_host_string): Likewise.
332
333 2007-02-26 Pedro Alves <pedro@codesourcery.com>
334
335 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
336 call to super_fetch_registers.
337 (mips64_linux_store_registers): Pass `ops' to call to
338 super_store_registers.
339
340 2009-02-25 Doug Evans <dje@google.com>
341
342 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
343 error message.
344
345 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
346 disabled_shlib_breaks, unused.
347
348 * printcmd.c (build_address_symbolic): Fix comment.
349
350 2009-02-25 Hui Zhu <teawater@gmail.com>
351
352 * cli/cli-script.c (define_command): Add _() to query.
353 * gnu-nat.c (inf_validate_task_sc): Ditto.
354 * infcmd.c (kill_if_already_running): Ditto.
355 (jump_command): Ditto.
356 (attach_command): Ditto.
357 * inflow.c (kill_command): Ditto.
358 * infrun.c (handle_command): Ditto.
359 * maint.c (maintenance_dump_me): Ditto.
360 * memattr.c (mem_delete_command): Ditto.
361 * monitor.c (monitor_interrupt_query): Ditto.
362 * nto-procfs.c (interrupt_query): Ditto.
363 * printcmd.c (undisplay_command): Ditto.
364 * remote-mips.c (mips_kill): Ditto.
365 * remote.c (interrupt_query): Ditto.
366 * solib-irix.c (irix_open_symbol_file_object): Ditto.
367 * solib-osf.c (osf_open_symbol_file_object): Ditto.
368 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
369 * solib-som.c (som_open_symbol_file_object): Ditto.
370 * solib-svr4.c (open_symbol_file_object): Ditto.
371 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
372 * target.c (kill_or_be_killed): Ditto.
373 * tracepoint.c (delete_trace_command): Ditto.
374 * top.c (quit_confirm): Add _() to s that will be used
375 in query.
376
377 2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
378
379 Fix windows-nat.c compilation failure.
380
381 * windows-nat.c (windows_thread_alive): Fix forward declaration.
382 (get_windows_debug_event): Add ops parameter to call to windows_resume.
383
384 2009-02-23 Pedro Alves <pedro@codesourcery.com>
385
386 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
387
388 2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
389
390 * symtab.c (find_line_symtab): Initialize exact to avoid
391 a compiler warning.
392
393 2009-02-23 Pedro Alves <pedro@codesourcery.com>
394
395 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
396 `ops' to recursive call.
397
398 2009-02-23 Pedro Alves <pedro@codesourcery.com>
399
400 * corelow.c (get_core_registers): Adjust.
401 (core_file_thread_alive): Rename to...
402 (core_thread_alive): ... this.
403 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
404 (init_core_ops): Adjust.
405 (coreops_suppress_target): Delete.
406 (_initialize_corelow): Unconditionally add core_ops.
407 * procfs.c: Include "inf-child.h".
408 (procfs_ops): Delete.
409 (init_procfs_ops): Delete. Reimplement as...
410 (procfs_target): ... this, inheriting from inf-child.
411 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
412 (procfs_prepare_to_store): Delete.
413 (procfs_store_registers, procfs_resume): Adjust.
414 (procfs_open): Delete.
415 (procfs_suppress_run): Delete.
416 (procfs_can_run): Delete.
417 (procfs_mourn_inferior): Adjust.
418 (procfs_init_inferior): Add target_ops parameter. Adjust.
419 (procfs_create_inferior): Don't pass procfs_init_inferior to
420 fork_inferior. Instead call it after fork_inferior returns.
421 (procfs_find_new_threads): Adjust.
422 (_initialize_procfs): Adjust to use procfs_target instead of
423 init_procfs_ops.
424 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
425 (lwp_to_thread): Use target_thread_alive.
426 (sol_thread_open): Delete.
427 (sol_thread_attach): Delete.
428 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
429 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
430 to use find_target_beneath.
431 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
432 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
433 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
434 (check_for_thread_db): New.
435 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
436 (sol_thread_new_objfile): Call check_for_thread_db.
437 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
438 (sol_thread_can_run): Delete.
439 (sol_thread_alive): Adjust to use find_target_beneath.
440 (sol_thread_stop): Delete.
441 (rw_common): Use target_write_memory or target_read_memory.
442 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
443 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
444 (solaris_pid_to_str): Remove check for libthread_db initialization
445 failing.
446 (sol_find_new_threads): Remove check for libthread_db
447 initialization failing, or for an invalid inferior_ptid. Adjust
448 to use find_target_beneath.
449 (sol_core_open, sol_core_close, sol_core_detach,
450 sol_core_files_info, sol_find_memory_regions,
451 sol_make_note_section, ignore): Delete.
452 (init_sol_thread_ops): Make it a thread_stratum target. Remove
453 unneeded callback settings.
454 (init_sol_core_ops): Delete.
455 (_initialize_sol_thread): No longer call init_sol_core_ops, set
456 procfs_suppress_run, or hack with core_ops.
457
458 * target.h (struct target_ops): Add a target_ops * parameter to
459 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
460 and to_find_new_threads.
461 (target_fetch_registers, target_store_registers)
462 (target_thread_alive, target_find_new_threads): Redeclare as
463 function.
464
465 * target.c (update_current_target): Do not inherit or de_fault
466 to_resume, to_fetch_registers, to_store_registers,
467 to_thread_alive, to_find_new_threads.
468 (target_resume): Adjust.
469 (target_thread_alive, target_find_new_threads): New.
470 (debug_to_resume, debug_to_fetch_registers): Delete.
471 (target_fetch_registers): New.
472 (debug_to_store_registers): Delete.
473 (target_store_registers): New.
474 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
475 (setup_target_debug): Adjust.
476
477 * gdbcore.h (core_ops): Delete declaration.
478
479 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
480 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
481 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
482 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
483 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
484 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
485 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
486 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
487 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
488 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
489 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
490 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
491 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
492 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
493
494 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
495 * gdbarch.h, gdbarch.c: Regenerate.
496
497 * sol2-tdep.c: Include "inferior.h".
498 (sol2_core_pid_to_str): New.
499 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
500
501 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
502 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
503 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
504 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
505
506 2009-02-22 Doug Evans <dje@google.com>
507
508 * exec.c (exec_file_attach): Fix comment.
509
510 2009-02-22 Pedro Alves <pedro@codesourcery.com>
511
512 Silence a few -Wmissing-prototypes warnings.
513
514 PR build/9877:
515 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
516 it static.
517 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
518 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
519 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
520 (_initialize_amd64nbsd_tdep): ... this.
521 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
522 (_initialize_arm_linux_tdep): Declare.
523 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
524 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
525 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
526 * avr-tdep.c (avr_return_value): Make it static.
527 (avr_frame_unwind_cache): Ditto.
528 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
529 (bsd_uthread_solib_loaded): Ditto.
530 (bsd_uthread_solib_unloaded): Ditto.
531 (bsd_uthread_target): Ditto.
532 (_initialize_bsd_uthread): Declare.
533 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
534 (cris_frame_unwind_cache): Ditto.
535 * frv-tdep.c (frv_return_value): Ditto.
536 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
537 (h8300h_use_struct_convention): Ditto.
538 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
539 Ditto.
540 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
541 declarations.
542 * hppabsd-tdep.c: Include hppabsd-tdep.h.
543 (hppabsd_find_global_pointer): Make it static.
544 * hppabsd-tdep.h: New.
545 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
546 (hppabsd_init_abi): Remove declaration.
547 (_initialize_hppabsd_tdep): Remove declaration.
548 (_initialize_hppanbsd_tdep): Declare.
549 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
550 (hppabsd_init_abi): Delete declaration.
551 (hppaobsd_init_abi): Make it static.
552 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
553 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
554 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
555 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
556 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
557 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
558 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
559 (_initialize_m32c_tdep): Declare.
560 * m32r-rom.c (_initialize_m32r_rom): Declare.
561 * m32r-tdep.c (m32r_skip_prologue): Make it static.
562 (m32r_return_value): Ditto.
563 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
564 (m68hc11_return_value): Ditto.
565 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
566 * m88k-tdep.c (m88k_frame_cache): Make it static.
567 * mep-tdep.c (mep_gdb_print_insn): Ditto.
568 (mep_return_value): Ditto.
569 (_initialize_mep_tdep): Declare.
570 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
571 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
572 (mips_linux_syscall_next_pc): Ditto.
573 (_initialize_mips_linux_tdep): Declare.
574 * mips-tdep.c (mips_single_step_through_delay): Make it static.
575 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
576 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
577 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
578 * mt-tdep.c (_initialize_mt_tdep): Declare.
579 * nbsd-tdep.c: Include nbsd-tdep.h.
580 * nto-tdep.c (find_load_phdr): Make it static.
581 (_initialize_nto_tdep): Declare.
582 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
583 static.
584 (_initialize_ppc_linux_tdep): Declare.
585 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
586 (m32r_insert_watchpoint, m32r_remove_watchpoint)
587 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
588 static.
589 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
590 * rs6000-nat.c: Include xcoffread.h.
591 (find_toc_address): Don't extern declare get_toc_offset. Adjust
592 to call xcoff_get_to_offset.
593 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
594 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
595 (rs6000_skip_trampoline_code): Make static.
596 * s390-tdep.c (s390_regset_from_core_section): Ditto.
597 * sh-tdep.c (sh_register_reggroup_p): Ditto.
598 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
599 (_initialize_shnbsd_tdep): Declare.
600 * solib-frv.c (displacement_from_map): Make static.
601 (_initialize_frv_solib): Declare.
602 * solib-irix.c (fetch_lm_info): Make static.
603 (_initialize_irix_solib): Declare.
604 * solib-som.c: Include solib-som.h.
605 (som_solib_select): Line break.
606 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
607 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
608 (_initialize_sparcnbsd_tdep): ... this.
609 * spu-tdep.c (spu_software_single_step): Make it static.
610 (_initialize_spu_tdep): Declare.
611 * vax-tdep.c (vax_frame_cache): Make it static.
612 * xcoffread.c: Include xcoffread.h.
613 (get_toc_offset): Rename to ...
614 (xcoff_get_toc_offset): ... this.
615 (_initialize_xcoffread): Declare.
616 * xcoffread.h: New.
617 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
618 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
619 static.
620 (_initialize_xtensa_tdep): Declare.
621
622 2008-02-21 Pedro Alves <pedro@codesorcery.com>
623
624 Silence a few -Wmissing-prototypes warnings.
625
626 PR build/9877:
627 * amd64-nat.c: Include "amd64-nat.h".
628 * fork-child.c (_initialize_fork_child): Ditto.
629 * gcore.c (_initialize_gcore): Ditto.
630 * inf-ptrace.c: Include "inf-ptrace.h".
631 (inf_ptrace_store_registers): Make it static.
632 * linux-nat.c (linux_nat_terminal_ours): Make it static.
633 (_initialize_linux_nat): Declare before definition.
634 * linux-tdep.c: Include "linux-tdep.h".
635 * linux-thread-db.c (_initialize_thread_db): Declare before
636 definition.
637 * proc-service.c (_initialize_proc_service): Ditto.
638 * remote.c (remote_send_printf): Make it static.
639 * solib.c: Include "solib.h".
640 * symfile-mem.c (_initialize_symfile_mem): Declare before
641 definition.
642 * ada-lang.c (ada_la_decode, ada_match_name)
643 (ada_suppress_symbol_printing, ada_is_array_type)
644 (ada_value_ptr_subscript, ada_array_length)
645 (ada_to_static_fixed_value): Make them static.
646 (_initialize_ada_language): Declare before definition.
647 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
648 (ada_task_list_changed, ada_new_objfile_observer): Make them
649 static.
650 (_initialize_tasks): Declare before definition.
651 * addrmap.c (_initialize_addrmap): Declare before definition.
652 * auxv.c (default_auxv_parse): Make it static.
653 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
654 them static.
655 * breakpoint.c (remove_sal): Add line break.
656 (expand_line_sal_maybe): Make it static.
657 * cp-name-parser.y: Include "cp-support.h".
658 * cp-valprint.c (cp_find_class_member): Make it static.
659 * eval.c (value_f90_subarray): Ditto.
660 * exceptions.c (print_any_exception): Ditto.
661 * findcmd.c (_initialize_mem_search): Declare before definition.
662 * frame.c (frame_observer_target_changed): Make it static.
663 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
664 * inf-child.c: Include "inf-child.h".
665 * inferior.h (valid_inferior_id): Rename to ...
666 (valid_gdb_inferior_id): ... this.
667 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
668 Make them static.
669 * jv-lang.c (java_language_arch_info): Make it static.
670 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
671 * osdata.c (info_osdata_command): Make it static.
672 * regcache.c (regcache_observer_target_changed): Make it static.
673 * reverse.c (_initialize_reverse): Declare before definition.
674 * stabsread.c (cleanup_undefined_types_noname)
675 (cleanup_undefined_types_1): Make them static.
676 * symfile.c (place_section): Make it static.
677 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
678 * target-descriptions.c (_initialize_target_descriptions): Declare
679 before definition.
680 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
681 (find_default_is_async_p, find_default_supports_non_stop): Make
682 them static.
683 (target_supports_non_stop): Add prototype.
684 (dummy_pid_to_str): Make it static.
685 * utils.c (_initialize_utils): Declare before definition.
686 * ada-exp.y (_initialize_ada_exp): Declare before definition.
687 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
688 * target.h (struct target_ops): Add a prototype to the
689 to_can_execute_reverse callback.
690 * macroscope.c (_initialize_macroscope): Declare before definition.
691 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
692 * python/python.c (_initialize_python): Declare before definition.
693 * tui/tui-command.c: Include "tui/tui-command.h".
694 * tui/tui-data.c (init_content_element, init_win_info): Make them
695 static.
696 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
697 * tui/tui-interp.c (_initialize_tui_interp): Declare before
698 definition.
699 * tui/tui-layout.c: Include "tui/tui-layout.h".
700 (_initialize_tui_layout): Declare before definition.
701 * tui/tui-regs.c: Include "tui/tui-regs.h".
702 (tui_display_reg_element_at_line): Make it static.
703 (_initialize_tui_regs): Declare before definition.
704 * tui/tui-stack.c (_initialize_tui_stack): Declare before
705 definition.
706 * tui/tui-win.c: Include "tui/tui-win.h".
707 (_initialize_tui_win): Declare before definition.
708 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
709 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
710 (tui_get_cmd_list): Add a prototype.
711 * tui/tui-windata.c: Include tui-windata.h.
712 * tui/tui-wingeneral.c (box_win): Make it static.
713 * cli/cli-logging.c (show_logging_command): Make it static.
714 (_initialize_cli_logging): Declare before definition.
715 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
716 definition.
717
718 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
719
720 Extend use of i386_use_watchpoints to all i386 native files
721 using hardware watchpoints.
722 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
723 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
724 * windows-nat.c (init_windows_ops): Ditto.
725 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
726 * config/i386/nm-cygwin64.h: Ditto.
727 * config/i386/nm-fbsd.h: Ditto.
728 * config/i386/nm-go32.h: Ditto.
729
730 2009-02-19 Joel Brobecker <brobecker@adacore.com>
731
732 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
733
734 2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
735
736 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
737 (mi_interpreter_init): Register the above.
738 * solib.c (clear_solib): Notify solib unload.
739 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
740 disable breakpoints on a.out targets.
741
742 2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
743
744 * observer.c (observer_test_first_notification_function)
745 (observer_test_second_notification_function)
746 (observer_test_third_notification_function): Adjust prototype.
747
748 2009-02-17 Pedro Alves <pedro@codesourcery.com>
749
750 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
751 (ALL_TARGET_OBS): Add dicos-tdep.o.
752 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
753 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
754 gdb_target_obs.
755 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
756 gdb_target_obs.
757 * dicos-tdep.h, dicos-tdep.c: New.
758 * amd64-dicos-tdep.c: New.
759 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
760 inferior.h. Include dicos-tdep.h.
761 (i386_dicos_init_abi): Call dicos_init_abi.
762 (i386_dicos_bfd_has_symbol_p): Delete.
763 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
764
765 * NEWS: Mention x86-64 DICOS target support.
766
767 2009-02-16 Doug Evans <dje@google.com>
768
769 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
770 All callers updated.
771 (amd64_get_insn_details): Handle more 3-byte opcode insns.
772 (amd64_breakpoint_p): Delete.
773 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
774 don't back up pc to the start of the int3.
775 * i386-tdep.c: #include opcode/i386.h.
776 (i386_skip_prefixes): New function.
777 (i386_absolute_jmp_p): Constify argument.
778 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
779 (i386_breakpoint_p): Delete.
780 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
781 When fixing up after stepping an int3, don't back up pc to the start
782 of the int3.
783
784 2009-02-16 Pedro Alves <pedro@codesourcery.com>
785
786 * corelow.c (core_close): Don't hardcode the core's pid.
787 (core_open): Find core threads before calling
788 post_create_inferior.
789 (add_to_thread_list, get_core_register_section): Take into account
790 systems where the regset section names encode the pid of the
791 inferior.
792
793 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
794 * gdbarch.h, gdbarch.c: Regenerate.
795
796 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
797 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
798 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
799 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
800
801 2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
802
803 Include frame information for *stopped due to CLI commands.
804
805 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
806 * infcmd.c (finish_command_continuation): Pass '1' for
807 'print_frame' parameter to the observer.
808 * infrun.c (normal_stop): Don't print mi-specific information
809 here. Pass 'stop_print_frame' to the 'print_frame' parameter
810 of the observer.
811 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
812 If we need to print frame, and current uiout is not the MI one,
813 print frame again.
814
815 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
816
817 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
818 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
819
820 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 PR fortran/9806
823 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
824 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
825
826 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
827
828 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
829 for DW_ATE_signed_char and DW_ATE_unsigned_char
830 for pascal language.
831
832 2009-02-11 Jim Meyering <meyering@redhat.com>
833 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 Avoid NULL dereference.
836 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
837 New variable func_type.
838
839 2009-02-11 Pedro Alves <pedro@codesourcery.com>
840
841 * gdbarch.c: Regenerate.
842
843 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
844
845 * p-lang.c (is_pascal_string_type): Fix comment.
846 Determine exact size of char elements for GPC
847 strings.
848 (pascal_printstr): Handle char width of 2 or 4.
849 * p-valprint.c (pascal_val_print): Handle char
850 of width 2 or 4.
851
852 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
853
854 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
855 inside the loop. Only call addrmap_set_empty if the compilation unit
856 had DW_AT_high_pc and DW_AT_low_pc. Update call to
857 scan_partial_symbols.
858 (scan_partial_symbols): Take NEED_PC argument and pass it along with
859 LOWPC and HIGHPC.
860 (add_partial_namespace): Take NEED_PC argument and pass it through.
861 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
862 if necessary.
863
864 2009-02-07 Pedro Alves <pedro@codesourcery.com>
865
866 * NEWS: Mention inspecting extra signal information, $_siginfo,
867 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
868
869 2009-02-07 Pedro Alves <pedro@codesourcery.com>
870
871 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
872 isn't defined.
873
874 2009-02-06 Pedro Alves <pedro@codesourcery.com>
875
876 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
877 (compat_timer_t, compat_clock_t, struct compat_timeval)
878 (compat_sigval_t, compat_siginfo_t): New types.
879 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
880 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
881 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
882 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
883 (amd64_linux_siginfo_fixup): New.
884 * linux-nat.c (linux_nat_siginfo_fixup): New.
885 (siginfo_fixup): New.
886 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
887 siginfo layout expected by ptrace and the siginfo layout of the
888 inferior.
889 (linux_nat_set_siginfo_fixup): New.
890 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
891
892 2009-02-06 Pedro Alves <pedro@codesourcery.com>
893
894 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
895 * infrun.c (siginfo_value_read, siginfo_value_write): New.
896 (siginfo_value_funcs): New.
897 (siginfo_make_value): New.
898 (_initialize_infrun): Create the $_siginfo convenience variable.
899 * gdbtypes.h (append_composite_type_field_aligned): Declare.
900 * gdbtypes.c (append_composite_type_field): Rename to...
901 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
902 argument. Handle it.
903 (append_composite_type_field): Rewrite on top of
904 append_composite_type_field_aligned.
905 * value.h (internalvar_make_value): New typedef.
906 (struct internalvar) <make_value>: New field.
907 (create_internalvar_type_lazy): Declare.
908 * value.c (create_internalvar): Clear make_value.
909 (create_internalvar_type_lazy): New.
910 (value_of_internalvar): If make_value is set use it.
911 (preserve_values): Skip internal variables that don't have a
912 value.
913 * gdbarch.sh (get_siginfo_type): New.
914 * gdbarch.h, gdbarch.c: Regenerate.
915
916 * linux-tdep.h, linux-tdep.c: New.
917 * amd64-linux-tdep.c: Include "linux-tdep.h".
918 (amd64_linux_init_abi): Register linux_get_siginfo_type and
919 linux_get_siginfo_mapper.
920 * i386-linux-tdep.c: Include "linux-tdep.h".
921 (i386_linux_init_abi): Register linux_get_siginfo_type and
922 linux_get_siginfo_mapper.
923 * arm-linux-tdep.c: Include "linux-tdep.h".
924 (i386_linux_init_abi): Register linux_get_siginfo_type and
925 linux_get_siginfo_mapper.
926
927 * linux-nat.c (linux_xfer_siginfo): New.
928 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
929 * remote.c (PACKET_qXfer_siginfo_read)
930 (PACKET_qXfer_siginfo_write): New.
931 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
932 "qXfer:siginfo:write" features.
933 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
934 (_initialize_remote): Add "set/show remote read-siginfo-object"
935 and "set/show remote write-siginfo-object" commands.
936
937 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
938 (HFILES_NO_SRCDIR): Add linux-tdep.h.
939 (ALLDEPFILES): Add linux-tdep.c.
940
941 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
942 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
943 gdb_target_obs.
944
945 2009-02-06 Jim Blandy <jimb@codesourcery.com>
946 Daniel Jacobowitz <dan@codesourcery.com>
947 Vladimir Prus <vladimir@codesourcery.com>
948 Pedro Alves <pedro@codesourcery.com>
949
950 * defs.h (enum lval_type): New value: lval_computed.
951 * value.h (struct lval_funcs): New type.
952 (allocate_computed_value, value_computed_funcs)
953 (value_computed_closure): New declarations.
954 * value.c (struct value): Add a structure to the location union
955 for computed lvalues, containing 'funcs' and 'closure' members.
956 (allocate_computed_value, value_computed_funcs)
957 (value_computed_closure): New functions.
958 (value_free): For computed lvalues, call the closure's
959 'free_closure' function before freeing the value itself.
960 (value_copy): If we're copying an lval_computed value, call the
961 closure's 'copy_closure' function.
962 (set_value_component_location): If the original value is a
963 computed lvalue, then call the closure's 'copy_closure' function.
964 (value_of_internalvar): If an internal variable's value is a
965 computed lvalue, make retrieving its value produce an equivalent
966 computed lvalue.
967 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
968 their read function.
969 (value_assign): Assign to computed lvalues by calling their write
970 function.
971
972 2009-02-06 Pedro Alves <pedro@codesourcery.com>
973
974 * linux-nat.c (linux_nat_wait): Adjust.
975 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
976 * linux-nat.h (thread_db_init): Delete declaration.
977 * linux-thread-db.c (target_beneath): Delete.
978 (thread_db_init): Delete.
979 (thread_db_detach): Use find_target_beneath.
980 (thread_db_wait): Adjust interface. Use find_target_beneath.
981 (thread_db_mourn_inferior): Use find_target_beneath.
982 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
983 (thread_db_async_mask): Delete.
984 (thread_db_pid_to_str): Adjust interface. Use
985 find_target_beneath.
986 (thread_db_get_thread_local_address): Adjust interface. Use
987 find_target_beneath.
988 (init_thread_db_ops): Delete references to delete functions.
989 * target.c (update_current_target): Don't inherit or default
990 to_wait. Don't inherit to_pid_to_str and
991 to_get_thread_local_address.
992 (target_translate_tls_address): Look for a pushed target that
993 implements to_get_thread_local_address, and use it instead of
994 checking for target_get_thread_local_address_p.
995 (target_wait, target_pid_to_str): Reimplement as functions.
996 (dummy_pid_to_str): New.
997 (init_dummy_target): Register it.
998 (debug_to_wait): Delete.
999 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
1000 to_get_thread_local_address accept a pointer to struct target_ops.
1001 (target_wait): Delete macro, and declare as function.
1002 (target_pid_to_str): Likewise.
1003 (target_get_thread_local_address)
1004 (target_get_thread_local_address_p): Delete.
1005 (noprocess): Add NORETURN and ATTR_NORETURN tags.
1006 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1007 (inf_ptrace_pid_to_str): New.
1008 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
1009 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
1010 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
1011 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
1012 Adjust.
1013 * corelow.c (core_pid_to_str): Adjust.
1014 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
1015 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
1016 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
1017 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
1018 * hpux-thread.c (hpux_thread_wait): Adjust.
1019 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
1020 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
1021 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
1022 * procfs.c (procfs_pid_to_str): Adjust.
1023 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
1024 * remote-mips.c (mips_wait): Adjust.
1025 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
1026 * remote.c (remote_wait, remote_pid_to_str)
1027 (remote_get_thread_local_address): Adjust.
1028 * rs6000-nat.c (rs6000_wait): Adjust.
1029 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
1030 (sol_thread_wait, solaris_pid_to_str): Adjust.
1031 * spu-linux-nat.c (spu_child_wait): Adjust.
1032 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
1033
1034 2009-02-06 Tom Tromey <tromey@redhat.com>
1035
1036 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
1037 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
1038 (python-cmd.o): New target.
1039 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
1040 completer prototype.
1041 (add_cmd): Initialize destroyer member of cmd_list_element. Use
1042 make_symbol_completion_list_fn as completer.
1043 (delete_cmd): Call destroyer if one is set.
1044 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
1045 completer member. Add destroyer member.
1046 (set_cmd_completer): Add self parameter to
1047 completer prototype.
1048 * command.h (set_cmd_completer): Add cmd parameter to
1049 completer prototype.
1050 * completer.c (noop_completer, filename_completer,
1051 location_completer, expression_completer, command_completer): Adapt
1052 to new completer prototype.
1053 (complete_line_internal): Pass new parameter to completer function.
1054 * completer.h (noop_completer, filename_completer,
1055 location_completer, expression_completer, command_completer): Adapt
1056 prototypes to new completer prototype.
1057 * interps.c (interpreter_completer): Adapt to new completer
1058 prototype.
1059 * python/python-cmd.c: New file.
1060 * python/python-internal.h (gdbpy_initialize_commands): Add
1061 prototype.
1062 (gdbpy_doc_cst): Add forward declaration.
1063 * python/python.c (gdbpy_doc_cst): Declare.
1064 (_initialize_python): Call gdbpy_initialize_commands. Initialize
1065 gdbpy_doc_cst.
1066 * symtab.c (make_symbol_completion_list_fn): New function.
1067 * symtab.h (make_symbol_completion_list_fn): Add prototype.
1068
1069 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1070
1071 * target.c (target_get_osdata): Check for equal or higher than
1072 process_stratum, not dummy_stratum.
1073
1074 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1075
1076 * remote.c (extended_remote_can_run): Delete.
1077 (init_remote_ops): Don't register it.
1078 * target.c (target_get_osdata): Don't check for target_can_run.
1079 Instead any target that has already been pushed, otherwise
1080 fallback to the default run target.
1081
1082 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1083
1084 * target.c (target_create_inferior, target_detach)
1085 (target_mourn_inferior, target_attach, target_close): Do target
1086 debug output.
1087 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
1088 (debug_to_mourn_inferior, debug_to_close): Delete.
1089 (setup_target_debug): Adjust.
1090
1091 2009-02-05 Pedro Alves <pedro@codesourcery.com>
1092
1093 * target.h (target_stopped_data_address_p): Delete declaration,
1094 and don't define as macro.
1095 * target.c (target_stopped_data_address_p): Delete.
1096
1097 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1098 Tom Tromey <tromey@redhat.com>
1099
1100 * python/python-utils.c (target_string_to_unicode): New function.
1101 * python/python-internal.h (target_string_to_unicode): New prototype.
1102 * python/python-value.c (valpy_string): New function.
1103 (value_object_methods): Add `string' entry.
1104
1105 2009-02-05 Pedro Alves <pedro@codesourcery.com>
1106
1107 * target.h (target_tid_to_str): Delete.
1108 * thread.c (print_thread_info, thread_apply_all_command)
1109 (thread_apply_command, thread_command, do_captured_thread_select):
1110 Use target_pid_to_str instead of target_tid_to_str.
1111 * linux-fork.c (delete_fork_command): Likewise.
1112
1113 2009-02-05 Pedro Alves <pedro@codesourcery.com>
1114
1115 * frame.c (has_stack_frames): Make public.
1116 (get_prev_frame): Don't allow a NULL this_frame anymore.
1117 * frame.h (has_stack_frames): Declare.
1118 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
1119 to get_prev_frame, instead start at get_current_frame.
1120 (varobj_create): Check has_stack_frames before getting any frame;
1121 eliminate one usage of deprecated_safe_get_selected_frame.
1122
1123 2009-02-05 Tom Tromey <tromey@redhat.com>
1124 Thiago Jung Bauermann <bauerman@br.ibm.com>
1125
1126 * python/python.c (GdbMethods): Move to bottom of file.
1127 (get_parameter, execute_gdb_command, gdbpy_write,
1128 gdbpy_flush): Remove forward declarations.
1129 (eval_python_from_control_command): Fix error checking of function
1130 PyRun_SimpleString. Fix error string.
1131 (python_command): Likewise.
1132 (execute_gdb_command): Added from_tty argument.
1133
1134 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1135
1136 * language.h (language_dfn): Add la_get_string member.
1137 (LA_GET_STRING): New macro.
1138 (default_get_string): New prototype.
1139 * language.c (default_get_string): New function.
1140 (unknown_language_defn, auto_language_defn, local_language_defn): Use
1141 default_get_string for la_get_string.
1142 * c-lang.c (c_get_string): New function.
1143 (c_language_defn, cplus_language_defn, asm_language_defn): Use
1144 c_get_string for la_get_string.
1145 (minimal_language_defn): Likewise
1146 * ada-lang.c (ada_language_defn): Likewise.
1147 * f-lang.c (f_language_defn): Use default_get_string for
1148 la_get_string.
1149 * jv-lang.c (java_language_defn): Likewise.
1150 * m2-lang.c (m2_language_defn): Likewise.
1151 * objc-lang.c (objc_language_defn): Likewise.
1152 * p-lang.c (p_language_defn): Likewise.
1153 * scm-lang.c (scm_language_defn): Likewise.
1154 * typeprint.c (type_to_string): New function.
1155 * value.h (type_to_string): New prototype.
1156 * valprint.c (val_print_string): Factor out code for reading string
1157 from the inferior into its own function. Put 2 spaces after period
1158 in comments.
1159 (read_string): New function.
1160 * valprint.h (read_string): New prototype.
1161
1162 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
1163 Tom Tromey <tromey@redhat.com>
1164
1165 PR breakpoints/8079:
1166 * breakpoint.c (print_one_breakpoint): Use exp_string field
1167 to display expression of watchpoints.
1168 (mention): Likewise.
1169 (watch_command_1): Remove trailing whitespace from expression.
1170 * printcmd.c (struct display) <exp_string>: New field.
1171 (display_command): Set exp_string.
1172 (free_display): Free exp_string.
1173 (clear_displays): Use free_display.
1174 (do_one_display): Print exp_string.
1175 (display_info): Likewise.
1176
1177 2009-02-04 Tom Tromey <tromey@redhat.com>
1178 Thiago Jung Bauermann <bauerman@br.ibm.com>
1179 Phil Muldoon <pmuldoon@redhat.com>
1180
1181 * python/python-internal.h (gdbpy_get_value_from_history): Rename
1182 prototype to gdbpy_history.
1183 (gdbpy_is_string): Declare.
1184 (python_string_to_host_string): Declare.
1185 * python/python-utils.c (gdbpy_is_string): New function.
1186 (unicode_to_encoded_string): New function.
1187 (unicode_to_target_string): Use it.
1188 (python_string_to_host_string): New function.
1189 * python/python-value.c (valpy_address): New function.
1190 (convert_value_from_python): Use gdbpy_is_string. Change to throw
1191 Python exception instead of a GDB exception on error. Properly check
1192 Python booleans.
1193 (valpy_getitem): Convert field name to host string. Handle array
1194 accesses. Adapt to new behaviour of convert_value_from_python.
1195 (valpy_new): Adapt to new behaviour of convert_value_from_python.
1196 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
1197 VALPY_BITXOR, VALPY_BITOR>: New constants.
1198 (valpy_binop): Update. Adapt to new behaviour of
1199 convert_value_from_python.
1200 (valpy_invert): New function.
1201 (valpy_lsh): Likewise.
1202 (valpy_rsh): Likewise.
1203 (valpy_and): Likewise.
1204 (valpy_or): Likewise.
1205 (valpy_xor): Likewise.
1206 (valpy_richcompare): Call convert_value_from_python instead of doing
1207 conversions itself.
1208 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
1209 (gdbpy_get_value_from_history): Rename
1210 function to gdbpy_history.
1211 (gdbpy_initialize_values): Don't set tp_new.
1212 (value_object_type): Add valpy_new.
1213 (value_object_methods): Add `address' entry.
1214 (value_object_as_number): Update for new methods.
1215 * python/python.c (GdbMethods): Rename entry from
1216 `get_value_from_history' to `history'.
1217
1218 2009-02-04 Jerome Guitton <guitton@adacore.com>
1219
1220 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
1221 of type to guard against a crash.
1222
1223 2009-02-04 Jerome Guitton <guitton@adacore.com>
1224
1225 * value.c (value_from_contents_and_address): Always return
1226 a lval_memory value, even if address is null.
1227
1228 2009-02-04 Tristan Gingold <gingold@adacore.com>
1229
1230 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
1231 (amd64_darwin_sigcontext_addr): Ditto.
1232 (darwin_dwarf_signal_frame_p): Ditto.
1233 (i386_darwin_init_abi): Handle signal frames, use the const for
1234 sc_num_regs.
1235 (x86_darwin_init_abi_64): Ditto.
1236
1237 2009-02-04 Tristan Gingold <gingold@adacore.com>
1238
1239 * i386-tdep.c (i386_sigtramp_p): Make it public.
1240 * i386-tdep.h (i386_sigtramp_p): Declare.
1241
1242 2009-02-04 Tristan Gingold <gingold@adacore.com>
1243
1244 * machoread.c (macho_symfile_read): Read minsymtab also from
1245 shared libraries.
1246 (macho_symfile_read): Try to read dwarf2 frame info from main
1247 object file, but not from OSO files.
1248 (macho_symfile_offsets): Update section names for latest BFD
1249 changes.
1250 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
1251 (x86_darwin_init_abi_64): Ditto.
1252 * solib-darwin.c: New file.
1253 * solib-darwin.h: New file.
1254 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
1255
1256 2009-02-04 Tristan Gingold <gingold@adacore.com>
1257
1258 * solist.h (struct target_so_ops): Comment fallback behavior for
1259 operation same.
1260
1261 2009-02-03 Tom Tromey <tromey@redhat.com>
1262
1263 * completer.c (add_struct_fields): Check type_name against NULL
1264 before use.
1265
1266 2009-02-03 Joel Brobecker <brobecker@adacore.com>
1267
1268 * MAINTAINERS: Update Elena's email address.
1269
1270 2009-02-02 Joel Brobecker <brobecker@adacore.com>
1271
1272 * breakpoint (update_watchpoint): Minor comment adjustment.
1273
1274 2009-02-02 Tom Tromey <tromey@redhat.com>
1275
1276 PR gdb/9594:
1277 * completer.c (count_struct_fields): Count method names.
1278 (add_struct_fields): Add matching method names.
1279
1280 2009-02-02 Doug Evans <dje@google.com>
1281
1282 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
1283 doing any further tcl/tk configury. Don't configure gdbtk if
1284 tcl or tk check fails.
1285 * aclocal.m4: Regenerate.
1286 * configure: Regenerate.
1287
1288 2009-02-02 Tom Tromey <tromey@redhat.com>
1289
1290 PR exp/9059:
1291 * valops.c (find_overload_match): Follow typedefs before taking
1292 address of object argument.
1293
1294 2009-02-01 Doug Evans <dje@google.com>
1295
1296 * target.h (target_waitstatus_to_string): Declare.
1297 * target.c (target_waitstatus_to_string): New function. Copied from
1298 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
1299 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
1300 TARGET_WAITKIND_NO_HISTORY.
1301 (debug_to_wait): Call it.
1302 * infrun.c (wait_for_inferior): If debug_infrun, print result of
1303 target_wait.
1304 (fetch_inferior_event): Ditto.
1305
1306 2009-01-30 Tom Tromey <tromey@redhat.com>
1307
1308 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
1309
1310 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
1311
1312 PR 8145.
1313 * thread.c (do_captured_list_thread_ids): Report the current
1314 thread id.
1315
1316 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
1317
1318 * breakpoint.c (create_breakpoint, create_breakpoints)
1319 (break_command_really, set_breakpoint): New parameter enabled.
1320 (create_breakpoint, break_command_really): Make breakpoint
1321 disabled if so requested.
1322 * breakpoint.h (set_breakpoint): New parameter enabled.
1323 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
1324
1325 2009-01-28 Doug Evans <dje@google.com>
1326
1327 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
1328 (amd64_displaced_step_fixup): Declare.
1329 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
1330 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
1331 and make static global.
1332 (amd64_arch_regmap_len): New static global.
1333 (amd64_arch_reg_to_regnum): New function.
1334 (struct amd64_insn): New struct.
1335 (struct displaced_step_closure): New struct.
1336 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
1337 (rex_prefix_p,skip_prefixes)
1338 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
1339 (amd64_insn_length,amd64_get_unused_input_int_reg)
1340 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
1341 (amd64_displaced_step_copy_insn)
1342 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
1343 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
1344 (amd64_displaced_step_fixup): New functions.
1345 * amd64-linux-tdep.c: #include arch-utils.h.
1346 (amd64_linux_init_abi): Install displaced stepping support.
1347
1348 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1349 Jerome Guitton <guitton@adacore.com>
1350
1351 * configure, config.in: Regenerated.
1352 * configure.ac: Add --with-system-gdbinit.
1353 * main.c (get_init_files): New.
1354 (captured_main): Use get_init_files. Load system gdbinit before
1355 $HOME/.gdbinit.
1356 (print_gdb_help): Print location of init files.
1357
1358 2009-01-28 Pedro Alves <pedro@codesourcery.com>
1359
1360 * corefile.c (generic_search): Delete disabled code.
1361 * gdbcore.h (generic_search): Delete declaration.
1362
1363 2009-01-26 Pedro Alves <pedro@codesourcery.com>
1364
1365 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
1366 parent to the child.
1367 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1368 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
1369 remove_breakpoints to remove breakpoints from the parent.
1370
1371 2009-01-26 Pedro Alves <pedro@codesourcery.com>
1372
1373 PR backtrace/9458, PR backtrace/8864:
1374 * frame.c (create_new_frame): Update the frame's cached PC before
1375 finding its unwinder. Use frame_id_build to build the new frame's
1376 id.
1377 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
1378 array values from the ``args'' array values.
1379
1380 2009-01-26 Pedro Alves <pedro@codesourcery.com>
1381
1382 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
1383 (create_array_type, create_set_type, init_flags_type)
1384 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
1385 with a call to XZALLOC or XCALLOC, and pairs of calls to
1386 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
1387
1388 2009-01-26 Pedro Alves <pedro@codesourcery.com>
1389
1390 Add "maint set|show internal-error|internal-warning quit|corefile
1391 ask|yes|no" commands.
1392
1393 PR gdb/7580:
1394 * utils.c (internal_problem_ask, internal_problem_yes)
1395 (internal_problem_no, internal_problem_modes): New.
1396 (struct internal_problem): Remove FIXME. Make should_quit and
1397 should_dump_core types to char *.
1398 (internal_vproblem, internal_error_problem)
1399 (internal_warning_problem): Adjust.
1400 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
1401 functions.
1402 (add_internal_problem_command): New.
1403 (_initialize_utils): New.
1404
1405 2009-01-25 Pedro Alves <pedro@codesourcery.com>
1406
1407 * infcmd.c (program_info): Use paddress instead of casting stop_pc
1408 to unsigned long.
1409
1410 2009-01-24 Pedro Alves <pedro@codesourcery.com>
1411
1412 * infrun.c (normal_stop): Don't call
1413 deprecated_update_frame_pc_hack.
1414 * frame.c (deprecated_update_frame_pc_hack)
1415 (deprecated_update_frame_base_hack): Delete, and ...
1416 (create_new_frame): ... inline here.
1417 * frame.h (deprecated_update_frame_pc_hack)
1418 (deprecated_update_frame_base_hack): Delete declarations.
1419
1420 2009-01-23 Pedro Alves <pedro@codesourcery.com>
1421
1422 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
1423 * cli/cli-setshow.c (do_setshow_command): Handle it.
1424 * command.h (enum var_types): Add var_zuinteger.
1425 (add_setshow_zuinteger_cmd): Declare.
1426
1427 * valprint.c (_initialize_valprint): Change the set input-radix
1428 and set output-radix commands to zuinteger type.
1429
1430 2009-01-23 Pedro Alves <pedro@codesourcery.com>
1431
1432 PR gdb/9664:
1433 * infrun.c (normal_stop): Tag threads as stopped, and run the
1434 hook-stop before printing the stack frame.
1435
1436 2009-01-22 Pedro Alves <pedro@codesourcery.com>
1437
1438 PR c++/9631:
1439 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
1440 vbasetype.
1441
1442 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
1443
1444 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
1445 unsigned long.
1446
1447 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1448
1449 PR gdb/9346
1450 * infcmd.c (signal_command): Do not specify a resume PC.
1451
1452 2009-01-19 Doug Evans <dje@google.com>
1453
1454 * dummy-frame.c (dummy_frame): Replace regcache member with
1455 caller_state.
1456 (dummy_frame_push): Replace caller_regcache arg with caller_state.
1457 All callers updated.
1458 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
1459 (dummy_frame_pop): Rewrite. Verify requested frame is in the
1460 dummy frame stack. Restore program state.
1461 (cleanup_dummy_frames): Rewrite.
1462 (dummy_frame_sniffer): Update. Make static.
1463 * dummy-frame.h (regcache,frame_info): Delete forward decls.
1464 (inferior_thread_state): New forward decl.
1465 (dummy_frame_push): Update prototype.
1466 * frame.c (frame_pop): dummy_frame_pop now does all the work for
1467 DUMMY_FRAMEs.
1468 * infcall.c (breakpoint_auto_delete_contents): Delete.
1469 (get_function_name,run_inferior_call): New fns.
1470 (call_function_by_hand): Simplify by moving some code to
1471 get_function_name, run_inferior_call. Inferior function call wrapped
1472 in TRY_CATCH so there's less need for cleanups and all exits from
1473 proceed are handled similarily. Detect program exit.
1474 Detect program stopping in a different thread.
1475 Make error messages more consistent.
1476 * inferior.h (inferior_thread_state): Declare (opaque type).
1477 (save_inferior_thread_state,restore_inferior_thread_state,
1478 make_cleanup_restore_inferior_thread_state,
1479 discard_inferior_thread_state, get_inferior_thread_state_regcache):
1480 Declare.
1481 (save_inferior_status): Update prototype.
1482 * infrun.c: (normal_stop): When stopped for the completion of an
1483 inferior function call, verify the expected stack frame kind.
1484 (inferior_thread_state): New struct.
1485 (save_inferior_thread_state,restore_inferior_thread_state,
1486 do_restore_inferior_thread_state_cleanup,
1487 make_cleanup_restore_inferior_thread_state,
1488 discard_inferior_thread_state,
1489 get_inferior_thread_state_regcache): New functions.
1490 (inferior_status): Move stop_signal, stop_pc, registers to
1491 inferior_thread_state. Remove restore_stack_info.
1492 (save_inferior_status): Remove arg restore_stack_info.
1493 All callers updated. Remove saving of state now saved by
1494 save_inferior_thread_state.
1495 (restore_inferior_status): Remove restoration of state now done by
1496 restore_inferior_thread_state.
1497 (discard_inferior_status): Remove freeing of registers, now done by
1498 discard_inferior_thread_state.
1499
1500 2009-01-18 Pedro Alves <pedro@codesourcery.com>
1501
1502 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
1503 at a time, times NUM_TO_SCROLL.
1504 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
1505 fetch the selected frame if there is no stack.
1506
1507 2009-01-18 Pedro Alves <pedro@codesourcery.com>
1508
1509 PR gdb/9747:
1510 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
1511 Declare.
1512 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
1513 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
1514 is thrown while handling an event, finish the thread state.
1515 (normal_stop): Use finish_thread_state cleanup.
1516 * infcmd.c (run_command_1): If an error is thrown while starting
1517 the inferior, finish the thread state.
1518
1519 2009-01-18 Pedro Alves <pedro@codesourcery.com>
1520
1521 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
1522 skip breakpoints without a location (pending breakpoints).
1523
1524 2009-01-18 Pedro Alves <pedro@codesourcery.com>
1525
1526 PR build/9186:
1527 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
1528
1529 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
1530
1531 * thread.c (thread_command): Move call to annotate_thread_changed
1532 to...
1533 (do_captured_thread_select): ... here, to avoid printing an
1534 annotation if the thread change generates an exception.
1535
1536 2009-01-16 Joel Brobecker <brobecker@adacore.com>
1537
1538 * NEWS: Document x86_64/MinGW as a new native configuration.
1539
1540 2009-01-16 Joel Brobecker <brobecker@adacore.com>
1541
1542 * NEWS: Move the documentation of "info os processes" to
1543 the appropriate section (documenting the new commands).
1544
1545 2009-01-15 Doug Evans <dje@google.com>
1546
1547 * target.h (target_signal_to_string): Make return type const char *.
1548 (target_signal_to_name): Ditto.
1549 (target_signal_from_name): Make arg const char *.
1550 * infrun.c (sig_print_info): Update.
1551 * signals/signals.c (signals): Make array and struct members const.
1552 (target_signal_to_string): Make return type const char *.
1553 (target_signal_to_name): Ditto.
1554 (target_signal_from_name): Make arg const char *.
1555
1556 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
1557 Tristan Gingold <gingold@adacore.com>
1558
1559 * solist.h (struct target_so_ops): New member bfd_open.
1560 (solib_find): Add prototype.
1561 (solib_bfd_fopen): Add prototype.
1562 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
1563 from solib_bfd_open.
1564 (solib_bfd_open): Use ops->bfd_open override if present. Call
1565 solib_find and solib_bfd_open otherwise.
1566
1567 * objfiles.h (OBJF_KEEPBFD): New define.
1568 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
1569 objfile flag is set.
1570 * solib.c (symbol_add_stub): Do not allocate second BFD for
1571 shared library; use OBJF_KEEPBFD flag on solib objfile.
1572
1573 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
1574
1575 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
1576
1577 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
1578
1579 * value.h (address_of_variable): Add prototype.
1580 (locate_var_value): Remove prototype.
1581
1582 * findvar.c (read_var_value): Do not attempt to default frame
1583 to selected frame.
1584 (locate_var_value): Remove function.
1585 * valops.c (value_of_variable): Retrieve selected frame for
1586 symbols that require a frame when called with NULL block.
1587 * valops.c (address_of_variable): New function.
1588
1589 * eval.c (evaluate_subexp_for_address): Call address_of_variable
1590 instead of calling locate_var_value.
1591 (evaluate_subexp_with_coercion): Likewise.
1592
1593 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
1594
1595 * NEWS: Document "define" for prefixed commands.
1596 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
1597 show_user_1 for prefix commands.
1598 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
1599 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
1600 commands. Return the containing command list.
1601 (define_command, document_command): Update to handle prefix commands.
1602 (show_user_1): Add prefix and name arguments. Handle prefix
1603 commands.
1604 * cli/cli-script.h (show_user_1): Update prototype.
1605
1606 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
1607
1608 * mingw-ser.c (console_select_thread): Add return to make
1609 compiler happy.
1610 (pipe_select_thread): Likewise.
1611 (file_select_thread): Likewise.
1612
1613 2009-01-14 Pedro Alves <pedro@codesourcery.com>
1614
1615 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
1616 previous change.
1617
1618 2009-01-14 Pedro Alves <pedro@codesourcery.com>
1619
1620 * remote.c (extended_remote_mourn_1): Invalidate our notion of
1621 current general thread.
1622
1623 2009-01-14 Pedro Alves <pedro@codesourcery.com>
1624
1625 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
1626 without a live selected thread.
1627
1628 2009-01-14 Joel Brobecker <brobecker@adacore.com>
1629
1630 Update the copyright notice of some of the files I missed
1631 in the previous copyright update.
1632
1633 2009-01-14 Joel Brobecker <brobecker@adacore.com>
1634
1635 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
1636 base address instead of casting it to DWORD.
1637
1638 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
1639
1640 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
1641 for NULL frame pointers.
1642
1643 2009-01-13 Mark Kettenis <kettenis@gnu.org>
1644
1645 * utils.c (host_address_to_string): Reimplement in a way that
1646 avoids the cast of the address to long.
1647
1648 2009-01-13 Joel Brobecker <brobecker@adacore.com>
1649
1650 * mdebugread.c (parse_symbol): Save the symbol private data
1651 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
1652 (psymtab_to_symtab_1): Likewise.
1653 (parse_procedure): Declare variable "e" only in the scope
1654 where it is used. Extract the symbol private data using
1655 SYMBOL_VALUE_BYTES.
1656
1657 2009-01-13 Jim Blandy <jimb@codesourcery.com>
1658
1659 Abstract out common code for copying value locations.
1660
1661 * value.h (set_value_component_location): New declaration.
1662 * value.c (set_value_component_location): New function.
1663 (value_primitive_field): Use it.
1664 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
1665 * valops.c (search_struct_field, value_slice): Same.
1666 * ada-lang.c (coerce_unspec_val_to_type)
1667 (ada_value_primitive_packed_val): Same.
1668
1669 2009-01-13 Joel Brobecker <brobecker@adacore.com>
1670
1671 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
1672
1673 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
1674
1675 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
1676 throughout.
1677 * i386-cygwin-tdep.c: Ditto.
1678 * i386-windows-nat.c: Ditto.
1679 * windows-nat.h: Ditto.
1680 * windows-tdep.c: Ditto.
1681 * windows-tdep.h: Ditto.
1682 * windows-nat.c: Ditto.
1683 (cygwin_load_start): Redefine as CORE_ADDR.
1684 (cygwin_load_end): Ditto.
1685 (windows_make_so): Coerce result of address arithmetic to uintptr_t
1686 before coercing to CORE_ADDR to avoid a compiler warning.
1687 (handle_exception): Define addr as CORE_ADDR and coerce
1688 ExceptionAddress to uintptr_t before assigining to avoid a compiler
1689 warning.
1690 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
1691 files.
1692
1693 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1694
1695 Fix linking with --enable-targets=all:
1696 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
1697 (HFILES_NO_SRCDIR): Add windows-tdep.h.
1698 (ALLDEPFILES): Add windows-tdep.c.
1699
1700 2009-01-11 Christ Faylor <me.gdb@cgf.cx>
1701
1702 * win32-nat.h: Delete.
1703 * windows-nat.h: Rename from win32-nat.h.
1704 * win32-nat.c: Delete.
1705 * windows-nat.c: Rename from win32-nat.c.
1706 * win32-termcap.c: Delete.
1707 * windows-termcap.c: Rename from win32-termcap.c.
1708 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
1709 * configure.ac: Handle rename from win32-termcap.c ->
1710 windows-termcap.c.
1711 * configure: Regenerate.
1712 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
1713 -> windows-termcap.c.
1714 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
1715 windows-tdep.h.
1716 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
1717 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
1718 windows-tdep.h.
1719 (win32_make_so): Handle cygwin compiler warning due to change of
1720 load_addr from DWORD to LPVOID.
1721 (handle_load_dll): Use %p in format string to properly print address
1722 and avoid a compiler warning.
1723 (DEBUG_EXCEPTION_SIMPLE): Ditto.
1724 (handle_exception): Ditto.
1725 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
1726 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
1727 windows-nat.o.
1728 * config/i386/mingw.mh: Ditto.
1729 * config/i386/mingw64.mh: Ditto.
1730
1731 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
1734 arrayprint_recurse_level to a parameter. Update all the callers. New
1735 comment at autovariables.
1736
1737 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1738
1739 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
1740 coding style.
1741
1742 2009-01-11 Joel Brobecker <brobecker@adacore.com>
1743
1744 * target.c (target_xfer_partial): Use host_address_to_string to
1745 print the address of readbuf and writebuf. Cast the address of
1746 elements inside the myaddr buffer into intptr_t.
1747 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
1748 Cast the address of elements inside the myaddr buffer into
1749 intptr_t.
1750
1751 2009-01-11 Joel Brobecker <brobecker@adacore.com>
1752
1753 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
1754 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
1755 * configure.host, configure.tgt: Add handling for x86_64/windows.
1756 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
1757 and amd64-windows-tdep.c.
1758
1759 2009-01-11 Joel Brobecker <brobecker@adacore.com>
1760
1761 * win32-tdep.h, win32-tdep.c: New files.
1762 * i386-cygwin-tdep.h: Delete.
1763 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
1764 i386-cygwin-tdep.h.
1765 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
1766 * win32-nat.c: Likewise.
1767 * configure.tgt: Add win32-tdep.o to the list of target object
1768 files for i386-cygwin and i386-mingw targets.
1769
1770 2009-01-11 Joel Brobecker <brobecker@adacore.com>
1771
1772 * win32-nat.h: New file.
1773 * win32-nat.c (mappings): Initialize to NULL.
1774 (win32_set_context_register_offsets): New function.
1775 * i386-windows-nat.c: New file.
1776 (mappings): Moved here from win32-nat.c.
1777 (_initialize_i386_windows_nat): New function.
1778 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
1779 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
1780
1781 2009-01-09 Andreas Schwab <schwab@suse.de>
1782
1783 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
1784
1785 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1786
1787 * gdbtypes.c (append_composite_type_field): Correct the location of
1788 appended fields.
1789
1790 2009-01-09 Pedro Alves <pedro@codesourcery.com>
1791
1792 * defs.h (deprecated_error_hook): Delete declaration.
1793 * interps.c (clear_interpreter_hooks): Adjust.
1794 * remote-sim.c (gdb_os_error): Don't try to call
1795 deprecated_error_hook. No need to call exit anymore.
1796 * top.c (deprecated_error_hook): Delete.
1797
1798 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1799
1800 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
1801 to print the address of the gdbarch pointer.
1802
1803 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1804
1805 * gdbarch.sh: Fix all the compilation errors on amd64-windows
1806 due to casting a pointer to a long when printing a function
1807 address. Instead, use host_address_to_string to convert our
1808 address to a string.
1809 * gdbarch.c: Regenerate.
1810
1811 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1812
1813 * event-top.c (async_disconnect, async_stop_sig): use "raise"
1814 instead of "kill" to raise a signal.
1815
1816 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1817
1818 * win32-nat.c (get_module_name): Change the type of parameter
1819 "base_address" to LPVOID. Remove unnecessary cast.
1820 (struct lm_info): Change type of load_addr to LPVOID.
1821 (win32_make_so): Change the type of parameter "load_addr"
1822 to LPVOID. Remove some unnecessary casts.
1823 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
1824 (win32_xfer_shared_libraries): Add missing cast.
1825
1826 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1827
1828 * win32-nat.c (has_detach_ability, set_process_privilege):
1829 Cast the result of GetProcAddress to (void *) to avoid
1830 a compilation warning.
1831
1832 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1833
1834 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
1835 already defined.
1836
1837 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1838
1839 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
1840 definition of local variable "done".
1841 (info_w32_command, handle_exception): Remove unnecessary cast.
1842
1843 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1844
1845 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
1846 DebugSetProcessKillOnExit. Update all uses in this file.
1847 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
1848 Update all uses in this file.
1849
1850 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1851
1852 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
1853 and use it when pushing the target.
1854 (win32_attach, win32_create_inferior): Update call to
1855 do_initial_win32_stuff.
1856 (win32_detach, win32_mourn_inferior): Use our ops parameter
1857 instead of the global win32_ops to unpush the target.
1858
1859 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1860
1861 * ser-mingw.c (ser_windows_open): Use proper type when casting
1862 in call to _open_osfhandle.
1863
1864 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
1865
1866 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
1867
1868 2009-01-09 Joel Brobecker <brobecker@adacore.com>
1869
1870 * CONTRIBUTE: Minor reformatting.
1871
1872 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1873
1874 * MAINTAINERS: Add myself to Write After Approval.
1875 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
1876 export directory.
1877
1878 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
1879
1880 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
1881 Call exit to make it obvious to GCC.
1882
1883 2009-01-08 Tom Tromey <tromey@redhat.com>
1884
1885 PR breakpoints/9350:
1886 * varobj.c (varobj_invalidate): Unconditionally free
1887 all_rootvarobj.
1888 * symfile.c (syms_from_objfile): Free local_addr when returning
1889 normally.
1890 * exec.c (exec_file_attach): Do cleanups before returning.
1891 (exec_file_command): Likewise.
1892 * corefile.c (reopen_exec_file): Do cleanups before returning.
1893 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
1894 returning.
1895 (do_vec_free): New function.
1896 (update_global_location_list): Make a cleanup for old_locations.
1897 Do cleanups before returning. Remove unused variable 'e'.
1898 (find_condition_and_thread): Free result of parsing the
1899 expression.
1900 (print_it_typical): Do cleanups before returning.
1901 (breakpoint_re_set_one): Always free sals.sals.
1902
1903 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1904 Emi Suzuki <emi-suzuki@tjsys.co.jp>
1905
1906 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
1907 watchpoints.
1908
1909 2009-01-07 Doug Evans <dje@google.com>
1910
1911 * top.c (gdb_prompt_string): Delete, unused.
1912
1913 2009-01-07 Pedro Alves <pedro@codesourcery.com>
1914
1915 Delete ONE_PROCESS_WRITETEXT leftovers.
1916
1917 * breakpoint.c (insert_bp_location): Delete process_warning
1918 argument. Adjust.
1919 (insert_breakpoint_locations): Adjust.
1920 (reattach_breakpoints): Adjust.
1921 * infrun.c (normal_stop): Drop "It might be running in another
1922 process" notice.
1923
1924 2009-01-07 Stan Shebs <stan@codesourcery.com>
1925
1926 * config/pa/linux.mh (XDEPFILES): Remove.
1927
1928 2009-01-07 Doug Evans <dje@google.com>
1929
1930 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
1931
1932 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1933
1934 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
1935 spacing, a regression from 2008-04-22.
1936
1937 2009-01-07 Joel Brobecker <brobecker@adacore.com>
1938
1939 * utils.c (gdb_print_host_address): Adjust implementation to
1940 reuse host_address_to_string. Move comment explaining the conversion
1941 from host address to string from here...
1942 (host_address_to_string): ... to there.
1943
1944 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
1945
1946 * MAINTAINERS: Add myself for write after approval privileges.
1947
1948 2009-01-06 Tom Tromey <tromey@redhat.com>
1949
1950 * value.c (set_internalvar): Use value_free, not xfree.
1951
1952 2009-01-06 Jim Blandy <jimb@red-bean.com>
1953
1954 Check return values of functions declared with warn_unused_result
1955 attribute in GLIBC 2.8.
1956 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
1957 * inflow.c (check_syscall): New function.
1958 (new_tty): Use check_syscall to check return values from open and dup.
1959 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
1960 * main.c (captured_main): Call cwd after setting up gdb_stderr;
1961 check for errors from getcwd.
1962 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
1963 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
1964 (stdio_file_fputs): Same.
1965 * utils.c (internal_vproblem): abort if last-ditch error message
1966 write fails.
1967
1968 * top.c (gdb_init): Don't set the current directory here; that's
1969 already been done in captured_main.
1970
1971 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
1972
1973 * ser-tcp.c: Adjust includes.
1974 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
1975 (tcp_auto_retry, tcp_retry_limit): Declare.
1976 (TIMEOUT): Remove, in favor of tcp_retry_limit.
1977 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
1978 (wait_for_connect): New function.
1979 (net_open): Use it. Add auto-retry logic.
1980 (set_tcp_cmd, show_tcp_cmd): New functions.
1981 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
1982 and "set/show tcp connect-timeout" commands.
1983 * NEWS: Document new commands.
1984
1985 2009-01-05 Tom Tromey <tromey@redhat.com>
1986
1987 * python/python-internal.h (Py_ssize_t): Define as int.
1988
1989 2009-01-05 Jim Blandy <jimb@red-bean.com>
1990
1991 * MAINTAINERS: Fix my e-mail address as steering committee member.
1992
1993 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1994
1995 Updated copyright notices for most files.
1996
1997 2009-01-03 Joel Brobecker <brobecker@adacore.com>
1998
1999 * top.c (print_gdb_version): Update copyright year.
2000
2001 2009-01-03 Joel Brobecker <brobecker@adacore.com>
2002
2003 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
2004
2005 2009-01-01 Pedro Alves <pedro@codesourcery.com>
2006
2007 PR breakpoints/9681:
2008 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
2009 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
2010 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
2011 retrow all other exceptions.
2012
2013 For older changes see ChangeLog-2008.
2014 \f
2015 Local Variables:
2016 mode: change-log
2017 left-margin: 8
2018 fill-column: 74
2019 version-control: never
2020 coding: utf-8
2021 End: