[obvious] Kill left-over merge marker
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
2 Keith Seitz <keiths@redhat.com>
3 Jan Kratochvil <jan.kratochvil@redhat.com>
4
5 PR gdb/6817
6 * Makefile.in (dbxread.o): Update.
7 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
8 * dwarf2read.c (GDB_FORM_cached_string): New.
9 (read_partial_die): Use dwarf2_canonicalize_name.
10 (dwarf2_linkage_name): Use dwarf2_name.
11 (dwarf2_canonicalize_name): New.
12 (dwarf2_name): Use dwarf2_canonicalize_name.
13 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
14 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
15 * symtab.c (lookup_symbol_in_language): Canonicalize input before
16 searching.
17 * cp-name-parser.y: operator() requires two parameters,
18 according to libiberty.
19 * minsyms.c (lookup_minimal_symbol): Canonicalize input
20 before searching.
21 * NEWS: Update.
22
23 2009-03-31 Joel Brobecker <brobecker@adacore.com>
24
25 Provide support for (Ada) task-specific breakpoints.
26
27 * ada-lang.h (ada_get_task_number): Add declaration.
28 (breakpoint_ada_task_match): Delete declaration.
29 * ada-tasks.c (ada_get_task_number): Make non-static.
30 * breakpoint.h (struct breakpoint): Add field "task".
31 * breakpoint.c (print_one_breakpoint_location): Add handling of
32 task-specific breakpoints.
33 (create_breakpoint, create_breakpoints, find_condition_and_thread):
34 New parameter "task".
35 (break_command_really): Update calls to find_condition_and_thread
36 and create_breakpoints.
37 (breakpoint_re_set_one): Update call to find_condition_and_thread.
38 Set b->task.
39
40 2009-03-31 Joel Brobecker <brobecker@adacore.com>
41
42 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
43
44 2009-03-31 Pedro Alves <pedro@codesourcery.com>
45
46 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
47 if the thread's ptid without a thread id field is in the list
48 before calling thread_change_ptid.
49 (extended_remote_attach_1): In non-stop mode, do not rely on
50 querying the current thread, instead, query the thread list, and
51 select the first thread of the process.
52 * gdbthread.h (first_thread_of_process): Declare.
53 * thread.c (first_thread_of_process): Define.
54
55 2009-03-30 Stan Shebs <stan@codesourcery.com>
56
57 Make tracepoints into a type of breakpoint.
58 * breakpoint.h (enum bptype): Add bp_tracepoint.
59 (struct breakpoint): Add fields step_count, pass_count, actions.
60 (get_tracepoint, get_tracepoint_by_number): Declare.
61 (all_tracepoints): Declare.
62 * breakpoint.c: Include tracepoint.h, readline.h.
63 (ALL_TRACEPOINTS): Move here from tracepoint.c.
64 (tracepoint_count): Ditto.
65 (should_be_inserted): GDB does not insert tracepoints itself.
66 (print_it_typical): Add tracepoint case.
67 (bpstat_what): Ditto.
68 (print_one_breakpoint_location): Ditto, and add printing for
69 pass count, step count, and action list.
70 (user_settable_breakpoint): Add tracepoint case.
71 (allocate_bp_location): Ditto.
72 (set_breakpoint_location_function): Ditto.
73 (disable_breakpoints_in_shlibs): Ditto.
74 (mention): Ditto.
75 (break_command_really): Add argument traceflag, use to choose
76 basic breakpoint type.
77 (break_command_1): Pass extra argument.
78 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
79 (breakpoint_re_set_one): Add tracepoint case.
80 (disable_command, enable_command): Ditto.
81 (set_tracepoint_count): Move here from tracepoint.c.
82 (trace_command): Move here from tracepoint.c and use
83 break_command_really.
84 (tracepoints_info): Move here from tracepoint.c and call
85 breakpoints_info.
86 (enable_trace_command): Move here from tracepoint.c and call
87 enable_command.
88 (disable_trace_command): Move here from tracepoint.c and call
89 disable_command.
90 (delete_trace_command): Move here from tracepoint.c and call
91 delete_breakpoint.
92 (trace_pass_command): Move here from tracepoint.c.
93 (get_tracepoint_by_number): Ditto.
94 (tracepoint_save_command): Ditto.
95 (get_tracepoint): New function.
96 (all_tracepoints): New function.
97 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
98 deprecate "enable trace" and "disable trace" commands.
99 * tracepoint.h (struct tracepoint): Remove.
100 (tracepoint_chain): Remove decl.
101 (deprecated_create_tracepoint_hook): Remove decl.
102 (deprecated_delete_tracepoint_hook): Remove decl.
103 (deprecated_modify_tracepoint_hook): Remove decl.
104 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
105 (free_actions): Update signature.
106 (validate_actionline): Update signature.
107 (end_actions_pseudocommand): Declare.
108 (while_stepping_pseudocommand): Declare.
109 * tracepoint.c: Include breakpoint.h.
110 (tracepoint_chain, tracepoint_count): Remove.
111 (free_actions, make_cleanup_free_actions): Update signature.
112 (trace_command, set_raw_tracepoint): Remove.
113 (trace_mention): Remove.
114 (tracepoints_info): Remove.
115 (tracepoint_operation, map_args_over_tracepoints): Remove.
116 (get_tracepoint_by_number): Remove.
117 (enable_trace_command, disable_trace_command): Remove.
118 (delete_trace_command, trace_pass_command): Remove.
119 (trace_actions_command, read_actions): Update signature.
120 (validate_actionline): Update signature, use bp loc.
121 (encode_actions): Ditto.
122 (download_tracepoint): New function, body of trace_start_command.
123 (trace_start_command): Call it, use all_tracepoints.
124 (tracepoint_save_command): Remove.
125 (tracepoint_dump_command): Use get_tracepoint.
126 (end_actions_pseudocommand): Make globally visible.
127 (while_stepping_pseudocommand): Ditto.
128 (_initialize_tracepoint): Move command definitions to breakpoint.c.
129
130 2009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
131
132 Expose frames to Python.
133 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
134 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
135 (python-frame.o): New target.
136 * python/python-frame.c: New file.
137 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
138 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
139 gdbpy_initialize_frames): New prototypes.
140 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
141 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
142 entries.
143 * stack.c (find_frame_funname): New function, factored out of
144 print_frame.
145 (print_frame): Call find_frame_funname.
146 * stack.h (find_frame_funname): Add prototype.
147
148 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
149
150 Remove unused value_object attribute `owned_by_gdb'.
151 * python/python-value.c (value_object): Remove owned_by_gdb
152 attribute.
153 (valpy_dealloc): Remove reference to self->owned_by_gdb.
154 (valpy_new): Likewise.
155 (value_to_value_object): Likewise.
156
157 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
158
159 Change gdb.Value.address from a method to an attribute.
160 * python/python-value.c (value_object): Add `address' element.
161 (valpy_dealloc): Decrement reference to self->address if set.
162 (valpy_new): Initialize val_obj->address.
163 (valpy_address): Rename to ...
164 (valpy_get_address): ... this. Change signature from method to
165 attribute. Update self->address if not set.
166 (value_to_value_object): Initialize val_obj->address.
167 (value_object_getset): Add `address' element.
168 (value_object_methods): Remove `address' element.
169
170 2009-03-29 Andreas Schwab <schwab@linux-m68k.org>
171
172 * observer.sh: Set LANG/LC_ALL to C, not c.
173
174 2009-03-28 Kevin Buettner <kevinb@redhat.com>
175
176 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
177 `char' is unsigned.
178
179 2009-03-28 Pedro Alves <pedro@codesourcery.com>
180
181 * remote.c (remote_stop_ns): If multi-process extensions are off,
182 and GDB is requesting the whole process to stop, sent "vCont;t",
183 not "vCont;t:-1"
184
185 2009-03-28 Pedro Alves <pedro@codesourcery.com>
186
187 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
188 null inferior_ptid.
189
190 2009-03-27 Eli Zaretskii <eliz@gnu.org>
191
192 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
193
194 2009-03-26 Doug Evans <dje@google.com>
195
196 * thread.c (do_restore_current_thread_cleanup): Redo test for
197 whether to restore old->inferior_ptid.
198
199 2009-03-26 Tom Tromey <tromey@redhat.com>
200
201 * breakpoint.c (resolve_sal_pc): Preserve original line number
202 when skipping prologue.
203
204 2009-03-26 Doug Evans <dje@google.com>
205
206 * thread.c (inferior_thread) Remove "extern" in definition.
207
208 2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
209
210 Add gdb.Value.is_optimized_out attribute.
211 * python/python-value.c (valpy_get_is_optimized_out): New
212 function.
213 (value_object_getset): New variable.
214 (value_object_type): Initialize tp_getset element.
215
216 2009-03-26 Joel Brobecker <brobecker@adacore.com>
217
218 Recognize missing DW_AT_location as <value optimized out>.
219 * dwarf2read.c
220 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
221 Call add_symbol_to_list.
222
223 2009-03-25 Tom Tromey <tromey@redhat.com>
224
225 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
226 * stack.c (print_this_frame_argument_p): Use check_typedef.
227
228 2009-03-25 Tom Tromey <tromey@redhat.com>
229
230 * configure: Rebuild.
231 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
232 Rearrange flags setting. Add comments.
233
234 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
235
236 * config/i386/nm-i386.h: Remove code within
237 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
238 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
239 macro.
240 * config/i386/nm-cygwin64.h: Ditto.
241 * config/i386/nm-fbsd.h: Ditto.
242 * config/i386/nm-go32.h: Ditto.
243 * config/i386/nm-linux.h: Ditto.
244 * config/i386/nm-linux64.h: Ditto.
245
246 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
247
248 ARI fix: "xasprintf" rule.
249 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
250
251 2009-03-25 Pedro Alves <pedro@codesourcery.com>
252
253 * remote.c (remote_start_remote): In non-stop mode, call
254 init_wait_for_inferior before adding threads and inferiors.
255
256 2009-03-25 Joel Brobecker <brobecker@adacore.com>
257
258 * breakpoint.c (breakpoint_thread_match): Split a large condition
259 into several smaller conditions. No behavior change.
260
261 2009-03-25 Pedro Alves <pedro@codesourcery.com>
262
263 * infrun.c (infrun_thread_thread_exit): New.
264 (_initialize_infrun): Attach it to the thread_exit observer.
265 * thread.c (delete_thread_1): Always call the observer, passing it
266 the silent flag.
267 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
268 SILENT, return immediately.
269
270 2009-03-25 Pedro Alves <pedro@codesourcery.com>
271
272 * infrun.c (normal_stop): Use has_stack_frames instead of
273 target_has_stack.
274 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
275 when there is no thread selected.
276 (mi_cmd_execute): Don't special case commands that can run without
277 a valid selected thread.
278 * top.c (execute_command): Don't special case commands that can
279 run without a valid selected thread. Use has_stack_frames.
280 * infcmd.c (ensure_valid_thread): New.
281 (continue_1, step_1, jump_command, signal_command): Use it.
282 (detach_command): Error out if there's no selected thread/inferior.
283 * thread.c (print_thread_info): Allow having no thread selected.
284 (switch_to_thread): Don't read the PC if there is no current thread.
285 (do_restore_current_thread_cleanup): Don't record the current
286 frame if there is no current thread.
287 (make_cleanup_restore_current_thread): Don't read frame info if
288 there is no selected thread.
289 (_initialize_thread): Don't mark commands as
290 "no_selected_thread_ok".
291 * frame.c (get_current_frame): Error out if there is no valid
292 selected thread.
293 (has_stack_frames): Return false if there is no valid
294 selected thread.
295 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
296 "no_selected_thread_ok".
297 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
298 (get_cmd_no_selected_thread_ok): Delete.
299 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
300 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
301 Delete declaration.
302 * stack.c (get_selected_block): Use has_stack_frames.
303
304 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
305
306 Fix size of FPSCR in Power 7 processors.
307 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
308 (PPC_FEATURE_HAS_DFP): New #define.
309 (ppc_linux_read_description): Check for DFP feature instead of
310 ISA 2.05 to decide on size of the FPSCR.
311
312 2009-03-25 Kevin Buettner <kevinb@redhat.com>
313
314 * mn10300-tdep.c (trad-frame.h): Don't include.
315 (prologue-value.h): Include.
316 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
317 (struct mn10300_prologue): Define.
318 (push_reg, translate_rreg, check_for_saved): New functions.
319 (mn10300_analyze_prologue): Rewrite, using prologue-value
320 machinery. Handle more instructions than before. Permit
321 instructions to occur in any order.
322 (mn10300_skip_prologue): Find the extents of the function
323 in question; mn10300_analyze_prologue no longer does this.
324 (mn10300_analyze_frame_prologue): New function.
325 (mn10300_frame_base): New function.
326 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
327 implementation.
328 (mn10300_frame_prev_register): Likewise.
329 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
330 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
331 `this_frame'.
332 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
333
334 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
335
336 Fix completer problem for filename completion on the first try.
337
338 * gdb/completer.h (gdb_completion_word_break_characters): New function.
339 * gdb/completer.c: Include gdb_assert.h.
340 (complete_line_internal_reason): New enum.
341 (complete_line_internal): Change last argument type to
342 complete_line_internal_reason.
343 Modify function to handle the different complete_line_internal_reason
344 argument values.
345 (complete_line): Adapt to change in complete_line_internal.
346 (command_completer): Ditto.
347 (gdb_completion_word_break_characters): Implement new function.
348 * top.c (init_main): Set rl_completion_word_break_hook to
349 gdb_completion_word_break_characters.
350
351
352 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
353
354 ARI fix: "strlen d_name" rule.
355 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
356
357
358 2009-03-24 Tom Tromey <tromey@redhat.com>
359 Pedro Alves <pedro@codesourcery.com>
360
361 * configure, config.in: Rebuild.
362 * configure.ac: Check for libiconvlist.
363 * charset.c: Check HAVE_LIBICONVLIST.
364 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
365 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
366 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
367 Remove.
368 (INTERNAL_CFLAGS_BASE): Update.
369 (INTERNAL_LDFLAGS): Update.
370 (CLIBS): Update.
371
372 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
373
374 * configure.ac: Initialize the variable $PREFER_CURSES.
375 * configure: Regenerated.
376
377 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
378
379 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
380 * configure: Regenerated.
381
382 2009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
383
384 ARI fix: "strerror" rule.
385 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
386 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
387
388 2009-03-23 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
391 before looking up the fields inside our struct type.
392
393 2009-03-23 Joel Brobecker <brobecker@adacore.com>
394
395 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
396 trying to resolve the type qualification.
397
398 2009-03-23 Joel Brobecker <brobecker@adacore.com>
399
400 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
401 we try to apply the attribute on the real type, rather than
402 its associated typedef.
403
404 2009-03-23 Joel Brobecker <brobecker@adacore.com>
405
406 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
407 to make sure we try to get the modulus of the actual type, not the
408 associated typedef.
409
410 2009-03-23 Joel Brobecker <brobecker@adacore.com>
411
412 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
413 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
414 to get the real type, not the associated typedef.
415
416 2009-03-23 Joel Brobecker <brobecker@adacore.com>
417
418 * ada-lang.c (ada_get_field_index): Add handling of the case
419 when TYPE is a typedef of a struct.
420
421 2009-03-23 Joel Brobecker <brobecker@adacore.com>
422
423 Add gdb_usleep as a portable version of usleep based on gdb_select.
424 * gdb_usleep.h, gdb_usleep.c: New files.
425 * Makefile.in (SFILES): Add gdb_usleep.c.
426 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
427 (COMMON_OBS): Add gdb_usleep.o.
428 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
429 by call to gdb_usleep.
430
431 2009-03-23 Joel Brobecker <brobecker@adacore.com>
432
433 * buildsym.c (end_symtab): If we ignore the subfiles, then
434 unlink the associated symtabs if they were already allocated.
435
436 2009-03-23 Jerome Guitton <guitton@adacore.com>
437
438 Provide a way to force building of GDB with libcurses.
439 * configure.ac: Add --with-curses.
440 * configure: Regenerated.
441
442 2009-03-23 Tom Tromey <tromey@redhat.com>
443
444 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
445 error message.
446
447 2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
448
449 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
450 solib_contains_address_p instead of searching.
451
452 2009-03-23 Tom Tromey <tromey@redhat.com>
453
454 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
455 (iconv): Make 'inbuf' argument const.
456 (convert_between_encodings): Use ICONV_CONST.
457 (wchar_iterate): Likewise.
458
459 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
460
461 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
462 dynamically loaded function.
463 (LookupPrivilegeValueA): Ditto.
464 (OpenProcessToken): Ditto.
465 (AdjustTokenPrivileges): Rename and define placeholder for address of
466 dynamically loaded function.
467 (LookupPrivilegeValueA): Ditto.
468 (OpenProcessToken): Ditto.
469 (set_process_privilege): Remove check for loaded functions.
470 (bad_OpenProcessToken): Define.
471 (_initialize_loadable): Load token functions from advapi here, setting
472 OpenProcessToken function to a dummy static function which always return
473 error if OS doesn't support this functionality.
474
475 2009-03-22 Nicolas Roche <roche@adacore.com>
476 Christopher Faylor <me+cygwin@cgf.cx>
477
478 * win32-nat.c (ctrl_c_handler): New function.
479 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
480 is run in a separate console.
481
482 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
483
484 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
485 for dynamically loaded function.
486 (DebugBreakProcess): Ditto.
487 (DebugSetProcessKillOnExit): Ditto.
488 (EnumProcessModules): Ditto.
489 (GetModuleFileNameExA): Ditto.
490 (GetModuleInformation): Ditto.
491 (DebugActiveProcessStop): Rename and define placeholder for address of
492 dynamically loaded function.
493 (DebugBreakProcess): Ditto.
494 (DebugSetProcessKillOnExit): Ditto.
495 (EnumProcessModules): Ditto.
496 (GetModuleFileNameExA): Ditto.
497 (GetModuleInformation): Ditto.
498 (psapi_loaded): Delete.
499 (get_module_name): Don't check psapi_loaded, just rely on the fact that
500 dynamically loaded functions will return failure if they weren't
501 previously found.
502 (has_detach_ability): Delete.
503 (windows_attach): Remove call to has_detach_ability (). Just rely on
504 functions being callable.
505 (bad_DebugActiveProcessStop): Define.
506 (bad_DebugBreakProcess): Ditto.
507 (bad_DebugSetProcessKillOnExit): Ditto.
508 (bad_EnumProcessModules): Ditto.
509 (bad_GetModuleFileNameExA): Ditto.
510 (bad_GetModuleInformation): Ditto.
511 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
512 dynamic storage here, setting nonexistent functions to dummy static
513 functions which always return error.
514
515 2009-03-22 Pedro Alves <pedro@codesourcery.com>
516
517 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
518 to the about_to_proceed observer notification.
519 (mi_about_to_proceed): New.
520 (mi_on_resume): Only output ^running and the prompt here if the
521 target was proceeded.
522 * breakpoint.c (breakpoint_proceeded): New static.
523 (breakpoint_about_to_proceed): New.
524 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
525 the about_to_proceed observer notification.
526 * inferior.h (breakpoint_proceeded): Delete declaration.
527 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
528 Notify the about_to_proceed observers.
529 (struct inferior_status): Delete breakpoint_proceeded member.
530 (save_inferior_status): Don't save it.
531 (restore_inferior_status): Don't restore it.
532 * mi-main.h (mi_proceeded): Declare.
533 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
534 a command.
535
536 2009-03-22 Pedro Alves <pedro@codesourcery.com>
537
538 * gdbthread.h (struct thread_info): Add in_infcall member.
539 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
540 Remove reverences to suppress_resume_observer. Refresh
541 `call_thread' after returning from `proceed'.
542 * infcmd.c (suppress_resume_observer): Delete.
543 * inferior.h (suppress_resume_observer): Delete declaration.
544 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
545 inferior function.
546 * thread.c (set_running): Remove references to
547 suppress_resume_observer.
548 * infrun.c (struct inferior_status): Add in_infcall member.
549 (save_inferior_status): Save it.
550 (restore_inferior_status): Restore it.
551
552 2009-03-22 Pedro Alves <pedro@codesourcery.com>
553
554 * infcall.c (run_inferior_call): Remove references to
555 suppress_stop_observer.
556 * infcmd.c (suppress_stop_observer): Delete.
557 (finish_command_continuation): Remove NOTE. Don't clear
558 suppress_stop_observer anymore.
559 (finish_command_continuation_free_arg): Likewise.
560 (finish_forward): Remove references to suppress_stop_observer.
561 Call normal_stop observer if we haven't already.
562 * inferior.h (suppress_stop_observer): Delete.
563 * infrun.c (normal_stop): When deciding to suppress the
564 normal_stop observer, check for proceed_to_finish instead of
565 suppress_stop_observer.
566
567 2009-03-22 Pedro Alves <pedro@codesourcery.com>
568
569 * symfile.c (symfile_relocate_debug_section): Remove check for
570 SEC_DEBUGGING.
571
572 2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
573 Jim Blandy <jimb@red-bean.com>
574 Thiago Jung Bauermann <bauerman@br.ibm.com>
575 Tom Tromey <tromey@redhat.com>
576
577 Miscellaneous fixes to the Python code.
578 * python/python-cmd.c (cmdpy_init): Accept keyword
579 arguments.
580 * python/python-value.c (valpy_string): Accept keyword
581 arguments.
582 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
583 Do not call value_to_value_object on NULL RES_VAL.
584 (value_object_methods): Change `string' entry to also accept
585 keyword arguments.
586 (convert_value_from_python): Return a copy of the value if obj is
587 a gdb.Value object.
588 (value_object_methods): Mark the `string' method as accepting
589 keywords, and show method "prototype" in the doc string.
590 * python/python.c (get_parameter): Don't return inside a
591 TRY_CATCH.
592
593 2009-03-20 Tom Tromey <tromey@redhat.com>
594
595 Add support for convenience functions in Python.
596 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
597 (SUBDIR_PYTHON_SRCS): Add python-function.c.
598 (python-function.o): New target.
599 * eval.c: Include "python/python.h" and <ctype.h>.
600 (evaluate_subexp_standard): Handle values of type
601 TYPE_CODE_INTERNAL_FUNCTION.
602 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
603 * parse.c (write_exp_string): Remove duplicate word in comment.
604 * python/python-function.c: New file.
605 * python/python-internal.h (gdbpy_initialize_functions): Add
606 prototype.
607 * python/python.c (_initialize_python): Call
608 gdbpy_initialize_functions.
609 * valprint.c (value_check_printable): Handle values of type
610 TYPE_CODE_INTERNAL_FUNCTION.
611 * value.c: Include "cli/cli-decode.h".
612 (internal_function): New struct.
613 (functionlist, internal_fn_type): New static variables.
614 (lookup_only_internalvar,
615 lookup_internalvar): Add const qualifier to name argument.
616 (create_internalvar): Likewise. Initialize new field.
617 (set_internal_var): Fix typo in comment. Don't allow assignment
618 to canonical variable.
619 (value_create_internal_function, value_internal_function_name,
620 call_internal_function, function_command, function_destroyer,
621 add_internal_function): New functions.
622 (_initialize_values): Create `function' placeholder command.
623 Initialize internal_fn_type.
624 * value.h (lookup_only_internalvar, create_internalvar,
625 lookup_internalvar): Add const qualifier to name argument.
626 (internal_function_fn, add_internal_function, call_internal_function,
627 value_internal_function_name): Add prototypes.
628 (struct internalvar) <canonical>: New field.
629
630 2009-03-20 Tom Tromey <tromey@redhat.com>
631
632 * c-lang.c (evaluate_subexp_c): Call check_typedef.
633
634 2009-03-20 Tom Tromey <tromey@redhat.com>
635 Julian Brown <julian@codesourcery.com>
636
637 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
638 PR i18n/9401, PR exp/9613:
639 * NEWS: Update
640 * value.h (value_typed_string): Declare.
641 (val_print_string): Update.
642 * valprint.h (print_char_chars): Update.
643 * valprint.c (print_char_chars): Add type argument. Update.
644 (val_print_string): Likewise.
645 * valops.c (value_typed_string): New function.
646 * utils.c (host_char_to_target): New function.
647 (parse_escape): Use host_char_to_target, host_hex_value. Update.
648 Remove '^' case.
649 (no_control_char_error): Remove.
650 * typeprint.c (print_type_scalar): Update.
651 * scm-valprint.c (scm_scmval_print): Update.
652 * scm-lang.h (scm_printchar, scm_printstr): Update.
653 * scm-lang.c (scm_printchar): Add type argument.
654 (scm_printstr): Likewise.
655 * printcmd.c (print_formatted): Update.
656 (print_scalar_formatted): Update.
657 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
658 Handle '%lc' and '%ls'.
659 * parser-defs.h (struct typed_stoken): New type.
660 (struct stoken_vector): Likewise.
661 (write_exp_string_vector): Declare.
662 * parse.c (write_exp_string_vector): New function.
663 * p-valprint.c (pascal_val_print): Update.
664 * p-lang.h (is_pascal_string_type, pascal_printchar,
665 pascal_printstr): Update.
666 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
667 Add 'char_type' argument.
668 (pascal_emit_char): Add type argument.
669 (pascal_printchar): Likewise.
670 (pascal_printstr): Likewise.
671 * objc-lang.c (objc_emit_char): Add type argument.
672 (objc_printchar): Likewise.
673 (objc_printstr): Likewise.
674 * macroexp.c (get_character_constant): Handle unicode characters.
675 Use c_parse_escape.
676 (get_string_literal): Handle unicode strings. Use
677 c_parse_escape.
678 * m2-valprint.c (print_unpacked_pointer): Update.
679 (m2_print_array_contents): Update.
680 (m2_val_print): Update.
681 * m2-lang.c (m2_emit_char): Add type argument.
682 (m2_printchar): Likewise.
683 (m2_printstr): Likewise.
684 * language.h (struct language_defn) <la_printchar>: Add type
685 argument.
686 <la_printstr, la_emitchar>: Likewise.
687 (LA_PRINT_CHAR): Likewise.
688 (LA_PRINT_STRING): Likewise.
689 (LA_EMIT_CHAR): Likewise.
690 * language.c (unk_lang_emit_char): Add type argument.
691 (unk_lang_printchar): Likewise.
692 (unk_lang_printstr): Likewise.
693 * jv-valprint.c (java_val_print): Update.
694 * jv-lang.c (java_emit_char): Add type argument.
695 * f-valprint.c (f_val_print): Update.
696 * f-lang.c (f_emit_char): Add type argument.
697 (f_printchar): Likewise.
698 (f_printstr): Likewise.
699 * expprint.c (print_subexp_standard): Update.
700 * charset.h (target_wide_charset): Declare.
701 (c_target_char_has_backslash_escape, c_parse_backslash,
702 host_char_print_literally, host_char_to_target,
703 target_char_to_host, target_char_to_control_char): Remove.
704 (enum transliterations): New type.
705 (convert_between_encodings): Declare.
706 (HOST_ESCAPE_CHAR): New define.
707 (host_letter_to_control_character, host_hex_value): Declare.
708 (enum wchar_iterate_result): New enum.
709 (struct wchar_iterator): Declare.
710 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
711 wchar_push_back): Declare.
712 * charset-list.h: New file.
713 * c-valprint.c (textual_name): New function.
714 (textual_element_type): Handle wide character types.
715 (c_val_print): Pass original type to textual_element_type. Handle
716 wide character types.
717 (c_value_print): Use textual_element_type. Pass original type of
718 value to val_print.
719 * c-lang.h (enum c_string_type): New type.
720 (c_printchar, c_printstr): Update.
721 * c-lang.c (classify_type): New function.
722 (print_wchar): Likewise.
723 (c_emit_char): Add type argument. Handle wide characters.
724 (c_printchar): Likewise.
725 (c_printstr): Add type argument. Handle wide and multibyte
726 character sets.
727 (convert_ucn): New function.
728 (emit_numeric_character): Likewise.
729 (convert_octal): Likewise.
730 (convert_hex): Likewise.
731 (ADVANCE): New macro.
732 (convert_escape): New function.
733 (parse_one_string): Likewise.
734 (evaluate_subexp_c): Likewise.
735 (exp_descriptor_c): New global.
736 (c_language_defn): Use exp_descriptor_c.
737 (cplus_language_defn): Likewise.
738 (asm_language_defn): Likewise.
739 (minimal_language_defn): Likewise.
740 (charset_for_string_type): New function.
741 * c-exp.y (%union): Add 'svec' and 'tsval'.
742 (CHAR): New token.
743 (exp): Add CHAR production.
744 (string_exp): Rewrite.
745 (exp) <string_exp>: Rewrite.
746 (tempbuf): Now global.
747 (tempbuf_init): New global.
748 (parse_string_or_char): New function.
749 (yylex) <tempbuf>: Now global.
750 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
751 Remove.
752 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
753 (c_parse_escape): New function.
754 * auxv.c (fprint_target_auxv): Update.
755 * ada-valprint.c (ada_emit_char): Add type argument.
756 (ada_printchar): Likewise.
757 (ada_print_scalar): Update.
758 (printstr): Add type argument. Update calls to ada_emit_char.
759 (ada_printstr): Add type argument.
760 (ada_val_print_array): Update.
761 (ada_val_print_1): Likewise.
762 * ada-lang.c (emit_char): Add type argument.
763 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
764 type arguments.
765 * gdb_locale.h: Include langinfo.h.
766 * charset.c (_initialize_charset): Set default host charset from
767 the locale. Don't register charsets. Add target-wide-charset
768 commands. Call find_charset_names.
769 (struct charset, struct translation): Remove.
770 (GDB_DEFAULT_HOST_CHARSET): Remove.
771 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
772 (target_wide_charset_name): New global.
773 (show_host_charset_name): Handle "auto".
774 (show_target_wide_charset_name): New function.
775 (host_charset_enum, target_charset_enum): Remove.
776 (charset_enum): New global.
777 (all_charsets, register_charset, lookup_charset, all_translations,
778 register_translation, lookup_translation): Remove.
779 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
780 (iso_8859_print_literally, iso_8859_to_control,
781 iso_8859_family_charset): Remove.
782 (ebcdic_print_literally, ebcdic_to_control,
783 ebcdic_family_charset): Remove.
784 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
785 register_iconv_charsets): Remove.
786 (target_wide_charset_be_name, target_wide_charset_le_name): New
787 globals.
788 (identity_either_char_to_other): Remove.
789 (set_be_le_names, validate): New functions.
790 (backslashable, backslashed, represented): Remove.
791 (default_c_target_char_has_backslash_escape): Remove.
792 (default_c_parse_backslash, iconv_convert): Remove.
793 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
794 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
795 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
796 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
797 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
798 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
799 (table_convert_char, table_translation, simple_table_translation):
800 Remove.
801 (current_host_charset, current_target_charset,
802 c_target_char_has_backslash_escape_func,
803 c_target_char_has_backslash_escape_baton): Remove.
804 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
805 (host_char_to_target_func, host_char_to_target_baton): Remove.
806 (target_char_to_host_func, target_char_to_host_baton): Remove.
807 (cached_iconv_host_to_target, cached_iconv_target_to_host):
808 Remove.
809 (lookup_charset_or_error, check_valid_host_charset): Remove.
810 (set_host_and_target_charsets): Remove.
811 (set_host_charset, set_target_charset): Remove.
812 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
813 (set_target_wide_charset_sfunc): New function.
814 (show_charset): Print target wide character set.
815 (host_charset, target_charset): Rewrite.
816 (target_wide_charset): New function.
817 (c_target_char_has_backslash_escape): Remove.
818 (c_parse_backslash): Remove.
819 (host_letter_to_control_character): New function.
820 (host_char_print_literally): Remove.
821 (host_hex_value): New function.
822 (target_char_to_control_char): Remove.
823 (cleanup_iconv): New function.
824 (convert_between_encodings): New function.
825 (target_char_to_host): Remove.
826 (struct wchar_iterator): Define.
827 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
828 wchar_push_back): New functions.
829 (do_cleanup_iterator): New function.
830 (char_ptr): New typedef.
831 (charsets): New global.
832 (add_one, find_charset_names): New functions.
833 (default_charset_names): New global.
834 (auto_host_charset_name): Likewise.
835 * aclocal.m4, config.in, configure: Rebuild.
836 * configure.ac: Call AM_LANGINFO_CODESET.
837 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
838 (AM_ICONV): Invoke earlier.
839 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
840 LIBICONV_LIBDIR. Check for libiconv in build tree.
841 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
842 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
843 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
844 * gdb_obstack.h (obstack_grow_wstr): New define.
845 * gdb_wchar.h: New file.
846 * defs.h: Include it.
847
848 2009-03-20 Tom Tromey <tromey@redhat.com>
849 Jan Kratochvil <jan.kratochvil@redhat.com>
850
851 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
852 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
853 typedef.
854 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
855 SYMBOL_TYPE result.
856 * ada-typeprint.c (print_array_type): Do the NULL check
857 unconditionally.
858
859 2009-03-19 Tom Tromey <tromey@redhat.com>
860
861 * utils.c (do_obstack_free): New function.
862 (make_cleanup_obstack_free): Likewise.
863 * defs.h (make_cleanup_obstack_free): Declare.
864
865 2009-03-18 Doug Evans <dje@google.com>
866
867 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
868 int, not a long long.
869 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
870
871 * expprint.c (dump_raw_expression): Print note if non-NULL.
872
873 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
874 backwards.
875
876 2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
877
878 * Makefile.in: Update license to GPLv3.
879 * ada-exp.y: Update license to GPLv3.
880 * ada-lex.l: Update license to GPLv3.
881 * c-exp.y: Update license to GPLv3.
882 * cp-name-parser.y: Update license to GPLv3.
883 * darwin-nat-info.c: Update license to GPLv3.
884 * f-exp.y: Update license to GPLv3.
885 * gdb_thread_db.h: Update license to GPLv3.
886 * hppanbsd-nat.c: Update license to GPLv3.
887 * hppanbsd-tdep.c: Update license to GPLv3.
888 * hppaobsd-tdep.c: Update license to GPLv3.
889 * jv-exp.y: Update license to GPLv3.
890 * m2-exp.y: Update license to GPLv3.
891 * objc-exp.y: Update license to GPLv3.
892 * p-exp.y: Update license to GPLv3.
893 * reply_mig_hack.awk: Update license to GPLv3.
894 * reverse.c: Update license to GPLv3.
895 * xtensa-xtregs.c: Update license to GPLv3.
896
897 2009-03-18 Pedro Alves <pedro@codesourcery.com>
898
899 * remote.c (remote_close): Don't call generic_mourn_inferior.
900 (remote_mourn_1): Call generic_mourn_inferior after closing the
901 target.
902
903 2009-03-18 Pedro Alves <pedro@codesourcery.com>
904
905 * remote.c (remote_start_remote): Add missing call to
906 init_wait_for_inferior in non-stop mode.
907
908 2009-03-18 Pedro Alves <pedro@codesourcery.com>
909
910 * breakpoint.c (bpstat_should_step): Only consider software
911 watchpoints that have a location.
912
913 2009-03-17 Joel Brobecker <brobecker@adacore.com>
914
915 Add a target_ops parameter to the to_kill method in struct target_ops.
916
917 * target.h (struct target_ops): Add a "target_ops *" parameter to
918 method to_kill.
919 (target_kill): Remove macro. Add declaration.
920 * target.c (debug_to_kill): Delete, no longer necessary.
921 (target_kill): New function.
922 (update_current_target): Stop inheriting the to_kill method.
923 Do not de_fault it to no_process either.
924 (setup_target_debug): Do not set current_target.to_kill.
925 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
926 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
927 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
928 accordingly.
929
930 2009-03-17 Doug Evans <dje@google.com>
931
932 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
933 glibc 2.3.2 and earlier.
934
935 2009-03-17 Joel Brobecker <brobecker@adacore.com>
936
937 * frame.c (get_prev_frame_1): Do not perform the inner_frame
938 sanity check if this_frame is not NORMAL.
939 (frame_id_inner): Update the description of this function.
940
941 2009-03-17 Hui Zhu <teawater@gmail.com>
942
943 * stack.c: Change the introduce of "disassemble-next-line".
944
945 2009-03-17 Pedro Alves <pedro@codesourcery.com>
946
947 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
948 declare as extern.
949
950 2009-03-17 Hui Zhu <teawater@gmail.com>
951
952 * stack.c: Include valprint.h.
953 (disassemble_next_line): New enum.
954 (show_disassemble_next_line): New function. Show the current
955 value of disassemble-next-line.
956 (gdb_disassembly_stub_args): New struct for argument passing
957 between function do_gdb_disassembly and function
958 gdb_disassembly_stub.
959 (gdb_disassembly_stub): New function. Helper for
960 gdb_disassembly.
961 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
962 the exception from the gdb_disassembly because it will be
963 broken by filter sometime.
964 (print_frame_info): If disassemble-next-line is set to auto
965 or on and doesn't have the line debug messages for $pc,
966 output the next instruction.
967 If disassemble-next-line is set to on and there is line debug
968 messages, output assembly codes for next line.
969 (_initialize_stack): Make the "set disassemble-next-line"
970 command an auto-boolean command. Change its class to
971 class_stack. Place it in the top level set list. Extend help
972 to describe the auto mode.
973
974 2009-03-17 Pedro Alves <pedro@codesourcery.com>
975
976 * infrun.c (normal_stop): Don't overwrite old_chain.
977
978 2009-03-16 Joel Brobecker <brobecker@adacore.com>
979
980 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
981 which is undefined, by call to regcache_invalidate, which should
982 do what the original author wanted to do.
983
984 2009-03-16 Joel Brobecker <brobecker@adacore.com>
985
986 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
987 (mips_create_inferior): Likewise.
988
989 2009-03-16 Joel Brobecker <brobecker@adacore.com>
990
991 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
992
993 2009-03-16 Joel Brobecker <brobecker@adacore.com>
994
995 * darwin-nat.c (darwin_resume): Fix a compiler warning when
996 building on x86_64-darwin.
997
998 2009-03-16 Tristan Gingold <gingold@adacore.com>
999
1000 * configure.tgt: Add handling for x86_64-darwin.
1001
1002 2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
1005
1006 2009-03-15 Joel Brobecker <brobecker@adacore.com>
1007
1008 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
1009 Use the ops parameter to get to the target beneath, rather than
1010 using the current_target global. Using the current_target global
1011 was an unintended accident.
1012
1013 2009-03-15 Joel Brobecker <brobecker@adacore.com>
1014
1015 Fix an error happening while loading symbols from a core file
1016 (on AIX).
1017
1018 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
1019 to detect whether we're debugging a core file or not.
1020
1021 2009-03-15 Joel Brobecker <brobecker@adacore.com>
1022
1023 Modernize the aix-thread later by getting rid of the base_target
1024 global. This brings back to life the AIX port which was otherwise
1025 crashing all the time.
1026
1027 * aix-thread.c (base_target): Delete.
1028 (pd_enable): Do not set base_target.
1029 (aix_thread_attach): Use find_target_beneath instead of base_target.
1030 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
1031 (aix_thread_fetch_registers, aix_thread_store_registers),
1032 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
1033 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
1034 (aix_thread_kill): Delete. Does not seem necessary.
1035 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
1036
1037 2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1038
1039 * stack.c (return_command <retval_exp>): New variables retval_expr
1040 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
1041 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
1042 if RETURN_TYPE is NULL.
1043
1044 2009-03-14 Pedro Alves <pedro@codesourcery.com>
1045
1046 * remote.c (PACKET_qAttached): New.
1047 (remote_query_attached): New.
1048 (remote_add_inferior): Add new `attached' argument. Handle it.
1049 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
1050 -1 to remote_add_inferior in new parameter.
1051 (extended_remote_attach_1): Adjust to pass 1 to
1052 remote_add_inferior in the new parameter.
1053 (extended_remote_create_inferior_1): Adjust to pass 0 to
1054 remote_add_inferior in the new parameter.
1055 (_initialize_remote): Add "set/show remote query-attached-packet"
1056 commands.
1057
1058 2009-03-13 Tom Tromey <tromey@redhat.com>
1059
1060 * symtab.c (lookup_symbol_in_language): Use a cleanup.
1061
1062 2009-03-13 Doug Evans <dje@google.com>
1063
1064 * exceptions.h: Clean up some comments on catch_exceptions usage.
1065 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
1066 catch_exceptions.
1067
1068 2009-02-17 Joel Brobecker <brobecker@adacore.com>
1069
1070 The following patch helps getting rid of a warning inside solib-som.c.
1071
1072 * source.c (source_full_path_of): Constify parameter filename.
1073 * defs.h (source_full_path_of): Update declaration accordingly.
1074
1075 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
1078 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
1079 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
1080
1081 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1082
1083 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
1084 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
1085
1086 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-tasks.c (ada_task_is_alive): Move up and make static.
1089 * ada-lang.h (ada_task_is_alive): Remove declaration.
1090
1091 2009-03-12 Jerome Guitton <guitton@adacore.com>
1092
1093 * ada-lang.c (ada_delta): Change the type of numerators and
1094 denominators to DOUBLEST, as they may not fit into a long.
1095 (scaling_factor): Ditto.
1096
1097 2009-03-12 Jerome Guitton <guitton@adacore.com>
1098
1099 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
1100
1101 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1102
1103 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
1104 types, if we are unable to determine the actual symbol type
1105 from its tag, then use the static approximation instead.
1106
1107 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1108
1109 Fix crash printing packed record with packed array.
1110
1111 * ada-lang.c (ada_modulus_from_name): New function.
1112 (ada_modulus): In the case where the type length is bigger than
1113 the size of the type used to hold the bounds, try determining
1114 the modulus from the type name.
1115 (ada_value_primitive_packed_val): Fix bug in the computation of
1116 ntarg causing an out-of-buffer invalid access.
1117
1118 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1119
1120 Fix segfault when printing short_integer'last.
1121
1122 * ada-lang.c (ada_find_any_type): Search in the primitive types
1123 if a symbol could not be found.
1124
1125 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1126
1127 * ada-tasks.c (task_states,long_task_states): Add new states
1128 Activating and Acceptor_Delay_Sleep. Update the description
1129 of state Acceptor_Sleep.
1130
1131 2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
1132
1133 Fix a build failure on Darwin following some changes in
1134 the profile of some target_ops methods.
1135
1136 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
1137 where missing.
1138 (darwin_stop_inferior, darwin_detach): Likewise.
1139
1140 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
1141
1142 Include token in ^running notification for CLI commands.
1143
1144 * mi/mi-main.c (mi_execute_command): Set current_token here.
1145 (mi_cmd_execute): Do not set current_token here.
1146
1147 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
1148
1149 Fix MI timings.
1150
1151 * mi/mi-main.c (mi_print_timing_maybe): New.
1152 (captured_mi_execute_command): Simplify. Output timings to
1153 CLI commands, too.
1154 (mi_execute_async_cli_command): Do not print timings.
1155 * mi/mi-main.h (mi_print_timing_maybe): Declare.
1156 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
1157
1158 2009-03-12 Jerome Guitton <guitton@adacore.com>
1159
1160 * xcoffread.c (process_linenos): Check if the line in the
1161 include table refers to the main source file and, if so,
1162 add them to the main subfile.
1163
1164 2009-03-12 Joel Brobecker <brobecker@adacore.com>
1165
1166 Fix a build failure on AIX introduced after a change in the profile
1167 of some of the "methods" in the target_ops structure.
1168 * aix-thread.c: Add missing target_ops parameter throughout.
1169
1170 Implement Ada task switching on AIX.
1171 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
1172 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
1173
1174 2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1175
1176 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
1177 value_mark and value_free_to_mark.
1178 * objfiles.c (free_objfile): Call objfile_free_data before
1179 freeing the BFD.
1180
1181 2009-03-10 Hui Zhu <teawater@gmail.com>
1182
1183 * disasm.c (gdb_disassembly): Remove unused argument
1184 "line_num".
1185 * disasm.h (gdb_disassembly): Ditto.
1186 * cli/cli-cmds.c (print_disassembly): Ditto.
1187 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
1188
1189 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
1190
1191 * solib.c (solib_contains_address_p): New function.
1192 (solib_name_from_address): Use it.
1193 * printcmd.c (display_uses_solib_p): Use it.
1194 * solib.h (solib_contains_address_p): Declare it.
1195
1196 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1197
1198 * varobj.c (free_variable): Call value_free.
1199
1200 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1201
1202 PR gdb/9873:
1203 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
1204 Move the variable `macinfo_type' out of the loop. Create a new
1205 processing pass before the current one to pre-create `current_file'.
1206 New complaint on misplaced zero/non-zero definitions/includes.
1207 Skip first DW_MACINFO_start_file with `at_commandline' set.
1208
1209 2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
1210
1211 * solib.c (reload_shared_libraries): Give
1212 inferior a chance to reset solib breakpoint.
1213 Reinit frame cache.
1214
1215 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
1216
1217 * windows-nat.c (dr): Redefine to use largest possible integer which
1218 holds a pointer.
1219 (cygwin_set_dr): Avoid coercion.
1220
1221 2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
1222
1223 * windows-nat.c (windows_create_inferior): Implement --tty handling on
1224 non-cygwin.
1225
1226 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1227
1228 Rename solib_address to solib_name_from_address.
1229 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
1230 (disable_breakpoints_in_unloaded_shlib): Update.
1231 * printcmd.c (display_uses_solib_p): Likewise.
1232 * stack.c (print_frame): Likewise.
1233 * solib.c: Rename.
1234 * solib.h: Rename.
1235
1236 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1237
1238 * printcmd.c (do_one_display): Reparse exp_string.
1239 (display_uses_solib_p): New function.
1240 (clear_dangling_display_expressions): New function.
1241 (_initialize_printcmd): Add observer.
1242 * solib.c (no_shared_libraries): Swap order of calls to
1243 clear_solib and objfile_purge_solibs.
1244
1245 2009-03-05 Joel Brobecker <brobecker@adacore.com>
1246
1247 Implement the target-specific part of Ada tasking support
1248 on Tru64.
1249
1250 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
1251 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
1252
1253 2009-03-05 Joel Brobecker <brobecker@adacore.com>
1254
1255 Get rid of the global "base_target" and use "find_target_beneath"
1256 to find the underlying target.
1257 * dec-thread.c (base_target): Delete.
1258 (enable_dec_thread): Remove assignement to base_target.
1259 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
1260 (dec_thread_fetch_registers, dec_thread_store_registers)
1261 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
1262 Update the function profile if necessary.
1263 Use find_target_beneath to call the same method but from
1264 the underlying target, removing the need for "base_target".
1265
1266 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
1267 Fix a copy/paste error in a few debug traces...
1268
1269 * solib-osf.c (init_so): Use a simpler method for computing
1270 the size of lm_info structure. This also gets rid of warning
1271 emitted by the compiler.
1272
1273 2009-03-05 Pedro Alves <pedro@codesourcery.com>
1274
1275 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
1276 duplicates of permanent breakpoints.
1277
1278 2009-03-04 Pedro Alves <pedro@codesourcery.com>
1279
1280 * inferior.h (notice_new_inferior): Declare.
1281 * infcmd.c (notice_new_inferior): New.
1282 * remote.c (remote_add_inferior, remote_add_thread): New.
1283 (notice_new_inferiors): Rename to...
1284 (remote_notice_new_inferior): ... this. Add RUNNING argument.
1285 Use remote_add_thread instead of add_thread, passing it the
1286 RUNNING argument. Add an inferior with remote_add_inferior. If
1287 we just learned about an inferior, call notice_new_inferior.
1288 (record_currthread): Adjust.
1289 (remote_threads_info): Adjust to use remote_notice_new_inferior.
1290 (remote_start_remote, extended_remote_attach_1): Use
1291 remote_add_inferior.
1292 (process_stop_reply): Adjust. Call remote_notice_new_inferior
1293 after handling expedited registers and watchpoint state.
1294 (extended_remote_create_inferior_1): Use remote_add_inferior.
1295
1296 2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
1297
1298 * infcmd.c (registers_info): Remove register number case.
1299
1300 2009-03-03 Pedro Alves <pedro@codesourcery.com>
1301
1302 * top.c (quit_target): Check for target_has_execution before
1303 killing or detaching from inferiors.
1304
1305 2009-03-02 Joel Brobecker <brobecker@adacore.com>
1306
1307 Remove some unused routines.
1308
1309 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
1310 Delete.
1311 * ada-lang.c (ada_task_list_iterator_ftype)
1312 (iterate_over_live_ada_tasks): Delete.
1313 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
1314 Delete.
1315
1316 2009-03-01 Doug Evans <dje@google.com>
1317
1318 * symtab.c: Remove trailing whitespace throughout the file.
1319 (expand_line_sal): Fix some typos and whitespace.
1320
1321 * Makefile.in (clean): rm -f $(DEPDIR)/*.
1322
1323 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
1324 (init.c): signals/ -> common/.
1325 (signals.o): Update.
1326 * target.h (target_signal_to_string,target_signal_to_string)
1327 (target_signal_from_name,target_signal_to_host_p)
1328 (target_signal_from_host,target_signal_to_host): Move to ...
1329 * common/gdb_signals.h: ... here. New file.
1330 * common/signals.c: Moved here from signals/signals.c.
1331 #include gdb_signals.h, remove #include of target.h in gdb case.
1332 (target_signal_from_command,default_target_signal_to_host)
1333 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
1334
1335 Include thread ID in target_wait debugging output.
1336 * infrun.c (print_target_wait_results): New function.
1337 (wait_for_inferior,fetch_inferior_event): Call it.
1338
1339 2009-02-27 Pedro Alves <pedro@codesourcery.com>
1340
1341 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
1342 with a ptid_t field.
1343 * linux-thread-db.c (thread_get_info_callback): Build the ptid
1344 using the pid stored in proc_handle.ptid.
1345 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
1346 (check_for_thread_db, thread_db_detach, check_event)
1347 (thread_db_mourn_inferior, find_new_threads_callback)
1348 (thread_db_find_new_threads_1): Adjust.
1349 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
1350 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
1351
1352 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
1353
1354 * valprint.c (read_string): Rework clean-up logic. Use
1355 free_current_contents to clean-up buffer.
1356
1357 2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
1358
1359 * MAINTAINERS: Update e-mail address.
1360
1361 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
1362
1363 * python/python-utils.c (python_string_to_unicode): Always return
1364 a new reference.
1365 (python_string_to_target_string): Decrement transient python
1366 instance.
1367 (python_string_to_host_string): Likewise.
1368
1369 2007-02-26 Pedro Alves <pedro@codesourcery.com>
1370
1371 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
1372 call to super_fetch_registers.
1373 (mips64_linux_store_registers): Pass `ops' to call to
1374 super_store_registers.
1375
1376 2009-02-25 Doug Evans <dje@google.com>
1377
1378 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
1379 error message.
1380
1381 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
1382 disabled_shlib_breaks, unused.
1383
1384 * printcmd.c (build_address_symbolic): Fix comment.
1385
1386 2009-02-25 Hui Zhu <teawater@gmail.com>
1387
1388 * cli/cli-script.c (define_command): Add _() to query.
1389 * gnu-nat.c (inf_validate_task_sc): Ditto.
1390 * infcmd.c (kill_if_already_running): Ditto.
1391 (jump_command): Ditto.
1392 (attach_command): Ditto.
1393 * inflow.c (kill_command): Ditto.
1394 * infrun.c (handle_command): Ditto.
1395 * maint.c (maintenance_dump_me): Ditto.
1396 * memattr.c (mem_delete_command): Ditto.
1397 * monitor.c (monitor_interrupt_query): Ditto.
1398 * nto-procfs.c (interrupt_query): Ditto.
1399 * printcmd.c (undisplay_command): Ditto.
1400 * remote-mips.c (mips_kill): Ditto.
1401 * remote.c (interrupt_query): Ditto.
1402 * solib-irix.c (irix_open_symbol_file_object): Ditto.
1403 * solib-osf.c (osf_open_symbol_file_object): Ditto.
1404 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
1405 * solib-som.c (som_open_symbol_file_object): Ditto.
1406 * solib-svr4.c (open_symbol_file_object): Ditto.
1407 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1408 * target.c (kill_or_be_killed): Ditto.
1409 * tracepoint.c (delete_trace_command): Ditto.
1410 * top.c (quit_confirm): Add _() to s that will be used
1411 in query.
1412
1413 2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
1414
1415 Fix windows-nat.c compilation failure.
1416
1417 * windows-nat.c (windows_thread_alive): Fix forward declaration.
1418 (get_windows_debug_event): Add ops parameter to call to windows_resume.
1419
1420 2009-02-23 Pedro Alves <pedro@codesourcery.com>
1421
1422 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
1423
1424 2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
1425
1426 * symtab.c (find_line_symtab): Initialize exact to avoid
1427 a compiler warning.
1428
1429 2009-02-23 Pedro Alves <pedro@codesourcery.com>
1430
1431 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
1432 `ops' to recursive call.
1433
1434 2009-02-23 Pedro Alves <pedro@codesourcery.com>
1435
1436 * corelow.c (get_core_registers): Adjust.
1437 (core_file_thread_alive): Rename to...
1438 (core_thread_alive): ... this.
1439 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
1440 (init_core_ops): Adjust.
1441 (coreops_suppress_target): Delete.
1442 (_initialize_corelow): Unconditionally add core_ops.
1443 * procfs.c: Include "inf-child.h".
1444 (procfs_ops): Delete.
1445 (init_procfs_ops): Delete. Reimplement as...
1446 (procfs_target): ... this, inheriting from inf-child.
1447 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
1448 (procfs_prepare_to_store): Delete.
1449 (procfs_store_registers, procfs_resume): Adjust.
1450 (procfs_open): Delete.
1451 (procfs_suppress_run): Delete.
1452 (procfs_can_run): Delete.
1453 (procfs_mourn_inferior): Adjust.
1454 (procfs_init_inferior): Add target_ops parameter. Adjust.
1455 (procfs_create_inferior): Don't pass procfs_init_inferior to
1456 fork_inferior. Instead call it after fork_inferior returns.
1457 (procfs_find_new_threads): Adjust.
1458 (_initialize_procfs): Adjust to use procfs_target instead of
1459 init_procfs_ops.
1460 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
1461 (lwp_to_thread): Use target_thread_alive.
1462 (sol_thread_open): Delete.
1463 (sol_thread_attach): Delete.
1464 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
1465 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
1466 to use find_target_beneath.
1467 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
1468 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
1469 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
1470 (check_for_thread_db): New.
1471 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
1472 (sol_thread_new_objfile): Call check_for_thread_db.
1473 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
1474 (sol_thread_can_run): Delete.
1475 (sol_thread_alive): Adjust to use find_target_beneath.
1476 (sol_thread_stop): Delete.
1477 (rw_common): Use target_write_memory or target_read_memory.
1478 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
1479 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
1480 (solaris_pid_to_str): Remove check for libthread_db initialization
1481 failing.
1482 (sol_find_new_threads): Remove check for libthread_db
1483 initialization failing, or for an invalid inferior_ptid. Adjust
1484 to use find_target_beneath.
1485 (sol_core_open, sol_core_close, sol_core_detach,
1486 sol_core_files_info, sol_find_memory_regions,
1487 sol_make_note_section, ignore): Delete.
1488 (init_sol_thread_ops): Make it a thread_stratum target. Remove
1489 unneeded callback settings.
1490 (init_sol_core_ops): Delete.
1491 (_initialize_sol_thread): No longer call init_sol_core_ops, set
1492 procfs_suppress_run, or hack with core_ops.
1493
1494 * target.h (struct target_ops): Add a target_ops * parameter to
1495 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
1496 and to_find_new_threads.
1497 (target_fetch_registers, target_store_registers)
1498 (target_thread_alive, target_find_new_threads): Redeclare as
1499 function.
1500
1501 * target.c (update_current_target): Do not inherit or de_fault
1502 to_resume, to_fetch_registers, to_store_registers,
1503 to_thread_alive, to_find_new_threads.
1504 (target_resume): Adjust.
1505 (target_thread_alive, target_find_new_threads): New.
1506 (debug_to_resume, debug_to_fetch_registers): Delete.
1507 (target_fetch_registers): New.
1508 (debug_to_store_registers): Delete.
1509 (target_store_registers): New.
1510 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
1511 (setup_target_debug): Adjust.
1512
1513 * gdbcore.h (core_ops): Delete declaration.
1514
1515 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
1516 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
1517 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
1518 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
1519 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
1520 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
1521 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
1522 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
1523 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
1524 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
1525 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
1526 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
1527 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
1528 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
1529
1530 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
1531 * gdbarch.h, gdbarch.c: Regenerate.
1532
1533 * sol2-tdep.c: Include "inferior.h".
1534 (sol2_core_pid_to_str): New.
1535 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
1536
1537 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
1538 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
1539 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
1540 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
1541
1542 2009-02-22 Doug Evans <dje@google.com>
1543
1544 * exec.c (exec_file_attach): Fix comment.
1545
1546 2009-02-22 Pedro Alves <pedro@codesourcery.com>
1547
1548 Silence a few -Wmissing-prototypes warnings.
1549
1550 PR build/9877:
1551 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
1552 it static.
1553 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
1554 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
1555 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
1556 (_initialize_amd64nbsd_tdep): ... this.
1557 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
1558 (_initialize_arm_linux_tdep): Declare.
1559 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
1560 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
1561 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
1562 * avr-tdep.c (avr_return_value): Make it static.
1563 (avr_frame_unwind_cache): Ditto.
1564 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
1565 (bsd_uthread_solib_loaded): Ditto.
1566 (bsd_uthread_solib_unloaded): Ditto.
1567 (bsd_uthread_target): Ditto.
1568 (_initialize_bsd_uthread): Declare.
1569 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
1570 (cris_frame_unwind_cache): Ditto.
1571 * frv-tdep.c (frv_return_value): Ditto.
1572 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
1573 (h8300h_use_struct_convention): Ditto.
1574 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
1575 Ditto.
1576 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
1577 declarations.
1578 * hppabsd-tdep.c: Include hppabsd-tdep.h.
1579 (hppabsd_find_global_pointer): Make it static.
1580 * hppabsd-tdep.h: New.
1581 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
1582 (hppabsd_init_abi): Remove declaration.
1583 (_initialize_hppabsd_tdep): Remove declaration.
1584 (_initialize_hppanbsd_tdep): Declare.
1585 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
1586 (hppabsd_init_abi): Delete declaration.
1587 (hppaobsd_init_abi): Make it static.
1588 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
1589 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
1590 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
1591 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
1592 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
1593 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
1594 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
1595 (_initialize_m32c_tdep): Declare.
1596 * m32r-rom.c (_initialize_m32r_rom): Declare.
1597 * m32r-tdep.c (m32r_skip_prologue): Make it static.
1598 (m32r_return_value): Ditto.
1599 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
1600 (m68hc11_return_value): Ditto.
1601 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
1602 * m88k-tdep.c (m88k_frame_cache): Make it static.
1603 * mep-tdep.c (mep_gdb_print_insn): Ditto.
1604 (mep_return_value): Ditto.
1605 (_initialize_mep_tdep): Declare.
1606 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
1607 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
1608 (mips_linux_syscall_next_pc): Ditto.
1609 (_initialize_mips_linux_tdep): Declare.
1610 * mips-tdep.c (mips_single_step_through_delay): Make it static.
1611 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
1612 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
1613 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
1614 * mt-tdep.c (_initialize_mt_tdep): Declare.
1615 * nbsd-tdep.c: Include nbsd-tdep.h.
1616 * nto-tdep.c (find_load_phdr): Make it static.
1617 (_initialize_nto_tdep): Declare.
1618 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
1619 static.
1620 (_initialize_ppc_linux_tdep): Declare.
1621 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
1622 (m32r_insert_watchpoint, m32r_remove_watchpoint)
1623 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
1624 static.
1625 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
1626 * rs6000-nat.c: Include xcoffread.h.
1627 (find_toc_address): Don't extern declare get_toc_offset. Adjust
1628 to call xcoff_get_to_offset.
1629 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
1630 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
1631 (rs6000_skip_trampoline_code): Make static.
1632 * s390-tdep.c (s390_regset_from_core_section): Ditto.
1633 * sh-tdep.c (sh_register_reggroup_p): Ditto.
1634 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
1635 (_initialize_shnbsd_tdep): Declare.
1636 * solib-frv.c (displacement_from_map): Make static.
1637 (_initialize_frv_solib): Declare.
1638 * solib-irix.c (fetch_lm_info): Make static.
1639 (_initialize_irix_solib): Declare.
1640 * solib-som.c: Include solib-som.h.
1641 (som_solib_select): Line break.
1642 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
1643 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
1644 (_initialize_sparcnbsd_tdep): ... this.
1645 * spu-tdep.c (spu_software_single_step): Make it static.
1646 (_initialize_spu_tdep): Declare.
1647 * vax-tdep.c (vax_frame_cache): Make it static.
1648 * xcoffread.c: Include xcoffread.h.
1649 (get_toc_offset): Rename to ...
1650 (xcoff_get_toc_offset): ... this.
1651 (_initialize_xcoffread): Declare.
1652 * xcoffread.h: New.
1653 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
1654 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
1655 static.
1656 (_initialize_xtensa_tdep): Declare.
1657
1658 2008-02-21 Pedro Alves <pedro@codesorcery.com>
1659
1660 Silence a few -Wmissing-prototypes warnings.
1661
1662 PR build/9877:
1663 * amd64-nat.c: Include "amd64-nat.h".
1664 * fork-child.c (_initialize_fork_child): Ditto.
1665 * gcore.c (_initialize_gcore): Ditto.
1666 * inf-ptrace.c: Include "inf-ptrace.h".
1667 (inf_ptrace_store_registers): Make it static.
1668 * linux-nat.c (linux_nat_terminal_ours): Make it static.
1669 (_initialize_linux_nat): Declare before definition.
1670 * linux-tdep.c: Include "linux-tdep.h".
1671 * linux-thread-db.c (_initialize_thread_db): Declare before
1672 definition.
1673 * proc-service.c (_initialize_proc_service): Ditto.
1674 * remote.c (remote_send_printf): Make it static.
1675 * solib.c: Include "solib.h".
1676 * symfile-mem.c (_initialize_symfile_mem): Declare before
1677 definition.
1678 * ada-lang.c (ada_la_decode, ada_match_name)
1679 (ada_suppress_symbol_printing, ada_is_array_type)
1680 (ada_value_ptr_subscript, ada_array_length)
1681 (ada_to_static_fixed_value): Make them static.
1682 (_initialize_ada_language): Declare before definition.
1683 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
1684 (ada_task_list_changed, ada_new_objfile_observer): Make them
1685 static.
1686 (_initialize_tasks): Declare before definition.
1687 * addrmap.c (_initialize_addrmap): Declare before definition.
1688 * auxv.c (default_auxv_parse): Make it static.
1689 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
1690 them static.
1691 * breakpoint.c (remove_sal): Add line break.
1692 (expand_line_sal_maybe): Make it static.
1693 * cp-name-parser.y: Include "cp-support.h".
1694 * cp-valprint.c (cp_find_class_member): Make it static.
1695 * eval.c (value_f90_subarray): Ditto.
1696 * exceptions.c (print_any_exception): Ditto.
1697 * findcmd.c (_initialize_mem_search): Declare before definition.
1698 * frame.c (frame_observer_target_changed): Make it static.
1699 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
1700 * inf-child.c: Include "inf-child.h".
1701 * inferior.h (valid_inferior_id): Rename to ...
1702 (valid_gdb_inferior_id): ... this.
1703 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
1704 Make them static.
1705 * jv-lang.c (java_language_arch_info): Make it static.
1706 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
1707 * osdata.c (info_osdata_command): Make it static.
1708 * regcache.c (regcache_observer_target_changed): Make it static.
1709 * reverse.c (_initialize_reverse): Declare before definition.
1710 * stabsread.c (cleanup_undefined_types_noname)
1711 (cleanup_undefined_types_1): Make them static.
1712 * symfile.c (place_section): Make it static.
1713 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
1714 * target-descriptions.c (_initialize_target_descriptions): Declare
1715 before definition.
1716 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
1717 (find_default_is_async_p, find_default_supports_non_stop): Make
1718 them static.
1719 (target_supports_non_stop): Add prototype.
1720 (dummy_pid_to_str): Make it static.
1721 * utils.c (_initialize_utils): Declare before definition.
1722 * ada-exp.y (_initialize_ada_exp): Declare before definition.
1723 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
1724 * target.h (struct target_ops): Add a prototype to the
1725 to_can_execute_reverse callback.
1726 * macroscope.c (_initialize_macroscope): Declare before definition.
1727 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
1728 * python/python.c (_initialize_python): Declare before definition.
1729 * tui/tui-command.c: Include "tui/tui-command.h".
1730 * tui/tui-data.c (init_content_element, init_win_info): Make them
1731 static.
1732 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
1733 * tui/tui-interp.c (_initialize_tui_interp): Declare before
1734 definition.
1735 * tui/tui-layout.c: Include "tui/tui-layout.h".
1736 (_initialize_tui_layout): Declare before definition.
1737 * tui/tui-regs.c: Include "tui/tui-regs.h".
1738 (tui_display_reg_element_at_line): Make it static.
1739 (_initialize_tui_regs): Declare before definition.
1740 * tui/tui-stack.c (_initialize_tui_stack): Declare before
1741 definition.
1742 * tui/tui-win.c: Include "tui/tui-win.h".
1743 (_initialize_tui_win): Declare before definition.
1744 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
1745 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
1746 (tui_get_cmd_list): Add a prototype.
1747 * tui/tui-windata.c: Include tui-windata.h.
1748 * tui/tui-wingeneral.c (box_win): Make it static.
1749 * cli/cli-logging.c (show_logging_command): Make it static.
1750 (_initialize_cli_logging): Declare before definition.
1751 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
1752 definition.
1753
1754 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
1755
1756 Extend use of i386_use_watchpoints to all i386 native files
1757 using hardware watchpoints.
1758 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
1759 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
1760 * windows-nat.c (init_windows_ops): Ditto.
1761 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
1762 * config/i386/nm-cygwin64.h: Ditto.
1763 * config/i386/nm-fbsd.h: Ditto.
1764 * config/i386/nm-go32.h: Ditto.
1765
1766 2009-02-19 Joel Brobecker <brobecker@adacore.com>
1767
1768 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
1769
1770 2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
1771
1772 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
1773 (mi_interpreter_init): Register the above.
1774 * solib.c (clear_solib): Notify solib unload.
1775 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
1776 disable breakpoints on a.out targets.
1777
1778 2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
1779
1780 * observer.c (observer_test_first_notification_function)
1781 (observer_test_second_notification_function)
1782 (observer_test_third_notification_function): Adjust prototype.
1783
1784 2009-02-17 Pedro Alves <pedro@codesourcery.com>
1785
1786 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
1787 (ALL_TARGET_OBS): Add dicos-tdep.o.
1788 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
1789 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
1790 gdb_target_obs.
1791 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
1792 gdb_target_obs.
1793 * dicos-tdep.h, dicos-tdep.c: New.
1794 * amd64-dicos-tdep.c: New.
1795 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
1796 inferior.h. Include dicos-tdep.h.
1797 (i386_dicos_init_abi): Call dicos_init_abi.
1798 (i386_dicos_bfd_has_symbol_p): Delete.
1799 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
1800
1801 * NEWS: Mention x86-64 DICOS target support.
1802
1803 2009-02-16 Doug Evans <dje@google.com>
1804
1805 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
1806 All callers updated.
1807 (amd64_get_insn_details): Handle more 3-byte opcode insns.
1808 (amd64_breakpoint_p): Delete.
1809 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
1810 don't back up pc to the start of the int3.
1811 * i386-tdep.c: #include opcode/i386.h.
1812 (i386_skip_prefixes): New function.
1813 (i386_absolute_jmp_p): Constify argument.
1814 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
1815 (i386_breakpoint_p): Delete.
1816 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
1817 When fixing up after stepping an int3, don't back up pc to the start
1818 of the int3.
1819
1820 2009-02-16 Pedro Alves <pedro@codesourcery.com>
1821
1822 * corelow.c (core_close): Don't hardcode the core's pid.
1823 (core_open): Find core threads before calling
1824 post_create_inferior.
1825 (add_to_thread_list, get_core_register_section): Take into account
1826 systems where the regset section names encode the pid of the
1827 inferior.
1828
1829 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
1830 * gdbarch.h, gdbarch.c: Regenerate.
1831
1832 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
1833 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
1834 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
1835 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
1836
1837 2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
1838
1839 Include frame information for *stopped due to CLI commands.
1840
1841 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
1842 * infcmd.c (finish_command_continuation): Pass '1' for
1843 'print_frame' parameter to the observer.
1844 * infrun.c (normal_stop): Don't print mi-specific information
1845 here. Pass 'stop_print_frame' to the 'print_frame' parameter
1846 of the observer.
1847 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
1848 If we need to print frame, and current uiout is not the MI one,
1849 print frame again.
1850
1851 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
1852
1853 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
1854 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
1855
1856 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1857
1858 PR fortran/9806
1859 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
1860 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
1861
1862 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
1863
1864 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
1865 for DW_ATE_signed_char and DW_ATE_unsigned_char
1866 for pascal language.
1867
1868 2009-02-11 Jim Meyering <meyering@redhat.com>
1869 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 Avoid NULL dereference.
1872 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
1873 New variable func_type.
1874
1875 2009-02-11 Pedro Alves <pedro@codesourcery.com>
1876
1877 * gdbarch.c: Regenerate.
1878
1879 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
1880
1881 * p-lang.c (is_pascal_string_type): Fix comment.
1882 Determine exact size of char elements for GPC
1883 strings.
1884 (pascal_printstr): Handle char width of 2 or 4.
1885 * p-valprint.c (pascal_val_print): Handle char
1886 of width 2 or 4.
1887
1888 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1889
1890 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
1891 inside the loop. Only call addrmap_set_empty if the compilation unit
1892 had DW_AT_high_pc and DW_AT_low_pc. Update call to
1893 scan_partial_symbols.
1894 (scan_partial_symbols): Take NEED_PC argument and pass it along with
1895 LOWPC and HIGHPC.
1896 (add_partial_namespace): Take NEED_PC argument and pass it through.
1897 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
1898 if necessary.
1899
1900 2009-02-07 Pedro Alves <pedro@codesourcery.com>
1901
1902 * NEWS: Mention inspecting extra signal information, $_siginfo,
1903 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
1904
1905 2009-02-07 Pedro Alves <pedro@codesourcery.com>
1906
1907 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
1908 isn't defined.
1909
1910 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1911
1912 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
1913 (compat_timer_t, compat_clock_t, struct compat_timeval)
1914 (compat_sigval_t, compat_siginfo_t): New types.
1915 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
1916 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
1917 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
1918 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1919 (amd64_linux_siginfo_fixup): New.
1920 * linux-nat.c (linux_nat_siginfo_fixup): New.
1921 (siginfo_fixup): New.
1922 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
1923 siginfo layout expected by ptrace and the siginfo layout of the
1924 inferior.
1925 (linux_nat_set_siginfo_fixup): New.
1926 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
1927
1928 2009-02-06 Pedro Alves <pedro@codesourcery.com>
1929
1930 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
1931 * infrun.c (siginfo_value_read, siginfo_value_write): New.
1932 (siginfo_value_funcs): New.
1933 (siginfo_make_value): New.
1934 (_initialize_infrun): Create the $_siginfo convenience variable.
1935 * gdbtypes.h (append_composite_type_field_aligned): Declare.
1936 * gdbtypes.c (append_composite_type_field): Rename to...
1937 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
1938 argument. Handle it.
1939 (append_composite_type_field): Rewrite on top of
1940 append_composite_type_field_aligned.
1941 * value.h (internalvar_make_value): New typedef.
1942 (struct internalvar) <make_value>: New field.
1943 (create_internalvar_type_lazy): Declare.
1944 * value.c (create_internalvar): Clear make_value.
1945 (create_internalvar_type_lazy): New.
1946 (value_of_internalvar): If make_value is set use it.
1947 (preserve_values): Skip internal variables that don't have a
1948 value.
1949 * gdbarch.sh (get_siginfo_type): New.
1950 * gdbarch.h, gdbarch.c: Regenerate.
1951
1952 * linux-tdep.h, linux-tdep.c: New.
1953 * amd64-linux-tdep.c: Include "linux-tdep.h".
1954 (amd64_linux_init_abi): Register linux_get_siginfo_type and
1955 linux_get_siginfo_mapper.
1956 * i386-linux-tdep.c: Include "linux-tdep.h".
1957 (i386_linux_init_abi): Register linux_get_siginfo_type and
1958 linux_get_siginfo_mapper.
1959 * arm-linux-tdep.c: Include "linux-tdep.h".
1960 (i386_linux_init_abi): Register linux_get_siginfo_type and
1961 linux_get_siginfo_mapper.
1962
1963 * linux-nat.c (linux_xfer_siginfo): New.
1964 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
1965 * remote.c (PACKET_qXfer_siginfo_read)
1966 (PACKET_qXfer_siginfo_write): New.
1967 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
1968 "qXfer:siginfo:write" features.
1969 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
1970 (_initialize_remote): Add "set/show remote read-siginfo-object"
1971 and "set/show remote write-siginfo-object" commands.
1972
1973 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
1974 (HFILES_NO_SRCDIR): Add linux-tdep.h.
1975 (ALLDEPFILES): Add linux-tdep.c.
1976
1977 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
1978 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
1979 gdb_target_obs.
1980
1981 2009-02-06 Jim Blandy <jimb@codesourcery.com>
1982 Daniel Jacobowitz <dan@codesourcery.com>
1983 Vladimir Prus <vladimir@codesourcery.com>
1984 Pedro Alves <pedro@codesourcery.com>
1985
1986 * defs.h (enum lval_type): New value: lval_computed.
1987 * value.h (struct lval_funcs): New type.
1988 (allocate_computed_value, value_computed_funcs)
1989 (value_computed_closure): New declarations.
1990 * value.c (struct value): Add a structure to the location union
1991 for computed lvalues, containing 'funcs' and 'closure' members.
1992 (allocate_computed_value, value_computed_funcs)
1993 (value_computed_closure): New functions.
1994 (value_free): For computed lvalues, call the closure's
1995 'free_closure' function before freeing the value itself.
1996 (value_copy): If we're copying an lval_computed value, call the
1997 closure's 'copy_closure' function.
1998 (set_value_component_location): If the original value is a
1999 computed lvalue, then call the closure's 'copy_closure' function.
2000 (value_of_internalvar): If an internal variable's value is a
2001 computed lvalue, make retrieving its value produce an equivalent
2002 computed lvalue.
2003 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
2004 their read function.
2005 (value_assign): Assign to computed lvalues by calling their write
2006 function.
2007
2008 2009-02-06 Pedro Alves <pedro@codesourcery.com>
2009
2010 * linux-nat.c (linux_nat_wait): Adjust.
2011 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
2012 * linux-nat.h (thread_db_init): Delete declaration.
2013 * linux-thread-db.c (target_beneath): Delete.
2014 (thread_db_init): Delete.
2015 (thread_db_detach): Use find_target_beneath.
2016 (thread_db_wait): Adjust interface. Use find_target_beneath.
2017 (thread_db_mourn_inferior): Use find_target_beneath.
2018 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
2019 (thread_db_async_mask): Delete.
2020 (thread_db_pid_to_str): Adjust interface. Use
2021 find_target_beneath.
2022 (thread_db_get_thread_local_address): Adjust interface. Use
2023 find_target_beneath.
2024 (init_thread_db_ops): Delete references to delete functions.
2025 * target.c (update_current_target): Don't inherit or default
2026 to_wait. Don't inherit to_pid_to_str and
2027 to_get_thread_local_address.
2028 (target_translate_tls_address): Look for a pushed target that
2029 implements to_get_thread_local_address, and use it instead of
2030 checking for target_get_thread_local_address_p.
2031 (target_wait, target_pid_to_str): Reimplement as functions.
2032 (dummy_pid_to_str): New.
2033 (init_dummy_target): Register it.
2034 (debug_to_wait): Delete.
2035 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
2036 to_get_thread_local_address accept a pointer to struct target_ops.
2037 (target_wait): Delete macro, and declare as function.
2038 (target_pid_to_str): Likewise.
2039 (target_get_thread_local_address)
2040 (target_get_thread_local_address_p): Delete.
2041 (noprocess): Add NORETURN and ATTR_NORETURN tags.
2042 * inf-ptrace.c (inf_ptrace_wait): Adjust.
2043 (inf_ptrace_pid_to_str): New.
2044 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
2045 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
2046 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
2047 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
2048 Adjust.
2049 * corelow.c (core_pid_to_str): Adjust.
2050 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
2051 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
2052 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
2053 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
2054 * hpux-thread.c (hpux_thread_wait): Adjust.
2055 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
2056 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
2057 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
2058 * procfs.c (procfs_pid_to_str): Adjust.
2059 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
2060 * remote-mips.c (mips_wait): Adjust.
2061 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
2062 * remote.c (remote_wait, remote_pid_to_str)
2063 (remote_get_thread_local_address): Adjust.
2064 * rs6000-nat.c (rs6000_wait): Adjust.
2065 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
2066 (sol_thread_wait, solaris_pid_to_str): Adjust.
2067 * spu-linux-nat.c (spu_child_wait): Adjust.
2068 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
2069
2070 2009-02-06 Tom Tromey <tromey@redhat.com>
2071
2072 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
2073 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
2074 (python-cmd.o): New target.
2075 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
2076 completer prototype.
2077 (add_cmd): Initialize destroyer member of cmd_list_element. Use
2078 make_symbol_completion_list_fn as completer.
2079 (delete_cmd): Call destroyer if one is set.
2080 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
2081 completer member. Add destroyer member.
2082 (set_cmd_completer): Add self parameter to
2083 completer prototype.
2084 * command.h (set_cmd_completer): Add cmd parameter to
2085 completer prototype.
2086 * completer.c (noop_completer, filename_completer,
2087 location_completer, expression_completer, command_completer): Adapt
2088 to new completer prototype.
2089 (complete_line_internal): Pass new parameter to completer function.
2090 * completer.h (noop_completer, filename_completer,
2091 location_completer, expression_completer, command_completer): Adapt
2092 prototypes to new completer prototype.
2093 * interps.c (interpreter_completer): Adapt to new completer
2094 prototype.
2095 * python/python-cmd.c: New file.
2096 * python/python-internal.h (gdbpy_initialize_commands): Add
2097 prototype.
2098 (gdbpy_doc_cst): Add forward declaration.
2099 * python/python.c (gdbpy_doc_cst): Declare.
2100 (_initialize_python): Call gdbpy_initialize_commands. Initialize
2101 gdbpy_doc_cst.
2102 * symtab.c (make_symbol_completion_list_fn): New function.
2103 * symtab.h (make_symbol_completion_list_fn): Add prototype.
2104
2105 2009-02-06 Pedro Alves <pedro@codesourcery.com>
2106
2107 * target.c (target_get_osdata): Check for equal or higher than
2108 process_stratum, not dummy_stratum.
2109
2110 2009-02-06 Pedro Alves <pedro@codesourcery.com>
2111
2112 * remote.c (extended_remote_can_run): Delete.
2113 (init_remote_ops): Don't register it.
2114 * target.c (target_get_osdata): Don't check for target_can_run.
2115 Instead any target that has already been pushed, otherwise
2116 fallback to the default run target.
2117
2118 2009-02-06 Pedro Alves <pedro@codesourcery.com>
2119
2120 * target.c (target_create_inferior, target_detach)
2121 (target_mourn_inferior, target_attach, target_close): Do target
2122 debug output.
2123 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
2124 (debug_to_mourn_inferior, debug_to_close): Delete.
2125 (setup_target_debug): Adjust.
2126
2127 2009-02-05 Pedro Alves <pedro@codesourcery.com>
2128
2129 * target.h (target_stopped_data_address_p): Delete declaration,
2130 and don't define as macro.
2131 * target.c (target_stopped_data_address_p): Delete.
2132
2133 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2134 Tom Tromey <tromey@redhat.com>
2135
2136 * python/python-utils.c (target_string_to_unicode): New function.
2137 * python/python-internal.h (target_string_to_unicode): New prototype.
2138 * python/python-value.c (valpy_string): New function.
2139 (value_object_methods): Add `string' entry.
2140
2141 2009-02-05 Pedro Alves <pedro@codesourcery.com>
2142
2143 * target.h (target_tid_to_str): Delete.
2144 * thread.c (print_thread_info, thread_apply_all_command)
2145 (thread_apply_command, thread_command, do_captured_thread_select):
2146 Use target_pid_to_str instead of target_tid_to_str.
2147 * linux-fork.c (delete_fork_command): Likewise.
2148
2149 2009-02-05 Pedro Alves <pedro@codesourcery.com>
2150
2151 * frame.c (has_stack_frames): Make public.
2152 (get_prev_frame): Don't allow a NULL this_frame anymore.
2153 * frame.h (has_stack_frames): Declare.
2154 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
2155 to get_prev_frame, instead start at get_current_frame.
2156 (varobj_create): Check has_stack_frames before getting any frame;
2157 eliminate one usage of deprecated_safe_get_selected_frame.
2158
2159 2009-02-05 Tom Tromey <tromey@redhat.com>
2160 Thiago Jung Bauermann <bauerman@br.ibm.com>
2161
2162 * python/python.c (GdbMethods): Move to bottom of file.
2163 (get_parameter, execute_gdb_command, gdbpy_write,
2164 gdbpy_flush): Remove forward declarations.
2165 (eval_python_from_control_command): Fix error checking of function
2166 PyRun_SimpleString. Fix error string.
2167 (python_command): Likewise.
2168 (execute_gdb_command): Added from_tty argument.
2169
2170 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2171
2172 * language.h (language_dfn): Add la_get_string member.
2173 (LA_GET_STRING): New macro.
2174 (default_get_string): New prototype.
2175 * language.c (default_get_string): New function.
2176 (unknown_language_defn, auto_language_defn, local_language_defn): Use
2177 default_get_string for la_get_string.
2178 * c-lang.c (c_get_string): New function.
2179 (c_language_defn, cplus_language_defn, asm_language_defn): Use
2180 c_get_string for la_get_string.
2181 (minimal_language_defn): Likewise
2182 * ada-lang.c (ada_language_defn): Likewise.
2183 * f-lang.c (f_language_defn): Use default_get_string for
2184 la_get_string.
2185 * jv-lang.c (java_language_defn): Likewise.
2186 * m2-lang.c (m2_language_defn): Likewise.
2187 * objc-lang.c (objc_language_defn): Likewise.
2188 * p-lang.c (p_language_defn): Likewise.
2189 * scm-lang.c (scm_language_defn): Likewise.
2190 * typeprint.c (type_to_string): New function.
2191 * value.h (type_to_string): New prototype.
2192 * valprint.c (val_print_string): Factor out code for reading string
2193 from the inferior into its own function. Put 2 spaces after period
2194 in comments.
2195 (read_string): New function.
2196 * valprint.h (read_string): New prototype.
2197
2198 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
2199 Tom Tromey <tromey@redhat.com>
2200
2201 PR breakpoints/8079:
2202 * breakpoint.c (print_one_breakpoint): Use exp_string field
2203 to display expression of watchpoints.
2204 (mention): Likewise.
2205 (watch_command_1): Remove trailing whitespace from expression.
2206 * printcmd.c (struct display) <exp_string>: New field.
2207 (display_command): Set exp_string.
2208 (free_display): Free exp_string.
2209 (clear_displays): Use free_display.
2210 (do_one_display): Print exp_string.
2211 (display_info): Likewise.
2212
2213 2009-02-04 Tom Tromey <tromey@redhat.com>
2214 Thiago Jung Bauermann <bauerman@br.ibm.com>
2215 Phil Muldoon <pmuldoon@redhat.com>
2216
2217 * python/python-internal.h (gdbpy_get_value_from_history): Rename
2218 prototype to gdbpy_history.
2219 (gdbpy_is_string): Declare.
2220 (python_string_to_host_string): Declare.
2221 * python/python-utils.c (gdbpy_is_string): New function.
2222 (unicode_to_encoded_string): New function.
2223 (unicode_to_target_string): Use it.
2224 (python_string_to_host_string): New function.
2225 * python/python-value.c (valpy_address): New function.
2226 (convert_value_from_python): Use gdbpy_is_string. Change to throw
2227 Python exception instead of a GDB exception on error. Properly check
2228 Python booleans.
2229 (valpy_getitem): Convert field name to host string. Handle array
2230 accesses. Adapt to new behaviour of convert_value_from_python.
2231 (valpy_new): Adapt to new behaviour of convert_value_from_python.
2232 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
2233 VALPY_BITXOR, VALPY_BITOR>: New constants.
2234 (valpy_binop): Update. Adapt to new behaviour of
2235 convert_value_from_python.
2236 (valpy_invert): New function.
2237 (valpy_lsh): Likewise.
2238 (valpy_rsh): Likewise.
2239 (valpy_and): Likewise.
2240 (valpy_or): Likewise.
2241 (valpy_xor): Likewise.
2242 (valpy_richcompare): Call convert_value_from_python instead of doing
2243 conversions itself.
2244 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
2245 (gdbpy_get_value_from_history): Rename
2246 function to gdbpy_history.
2247 (gdbpy_initialize_values): Don't set tp_new.
2248 (value_object_type): Add valpy_new.
2249 (value_object_methods): Add `address' entry.
2250 (value_object_as_number): Update for new methods.
2251 * python/python.c (GdbMethods): Rename entry from
2252 `get_value_from_history' to `history'.
2253
2254 2009-02-04 Jerome Guitton <guitton@adacore.com>
2255
2256 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
2257 of type to guard against a crash.
2258
2259 2009-02-04 Jerome Guitton <guitton@adacore.com>
2260
2261 * value.c (value_from_contents_and_address): Always return
2262 a lval_memory value, even if address is null.
2263
2264 2009-02-04 Tristan Gingold <gingold@adacore.com>
2265
2266 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
2267 (amd64_darwin_sigcontext_addr): Ditto.
2268 (darwin_dwarf_signal_frame_p): Ditto.
2269 (i386_darwin_init_abi): Handle signal frames, use the const for
2270 sc_num_regs.
2271 (x86_darwin_init_abi_64): Ditto.
2272
2273 2009-02-04 Tristan Gingold <gingold@adacore.com>
2274
2275 * i386-tdep.c (i386_sigtramp_p): Make it public.
2276 * i386-tdep.h (i386_sigtramp_p): Declare.
2277
2278 2009-02-04 Tristan Gingold <gingold@adacore.com>
2279
2280 * machoread.c (macho_symfile_read): Read minsymtab also from
2281 shared libraries.
2282 (macho_symfile_read): Try to read dwarf2 frame info from main
2283 object file, but not from OSO files.
2284 (macho_symfile_offsets): Update section names for latest BFD
2285 changes.
2286 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
2287 (x86_darwin_init_abi_64): Ditto.
2288 * solib-darwin.c: New file.
2289 * solib-darwin.h: New file.
2290 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
2291
2292 2009-02-04 Tristan Gingold <gingold@adacore.com>
2293
2294 * solist.h (struct target_so_ops): Comment fallback behavior for
2295 operation same.
2296
2297 2009-02-03 Tom Tromey <tromey@redhat.com>
2298
2299 * completer.c (add_struct_fields): Check type_name against NULL
2300 before use.
2301
2302 2009-02-03 Joel Brobecker <brobecker@adacore.com>
2303
2304 * MAINTAINERS: Update Elena's email address.
2305
2306 2009-02-02 Joel Brobecker <brobecker@adacore.com>
2307
2308 * breakpoint (update_watchpoint): Minor comment adjustment.
2309
2310 2009-02-02 Tom Tromey <tromey@redhat.com>
2311
2312 PR gdb/9594:
2313 * completer.c (count_struct_fields): Count method names.
2314 (add_struct_fields): Add matching method names.
2315
2316 2009-02-02 Doug Evans <dje@google.com>
2317
2318 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
2319 doing any further tcl/tk configury. Don't configure gdbtk if
2320 tcl or tk check fails.
2321 * aclocal.m4: Regenerate.
2322 * configure: Regenerate.
2323
2324 2009-02-02 Tom Tromey <tromey@redhat.com>
2325
2326 PR exp/9059:
2327 * valops.c (find_overload_match): Follow typedefs before taking
2328 address of object argument.
2329
2330 2009-02-01 Doug Evans <dje@google.com>
2331
2332 * target.h (target_waitstatus_to_string): Declare.
2333 * target.c (target_waitstatus_to_string): New function. Copied from
2334 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
2335 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
2336 TARGET_WAITKIND_NO_HISTORY.
2337 (debug_to_wait): Call it.
2338 * infrun.c (wait_for_inferior): If debug_infrun, print result of
2339 target_wait.
2340 (fetch_inferior_event): Ditto.
2341
2342 2009-01-30 Tom Tromey <tromey@redhat.com>
2343
2344 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
2345
2346 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
2347
2348 PR 8145.
2349 * thread.c (do_captured_list_thread_ids): Report the current
2350 thread id.
2351
2352 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
2353
2354 * breakpoint.c (create_breakpoint, create_breakpoints)
2355 (break_command_really, set_breakpoint): New parameter enabled.
2356 (create_breakpoint, break_command_really): Make breakpoint
2357 disabled if so requested.
2358 * breakpoint.h (set_breakpoint): New parameter enabled.
2359 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
2360
2361 2009-01-28 Doug Evans <dje@google.com>
2362
2363 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
2364 (amd64_displaced_step_fixup): Declare.
2365 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
2366 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
2367 and make static global.
2368 (amd64_arch_regmap_len): New static global.
2369 (amd64_arch_reg_to_regnum): New function.
2370 (struct amd64_insn): New struct.
2371 (struct displaced_step_closure): New struct.
2372 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
2373 (rex_prefix_p,skip_prefixes)
2374 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
2375 (amd64_insn_length,amd64_get_unused_input_int_reg)
2376 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
2377 (amd64_displaced_step_copy_insn)
2378 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
2379 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
2380 (amd64_displaced_step_fixup): New functions.
2381 * amd64-linux-tdep.c: #include arch-utils.h.
2382 (amd64_linux_init_abi): Install displaced stepping support.
2383
2384 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2385 Jerome Guitton <guitton@adacore.com>
2386
2387 * configure, config.in: Regenerated.
2388 * configure.ac: Add --with-system-gdbinit.
2389 * main.c (get_init_files): New.
2390 (captured_main): Use get_init_files. Load system gdbinit before
2391 $HOME/.gdbinit.
2392 (print_gdb_help): Print location of init files.
2393
2394 2009-01-28 Pedro Alves <pedro@codesourcery.com>
2395
2396 * corefile.c (generic_search): Delete disabled code.
2397 * gdbcore.h (generic_search): Delete declaration.
2398
2399 2009-01-26 Pedro Alves <pedro@codesourcery.com>
2400
2401 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
2402 parent to the child.
2403 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2404 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
2405 remove_breakpoints to remove breakpoints from the parent.
2406
2407 2009-01-26 Pedro Alves <pedro@codesourcery.com>
2408
2409 PR backtrace/9458, PR backtrace/8864:
2410 * frame.c (create_new_frame): Update the frame's cached PC before
2411 finding its unwinder. Use frame_id_build to build the new frame's
2412 id.
2413 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
2414 array values from the ``args'' array values.
2415
2416 2009-01-26 Pedro Alves <pedro@codesourcery.com>
2417
2418 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
2419 (create_array_type, create_set_type, init_flags_type)
2420 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
2421 with a call to XZALLOC or XCALLOC, and pairs of calls to
2422 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
2423
2424 2009-01-26 Pedro Alves <pedro@codesourcery.com>
2425
2426 Add "maint set|show internal-error|internal-warning quit|corefile
2427 ask|yes|no" commands.
2428
2429 PR gdb/7580:
2430 * utils.c (internal_problem_ask, internal_problem_yes)
2431 (internal_problem_no, internal_problem_modes): New.
2432 (struct internal_problem): Remove FIXME. Make should_quit and
2433 should_dump_core types to char *.
2434 (internal_vproblem, internal_error_problem)
2435 (internal_warning_problem): Adjust.
2436 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
2437 functions.
2438 (add_internal_problem_command): New.
2439 (_initialize_utils): New.
2440
2441 2009-01-25 Pedro Alves <pedro@codesourcery.com>
2442
2443 * infcmd.c (program_info): Use paddress instead of casting stop_pc
2444 to unsigned long.
2445
2446 2009-01-24 Pedro Alves <pedro@codesourcery.com>
2447
2448 * infrun.c (normal_stop): Don't call
2449 deprecated_update_frame_pc_hack.
2450 * frame.c (deprecated_update_frame_pc_hack)
2451 (deprecated_update_frame_base_hack): Delete, and ...
2452 (create_new_frame): ... inline here.
2453 * frame.h (deprecated_update_frame_pc_hack)
2454 (deprecated_update_frame_base_hack): Delete declarations.
2455
2456 2009-01-23 Pedro Alves <pedro@codesourcery.com>
2457
2458 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
2459 * cli/cli-setshow.c (do_setshow_command): Handle it.
2460 * command.h (enum var_types): Add var_zuinteger.
2461 (add_setshow_zuinteger_cmd): Declare.
2462
2463 * valprint.c (_initialize_valprint): Change the set input-radix
2464 and set output-radix commands to zuinteger type.
2465
2466 2009-01-23 Pedro Alves <pedro@codesourcery.com>
2467
2468 PR gdb/9664:
2469 * infrun.c (normal_stop): Tag threads as stopped, and run the
2470 hook-stop before printing the stack frame.
2471
2472 2009-01-22 Pedro Alves <pedro@codesourcery.com>
2473
2474 PR c++/9631:
2475 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
2476 vbasetype.
2477
2478 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
2479
2480 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
2481 unsigned long.
2482
2483 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2484
2485 PR gdb/9346
2486 * infcmd.c (signal_command): Do not specify a resume PC.
2487
2488 2009-01-19 Doug Evans <dje@google.com>
2489
2490 * dummy-frame.c (dummy_frame): Replace regcache member with
2491 caller_state.
2492 (dummy_frame_push): Replace caller_regcache arg with caller_state.
2493 All callers updated.
2494 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
2495 (dummy_frame_pop): Rewrite. Verify requested frame is in the
2496 dummy frame stack. Restore program state.
2497 (cleanup_dummy_frames): Rewrite.
2498 (dummy_frame_sniffer): Update. Make static.
2499 * dummy-frame.h (regcache,frame_info): Delete forward decls.
2500 (inferior_thread_state): New forward decl.
2501 (dummy_frame_push): Update prototype.
2502 * frame.c (frame_pop): dummy_frame_pop now does all the work for
2503 DUMMY_FRAMEs.
2504 * infcall.c (breakpoint_auto_delete_contents): Delete.
2505 (get_function_name,run_inferior_call): New fns.
2506 (call_function_by_hand): Simplify by moving some code to
2507 get_function_name, run_inferior_call. Inferior function call wrapped
2508 in TRY_CATCH so there's less need for cleanups and all exits from
2509 proceed are handled similarily. Detect program exit.
2510 Detect program stopping in a different thread.
2511 Make error messages more consistent.
2512 * inferior.h (inferior_thread_state): Declare (opaque type).
2513 (save_inferior_thread_state,restore_inferior_thread_state,
2514 make_cleanup_restore_inferior_thread_state,
2515 discard_inferior_thread_state, get_inferior_thread_state_regcache):
2516 Declare.
2517 (save_inferior_status): Update prototype.
2518 * infrun.c: (normal_stop): When stopped for the completion of an
2519 inferior function call, verify the expected stack frame kind.
2520 (inferior_thread_state): New struct.
2521 (save_inferior_thread_state,restore_inferior_thread_state,
2522 do_restore_inferior_thread_state_cleanup,
2523 make_cleanup_restore_inferior_thread_state,
2524 discard_inferior_thread_state,
2525 get_inferior_thread_state_regcache): New functions.
2526 (inferior_status): Move stop_signal, stop_pc, registers to
2527 inferior_thread_state. Remove restore_stack_info.
2528 (save_inferior_status): Remove arg restore_stack_info.
2529 All callers updated. Remove saving of state now saved by
2530 save_inferior_thread_state.
2531 (restore_inferior_status): Remove restoration of state now done by
2532 restore_inferior_thread_state.
2533 (discard_inferior_status): Remove freeing of registers, now done by
2534 discard_inferior_thread_state.
2535
2536 2009-01-18 Pedro Alves <pedro@codesourcery.com>
2537
2538 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
2539 at a time, times NUM_TO_SCROLL.
2540 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
2541 fetch the selected frame if there is no stack.
2542
2543 2009-01-18 Pedro Alves <pedro@codesourcery.com>
2544
2545 PR gdb/9747:
2546 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
2547 Declare.
2548 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
2549 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
2550 is thrown while handling an event, finish the thread state.
2551 (normal_stop): Use finish_thread_state cleanup.
2552 * infcmd.c (run_command_1): If an error is thrown while starting
2553 the inferior, finish the thread state.
2554
2555 2009-01-18 Pedro Alves <pedro@codesourcery.com>
2556
2557 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
2558 skip breakpoints without a location (pending breakpoints).
2559
2560 2009-01-18 Pedro Alves <pedro@codesourcery.com>
2561
2562 PR build/9186:
2563 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
2564
2565 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
2566
2567 * thread.c (thread_command): Move call to annotate_thread_changed
2568 to...
2569 (do_captured_thread_select): ... here, to avoid printing an
2570 annotation if the thread change generates an exception.
2571
2572 2009-01-16 Joel Brobecker <brobecker@adacore.com>
2573
2574 * NEWS: Document x86_64/MinGW as a new native configuration.
2575
2576 2009-01-16 Joel Brobecker <brobecker@adacore.com>
2577
2578 * NEWS: Move the documentation of "info os processes" to
2579 the appropriate section (documenting the new commands).
2580
2581 2009-01-15 Doug Evans <dje@google.com>
2582
2583 * target.h (target_signal_to_string): Make return type const char *.
2584 (target_signal_to_name): Ditto.
2585 (target_signal_from_name): Make arg const char *.
2586 * infrun.c (sig_print_info): Update.
2587 * signals/signals.c (signals): Make array and struct members const.
2588 (target_signal_to_string): Make return type const char *.
2589 (target_signal_to_name): Ditto.
2590 (target_signal_from_name): Make arg const char *.
2591
2592 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
2593 Tristan Gingold <gingold@adacore.com>
2594
2595 * solist.h (struct target_so_ops): New member bfd_open.
2596 (solib_find): Add prototype.
2597 (solib_bfd_fopen): Add prototype.
2598 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
2599 from solib_bfd_open.
2600 (solib_bfd_open): Use ops->bfd_open override if present. Call
2601 solib_find and solib_bfd_open otherwise.
2602
2603 * objfiles.h (OBJF_KEEPBFD): New define.
2604 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
2605 objfile flag is set.
2606 * solib.c (symbol_add_stub): Do not allocate second BFD for
2607 shared library; use OBJF_KEEPBFD flag on solib objfile.
2608
2609 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
2610
2611 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
2612
2613 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
2614
2615 * value.h (address_of_variable): Add prototype.
2616 (locate_var_value): Remove prototype.
2617
2618 * findvar.c (read_var_value): Do not attempt to default frame
2619 to selected frame.
2620 (locate_var_value): Remove function.
2621 * valops.c (value_of_variable): Retrieve selected frame for
2622 symbols that require a frame when called with NULL block.
2623 * valops.c (address_of_variable): New function.
2624
2625 * eval.c (evaluate_subexp_for_address): Call address_of_variable
2626 instead of calling locate_var_value.
2627 (evaluate_subexp_with_coercion): Likewise.
2628
2629 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
2630
2631 * NEWS: Document "define" for prefixed commands.
2632 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
2633 show_user_1 for prefix commands.
2634 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
2635 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
2636 commands. Return the containing command list.
2637 (define_command, document_command): Update to handle prefix commands.
2638 (show_user_1): Add prefix and name arguments. Handle prefix
2639 commands.
2640 * cli/cli-script.h (show_user_1): Update prototype.
2641
2642 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
2643
2644 * mingw-ser.c (console_select_thread): Add return to make
2645 compiler happy.
2646 (pipe_select_thread): Likewise.
2647 (file_select_thread): Likewise.
2648
2649 2009-01-14 Pedro Alves <pedro@codesourcery.com>
2650
2651 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
2652 previous change.
2653
2654 2009-01-14 Pedro Alves <pedro@codesourcery.com>
2655
2656 * remote.c (extended_remote_mourn_1): Invalidate our notion of
2657 current general thread.
2658
2659 2009-01-14 Pedro Alves <pedro@codesourcery.com>
2660
2661 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
2662 without a live selected thread.
2663
2664 2009-01-14 Joel Brobecker <brobecker@adacore.com>
2665
2666 Update the copyright notice of some of the files I missed
2667 in the previous copyright update.
2668
2669 2009-01-14 Joel Brobecker <brobecker@adacore.com>
2670
2671 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
2672 base address instead of casting it to DWORD.
2673
2674 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
2675
2676 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
2677 for NULL frame pointers.
2678
2679 2009-01-13 Mark Kettenis <kettenis@gnu.org>
2680
2681 * utils.c (host_address_to_string): Reimplement in a way that
2682 avoids the cast of the address to long.
2683
2684 2009-01-13 Joel Brobecker <brobecker@adacore.com>
2685
2686 * mdebugread.c (parse_symbol): Save the symbol private data
2687 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
2688 (psymtab_to_symtab_1): Likewise.
2689 (parse_procedure): Declare variable "e" only in the scope
2690 where it is used. Extract the symbol private data using
2691 SYMBOL_VALUE_BYTES.
2692
2693 2009-01-13 Jim Blandy <jimb@codesourcery.com>
2694
2695 Abstract out common code for copying value locations.
2696
2697 * value.h (set_value_component_location): New declaration.
2698 * value.c (set_value_component_location): New function.
2699 (value_primitive_field): Use it.
2700 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
2701 * valops.c (search_struct_field, value_slice): Same.
2702 * ada-lang.c (coerce_unspec_val_to_type)
2703 (ada_value_primitive_packed_val): Same.
2704
2705 2009-01-13 Joel Brobecker <brobecker@adacore.com>
2706
2707 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
2708
2709 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
2710
2711 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
2712 throughout.
2713 * i386-cygwin-tdep.c: Ditto.
2714 * i386-windows-nat.c: Ditto.
2715 * windows-nat.h: Ditto.
2716 * windows-tdep.c: Ditto.
2717 * windows-tdep.h: Ditto.
2718 * windows-nat.c: Ditto.
2719 (cygwin_load_start): Redefine as CORE_ADDR.
2720 (cygwin_load_end): Ditto.
2721 (windows_make_so): Coerce result of address arithmetic to uintptr_t
2722 before coercing to CORE_ADDR to avoid a compiler warning.
2723 (handle_exception): Define addr as CORE_ADDR and coerce
2724 ExceptionAddress to uintptr_t before assigining to avoid a compiler
2725 warning.
2726 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
2727 files.
2728
2729 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 Fix linking with --enable-targets=all:
2732 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
2733 (HFILES_NO_SRCDIR): Add windows-tdep.h.
2734 (ALLDEPFILES): Add windows-tdep.c.
2735
2736 2009-01-11 Chris Faylor <me.gdb@cgf.cx>
2737
2738 * win32-nat.h: Delete.
2739 * windows-nat.h: Rename from win32-nat.h.
2740 * win32-nat.c: Delete.
2741 * windows-nat.c: Rename from win32-nat.c.
2742 * win32-termcap.c: Delete.
2743 * windows-termcap.c: Rename from win32-termcap.c.
2744 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
2745 * configure.ac: Handle rename from win32-termcap.c ->
2746 windows-termcap.c.
2747 * configure: Regenerate.
2748 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
2749 -> windows-termcap.c.
2750 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
2751 windows-tdep.h.
2752 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
2753 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
2754 windows-tdep.h.
2755 (win32_make_so): Handle cygwin compiler warning due to change of
2756 load_addr from DWORD to LPVOID.
2757 (handle_load_dll): Use %p in format string to properly print address
2758 and avoid a compiler warning.
2759 (DEBUG_EXCEPTION_SIMPLE): Ditto.
2760 (handle_exception): Ditto.
2761 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
2762 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
2763 windows-nat.o.
2764 * config/i386/mingw.mh: Ditto.
2765 * config/i386/mingw64.mh: Ditto.
2766
2767 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
2770 arrayprint_recurse_level to a parameter. Update all the callers. New
2771 comment at autovariables.
2772
2773 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2774
2775 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
2776 coding style.
2777
2778 2009-01-11 Joel Brobecker <brobecker@adacore.com>
2779
2780 * target.c (target_xfer_partial): Use host_address_to_string to
2781 print the address of readbuf and writebuf. Cast the address of
2782 elements inside the myaddr buffer into intptr_t.
2783 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
2784 Cast the address of elements inside the myaddr buffer into
2785 intptr_t.
2786
2787 2009-01-11 Joel Brobecker <brobecker@adacore.com>
2788
2789 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
2790 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
2791 * configure.host, configure.tgt: Add handling for x86_64/windows.
2792 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
2793 and amd64-windows-tdep.c.
2794
2795 2009-01-11 Joel Brobecker <brobecker@adacore.com>
2796
2797 * win32-tdep.h, win32-tdep.c: New files.
2798 * i386-cygwin-tdep.h: Delete.
2799 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
2800 i386-cygwin-tdep.h.
2801 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
2802 * win32-nat.c: Likewise.
2803 * configure.tgt: Add win32-tdep.o to the list of target object
2804 files for i386-cygwin and i386-mingw targets.
2805
2806 2009-01-11 Joel Brobecker <brobecker@adacore.com>
2807
2808 * win32-nat.h: New file.
2809 * win32-nat.c (mappings): Initialize to NULL.
2810 (win32_set_context_register_offsets): New function.
2811 * i386-windows-nat.c: New file.
2812 (mappings): Moved here from win32-nat.c.
2813 (_initialize_i386_windows_nat): New function.
2814 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
2815 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
2816
2817 2009-01-09 Andreas Schwab <schwab@suse.de>
2818
2819 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
2820
2821 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2822
2823 * gdbtypes.c (append_composite_type_field): Correct the location of
2824 appended fields.
2825
2826 2009-01-09 Pedro Alves <pedro@codesourcery.com>
2827
2828 * defs.h (deprecated_error_hook): Delete declaration.
2829 * interps.c (clear_interpreter_hooks): Adjust.
2830 * remote-sim.c (gdb_os_error): Don't try to call
2831 deprecated_error_hook. No need to call exit anymore.
2832 * top.c (deprecated_error_hook): Delete.
2833
2834 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2835
2836 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
2837 to print the address of the gdbarch pointer.
2838
2839 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2840
2841 * gdbarch.sh: Fix all the compilation errors on amd64-windows
2842 due to casting a pointer to a long when printing a function
2843 address. Instead, use host_address_to_string to convert our
2844 address to a string.
2845 * gdbarch.c: Regenerate.
2846
2847 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2848
2849 * event-top.c (async_disconnect, async_stop_sig): use "raise"
2850 instead of "kill" to raise a signal.
2851
2852 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2853
2854 * win32-nat.c (get_module_name): Change the type of parameter
2855 "base_address" to LPVOID. Remove unnecessary cast.
2856 (struct lm_info): Change type of load_addr to LPVOID.
2857 (win32_make_so): Change the type of parameter "load_addr"
2858 to LPVOID. Remove some unnecessary casts.
2859 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
2860 (win32_xfer_shared_libraries): Add missing cast.
2861
2862 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2863
2864 * win32-nat.c (has_detach_ability, set_process_privilege):
2865 Cast the result of GetProcAddress to (void *) to avoid
2866 a compilation warning.
2867
2868 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2869
2870 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
2871 already defined.
2872
2873 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2874
2875 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
2876 definition of local variable "done".
2877 (info_w32_command, handle_exception): Remove unnecessary cast.
2878
2879 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2880
2881 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
2882 DebugSetProcessKillOnExit. Update all uses in this file.
2883 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
2884 Update all uses in this file.
2885
2886 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2887
2888 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
2889 and use it when pushing the target.
2890 (win32_attach, win32_create_inferior): Update call to
2891 do_initial_win32_stuff.
2892 (win32_detach, win32_mourn_inferior): Use our ops parameter
2893 instead of the global win32_ops to unpush the target.
2894
2895 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2896
2897 * ser-mingw.c (ser_windows_open): Use proper type when casting
2898 in call to _open_osfhandle.
2899
2900 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
2901
2902 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
2903
2904 2009-01-09 Joel Brobecker <brobecker@adacore.com>
2905
2906 * CONTRIBUTE: Minor reformatting.
2907
2908 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
2909
2910 * MAINTAINERS: Add myself to Write After Approval.
2911 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
2912 export directory.
2913
2914 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
2915
2916 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
2917 Call exit to make it obvious to GCC.
2918
2919 2009-01-08 Tom Tromey <tromey@redhat.com>
2920
2921 PR breakpoints/9350:
2922 * varobj.c (varobj_invalidate): Unconditionally free
2923 all_rootvarobj.
2924 * symfile.c (syms_from_objfile): Free local_addr when returning
2925 normally.
2926 * exec.c (exec_file_attach): Do cleanups before returning.
2927 (exec_file_command): Likewise.
2928 * corefile.c (reopen_exec_file): Do cleanups before returning.
2929 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
2930 returning.
2931 (do_vec_free): New function.
2932 (update_global_location_list): Make a cleanup for old_locations.
2933 Do cleanups before returning. Remove unused variable 'e'.
2934 (find_condition_and_thread): Free result of parsing the
2935 expression.
2936 (print_it_typical): Do cleanups before returning.
2937 (breakpoint_re_set_one): Always free sals.sals.
2938
2939 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2940 Emi Suzuki <emi-suzuki@tjsys.co.jp>
2941
2942 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
2943 watchpoints.
2944
2945 2009-01-07 Doug Evans <dje@google.com>
2946
2947 * top.c (gdb_prompt_string): Delete, unused.
2948
2949 2009-01-07 Pedro Alves <pedro@codesourcery.com>
2950
2951 Delete ONE_PROCESS_WRITETEXT leftovers.
2952
2953 * breakpoint.c (insert_bp_location): Delete process_warning
2954 argument. Adjust.
2955 (insert_breakpoint_locations): Adjust.
2956 (reattach_breakpoints): Adjust.
2957 * infrun.c (normal_stop): Drop "It might be running in another
2958 process" notice.
2959
2960 2009-01-07 Stan Shebs <stan@codesourcery.com>
2961
2962 * config/pa/linux.mh (XDEPFILES): Remove.
2963
2964 2009-01-07 Doug Evans <dje@google.com>
2965
2966 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
2967
2968 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2969
2970 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
2971 spacing, a regression from 2008-04-22.
2972
2973 2009-01-07 Joel Brobecker <brobecker@adacore.com>
2974
2975 * utils.c (gdb_print_host_address): Adjust implementation to
2976 reuse host_address_to_string. Move comment explaining the conversion
2977 from host address to string from here...
2978 (host_address_to_string): ... to there.
2979
2980 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
2981
2982 * MAINTAINERS: Add myself for write after approval privileges.
2983
2984 2009-01-06 Tom Tromey <tromey@redhat.com>
2985
2986 * value.c (set_internalvar): Use value_free, not xfree.
2987
2988 2009-01-06 Jim Blandy <jimb@red-bean.com>
2989
2990 Check return values of functions declared with warn_unused_result
2991 attribute in GLIBC 2.8.
2992 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
2993 * inflow.c (check_syscall): New function.
2994 (new_tty): Use check_syscall to check return values from open and dup.
2995 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
2996 * main.c (captured_main): Call cwd after setting up gdb_stderr;
2997 check for errors from getcwd.
2998 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
2999 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
3000 (stdio_file_fputs): Same.
3001 * utils.c (internal_vproblem): abort if last-ditch error message
3002 write fails.
3003
3004 * top.c (gdb_init): Don't set the current directory here; that's
3005 already been done in captured_main.
3006
3007 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
3008
3009 * ser-tcp.c: Adjust includes.
3010 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
3011 (tcp_auto_retry, tcp_retry_limit): Declare.
3012 (TIMEOUT): Remove, in favor of tcp_retry_limit.
3013 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
3014 (wait_for_connect): New function.
3015 (net_open): Use it. Add auto-retry logic.
3016 (set_tcp_cmd, show_tcp_cmd): New functions.
3017 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
3018 and "set/show tcp connect-timeout" commands.
3019 * NEWS: Document new commands.
3020
3021 2009-01-05 Tom Tromey <tromey@redhat.com>
3022
3023 * python/python-internal.h (Py_ssize_t): Define as int.
3024
3025 2009-01-05 Jim Blandy <jimb@red-bean.com>
3026
3027 * MAINTAINERS: Fix my e-mail address as steering committee member.
3028
3029 2009-01-03 Joel Brobecker <brobecker@adacore.com>
3030
3031 Updated copyright notices for most files.
3032
3033 2009-01-03 Joel Brobecker <brobecker@adacore.com>
3034
3035 * top.c (print_gdb_version): Update copyright year.
3036
3037 2009-01-03 Joel Brobecker <brobecker@adacore.com>
3038
3039 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
3040
3041 2009-01-01 Pedro Alves <pedro@codesourcery.com>
3042
3043 PR breakpoints/9681:
3044 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
3045 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
3046 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
3047 retrow all other exceptions.
3048
3049 For older changes see ChangeLog-2008.
3050 \f
3051 Local Variables:
3052 mode: change-log
3053 left-margin: 8
3054 fill-column: 74
3055 version-control: never
3056 coding: utf-8
3057 End:
This page took 0.089844 seconds and 5 git commands to generate.