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