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