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