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