Commit | Line | Data |
---|---|---|
1ef18d08 PA |
1 | 2009-02-07 Pedro Alves <pedro@codesourcery.com> |
2 | ||
3 | * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO | |
4 | isn't defined. | |
5 | ||
5b009018 PA |
6 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
7 | ||
8 | * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t) | |
9 | (compat_timer_t, compat_clock_t, struct compat_timeval) | |
10 | (compat_sigval_t, compat_siginfo_t): New types. | |
11 | (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun) | |
12 | (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr) | |
13 | (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines. | |
14 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
15 | (amd64_linux_siginfo_fixup): New. | |
16 | * linux-nat.c (linux_nat_siginfo_fixup): New. | |
17 | (siginfo_fixup): New. | |
18 | (linux_xfer_siginfo): Use siginfo_fixup to convert between the | |
19 | siginfo layout expected by ptrace and the siginfo layout of the | |
20 | inferior. | |
21 | (linux_nat_set_siginfo_fixup): New. | |
22 | * linux-nat.h (linux_nat_set_siginfo_fixup): Declare. | |
23 | ||
4aa995e1 PA |
24 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
25 | ||
26 | * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO. | |
27 | * infrun.c (siginfo_value_read, siginfo_value_write): New. | |
28 | (siginfo_value_funcs): New. | |
29 | (siginfo_make_value): New. | |
30 | (_initialize_infrun): Create the $_siginfo convenience variable. | |
31 | * gdbtypes.h (append_composite_type_field_aligned): Declare. | |
32 | * gdbtypes.c (append_composite_type_field): Rename to... | |
33 | (append_composite_type_field_aligned): ... this. Add ALIGNMENT | |
34 | argument. Handle it. | |
35 | (append_composite_type_field): Rewrite on top of | |
36 | append_composite_type_field_aligned. | |
37 | * value.h (internalvar_make_value): New typedef. | |
38 | (struct internalvar) <make_value>: New field. | |
39 | (create_internalvar_type_lazy): Declare. | |
40 | * value.c (create_internalvar): Clear make_value. | |
41 | (create_internalvar_type_lazy): New. | |
42 | (value_of_internalvar): If make_value is set use it. | |
43 | (preserve_values): Skip internal variables that don't have a | |
44 | value. | |
45 | * gdbarch.sh (get_siginfo_type): New. | |
46 | * gdbarch.h, gdbarch.c: Regenerate. | |
47 | ||
48 | * linux-tdep.h, linux-tdep.c: New. | |
49 | * amd64-linux-tdep.c: Include "linux-tdep.h". | |
50 | (amd64_linux_init_abi): Register linux_get_siginfo_type and | |
51 | linux_get_siginfo_mapper. | |
52 | * i386-linux-tdep.c: Include "linux-tdep.h". | |
53 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
54 | linux_get_siginfo_mapper. | |
55 | * arm-linux-tdep.c: Include "linux-tdep.h". | |
56 | (i386_linux_init_abi): Register linux_get_siginfo_type and | |
57 | linux_get_siginfo_mapper. | |
58 | ||
59 | * linux-nat.c (linux_xfer_siginfo): New. | |
60 | (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
61 | * remote.c (PACKET_qXfer_siginfo_read) | |
62 | (PACKET_qXfer_siginfo_write): New. | |
63 | (feature remote_protocol_features): Add "qXfer:siginfo:read" and | |
64 | "qXfer:siginfo:write" features. | |
65 | (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO. | |
66 | (_initialize_remote): Add "set/show remote read-siginfo-object" | |
67 | and "set/show remote write-siginfo-object" commands. | |
68 | ||
69 | * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o. | |
70 | (HFILES_NO_SRCDIR): Add linux-tdep.h. | |
71 | (ALLDEPFILES): Add linux-tdep.c. | |
72 | ||
73 | * configure.tgt (arm*-*-linux* | arm*-*-uclinux*) | |
74 | (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to | |
75 | gdb_target_obs. | |
76 | ||
5f5233d4 PA |
77 | 2009-02-06 Jim Blandy <jimb@codesourcery.com> |
78 | Daniel Jacobowitz <dan@codesourcery.com> | |
79 | Vladimir Prus <vladimir@codesourcery.com> | |
80 | Pedro Alves <pedro@codesourcery.com> | |
81 | ||
82 | * defs.h (enum lval_type): New value: lval_computed. | |
83 | * value.h (struct lval_funcs): New type. | |
84 | (allocate_computed_value, value_computed_funcs) | |
85 | (value_computed_closure): New declarations. | |
86 | * value.c (struct value): Add a structure to the location union | |
87 | for computed lvalues, containing 'funcs' and 'closure' members. | |
88 | (allocate_computed_value, value_computed_funcs) | |
89 | (value_computed_closure): New functions. | |
90 | (value_free): For computed lvalues, call the closure's | |
91 | 'free_closure' function before freeing the value itself. | |
92 | (value_copy): If we're copying an lval_computed value, call the | |
93 | closure's 'copy_closure' function. | |
94 | (set_value_component_location): If the original value is a | |
95 | computed lvalue, then call the closure's 'copy_closure' function. | |
96 | (value_of_internalvar): If an internal variable's value is a | |
97 | computed lvalue, make retrieving its value produce an equivalent | |
98 | computed lvalue. | |
99 | * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling | |
100 | their read function. | |
101 | (value_assign): Assign to computed lvalues by calling their write | |
102 | function. | |
103 | ||
117de6a9 PA |
104 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
105 | ||
106 | * linux-nat.c (linux_nat_wait): Adjust. | |
107 | (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init. | |
108 | * linux-nat.h (thread_db_init): Delete declaration. | |
109 | * linux-thread-db.c (target_beneath): Delete. | |
110 | (thread_db_init): Delete. | |
111 | (thread_db_detach): Use find_target_beneath. | |
112 | (thread_db_wait): Adjust interface. Use find_target_beneath. | |
113 | (thread_db_mourn_inferior): Use find_target_beneath. | |
114 | (thread_db_can_async_p, thread_db_is_async_p, thread_db_async) | |
115 | (thread_db_async_mask): Delete. | |
116 | (thread_db_pid_to_str): Adjust interface. Use | |
117 | find_target_beneath. | |
118 | (thread_db_get_thread_local_address): Adjust interface. Use | |
119 | find_target_beneath. | |
120 | (init_thread_db_ops): Delete references to delete functions. | |
121 | * target.c (update_current_target): Don't inherit or default | |
122 | to_wait. Don't inherit to_pid_to_str and | |
123 | to_get_thread_local_address. | |
124 | (target_translate_tls_address): Look for a pushed target that | |
125 | implements to_get_thread_local_address, and use it instead of | |
126 | checking for target_get_thread_local_address_p. | |
127 | (target_wait, target_pid_to_str): Reimplement as functions. | |
128 | (dummy_pid_to_str): New. | |
129 | (init_dummy_target): Register it. | |
130 | (debug_to_wait): Delete. | |
131 | * target.h (struct target_ops): Make to_wait, to_pid_to_str and | |
132 | to_get_thread_local_address accept a pointer to struct target_ops. | |
133 | (target_wait): Delete macro, and declare as function. | |
134 | (target_pid_to_str): Likewise. | |
135 | (target_get_thread_local_address) | |
136 | (target_get_thread_local_address_p): Delete. | |
137 | (noprocess): Add NORETURN and ATTR_NORETURN tags. | |
138 | * inf-ptrace.c (inf_ptrace_wait): Adjust. | |
139 | (inf_ptrace_pid_to_str): New. | |
140 | (inf_ptrace_target): Use inf_ptrace_pid_to_str. | |
141 | * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust. | |
142 | * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust. | |
143 | * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str): | |
144 | Adjust. | |
145 | * corelow.c (core_pid_to_str): Adjust. | |
146 | * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust. | |
147 | * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust. | |
148 | * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust. | |
149 | * go32-nat.c (go32_wait, go32_pid_to_str): Adjust. | |
150 | * hpux-thread.c (hpux_thread_wait): Adjust. | |
151 | * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust. | |
152 | * monitor.c (monitor_wait, monitor_pid_to_str): Adjust. | |
153 | * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust. | |
154 | * procfs.c (procfs_pid_to_str): Adjust. | |
155 | * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust. | |
156 | * remote-mips.c (mips_wait): Adjust. | |
157 | * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust. | |
158 | * remote.c (remote_wait, remote_pid_to_str) | |
159 | (remote_get_thread_local_address): Adjust. | |
160 | * rs6000-nat.c (rs6000_wait): Adjust. | |
161 | * sol-thread.c (procfs_pid_to_str): Adjust declaration. | |
162 | (sol_thread_wait, solaris_pid_to_str): Adjust. | |
163 | * spu-linux-nat.c (spu_child_wait): Adjust. | |
164 | * windows-nat.c (windows_wait, windows_pid_to_str): Adjust. | |
165 | ||
d8906c6f TJB |
166 | 2009-02-06 Tom Tromey <tromey@redhat.com> |
167 | ||
168 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o. | |
169 | (SUBDIR_PYTHON_SRCS): Add python-cmd.c. | |
170 | (python-cmd.o): New target. | |
171 | * cli/cli-decode.c (set_cmd_completer): Add self parameter to | |
172 | completer prototype. | |
173 | (add_cmd): Initialize destroyer member of cmd_list_element. Use | |
174 | make_symbol_completion_list_fn as completer. | |
175 | (delete_cmd): Call destroyer if one is set. | |
176 | * cli/cli-decode.h (cmd_list_element): Add cmd parameter to | |
177 | completer member. Add destroyer member. | |
178 | (set_cmd_completer): Add self parameter to | |
179 | completer prototype. | |
180 | * command.h (set_cmd_completer): Add cmd parameter to | |
181 | completer prototype. | |
182 | * completer.c (noop_completer, filename_completer, | |
183 | location_completer, expression_completer, command_completer): Adapt | |
184 | to new completer prototype. | |
185 | (complete_line_internal): Pass new parameter to completer function. | |
186 | * completer.h (noop_completer, filename_completer, | |
187 | location_completer, expression_completer, command_completer): Adapt | |
188 | prototypes to new completer prototype. | |
189 | * interps.c (interpreter_completer): Adapt to new completer | |
190 | prototype. | |
191 | * python/python-cmd.c: New file. | |
192 | * python/python-internal.h (gdbpy_initialize_commands): Add | |
193 | prototype. | |
194 | (gdbpy_doc_cst): Add forward declaration. | |
195 | * python/python.c (gdbpy_doc_cst): Declare. | |
196 | (_initialize_python): Call gdbpy_initialize_commands. Initialize | |
197 | gdbpy_doc_cst. | |
198 | * symtab.c (make_symbol_completion_list_fn): New function. | |
199 | * symtab.h (make_symbol_completion_list_fn): Add prototype. | |
200 | ||
739ef7fb PA |
201 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
202 | ||
203 | * target.c (target_get_osdata): Check for equal or higher than | |
204 | process_stratum, not dummy_stratum. | |
205 | ||
6d097e65 PA |
206 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
207 | ||
208 | * remote.c (extended_remote_can_run): Delete. | |
209 | (init_remote_ops): Don't register it. | |
210 | * target.c (target_get_osdata): Don't check for target_can_run. | |
211 | Instead any target that has already been pushed, otherwise | |
739ef7fb | 212 | fallback to the default run target. |
6d097e65 | 213 | |
947b8855 PA |
214 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
215 | ||
216 | * target.c (target_create_inferior, target_detach) | |
217 | (target_mourn_inferior, target_attach, target_close): Do target | |
218 | debug output. | |
219 | (debug_to_attach, debug_to_detach, debug_to_create_inferior) | |
220 | (debug_to_mourn_inferior, debug_to_close): Delete. | |
221 | (setup_target_debug): Adjust. | |
222 | ||
611041af PA |
223 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
224 | ||
225 | * target.h (target_stopped_data_address_p): Delete declaration, | |
226 | and don't define as macro. | |
227 | * target.c (target_stopped_data_address_p): Delete. | |
228 | ||
b6cb8e7d TJB |
229 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
230 | Tom Tromey <tromey@redhat.com> | |
231 | ||
232 | * python/python-utils.c (target_string_to_unicode): New function. | |
233 | * python/python-internal.h (target_string_to_unicode): New prototype. | |
234 | * python/python-value.c (valpy_string): New function. | |
235 | (value_object_methods): Add `string' entry. | |
236 | ||
54ba13f7 PA |
237 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
238 | ||
239 | * target.h (target_tid_to_str): Delete. | |
240 | * thread.c (print_thread_info, thread_apply_all_command) | |
241 | (thread_apply_command, thread_command, do_captured_thread_select): | |
242 | Use target_pid_to_str instead of target_tid_to_str. | |
243 | * linux-fork.c (delete_fork_command): Likewise. | |
244 | ||
9d49bdc2 PA |
245 | 2009-02-05 Pedro Alves <pedro@codesourcery.com> |
246 | ||
247 | * frame.c (has_stack_frames): Make public. | |
248 | (get_prev_frame): Don't allow a NULL this_frame anymore. | |
249 | * frame.h (has_stack_frames): Declare. | |
250 | * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL | |
251 | to get_prev_frame, instead start at get_current_frame. | |
252 | (varobj_create): Check has_stack_frames before getting any frame; | |
253 | eliminate one usage of deprecated_safe_get_selected_frame. | |
254 | ||
12453b93 TJB |
255 | 2009-02-05 Tom Tromey <tromey@redhat.com> |
256 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
257 | ||
258 | * python/python.c (GdbMethods): Move to bottom of file. | |
259 | (get_parameter, execute_gdb_command, gdbpy_write, | |
260 | gdbpy_flush): Remove forward declarations. | |
261 | (eval_python_from_control_command): Fix error checking of function | |
262 | PyRun_SimpleString. Fix error string. | |
263 | (python_command): Likewise. | |
264 | (execute_gdb_command): Added from_tty argument. | |
265 | ||
ae6a3a4c TJB |
266 | 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
267 | ||
268 | * language.h (language_dfn): Add la_get_string member. | |
269 | (LA_GET_STRING): New macro. | |
270 | (default_get_string): New prototype. | |
271 | * language.c (default_get_string): New function. | |
272 | (unknown_language_defn, auto_language_defn, local_language_defn): Use | |
273 | default_get_string for la_get_string. | |
274 | * c-lang.c (c_get_string): New function. | |
275 | (c_language_defn, cplus_language_defn, asm_language_defn): Use | |
276 | c_get_string for la_get_string. | |
277 | (minimal_language_defn): Likewise | |
278 | * ada-lang.c (ada_language_defn): Likewise. | |
279 | * f-lang.c (f_language_defn): Use default_get_string for | |
280 | la_get_string. | |
281 | * jv-lang.c (java_language_defn): Likewise. | |
282 | * m2-lang.c (m2_language_defn): Likewise. | |
283 | * objc-lang.c (objc_language_defn): Likewise. | |
284 | * p-lang.c (p_language_defn): Likewise. | |
285 | * scm-lang.c (scm_language_defn): Likewise. | |
286 | * typeprint.c (type_to_string): New function. | |
287 | * value.h (type_to_string): New prototype. | |
288 | * valprint.c (val_print_string): Factor out code for reading string | |
289 | from the inferior into its own function. Put 2 spaces after period | |
290 | in comments. | |
291 | (read_string): New function. | |
292 | * valprint.h (read_string): New prototype. | |
293 | ||
fa8a61dc TT |
294 | 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr> |
295 | Tom Tromey <tromey@redhat.com> | |
296 | ||
297 | PR breakpoints/8079: | |
298 | * breakpoint.c (print_one_breakpoint): Use exp_string field | |
299 | to display expression of watchpoints. | |
300 | (mention): Likewise. | |
301 | (watch_command_1): Remove trailing whitespace from expression. | |
302 | * printcmd.c (struct display) <exp_string>: New field. | |
303 | (display_command): Set exp_string. | |
304 | (free_display): Free exp_string. | |
305 | (clear_displays): Use free_display. | |
306 | (do_one_display): Print exp_string. | |
307 | (display_info): Likewise. | |
308 | ||
08c637de TJB |
309 | 2009-02-04 Tom Tromey <tromey@redhat.com> |
310 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
311 | Phil Muldoon <pmuldoon@redhat.com> | |
312 | ||
313 | * python/python-internal.h (gdbpy_get_value_from_history): Rename | |
314 | prototype to gdbpy_history. | |
315 | (gdbpy_is_string): Declare. | |
316 | (python_string_to_host_string): Declare. | |
317 | * python/python-utils.c (gdbpy_is_string): New function. | |
318 | (unicode_to_encoded_string): New function. | |
319 | (unicode_to_target_string): Use it. | |
320 | (python_string_to_host_string): New function. | |
321 | * python/python-value.c (valpy_address): New function. | |
322 | (convert_value_from_python): Use gdbpy_is_string. Change to throw | |
323 | Python exception instead of a GDB exception on error. Properly check | |
324 | Python booleans. | |
325 | (valpy_getitem): Convert field name to host string. Handle array | |
326 | accesses. Adapt to new behaviour of convert_value_from_python. | |
327 | (valpy_new): Adapt to new behaviour of convert_value_from_python. | |
328 | (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND, | |
329 | VALPY_BITXOR, VALPY_BITOR>: New constants. | |
330 | (valpy_binop): Update. Adapt to new behaviour of | |
331 | convert_value_from_python. | |
332 | (valpy_invert): New function. | |
333 | (valpy_lsh): Likewise. | |
334 | (valpy_rsh): Likewise. | |
335 | (valpy_and): Likewise. | |
336 | (valpy_or): Likewise. | |
337 | (valpy_xor): Likewise. | |
338 | (valpy_richcompare): Call convert_value_from_python instead of doing | |
339 | conversions itself. | |
340 | (is_intlike, valpy_int, valpy_long, valpy_float): New functions. | |
341 | (gdbpy_get_value_from_history): Rename | |
342 | function to gdbpy_history. | |
343 | (gdbpy_initialize_values): Don't set tp_new. | |
344 | (value_object_type): Add valpy_new. | |
345 | (value_object_methods): Add `address' entry. | |
346 | (value_object_as_number): Update for new methods. | |
347 | * python/python.c (GdbMethods): Rename entry from | |
348 | `get_value_from_history' to `history'. | |
349 | ||
538e13a6 | 350 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
b5304971 JG |
351 | |
352 | * ada-lang.c (ada_template_to_fixed_record_type_1): Check size | |
353 | of type to guard against a crash. | |
354 | ||
33d502b4 JG |
355 | 2009-02-04 Jerome Guitton <guitton@adacore.com> |
356 | ||
357 | * value.c (value_from_contents_and_address): Always return | |
358 | a lval_memory value, even if address is null. | |
359 | ||
9f08ae4f TG |
360 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
361 | ||
362 | * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function. | |
363 | (amd64_darwin_sigcontext_addr): Ditto. | |
364 | (darwin_dwarf_signal_frame_p): Ditto. | |
365 | (i386_darwin_init_abi): Handle signal frames, use the const for | |
366 | sc_num_regs. | |
367 | (x86_darwin_init_abi_64): Ditto. | |
368 | ||
4bd207ef TG |
369 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
370 | ||
371 | * i386-tdep.c (i386_sigtramp_p): Make it public. | |
372 | * i386-tdep.h (i386_sigtramp_p): Declare. | |
373 | ||
4aa99a88 TG |
374 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
375 | ||
376 | * machoread.c (macho_symfile_read): Read minsymtab also from | |
377 | shared libraries. | |
378 | (macho_symfile_read): Try to read dwarf2 frame info from main | |
379 | object file, but not from OSO files. | |
380 | (macho_symfile_offsets): Update section names for latest BFD | |
381 | changes. | |
382 | * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops. | |
383 | (x86_darwin_init_abi_64): Ditto. | |
384 | * solib-darwin.c: New file. | |
385 | * solib-darwin.h: New file. | |
386 | * configure.tgt: Add solib.o solib-darwin.o for Darwin. | |
387 | ||
7a848be1 TG |
388 | 2009-02-04 Tristan Gingold <gingold@adacore.com> |
389 | ||
390 | * solist.h (struct target_so_ops): Comment fallback behavior for | |
391 | operation same. | |
392 | ||
b32d97f3 TT |
393 | 2009-02-03 Tom Tromey <tromey@redhat.com> |
394 | ||
395 | * completer.c (add_struct_fields): Check type_name against NULL | |
396 | before use. | |
397 | ||
692263b8 JB |
398 | 2009-02-03 Joel Brobecker <brobecker@adacore.com> |
399 | ||
400 | * MAINTAINERS: Update Elena's email address. | |
401 | ||
bfa149ac JB |
402 | 2009-02-02 Joel Brobecker <brobecker@adacore.com> |
403 | ||
404 | * breakpoint (update_watchpoint): Minor comment adjustment. | |
405 | ||
1c71341a TT |
406 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
407 | ||
52e44b43 | 408 | PR gdb/9594: |
1c71341a TT |
409 | * completer.c (count_struct_fields): Count method names. |
410 | (add_struct_fields): Add matching method names. | |
411 | ||
85541719 DE |
412 | 2009-02-02 Doug Evans <dje@google.com> |
413 | ||
414 | * configure.ac (gdbkt): Check both no_tcl/no_tk first, before | |
415 | doing any further tcl/tk configury. Don't configure gdbtk if | |
416 | tcl or tk check fails. | |
417 | * aclocal.m4: Regenerate. | |
418 | * configure: Regenerate. | |
419 | ||
a4295225 TT |
420 | 2009-02-02 Tom Tromey <tromey@redhat.com> |
421 | ||
422 | PR exp/9059: | |
423 | * valops.c (find_overload_match): Follow typedefs before taking | |
424 | address of object argument. | |
425 | ||
f00150c9 DE |
426 | 2009-02-01 Doug Evans <dje@google.com> |
427 | ||
428 | * target.h (target_waitstatus_to_string): Declare. | |
429 | * target.c (target_waitstatus_to_string): New function. Copied from | |
430 | debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY, | |
431 | TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE, | |
432 | TARGET_WAITKIND_NO_HISTORY. | |
433 | (debug_to_wait): Call it. | |
434 | * infrun.c (wait_for_inferior): If debug_infrun, print result of | |
435 | target_wait. | |
436 | (fetch_inferior_event): Ditto. | |
437 | ||
5abdf4bd TT |
438 | 2009-01-30 Tom Tromey <tromey@redhat.com> |
439 | ||
440 | * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h. | |
441 | ||
592375cd VP |
442 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
443 | ||
444 | PR 8145. | |
445 | * thread.c (do_captured_list_thread_ids): Report the current | |
446 | thread id. | |
447 | ||
41447f92 VP |
448 | 2009-01-30 Vladimir Prus <vladimir@codesourcery.com> |
449 | ||
450 | * breakpoint.c (create_breakpoint, create_breakpoints) | |
451 | (break_command_really, set_breakpoint): New parameter enabled. | |
452 | (create_breakpoint, break_command_really): Make breakpoint | |
453 | disabled if so requested. | |
454 | * breakpoint.h (set_breakpoint): New parameter enabled. | |
455 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option. | |
456 | ||
35669430 DE |
457 | 2009-01-28 Doug Evans <dje@google.com> |
458 | ||
459 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. | |
460 | (amd64_displaced_step_fixup): Declare. | |
461 | * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. | |
462 | (amd64_arch_regmap): Move out of amd64_analyze_stack_align | |
463 | and make static global. | |
464 | (amd64_arch_regmap_len): New static global. | |
465 | (amd64_arch_reg_to_regnum): New function. | |
466 | (struct amd64_insn): New struct. | |
467 | (struct displaced_step_closure): New struct. | |
468 | (onebyte_has_modrm,twobyte_has_modrm): New static globals. | |
469 | (rex_prefix_p,skip_prefixes) | |
470 | (amd64_insn_length_fprintf,amd64_insn_length_init_dis) | |
471 | (amd64_insn_length,amd64_get_unused_input_int_reg) | |
472 | (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) | |
473 | (amd64_displaced_step_copy_insn) | |
474 | (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) | |
475 | (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) | |
476 | (amd64_displaced_step_fixup): New functions. | |
477 | * amd64-linux-tdep.c: #include arch-utils.h. | |
478 | (amd64_linux_init_abi): Install displaced stepping support. | |
479 | ||
4eb7c016 JG |
480 | 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
481 | Jerome Guitton <guitton@adacore.com> | |
482 | ||
483 | * configure, config.in: Regenerated. | |
484 | * configure.ac: Add --with-system-gdbinit. | |
485 | * main.c (get_init_files): New. | |
486 | (captured_main): Use get_init_files. Load system gdbinit before | |
487 | $HOME/.gdbinit. | |
488 | (print_gdb_help): Print location of init files. | |
489 | ||
7df3ce47 PA |
490 | 2009-01-28 Pedro Alves <pedro@codesourcery.com> |
491 | ||
492 | * corefile.c (generic_search): Delete disabled code. | |
493 | * gdbcore.h (generic_search): Delete declaration. | |
494 | ||
77435e4c PA |
495 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
496 | ||
497 | * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the | |
498 | parent to the child. | |
499 | * inf-ttrace.c (inf_ttrace_follow_fork): Likewise. | |
500 | * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use | |
501 | remove_breakpoints to remove breakpoints from the parent. | |
502 | ||
1e275f79 PA |
503 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
504 | ||
7488432f | 505 | PR backtrace/9458, PR backtrace/8864: |
1e275f79 PA |
506 | * frame.c (create_new_frame): Update the frame's cached PC before |
507 | finding its unwinder. Use frame_id_build to build the new frame's | |
508 | id. | |
509 | * stack.c (parse_frame_specification_1): Correct setting ``addrs'' | |
510 | array values from the ``args'' array values. | |
511 | ||
1deafd4e PA |
512 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
513 | ||
514 | * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type) | |
515 | (create_array_type, create_set_type, init_flags_type) | |
516 | (copy_type_recursive): Replace pairs of calls to XALLOC and memset | |
517 | with a call to XZALLOC or XCALLOC, and pairs of calls to | |
518 | obstack_alloc and memset with a call to OBSTACK_ZALLOC. | |
519 | ||
3c16cced PA |
520 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
521 | ||
522 | Add "maint set|show internal-error|internal-warning quit|corefile | |
523 | ask|yes|no" commands. | |
524 | ||
525 | PR gdb/7580: | |
526 | * utils.c (internal_problem_ask, internal_problem_yes) | |
527 | (internal_problem_no, internal_problem_modes): New. | |
528 | (struct internal_problem): Remove FIXME. Make should_quit and | |
529 | should_dump_core types to char *. | |
530 | (internal_vproblem, internal_error_problem) | |
531 | (internal_warning_problem): Adjust. | |
532 | (set_internal_problem_cmd, show_internal_problem_cmd): New dummy | |
533 | functions. | |
534 | (add_internal_problem_command): New. | |
535 | (_initialize_utils): New. | |
536 | ||
616d7dd2 PA |
537 | 2009-01-25 Pedro Alves <pedro@codesourcery.com> |
538 | ||
539 | * infcmd.c (program_info): Use paddress instead of casting stop_pc | |
540 | to unsigned long. | |
541 | ||
0516318b PA |
542 | 2009-01-24 Pedro Alves <pedro@codesourcery.com> |
543 | ||
544 | * infrun.c (normal_stop): Don't call | |
545 | deprecated_update_frame_pc_hack. | |
546 | * frame.c (deprecated_update_frame_pc_hack) | |
547 | (deprecated_update_frame_base_hack): Delete, and ... | |
548 | (create_new_frame): ... inline here. | |
549 | * frame.h (deprecated_update_frame_pc_hack) | |
550 | (deprecated_update_frame_base_hack): Delete declarations. | |
551 | ||
1e8fb976 PA |
552 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
553 | ||
554 | * cli/cli-decode.c (add_setshow_zuinteger_cmd): New. | |
555 | * cli/cli-setshow.c (do_setshow_command): Handle it. | |
556 | * command.h (enum var_types): Add var_zuinteger. | |
557 | (add_setshow_zuinteger_cmd): Declare. | |
558 | ||
559 | * valprint.c (_initialize_valprint): Change the set input-radix | |
560 | and set output-radix commands to zuinteger type. | |
561 | ||
dd7e2d2b PA |
562 | 2009-01-23 Pedro Alves <pedro@codesourcery.com> |
563 | ||
564 | PR gdb/9664: | |
565 | * infrun.c (normal_stop): Tag threads as stopped, and run the | |
566 | hook-stop before printing the stack frame. | |
567 | ||
392452f6 PA |
568 | 2009-01-22 Pedro Alves <pedro@codesourcery.com> |
569 | ||
570 | PR c++/9631: | |
571 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on | |
572 | vbasetype. | |
573 | ||
f6a96b83 KH |
574 | 2009-01-20 Kazu Hirata <kazu@codesourcery.com> |
575 | ||
576 | * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to | |
577 | unsigned long. | |
578 | ||
5d277928 | 579 | 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com> |
a12cc160 DJ |
580 | |
581 | PR gdb/9346 | |
582 | * infcmd.c (signal_command): Do not specify a resume PC. | |
583 | ||
b89667eb DE |
584 | 2009-01-19 Doug Evans <dje@google.com> |
585 | ||
586 | * dummy-frame.c (dummy_frame): Replace regcache member with | |
587 | caller_state. | |
588 | (dummy_frame_push): Replace caller_regcache arg with caller_state. | |
589 | All callers updated. | |
590 | (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns. | |
591 | (dummy_frame_pop): Rewrite. Verify requested frame is in the | |
592 | dummy frame stack. Restore program state. | |
593 | (cleanup_dummy_frames): Rewrite. | |
594 | (dummy_frame_sniffer): Update. Make static. | |
595 | * dummy-frame.h (regcache,frame_info): Delete forward decls. | |
596 | (inferior_thread_state): New forward decl. | |
597 | (dummy_frame_push): Update prototype. | |
598 | * frame.c (frame_pop): dummy_frame_pop now does all the work for | |
599 | DUMMY_FRAMEs. | |
600 | * infcall.c (breakpoint_auto_delete_contents): Delete. | |
601 | (get_function_name,run_inferior_call): New fns. | |
602 | (call_function_by_hand): Simplify by moving some code to | |
603 | get_function_name, run_inferior_call. Inferior function call wrapped | |
604 | in TRY_CATCH so there's less need for cleanups and all exits from | |
605 | proceed are handled similarily. Detect program exit. | |
606 | Detect program stopping in a different thread. | |
607 | Make error messages more consistent. | |
608 | * inferior.h (inferior_thread_state): Declare (opaque type). | |
609 | (save_inferior_thread_state,restore_inferior_thread_state, | |
610 | make_cleanup_restore_inferior_thread_state, | |
611 | discard_inferior_thread_state, get_inferior_thread_state_regcache): | |
612 | Declare. | |
613 | (save_inferior_status): Update prototype. | |
614 | * infrun.c: (normal_stop): When stopped for the completion of an | |
615 | inferior function call, verify the expected stack frame kind. | |
616 | (inferior_thread_state): New struct. | |
617 | (save_inferior_thread_state,restore_inferior_thread_state, | |
618 | do_restore_inferior_thread_state_cleanup, | |
619 | make_cleanup_restore_inferior_thread_state, | |
620 | discard_inferior_thread_state, | |
621 | get_inferior_thread_state_regcache): New functions. | |
622 | (inferior_status): Move stop_signal, stop_pc, registers to | |
623 | inferior_thread_state. Remove restore_stack_info. | |
624 | (save_inferior_status): Remove arg restore_stack_info. | |
625 | All callers updated. Remove saving of state now saved by | |
626 | save_inferior_thread_state. | |
627 | (restore_inferior_status): Remove restoration of state now done by | |
628 | restore_inferior_thread_state. | |
629 | (discard_inferior_status): Remove freeing of registers, now done by | |
630 | discard_inferior_thread_state. | |
631 | ||
aefc7064 PA |
632 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
633 | ||
634 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line | |
635 | at a time, times NUM_TO_SCROLL. | |
636 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to | |
637 | fetch the selected frame if there is no stack. | |
638 | ||
29f49a6a PA |
639 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
640 | ||
641 | PR gdb/9747: | |
642 | * gdbthread.h (finish_thread_state, finish_thread_state_cleanup): | |
643 | Declare. | |
644 | * thread.c (finish_thread_state, finish_thread_state_cleanup): New. | |
645 | * infrun.c (wait_for_inferior, fetch_inferior_event): If an error | |
646 | is thrown while handling an event, finish the thread state. | |
647 | (normal_stop): Use finish_thread_state cleanup. | |
648 | * infcmd.c (run_command_1): If an error is thrown while starting | |
649 | the inferior, finish the thread state. | |
650 | ||
e7243d73 PA |
651 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
652 | ||
653 | * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout, | |
654 | skip breakpoints without a location (pending breakpoints). | |
655 | ||
e74994b5 PA |
656 | 2009-01-18 Pedro Alves <pedro@codesourcery.com> |
657 | ||
658 | PR build/9186: | |
659 | * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'. | |
660 | ||
8405c36e NR |
661 | 2009-01-18 Nick Roberts <nickrob@snap.net.nz> |
662 | ||
663 | * thread.c (thread_command): Move call to annotate_thread_changed | |
664 | to... | |
665 | (do_captured_thread_select): ... here, to avoid printing an | |
666 | annotation if the thread change generates an exception. | |
667 | ||
b8bfd3ed JB |
668 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
669 | ||
670 | * NEWS: Document x86_64/MinGW as a new native configuration. | |
671 | ||
2dde91e9 JB |
672 | 2009-01-16 Joel Brobecker <brobecker@adacore.com> |
673 | ||
674 | * NEWS: Move the documentation of "info os processes" to | |
675 | the appropriate section (documenting the new commands). | |
676 | ||
54363045 DE |
677 | 2009-01-15 Doug Evans <dje@google.com> |
678 | ||
679 | * target.h (target_signal_to_string): Make return type const char *. | |
680 | (target_signal_to_name): Ditto. | |
681 | (target_signal_from_name): Make arg const char *. | |
54363045 | 682 | * infrun.c (sig_print_info): Update. |
54363045 DE |
683 | * signals/signals.c (signals): Make array and struct members const. |
684 | (target_signal_to_string): Make return type const char *. | |
685 | (target_signal_to_name): Ditto. | |
686 | (target_signal_from_name): Make arg const char *. | |
687 | ||
572d275c UW |
688 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
689 | Tristan Gingold <gingold@adacore.com> | |
690 | ||
691 | * solist.h (struct target_so_ops): New member bfd_open. | |
692 | (solib_find): Add prototype. | |
693 | (solib_bfd_fopen): Add prototype. | |
694 | * solib.c (solib_find, solib_bfd_fopen): New functions, extracted | |
695 | from solib_bfd_open. | |
696 | (solib_bfd_open): Use ops->bfd_open override if present. Call | |
697 | solib_find and solib_bfd_open otherwise. | |
698 | ||
699 | * objfiles.h (OBJF_KEEPBFD): New define. | |
700 | * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD | |
701 | objfile flag is set. | |
702 | * solib.c (symbol_add_stub): Do not allocate second BFD for | |
703 | shared library; use OBJF_KEEPBFD flag on solib objfile. | |
704 | ||
0701b271 UW |
705 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
706 | ||
707 | * frame.c (get_frame_arch): Abort if called with NULL this_frame. | |
708 | ||
61212c0f UW |
709 | 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com> |
710 | ||
711 | * value.h (address_of_variable): Add prototype. | |
712 | (locate_var_value): Remove prototype. | |
713 | ||
714 | * findvar.c (read_var_value): Do not attempt to default frame | |
715 | to selected frame. | |
716 | (locate_var_value): Remove function. | |
717 | * valops.c (value_of_variable): Retrieve selected frame for | |
718 | symbols that require a frame when called with NULL block. | |
719 | * valops.c (address_of_variable): New function. | |
720 | ||
721 | * eval.c (evaluate_subexp_for_address): Call address_of_variable | |
722 | instead of calling locate_var_value. | |
723 | (evaluate_subexp_with_coercion): Likewise. | |
724 | ||
adb483fe DJ |
725 | 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com> |
726 | ||
727 | * NEWS: Document "define" for prefixed commands. | |
728 | * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call | |
729 | show_user_1 for prefix commands. | |
730 | * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined". | |
731 | * cli/cli-script.c (validate_comname): Rewrite to handle prefix | |
732 | commands. Return the containing command list. | |
733 | (define_command, document_command): Update to handle prefix commands. | |
734 | (show_user_1): Add prefix and name arguments. Handle prefix | |
735 | commands. | |
736 | * cli/cli-script.h (show_user_1): Update prototype. | |
737 | ||
a32d7317 KT |
738 | 2009-01-14 Kai Tietz <kai.tietz@onevision.com> |
739 | ||
740 | * mingw-ser.c (console_select_thread): Add return to make | |
741 | compiler happy. | |
742 | (pipe_select_thread): Likewise. | |
743 | (file_select_thread): Likewise. | |
744 | ||
041d0fd7 PA |
745 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
746 | ||
747 | * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from | |
748 | previous change. | |
749 | ||
dc1981d7 PA |
750 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
751 | ||
752 | * remote.c (extended_remote_mourn_1): Invalidate our notion of | |
753 | current general thread. | |
754 | ||
244bf9ae PA |
755 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
756 | ||
757 | * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups | |
758 | without a live selected thread. | |
759 | ||
e4d013fc JB |
760 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
761 | ||
762 | Update the copyright notice of some of the files I missed | |
763 | in the previous copyright update. | |
764 | ||
a588db63 JB |
765 | 2009-01-14 Joel Brobecker <brobecker@adacore.com> |
766 | ||
767 | * windows-nat.c (handle_unload_dll): Use %p to print the DLL | |
768 | base address instead of casting it to DWORD. | |
769 | ||
77a732d9 UW |
770 | 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
771 | ||
772 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch | |
773 | for NULL frame pointers. | |
774 | ||
773698b5 JB |
775 | 2009-01-13 Mark Kettenis <kettenis@gnu.org> |
776 | ||
777 | * utils.c (host_address_to_string): Reimplement in a way that | |
778 | avoids the cast of the address to long. | |
779 | ||
9918cab9 JB |
780 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
781 | ||
782 | * mdebugread.c (parse_symbol): Save the symbol private data | |
783 | using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE. | |
784 | (psymtab_to_symtab_1): Likewise. | |
785 | (parse_procedure): Declare variable "e" only in the scope | |
786 | where it is used. Extract the symbol private data using | |
787 | SYMBOL_VALUE_BYTES. | |
788 | ||
74bcbdf3 PA |
789 | 2009-01-13 Jim Blandy <jimb@codesourcery.com> |
790 | ||
791 | Abstract out common code for copying value locations. | |
792 | ||
793 | * value.h (set_value_component_location): New declaration. | |
794 | * value.c (set_value_component_location): New function. | |
795 | (value_primitive_field): Use it. | |
796 | * valarith.c (value_subscript, value_subscripted_rvalue): Same. | |
797 | * valops.c (search_struct_field, value_slice): Same. | |
798 | * ada-lang.c (coerce_unspec_val_to_type) | |
799 | (ada_value_primitive_packed_val): Same. | |
800 | ||
d7dc3873 JB |
801 | 2009-01-13 Joel Brobecker <brobecker@adacore.com> |
802 | ||
803 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey. | |
804 | ||
dc05df57 CF |
805 | 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx> |
806 | ||
807 | * amd64-windows-nat.c Rename gdb-specific win32_* to windows_* | |
808 | throughout. | |
809 | * i386-cygwin-tdep.c: Ditto. | |
810 | * i386-windows-nat.c: Ditto. | |
811 | * windows-nat.h: Ditto. | |
812 | * windows-tdep.c: Ditto. | |
813 | * windows-tdep.h: Ditto. | |
814 | * windows-nat.c: Ditto. | |
815 | (cygwin_load_start): Redefine as CORE_ADDR. | |
816 | (cygwin_load_end): Ditto. | |
817 | (windows_make_so): Coerce result of address arithmetic to to uintptr_t | |
818 | before coercing to CORE_ADDR to avoid a compiler warning. | |
819 | (handle_exception): Define addr as CORE_ADDR and coerce | |
820 | ExceptionAddress to uintptr_t before assigining to avoid a compiler | |
821 | warning. | |
822 | * config/djgpp/fnchange.lst: Add mappings for recently renamed windows | |
823 | files. | |
824 | ||
31b060a2 CF |
825 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
826 | ||
827 | Fix linking with --enable-targets=all: | |
828 | * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o. | |
829 | (HFILES_NO_SRCDIR): Add windows-tdep.h. | |
830 | (ALLDEPFILES): Add windows-tdep.c. | |
831 | ||
832 | 2009-01-11 Christ Faylor <me.gdb@cgf.cx> | |
833 | ||
834 | * win32-nat.h: Delete. | |
835 | * windows-nat.h: Rename from win32-nat.h. | |
836 | * win32-nat.c: Delete. | |
837 | * windows-nat.c: Rename from win32-nat.c. | |
838 | * win32-termcap.c: Delete. | |
839 | * windows-termcap.c: Rename from win32-termcap.c. | |
840 | * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h. | |
841 | * configure.ac: Handle rename from win32-termcap.c -> | |
842 | windows-termcap.c. | |
843 | * configure: Regenerate. | |
844 | * gdb_curses.h: Change comment to reflect rename from win32-termcap.c | |
845 | -> windows-termcap.c. | |
846 | * i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> | |
847 | windows-tdep.h. | |
848 | * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h. | |
849 | * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h -> | |
850 | windows-tdep.h. | |
851 | (win32_make_so): Handle cygwin compiler warning due to change of | |
852 | load_addr from DWORD to LPVOID. | |
853 | (handle_load_dll): Use %p in format string to properly print address | |
854 | and avoid a compiler warning. | |
855 | (DEBUG_EXCEPTION_SIMPLE): Ditto. | |
856 | (handle_exception): Ditto. | |
857 | * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h. | |
858 | * config/i386/cygwin.mh: Handle rename from win32-nat.o -> | |
859 | windows-nat.o. | |
860 | * config/i386/mingw.mh: Ditto. | |
861 | * config/i386/mingw64.mh: Ditto. | |
862 | ||
0311118f JK |
863 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
864 | ||
865 | * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable | |
866 | arrayprint_recurse_level to a parameter. Update all the callers. New | |
867 | comment at autovariables. | |
868 | ||
5f61c20e JK |
869 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
870 | ||
871 | * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU | |
872 | coding style. | |
873 | ||
874 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> | |
53b71562 JB |
875 | |
876 | * target.c (target_xfer_partial): Use host_address_to_string to | |
877 | print the address of readbuf and writebuf. Cast the address of | |
878 | elements inside the myaddr buffer into intptr_t. | |
879 | (deprecated_debug_xfer_memory): Use paddress to print memaddr. | |
880 | Cast the address of elements inside the myaddr buffer into | |
881 | intptr_t. | |
882 | ||
5f61c20e | 883 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
d0761299 JB |
884 | |
885 | * amd64-windows-nat.c, amd64-windows-tdep.c: New files. | |
886 | * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files. | |
887 | * configure.host, configure.tgt: Add handling for x86_64/windows. | |
888 | * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c | |
889 | and amd64-windows-tdep.c. | |
890 | ||
5f61c20e | 891 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
bfb87e33 JB |
892 | |
893 | * win32-tdep.h, win32-tdep.c: New files. | |
894 | * i386-cygwin-tdep.h: Delete. | |
895 | * i386-cygwin-tdep.c: Include win32-tdep.h instead of | |
896 | i386-cygwin-tdep.h. | |
897 | (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. | |
898 | * win32-nat.c: Likewise. | |
899 | * configure.tgt: Add win32-tdep.o to the list of target object | |
900 | files for i386-cygwin and i386-mingw targets. | |
901 | ||
5f61c20e | 902 | 2009-01-11 Joel Brobecker <brobecker@adacore.com> |
7e63b4e4 JB |
903 | |
904 | * win32-nat.h: New file. | |
905 | * win32-nat.c (mappings): Initialize to NULL. | |
906 | (win32_set_context_register_offsets): New function. | |
907 | * i386-windows-nat.c: New file. | |
908 | (mappings): Moved here from win32-nat.c. | |
909 | (_initialize_i386_windows_nat): New function. | |
910 | * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o. | |
911 | * config/i386/cygwin.mh (NATDEPFILES): Likewise. | |
912 | ||
25fc6591 AS |
913 | 2009-01-09 Andreas Schwab <schwab@suse.de> |
914 | ||
915 | * Makefile.in (init.c): Set LANG/LC_ALL to C, not c. | |
916 | ||
87f70781 PA |
917 | 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
918 | ||
919 | * gdbtypes.c (append_composite_type_field): Correct the location of | |
920 | appended fields. | |
921 | ||
58d4abe1 PA |
922 | 2009-01-09 Pedro Alves <pedro@codesourcery.com> |
923 | ||
924 | * defs.h (deprecated_error_hook): Delete declaration. | |
925 | * interps.c (clear_interpreter_hooks): Adjust. | |
926 | * remote-sim.c (gdb_os_error): Don't try to call | |
927 | deprecated_error_hook. No need to call exit anymore. | |
928 | * top.c (deprecated_error_hook): Delete. | |
929 | ||
e3cb3832 JB |
930 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
931 | ||
932 | * arch-utils.c (gdbarch_update_p): Use host_address_to_string | |
933 | to print the address of the gdbarch pointer. | |
934 | ||
30737ed9 JB |
935 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
936 | ||
937 | * gdbarch.sh: Fix all the compilation errors on amd64-windows | |
938 | due to casting a pointer to a long when printing a function | |
939 | address. Instead, use host_address_to_string to convert our | |
940 | address to a string. | |
941 | * gdbarch.c: Regenerate. | |
942 | ||
ec4dfccf JB |
943 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
944 | ||
945 | * event-top.c (async_disconnect, async_stop_sig): use "raise" | |
946 | instead of "kill" to raise a signal. | |
947 | ||
d3653bf6 JB |
948 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
949 | ||
950 | * win32-nat.c (get_module_name): Change the type of parameter | |
951 | "base_address" to LPVOID. Remove unnecessary cast. | |
952 | (struct lm_info): Change type of load_addr to LPVOID. | |
953 | (win32_make_so): Change the type of parameter "load_addr" | |
954 | to LPVOID. Remove some unnecessary casts. | |
955 | (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID. | |
956 | (win32_xfer_shared_libraries): Add missing cast. | |
957 | ||
308a8808 JB |
958 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
959 | ||
960 | * win32-nat.c (has_detach_ability, set_process_privilege): | |
961 | Cast the result of GetProcAddress to (void *) to avoid | |
962 | a compilation warning. | |
963 | ||
5851ab76 JB |
964 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
965 | ||
966 | * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not | |
967 | already defined. | |
968 | ||
5732a500 JB |
969 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
970 | ||
971 | * win32-nat.c (get_image_name, win32_xfer_memory): Fix type | |
972 | definition of local variable "done". | |
973 | (info_w32_command, handle_exception): Remove unnecessary cast. | |
974 | ||
def4de3a JB |
975 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
976 | ||
977 | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames | |
978 | DebugSetProcessKillOnExit. Update all uses in this file. | |
979 | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop. | |
980 | Update all uses in this file. | |
981 | ||
982 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> | |
0795be10 JB |
983 | |
984 | * win32-nat.c (do_initial_win32_stuff): Add new ops parameter, | |
985 | and use it when pushing the target. | |
986 | (win32_attach, win32_create_inferior): Update call to | |
987 | do_initial_win32_stuff. | |
988 | (win32_detach, win32_mourn_inferior): Use our ops parameter | |
989 | instead of the global win32_ops to unpush the target. | |
990 | ||
1be7fe8d JB |
991 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
992 | ||
993 | * ser-mingw.c (ser_windows_open): Use proper type when casting | |
994 | in call to _open_osfhandle. | |
995 | ||
1dac1b47 KT |
996 | 2009-01-09 Kai Tietz <kai.tietz@onevision.com> |
997 | ||
998 | * coff-pe-read.c (read_pe_exported_syms): Fix typo. | |
999 | ||
ecf180db JB |
1000 | 2009-01-09 Joel Brobecker <brobecker@adacore.com> |
1001 | ||
1002 | * CONTRIBUTE: Minor reformatting. | |
1003 | ||
8234eceb KT |
1004 | 2009-01-08 Kai Tietz <kai.tietz@onevision.com> |
1005 | ||
1006 | * MAINTAINERS: Add myself to Write After Approval. | |
a68ddad5 KT |
1007 | * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+ |
1008 | export directory. | |
8234eceb | 1009 | |
72ee8797 NF |
1010 | 2009-01-08 Nathan Froyd <froydnj@codesourcery.com> |
1011 | ||
1012 | * remote-sim.c (gdb_os_error): Mark as a noreturn function. | |
1013 | Call exit to make it obvious to GCC. | |
1014 | ||
f7545552 TT |
1015 | 2009-01-08 Tom Tromey <tromey@redhat.com> |
1016 | ||
1017 | PR breakpoints/9350: | |
1018 | * varobj.c (varobj_invalidate): Unconditionally free | |
1019 | all_rootvarobj. | |
1020 | * symfile.c (syms_from_objfile): Free local_addr when returning | |
1021 | normally. | |
1022 | * exec.c (exec_file_attach): Do cleanups before returning. | |
1023 | (exec_file_command): Likewise. | |
1024 | * corefile.c (reopen_exec_file): Do cleanups before returning. | |
1025 | * breakpoint.c (insert_breakpoint_locations): Do cleanups before | |
1026 | returning. | |
1027 | (do_vec_free): New function. | |
1028 | (update_global_location_list): Make a cleanup for old_locations. | |
1029 | Do cleanups before returning. Remove unused variable 'e'. | |
1030 | (find_condition_and_thread): Free result of parsing the | |
1031 | expression. | |
1032 | (print_it_typical): Do cleanups before returning. | |
1033 | (breakpoint_re_set_one): Always free sals.sals. | |
1034 | ||
dde02812 ES |
1035 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
1036 | Emi Suzuki <emi-suzuki@tjsys.co.jp> | |
1037 | ||
1038 | * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for | |
1039 | watchpoints. | |
1040 | ||
69bcc6bc DE |
1041 | 2009-01-07 Doug Evans <dje@google.com> |
1042 | ||
1043 | * top.c (gdb_prompt_string): Delete, unused. | |
1044 | ||
fa3a767f PA |
1045 | 2009-01-07 Pedro Alves <pedro@codesourcery.com> |
1046 | ||
1047 | Delete ONE_PROCESS_WRITETEXT leftovers. | |
1048 | ||
1049 | * breakpoint.c (insert_bp_location): Delete process_warning | |
1050 | argument. Adjust. | |
1051 | (insert_breakpoint_locations): Adjust. | |
1052 | (reattach_breakpoints): Adjust. | |
1053 | * infrun.c (normal_stop): Drop "It might be running in another | |
1054 | process" notice. | |
1055 | ||
7b93f36d SS |
1056 | 2009-01-07 Stan Shebs <stan@codesourcery.com> |
1057 | ||
1058 | * config/pa/linux.mh (XDEPFILES): Remove. | |
1059 | ||
0380c18b DE |
1060 | 2009-01-07 Doug Evans <dje@google.com> |
1061 | ||
1062 | * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. | |
1063 | ||
60023297 JK |
1064 | 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1065 | ||
1066 | * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output | |
1067 | spacing, a regression from 2008-04-22. | |
1068 | ||
ea8992ce JB |
1069 | 2009-01-07 Joel Brobecker <brobecker@adacore.com> |
1070 | ||
1071 | * utils.c (gdb_print_host_address): Adjust implementation to | |
1072 | reuse host_address_to_string. Move comment explaining the conversion | |
1073 | from host address to string from here... | |
1074 | (host_address_to_string): ... to there. | |
1075 | ||
301d2c47 ES |
1076 | 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp> |
1077 | ||
1078 | * MAINTAINERS: Add myself for write after approval privileges. | |
1079 | ||
170ce852 TT |
1080 | 2009-01-06 Tom Tromey <tromey@redhat.com> |
1081 | ||
1082 | * value.c (set_internalvar): Use value_free, not xfree. | |
1083 | ||
fdb7262a JB |
1084 | 2009-01-06 Jim Blandy <jimb@red-bean.com> |
1085 | ||
bf1d7d9c JB |
1086 | Check return values of functions declared with warn_unused_result |
1087 | attribute in GLIBC 2.8. | |
1088 | * cli/cli-cmds.c (pwd_command): Check return value from getcwd. | |
1089 | * inflow.c (check_syscall): New function. | |
1090 | (new_tty): Use check_syscall to check return values from open and dup. | |
1091 | * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets. | |
1092 | * main.c (captured_main): Call cwd after setting up gdb_stderr; | |
1093 | check for errors from getcwd. | |
1094 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd. | |
1095 | * ui-file.c (stdio_file_write): Ignore return value from fwrite. | |
1096 | (stdio_file_fputs): Same. | |
1097 | * utils.c (internal_vproblem): abort if last-ditch error message | |
1098 | write fails. | |
1099 | ||
fdb7262a JB |
1100 | * top.c (gdb_init): Don't set the current directory here; that's |
1101 | already been done in captured_main. | |
1102 | ||
84603566 SL |
1103 | 2009-01-06 Sandra Loosemore <sandra@codesourcery.com> |
1104 | ||
1105 | * ser-tcp.c: Adjust includes. | |
1106 | (tcp_set_cmdlist, tcp_show_cmdlist): Declare. | |
1107 | (tcp_auto_retry, tcp_retry_limit): Declare. | |
1108 | (TIMEOUT): Remove, in favor of tcp_retry_limit. | |
1109 | (POLL_INTERVAL): Increase to 5, in favor of backoff logic. | |
1110 | (wait_for_connect): New function. | |
1111 | (net_open): Use it. Add auto-retry logic. | |
1112 | (set_tcp_cmd, show_tcp_cmd): New functions. | |
1113 | (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry" | |
1114 | and "set/show tcp connect-timeout" commands. | |
1115 | * NEWS: Document new commands. | |
1116 | ||
5171e6b3 TT |
1117 | 2009-01-05 Tom Tromey <tromey@redhat.com> |
1118 | ||
1119 | * python/python-internal.h (Py_ssize_t): Define as int. | |
1120 | ||
a367a1f2 JB |
1121 | 2009-01-05 Jim Blandy <jimb@red-bean.com> |
1122 | ||
1123 | * MAINTAINERS: Fix my e-mail address as steering committee member. | |
1124 | ||
0fb0cc75 JB |
1125 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1126 | ||
1127 | Updated copyright notices for most files. | |
1128 | ||
c9fc347d JB |
1129 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1130 | ||
1131 | * top.c (print_gdb_version): Update copyright year. | |
1132 | ||
a85d99b4 JB |
1133 | 2009-01-03 Joel Brobecker <brobecker@adacore.com> |
1134 | ||
1135 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. | |
1136 | ||
4d78a120 JB |
1137 | 2009-01-01 Pedro Alves <pedro@codesourcery.com> |
1138 | ||
1139 | PR breakpoints/9681: | |
1140 | * exceptions.h (enum errors): New error type, MEMORY_ERROR. | |
1141 | * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR. | |
1142 | * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but | |
1143 | retrow all other exceptions. | |
1144 | ||
67de2a4c | 1145 | For older changes see ChangeLog-2008. |
c906108c SS |
1146 | \f |
1147 | Local Variables: | |
1148 | mode: change-log | |
1149 | left-margin: 8 | |
1150 | fill-column: 74 | |
1151 | version-control: never | |
57da7796 | 1152 | coding: utf-8 |
c906108c | 1153 | End: |