daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
611041af
PA
12009-02-05 Pedro Alves <pedro@codesourcery.com>
2
3 * target.h (target_stopped_data_address_p): Delete declaration,
4 and don't define as macro.
5 * target.c (target_stopped_data_address_p): Delete.
6
b6cb8e7d
TJB
72009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
8 Tom Tromey <tromey@redhat.com>
9
10 * python/python-utils.c (target_string_to_unicode): New function.
11 * python/python-internal.h (target_string_to_unicode): New prototype.
12 * python/python-value.c (valpy_string): New function.
13 (value_object_methods): Add `string' entry.
14
54ba13f7
PA
152009-02-05 Pedro Alves <pedro@codesourcery.com>
16
17 * target.h (target_tid_to_str): Delete.
18 * thread.c (print_thread_info, thread_apply_all_command)
19 (thread_apply_command, thread_command, do_captured_thread_select):
20 Use target_pid_to_str instead of target_tid_to_str.
21 * linux-fork.c (delete_fork_command): Likewise.
22
9d49bdc2
PA
232009-02-05 Pedro Alves <pedro@codesourcery.com>
24
25 * frame.c (has_stack_frames): Make public.
26 (get_prev_frame): Don't allow a NULL this_frame anymore.
27 * frame.h (has_stack_frames): Declare.
28 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
29 to get_prev_frame, instead start at get_current_frame.
30 (varobj_create): Check has_stack_frames before getting any frame;
31 eliminate one usage of deprecated_safe_get_selected_frame.
32
12453b93
TJB
332009-02-05 Tom Tromey <tromey@redhat.com>
34 Thiago Jung Bauermann <bauerman@br.ibm.com>
35
36 * python/python.c (GdbMethods): Move to bottom of file.
37 (get_parameter, execute_gdb_command, gdbpy_write,
38 gdbpy_flush): Remove forward declarations.
39 (eval_python_from_control_command): Fix error checking of function
40 PyRun_SimpleString. Fix error string.
41 (python_command): Likewise.
42 (execute_gdb_command): Added from_tty argument.
43
ae6a3a4c
TJB
442009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
45
46 * language.h (language_dfn): Add la_get_string member.
47 (LA_GET_STRING): New macro.
48 (default_get_string): New prototype.
49 * language.c (default_get_string): New function.
50 (unknown_language_defn, auto_language_defn, local_language_defn): Use
51 default_get_string for la_get_string.
52 * c-lang.c (c_get_string): New function.
53 (c_language_defn, cplus_language_defn, asm_language_defn): Use
54 c_get_string for la_get_string.
55 (minimal_language_defn): Likewise
56 * ada-lang.c (ada_language_defn): Likewise.
57 * f-lang.c (f_language_defn): Use default_get_string for
58 la_get_string.
59 * jv-lang.c (java_language_defn): Likewise.
60 * m2-lang.c (m2_language_defn): Likewise.
61 * objc-lang.c (objc_language_defn): Likewise.
62 * p-lang.c (p_language_defn): Likewise.
63 * scm-lang.c (scm_language_defn): Likewise.
64 * typeprint.c (type_to_string): New function.
65 * value.h (type_to_string): New prototype.
66 * valprint.c (val_print_string): Factor out code for reading string
67 from the inferior into its own function. Put 2 spaces after period
68 in comments.
69 (read_string): New function.
70 * valprint.h (read_string): New prototype.
71
fa8a61dc
TT
722009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
73 Tom Tromey <tromey@redhat.com>
74
75 PR breakpoints/8079:
76 * breakpoint.c (print_one_breakpoint): Use exp_string field
77 to display expression of watchpoints.
78 (mention): Likewise.
79 (watch_command_1): Remove trailing whitespace from expression.
80 * printcmd.c (struct display) <exp_string>: New field.
81 (display_command): Set exp_string.
82 (free_display): Free exp_string.
83 (clear_displays): Use free_display.
84 (do_one_display): Print exp_string.
85 (display_info): Likewise.
86
08c637de
TJB
872009-02-04 Tom Tromey <tromey@redhat.com>
88 Thiago Jung Bauermann <bauerman@br.ibm.com>
89 Phil Muldoon <pmuldoon@redhat.com>
90
91 * python/python-internal.h (gdbpy_get_value_from_history): Rename
92 prototype to gdbpy_history.
93 (gdbpy_is_string): Declare.
94 (python_string_to_host_string): Declare.
95 * python/python-utils.c (gdbpy_is_string): New function.
96 (unicode_to_encoded_string): New function.
97 (unicode_to_target_string): Use it.
98 (python_string_to_host_string): New function.
99 * python/python-value.c (valpy_address): New function.
100 (convert_value_from_python): Use gdbpy_is_string. Change to throw
101 Python exception instead of a GDB exception on error. Properly check
102 Python booleans.
103 (valpy_getitem): Convert field name to host string. Handle array
104 accesses. Adapt to new behaviour of convert_value_from_python.
105 (valpy_new): Adapt to new behaviour of convert_value_from_python.
106 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
107 VALPY_BITXOR, VALPY_BITOR>: New constants.
108 (valpy_binop): Update. Adapt to new behaviour of
109 convert_value_from_python.
110 (valpy_invert): New function.
111 (valpy_lsh): Likewise.
112 (valpy_rsh): Likewise.
113 (valpy_and): Likewise.
114 (valpy_or): Likewise.
115 (valpy_xor): Likewise.
116 (valpy_richcompare): Call convert_value_from_python instead of doing
117 conversions itself.
118 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
119 (gdbpy_get_value_from_history): Rename
120 function to gdbpy_history.
121 (gdbpy_initialize_values): Don't set tp_new.
122 (value_object_type): Add valpy_new.
123 (value_object_methods): Add `address' entry.
124 (value_object_as_number): Update for new methods.
125 * python/python.c (GdbMethods): Rename entry from
126 `get_value_from_history' to `history'.
127
538e13a6 1282009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
129
130 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
131 of type to guard against a crash.
132
33d502b4
JG
1332009-02-04 Jerome Guitton <guitton@adacore.com>
134
135 * value.c (value_from_contents_and_address): Always return
136 a lval_memory value, even if address is null.
137
9f08ae4f
TG
1382009-02-04 Tristan Gingold <gingold@adacore.com>
139
140 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
141 (amd64_darwin_sigcontext_addr): Ditto.
142 (darwin_dwarf_signal_frame_p): Ditto.
143 (i386_darwin_init_abi): Handle signal frames, use the const for
144 sc_num_regs.
145 (x86_darwin_init_abi_64): Ditto.
146
4bd207ef
TG
1472009-02-04 Tristan Gingold <gingold@adacore.com>
148
149 * i386-tdep.c (i386_sigtramp_p): Make it public.
150 * i386-tdep.h (i386_sigtramp_p): Declare.
151
4aa99a88
TG
1522009-02-04 Tristan Gingold <gingold@adacore.com>
153
154 * machoread.c (macho_symfile_read): Read minsymtab also from
155 shared libraries.
156 (macho_symfile_read): Try to read dwarf2 frame info from main
157 object file, but not from OSO files.
158 (macho_symfile_offsets): Update section names for latest BFD
159 changes.
160 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
161 (x86_darwin_init_abi_64): Ditto.
162 * solib-darwin.c: New file.
163 * solib-darwin.h: New file.
164 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
165
7a848be1
TG
1662009-02-04 Tristan Gingold <gingold@adacore.com>
167
168 * solist.h (struct target_so_ops): Comment fallback behavior for
169 operation same.
170
b32d97f3
TT
1712009-02-03 Tom Tromey <tromey@redhat.com>
172
173 * completer.c (add_struct_fields): Check type_name against NULL
174 before use.
175
692263b8
JB
1762009-02-03 Joel Brobecker <brobecker@adacore.com>
177
178 * MAINTAINERS: Update Elena's email address.
179
bfa149ac
JB
1802009-02-02 Joel Brobecker <brobecker@adacore.com>
181
182 * breakpoint (update_watchpoint): Minor comment adjustment.
183
1c71341a
TT
1842009-02-02 Tom Tromey <tromey@redhat.com>
185
52e44b43 186 PR gdb/9594:
1c71341a
TT
187 * completer.c (count_struct_fields): Count method names.
188 (add_struct_fields): Add matching method names.
189
85541719
DE
1902009-02-02 Doug Evans <dje@google.com>
191
192 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
193 doing any further tcl/tk configury. Don't configure gdbtk if
194 tcl or tk check fails.
195 * aclocal.m4: Regenerate.
196 * configure: Regenerate.
197
a4295225
TT
1982009-02-02 Tom Tromey <tromey@redhat.com>
199
200 PR exp/9059:
201 * valops.c (find_overload_match): Follow typedefs before taking
202 address of object argument.
203
f00150c9
DE
2042009-02-01 Doug Evans <dje@google.com>
205
206 * target.h (target_waitstatus_to_string): Declare.
207 * target.c (target_waitstatus_to_string): New function. Copied from
208 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
209 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
210 TARGET_WAITKIND_NO_HISTORY.
211 (debug_to_wait): Call it.
212 * infrun.c (wait_for_inferior): If debug_infrun, print result of
213 target_wait.
214 (fetch_inferior_event): Ditto.
215
5abdf4bd
TT
2162009-01-30 Tom Tromey <tromey@redhat.com>
217
218 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
219
592375cd
VP
2202009-01-30 Vladimir Prus <vladimir@codesourcery.com>
221
222 PR 8145.
223 * thread.c (do_captured_list_thread_ids): Report the current
224 thread id.
225
41447f92
VP
2262009-01-30 Vladimir Prus <vladimir@codesourcery.com>
227
228 * breakpoint.c (create_breakpoint, create_breakpoints)
229 (break_command_really, set_breakpoint): New parameter enabled.
230 (create_breakpoint, break_command_really): Make breakpoint
231 disabled if so requested.
232 * breakpoint.h (set_breakpoint): New parameter enabled.
233 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
234
35669430
DE
2352009-01-28 Doug Evans <dje@google.com>
236
237 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
238 (amd64_displaced_step_fixup): Declare.
239 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
240 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
241 and make static global.
242 (amd64_arch_regmap_len): New static global.
243 (amd64_arch_reg_to_regnum): New function.
244 (struct amd64_insn): New struct.
245 (struct displaced_step_closure): New struct.
246 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
247 (rex_prefix_p,skip_prefixes)
248 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
249 (amd64_insn_length,amd64_get_unused_input_int_reg)
250 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
251 (amd64_displaced_step_copy_insn)
252 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
253 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
254 (amd64_displaced_step_fixup): New functions.
255 * amd64-linux-tdep.c: #include arch-utils.h.
256 (amd64_linux_init_abi): Install displaced stepping support.
257
4eb7c016
JG
2582009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
259 Jerome Guitton <guitton@adacore.com>
260
261 * configure, config.in: Regenerated.
262 * configure.ac: Add --with-system-gdbinit.
263 * main.c (get_init_files): New.
264 (captured_main): Use get_init_files. Load system gdbinit before
265 $HOME/.gdbinit.
266 (print_gdb_help): Print location of init files.
267
7df3ce47
PA
2682009-01-28 Pedro Alves <pedro@codesourcery.com>
269
270 * corefile.c (generic_search): Delete disabled code.
271 * gdbcore.h (generic_search): Delete declaration.
272
77435e4c
PA
2732009-01-26 Pedro Alves <pedro@codesourcery.com>
274
275 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
276 parent to the child.
277 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
278 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
279 remove_breakpoints to remove breakpoints from the parent.
280
1e275f79
PA
2812009-01-26 Pedro Alves <pedro@codesourcery.com>
282
7488432f 283 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
284 * frame.c (create_new_frame): Update the frame's cached PC before
285 finding its unwinder. Use frame_id_build to build the new frame's
286 id.
287 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
288 array values from the ``args'' array values.
289
1deafd4e
PA
2902009-01-26 Pedro Alves <pedro@codesourcery.com>
291
292 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
293 (create_array_type, create_set_type, init_flags_type)
294 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
295 with a call to XZALLOC or XCALLOC, and pairs of calls to
296 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
297
3c16cced
PA
2982009-01-26 Pedro Alves <pedro@codesourcery.com>
299
300 Add "maint set|show internal-error|internal-warning quit|corefile
301 ask|yes|no" commands.
302
303 PR gdb/7580:
304 * utils.c (internal_problem_ask, internal_problem_yes)
305 (internal_problem_no, internal_problem_modes): New.
306 (struct internal_problem): Remove FIXME. Make should_quit and
307 should_dump_core types to char *.
308 (internal_vproblem, internal_error_problem)
309 (internal_warning_problem): Adjust.
310 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
311 functions.
312 (add_internal_problem_command): New.
313 (_initialize_utils): New.
314
616d7dd2
PA
3152009-01-25 Pedro Alves <pedro@codesourcery.com>
316
317 * infcmd.c (program_info): Use paddress instead of casting stop_pc
318 to unsigned long.
319
0516318b
PA
3202009-01-24 Pedro Alves <pedro@codesourcery.com>
321
322 * infrun.c (normal_stop): Don't call
323 deprecated_update_frame_pc_hack.
324 * frame.c (deprecated_update_frame_pc_hack)
325 (deprecated_update_frame_base_hack): Delete, and ...
326 (create_new_frame): ... inline here.
327 * frame.h (deprecated_update_frame_pc_hack)
328 (deprecated_update_frame_base_hack): Delete declarations.
329
1e8fb976
PA
3302009-01-23 Pedro Alves <pedro@codesourcery.com>
331
332 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
333 * cli/cli-setshow.c (do_setshow_command): Handle it.
334 * command.h (enum var_types): Add var_zuinteger.
335 (add_setshow_zuinteger_cmd): Declare.
336
337 * valprint.c (_initialize_valprint): Change the set input-radix
338 and set output-radix commands to zuinteger type.
339
dd7e2d2b
PA
3402009-01-23 Pedro Alves <pedro@codesourcery.com>
341
342 PR gdb/9664:
343 * infrun.c (normal_stop): Tag threads as stopped, and run the
344 hook-stop before printing the stack frame.
345
392452f6
PA
3462009-01-22 Pedro Alves <pedro@codesourcery.com>
347
348 PR c++/9631:
349 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
350 vbasetype.
351
f6a96b83
KH
3522009-01-20 Kazu Hirata <kazu@codesourcery.com>
353
354 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
355 unsigned long.
356
5d277928 3572009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
358
359 PR gdb/9346
360 * infcmd.c (signal_command): Do not specify a resume PC.
361
b89667eb
DE
3622009-01-19 Doug Evans <dje@google.com>
363
364 * dummy-frame.c (dummy_frame): Replace regcache member with
365 caller_state.
366 (dummy_frame_push): Replace caller_regcache arg with caller_state.
367 All callers updated.
368 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
369 (dummy_frame_pop): Rewrite. Verify requested frame is in the
370 dummy frame stack. Restore program state.
371 (cleanup_dummy_frames): Rewrite.
372 (dummy_frame_sniffer): Update. Make static.
373 * dummy-frame.h (regcache,frame_info): Delete forward decls.
374 (inferior_thread_state): New forward decl.
375 (dummy_frame_push): Update prototype.
376 * frame.c (frame_pop): dummy_frame_pop now does all the work for
377 DUMMY_FRAMEs.
378 * infcall.c (breakpoint_auto_delete_contents): Delete.
379 (get_function_name,run_inferior_call): New fns.
380 (call_function_by_hand): Simplify by moving some code to
381 get_function_name, run_inferior_call. Inferior function call wrapped
382 in TRY_CATCH so there's less need for cleanups and all exits from
383 proceed are handled similarily. Detect program exit.
384 Detect program stopping in a different thread.
385 Make error messages more consistent.
386 * inferior.h (inferior_thread_state): Declare (opaque type).
387 (save_inferior_thread_state,restore_inferior_thread_state,
388 make_cleanup_restore_inferior_thread_state,
389 discard_inferior_thread_state, get_inferior_thread_state_regcache):
390 Declare.
391 (save_inferior_status): Update prototype.
392 * infrun.c: (normal_stop): When stopped for the completion of an
393 inferior function call, verify the expected stack frame kind.
394 (inferior_thread_state): New struct.
395 (save_inferior_thread_state,restore_inferior_thread_state,
396 do_restore_inferior_thread_state_cleanup,
397 make_cleanup_restore_inferior_thread_state,
398 discard_inferior_thread_state,
399 get_inferior_thread_state_regcache): New functions.
400 (inferior_status): Move stop_signal, stop_pc, registers to
401 inferior_thread_state. Remove restore_stack_info.
402 (save_inferior_status): Remove arg restore_stack_info.
403 All callers updated. Remove saving of state now saved by
404 save_inferior_thread_state.
405 (restore_inferior_status): Remove restoration of state now done by
406 restore_inferior_thread_state.
407 (discard_inferior_status): Remove freeing of registers, now done by
408 discard_inferior_thread_state.
409
aefc7064
PA
4102009-01-18 Pedro Alves <pedro@codesourcery.com>
411
412 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
413 at a time, times NUM_TO_SCROLL.
414 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
415 fetch the selected frame if there is no stack.
416
29f49a6a
PA
4172009-01-18 Pedro Alves <pedro@codesourcery.com>
418
419 PR gdb/9747:
420 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
421 Declare.
422 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
423 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
424 is thrown while handling an event, finish the thread state.
425 (normal_stop): Use finish_thread_state cleanup.
426 * infcmd.c (run_command_1): If an error is thrown while starting
427 the inferior, finish the thread state.
428
e7243d73
PA
4292009-01-18 Pedro Alves <pedro@codesourcery.com>
430
431 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
432 skip breakpoints without a location (pending breakpoints).
433
e74994b5
PA
4342009-01-18 Pedro Alves <pedro@codesourcery.com>
435
436 PR build/9186:
437 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
438
8405c36e
NR
4392009-01-18 Nick Roberts <nickrob@snap.net.nz>
440
441 * thread.c (thread_command): Move call to annotate_thread_changed
442 to...
443 (do_captured_thread_select): ... here, to avoid printing an
444 annotation if the thread change generates an exception.
445
b8bfd3ed
JB
4462009-01-16 Joel Brobecker <brobecker@adacore.com>
447
448 * NEWS: Document x86_64/MinGW as a new native configuration.
449
2dde91e9
JB
4502009-01-16 Joel Brobecker <brobecker@adacore.com>
451
452 * NEWS: Move the documentation of "info os processes" to
453 the appropriate section (documenting the new commands).
454
54363045
DE
4552009-01-15 Doug Evans <dje@google.com>
456
457 * target.h (target_signal_to_string): Make return type const char *.
458 (target_signal_to_name): Ditto.
459 (target_signal_from_name): Make arg const char *.
54363045 460 * infrun.c (sig_print_info): Update.
54363045
DE
461 * signals/signals.c (signals): Make array and struct members const.
462 (target_signal_to_string): Make return type const char *.
463 (target_signal_to_name): Ditto.
464 (target_signal_from_name): Make arg const char *.
465
572d275c
UW
4662009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
467 Tristan Gingold <gingold@adacore.com>
468
469 * solist.h (struct target_so_ops): New member bfd_open.
470 (solib_find): Add prototype.
471 (solib_bfd_fopen): Add prototype.
472 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
473 from solib_bfd_open.
474 (solib_bfd_open): Use ops->bfd_open override if present. Call
475 solib_find and solib_bfd_open otherwise.
476
477 * objfiles.h (OBJF_KEEPBFD): New define.
478 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
479 objfile flag is set.
480 * solib.c (symbol_add_stub): Do not allocate second BFD for
481 shared library; use OBJF_KEEPBFD flag on solib objfile.
482
0701b271
UW
4832009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
484
485 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
486
61212c0f
UW
4872009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
488
489 * value.h (address_of_variable): Add prototype.
490 (locate_var_value): Remove prototype.
491
492 * findvar.c (read_var_value): Do not attempt to default frame
493 to selected frame.
494 (locate_var_value): Remove function.
495 * valops.c (value_of_variable): Retrieve selected frame for
496 symbols that require a frame when called with NULL block.
497 * valops.c (address_of_variable): New function.
498
499 * eval.c (evaluate_subexp_for_address): Call address_of_variable
500 instead of calling locate_var_value.
501 (evaluate_subexp_with_coercion): Likewise.
502
adb483fe
DJ
5032009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
504
505 * NEWS: Document "define" for prefixed commands.
506 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
507 show_user_1 for prefix commands.
508 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
509 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
510 commands. Return the containing command list.
511 (define_command, document_command): Update to handle prefix commands.
512 (show_user_1): Add prefix and name arguments. Handle prefix
513 commands.
514 * cli/cli-script.h (show_user_1): Update prototype.
515
a32d7317
KT
5162009-01-14 Kai Tietz <kai.tietz@onevision.com>
517
518 * mingw-ser.c (console_select_thread): Add return to make
519 compiler happy.
520 (pipe_select_thread): Likewise.
521 (file_select_thread): Likewise.
522
041d0fd7
PA
5232009-01-14 Pedro Alves <pedro@codesourcery.com>
524
525 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
526 previous change.
527
dc1981d7
PA
5282009-01-14 Pedro Alves <pedro@codesourcery.com>
529
530 * remote.c (extended_remote_mourn_1): Invalidate our notion of
531 current general thread.
532
244bf9ae
PA
5332009-01-14 Pedro Alves <pedro@codesourcery.com>
534
535 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
536 without a live selected thread.
537
e4d013fc
JB
5382009-01-14 Joel Brobecker <brobecker@adacore.com>
539
540 Update the copyright notice of some of the files I missed
541 in the previous copyright update.
542
a588db63
JB
5432009-01-14 Joel Brobecker <brobecker@adacore.com>
544
545 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
546 base address instead of casting it to DWORD.
547
77a732d9
UW
5482009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
549
550 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
551 for NULL frame pointers.
552
773698b5
JB
5532009-01-13 Mark Kettenis <kettenis@gnu.org>
554
555 * utils.c (host_address_to_string): Reimplement in a way that
556 avoids the cast of the address to long.
557
9918cab9
JB
5582009-01-13 Joel Brobecker <brobecker@adacore.com>
559
560 * mdebugread.c (parse_symbol): Save the symbol private data
561 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
562 (psymtab_to_symtab_1): Likewise.
563 (parse_procedure): Declare variable "e" only in the scope
564 where it is used. Extract the symbol private data using
565 SYMBOL_VALUE_BYTES.
566
74bcbdf3
PA
5672009-01-13 Jim Blandy <jimb@codesourcery.com>
568
569 Abstract out common code for copying value locations.
570
571 * value.h (set_value_component_location): New declaration.
572 * value.c (set_value_component_location): New function.
573 (value_primitive_field): Use it.
574 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
575 * valops.c (search_struct_field, value_slice): Same.
576 * ada-lang.c (coerce_unspec_val_to_type)
577 (ada_value_primitive_packed_val): Same.
578
d7dc3873
JB
5792009-01-13 Joel Brobecker <brobecker@adacore.com>
580
581 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
582
dc05df57
CF
5832009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
584
585 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
586 throughout.
587 * i386-cygwin-tdep.c: Ditto.
588 * i386-windows-nat.c: Ditto.
589 * windows-nat.h: Ditto.
590 * windows-tdep.c: Ditto.
591 * windows-tdep.h: Ditto.
592 * windows-nat.c: Ditto.
593 (cygwin_load_start): Redefine as CORE_ADDR.
594 (cygwin_load_end): Ditto.
595 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
596 before coercing to CORE_ADDR to avoid a compiler warning.
597 (handle_exception): Define addr as CORE_ADDR and coerce
598 ExceptionAddress to uintptr_t before assigining to avoid a compiler
599 warning.
600 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
601 files.
602
31b060a2
CF
6032009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 Fix linking with --enable-targets=all:
606 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
607 (HFILES_NO_SRCDIR): Add windows-tdep.h.
608 (ALLDEPFILES): Add windows-tdep.c.
609
6102009-01-11 Christ Faylor <me.gdb@cgf.cx>
611
612 * win32-nat.h: Delete.
613 * windows-nat.h: Rename from win32-nat.h.
614 * win32-nat.c: Delete.
615 * windows-nat.c: Rename from win32-nat.c.
616 * win32-termcap.c: Delete.
617 * windows-termcap.c: Rename from win32-termcap.c.
618 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
619 * configure.ac: Handle rename from win32-termcap.c ->
620 windows-termcap.c.
621 * configure: Regenerate.
622 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
623 -> windows-termcap.c.
624 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
625 windows-tdep.h.
626 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
627 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
628 windows-tdep.h.
629 (win32_make_so): Handle cygwin compiler warning due to change of
630 load_addr from DWORD to LPVOID.
631 (handle_load_dll): Use %p in format string to properly print address
632 and avoid a compiler warning.
633 (DEBUG_EXCEPTION_SIMPLE): Ditto.
634 (handle_exception): Ditto.
635 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
636 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
637 windows-nat.o.
638 * config/i386/mingw.mh: Ditto.
639 * config/i386/mingw64.mh: Ditto.
640
0311118f
JK
6412009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
642
643 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
644 arrayprint_recurse_level to a parameter. Update all the callers. New
645 comment at autovariables.
646
5f61c20e
JK
6472009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
650 coding style.
651
6522009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
653
654 * target.c (target_xfer_partial): Use host_address_to_string to
655 print the address of readbuf and writebuf. Cast the address of
656 elements inside the myaddr buffer into intptr_t.
657 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
658 Cast the address of elements inside the myaddr buffer into
659 intptr_t.
660
5f61c20e 6612009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
662
663 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
664 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
665 * configure.host, configure.tgt: Add handling for x86_64/windows.
666 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
667 and amd64-windows-tdep.c.
668
5f61c20e 6692009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
670
671 * win32-tdep.h, win32-tdep.c: New files.
672 * i386-cygwin-tdep.h: Delete.
673 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
674 i386-cygwin-tdep.h.
675 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
676 * win32-nat.c: Likewise.
677 * configure.tgt: Add win32-tdep.o to the list of target object
678 files for i386-cygwin and i386-mingw targets.
679
5f61c20e 6802009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
681
682 * win32-nat.h: New file.
683 * win32-nat.c (mappings): Initialize to NULL.
684 (win32_set_context_register_offsets): New function.
685 * i386-windows-nat.c: New file.
686 (mappings): Moved here from win32-nat.c.
687 (_initialize_i386_windows_nat): New function.
688 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
689 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
690
25fc6591
AS
6912009-01-09 Andreas Schwab <schwab@suse.de>
692
693 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
694
87f70781
PA
6952009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
696
697 * gdbtypes.c (append_composite_type_field): Correct the location of
698 appended fields.
699
58d4abe1
PA
7002009-01-09 Pedro Alves <pedro@codesourcery.com>
701
702 * defs.h (deprecated_error_hook): Delete declaration.
703 * interps.c (clear_interpreter_hooks): Adjust.
704 * remote-sim.c (gdb_os_error): Don't try to call
705 deprecated_error_hook. No need to call exit anymore.
706 * top.c (deprecated_error_hook): Delete.
707
e3cb3832
JB
7082009-01-09 Joel Brobecker <brobecker@adacore.com>
709
710 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
711 to print the address of the gdbarch pointer.
712
30737ed9
JB
7132009-01-09 Joel Brobecker <brobecker@adacore.com>
714
715 * gdbarch.sh: Fix all the compilation errors on amd64-windows
716 due to casting a pointer to a long when printing a function
717 address. Instead, use host_address_to_string to convert our
718 address to a string.
719 * gdbarch.c: Regenerate.
720
ec4dfccf
JB
7212009-01-09 Joel Brobecker <brobecker@adacore.com>
722
723 * event-top.c (async_disconnect, async_stop_sig): use "raise"
724 instead of "kill" to raise a signal.
725
d3653bf6
JB
7262009-01-09 Joel Brobecker <brobecker@adacore.com>
727
728 * win32-nat.c (get_module_name): Change the type of parameter
729 "base_address" to LPVOID. Remove unnecessary cast.
730 (struct lm_info): Change type of load_addr to LPVOID.
731 (win32_make_so): Change the type of parameter "load_addr"
732 to LPVOID. Remove some unnecessary casts.
733 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
734 (win32_xfer_shared_libraries): Add missing cast.
735
308a8808
JB
7362009-01-09 Joel Brobecker <brobecker@adacore.com>
737
738 * win32-nat.c (has_detach_ability, set_process_privilege):
739 Cast the result of GetProcAddress to (void *) to avoid
740 a compilation warning.
741
5851ab76
JB
7422009-01-09 Joel Brobecker <brobecker@adacore.com>
743
744 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
745 already defined.
746
5732a500
JB
7472009-01-09 Joel Brobecker <brobecker@adacore.com>
748
749 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
750 definition of local variable "done".
751 (info_w32_command, handle_exception): Remove unnecessary cast.
752
def4de3a
JB
7532009-01-09 Joel Brobecker <brobecker@adacore.com>
754
755 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
756 DebugSetProcessKillOnExit. Update all uses in this file.
757 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
758 Update all uses in this file.
759
7602009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
761
762 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
763 and use it when pushing the target.
764 (win32_attach, win32_create_inferior): Update call to
765 do_initial_win32_stuff.
766 (win32_detach, win32_mourn_inferior): Use our ops parameter
767 instead of the global win32_ops to unpush the target.
768
1be7fe8d
JB
7692009-01-09 Joel Brobecker <brobecker@adacore.com>
770
771 * ser-mingw.c (ser_windows_open): Use proper type when casting
772 in call to _open_osfhandle.
773
1dac1b47
KT
7742009-01-09 Kai Tietz <kai.tietz@onevision.com>
775
776 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
777
ecf180db
JB
7782009-01-09 Joel Brobecker <brobecker@adacore.com>
779
780 * CONTRIBUTE: Minor reformatting.
781
8234eceb
KT
7822009-01-08 Kai Tietz <kai.tietz@onevision.com>
783
784 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
785 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
786 export directory.
8234eceb 787
72ee8797
NF
7882009-01-08 Nathan Froyd <froydnj@codesourcery.com>
789
790 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
791 Call exit to make it obvious to GCC.
792
f7545552
TT
7932009-01-08 Tom Tromey <tromey@redhat.com>
794
795 PR breakpoints/9350:
796 * varobj.c (varobj_invalidate): Unconditionally free
797 all_rootvarobj.
798 * symfile.c (syms_from_objfile): Free local_addr when returning
799 normally.
800 * exec.c (exec_file_attach): Do cleanups before returning.
801 (exec_file_command): Likewise.
802 * corefile.c (reopen_exec_file): Do cleanups before returning.
803 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
804 returning.
805 (do_vec_free): New function.
806 (update_global_location_list): Make a cleanup for old_locations.
807 Do cleanups before returning. Remove unused variable 'e'.
808 (find_condition_and_thread): Free result of parsing the
809 expression.
810 (print_it_typical): Do cleanups before returning.
811 (breakpoint_re_set_one): Always free sals.sals.
812
dde02812
ES
8132009-01-08 Joel Brobecker <brobecker@adacore.com>
814 Emi Suzuki <emi-suzuki@tjsys.co.jp>
815
816 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
817 watchpoints.
818
69bcc6bc
DE
8192009-01-07 Doug Evans <dje@google.com>
820
821 * top.c (gdb_prompt_string): Delete, unused.
822
fa3a767f
PA
8232009-01-07 Pedro Alves <pedro@codesourcery.com>
824
825 Delete ONE_PROCESS_WRITETEXT leftovers.
826
827 * breakpoint.c (insert_bp_location): Delete process_warning
828 argument. Adjust.
829 (insert_breakpoint_locations): Adjust.
830 (reattach_breakpoints): Adjust.
831 * infrun.c (normal_stop): Drop "It might be running in another
832 process" notice.
833
7b93f36d
SS
8342009-01-07 Stan Shebs <stan@codesourcery.com>
835
836 * config/pa/linux.mh (XDEPFILES): Remove.
837
0380c18b
DE
8382009-01-07 Doug Evans <dje@google.com>
839
840 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
841
60023297
JK
8422009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
843
844 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
845 spacing, a regression from 2008-04-22.
846
ea8992ce
JB
8472009-01-07 Joel Brobecker <brobecker@adacore.com>
848
849 * utils.c (gdb_print_host_address): Adjust implementation to
850 reuse host_address_to_string. Move comment explaining the conversion
851 from host address to string from here...
852 (host_address_to_string): ... to there.
853
301d2c47
ES
8542009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
855
856 * MAINTAINERS: Add myself for write after approval privileges.
857
170ce852
TT
8582009-01-06 Tom Tromey <tromey@redhat.com>
859
860 * value.c (set_internalvar): Use value_free, not xfree.
861
fdb7262a
JB
8622009-01-06 Jim Blandy <jimb@red-bean.com>
863
bf1d7d9c
JB
864 Check return values of functions declared with warn_unused_result
865 attribute in GLIBC 2.8.
866 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
867 * inflow.c (check_syscall): New function.
868 (new_tty): Use check_syscall to check return values from open and dup.
869 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
870 * main.c (captured_main): Call cwd after setting up gdb_stderr;
871 check for errors from getcwd.
872 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
873 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
874 (stdio_file_fputs): Same.
875 * utils.c (internal_vproblem): abort if last-ditch error message
876 write fails.
877
fdb7262a
JB
878 * top.c (gdb_init): Don't set the current directory here; that's
879 already been done in captured_main.
880
84603566
SL
8812009-01-06 Sandra Loosemore <sandra@codesourcery.com>
882
883 * ser-tcp.c: Adjust includes.
884 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
885 (tcp_auto_retry, tcp_retry_limit): Declare.
886 (TIMEOUT): Remove, in favor of tcp_retry_limit.
887 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
888 (wait_for_connect): New function.
889 (net_open): Use it. Add auto-retry logic.
890 (set_tcp_cmd, show_tcp_cmd): New functions.
891 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
892 and "set/show tcp connect-timeout" commands.
893 * NEWS: Document new commands.
894
5171e6b3
TT
8952009-01-05 Tom Tromey <tromey@redhat.com>
896
897 * python/python-internal.h (Py_ssize_t): Define as int.
898
a367a1f2
JB
8992009-01-05 Jim Blandy <jimb@red-bean.com>
900
901 * MAINTAINERS: Fix my e-mail address as steering committee member.
902
0fb0cc75
JB
9032009-01-03 Joel Brobecker <brobecker@adacore.com>
904
905 Updated copyright notices for most files.
906
c9fc347d
JB
9072009-01-03 Joel Brobecker <brobecker@adacore.com>
908
909 * top.c (print_gdb_version): Update copyright year.
910
a85d99b4
JB
9112009-01-03 Joel Brobecker <brobecker@adacore.com>
912
913 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
914
4d78a120
JB
9152009-01-01 Pedro Alves <pedro@codesourcery.com>
916
917 PR breakpoints/9681:
918 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
919 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
920 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
921 retrow all other exceptions.
922
67de2a4c 923For older changes see ChangeLog-2008.
c906108c
SS
924\f
925Local Variables:
926mode: change-log
927left-margin: 8
928fill-column: 74
929version-control: never
57da7796 930coding: utf-8
c906108c 931End:
This page took 1.078074 seconds and 4 git commands to generate.