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