Commit | Line | Data |
---|---|---|
78d8b4d7 DE |
1 | 2012-01-26 Doug Evans <dje@google.com> |
2 | ||
3 | * dwarf2read.c (add_partial_symbol): Delete local psym, unused. | |
4 | ||
4c63965b JK |
5 | 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
6 | ||
7 | Do not open script filenames twice. | |
8 | * cli/cli-cmds.c (source_script_from_stream): Pass to | |
9 | source_python_script also STREAM. | |
10 | * python/py-auto-load.c (source_section_scripts): Pass to | |
11 | source_python_script_for_objfile also STREAM. | |
12 | (auto_load_objfile_script): Pass to source_python_script_for_objfile | |
13 | also INPUT. | |
14 | * python/python-internal.h (source_python_script_for_objfile): New | |
15 | parameter file, rename parameter file to filename. | |
16 | * python/python.c (python_run_simple_file): Call PyRun_SimpleFile | |
17 | instead if !_WIN32. Update the function comment. | |
18 | (source_python_script, source_python_script_for_objfile) | |
19 | (source_python_script): New parameter file, rename parameter file to | |
20 | filename. Pass FILENAME to python_run_simple_file. | |
21 | * python/python.h (source_python_script): New parameter file, rename | |
22 | parameter file to filename. | |
23 | ||
88f38a04 PA |
24 | 2012-01-26 Pedro Alves <palves@redhat.com> |
25 | ||
26 | * corelow.c (core_has_fake_pid): Delete. | |
27 | (core_close): Delete references to `core_has_fake_pid'. | |
28 | (add_to_thread_list): Adjust to mark the inferior's pid as fake. | |
29 | (core_open): Delete references to `core_has_fake_pid'. | |
30 | (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of | |
31 | the removed global. | |
32 | ||
e078317b JB |
33 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
34 | ||
35 | * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: | |
36 | Remove language parameter from name_matcher. Adjust the comment. | |
37 | * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): | |
38 | Remove language parameter. | |
39 | * ada-lang.c (ada_expand_partial_symbol_name): Likewise. | |
40 | * linespec.c (iterate_name_matcher): Likewise. | |
41 | * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of | |
42 | name_matcher. Adjust call accordingly. | |
43 | * psymtab.c (expand_symtabs_matching_via_partial): Likewise. | |
44 | (maintenance_check_symtabs): Adjust type of parameter "fun". | |
45 | * psymtab.h (maintenance_check_symtabs): Likewise. | |
46 | ||
74ccd7f5 JB |
47 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
48 | ||
49 | * language.h (symbol_name_match_p_ftype): New typedef. | |
50 | (struct language_defn): Replace field la_symbol_name_compare | |
51 | by la_get_symbol_name_match_p. | |
52 | * ada-lang.c (ada_get_symbol_name_match_p): New function. | |
53 | (ada_language_defn): Use it. | |
54 | * linespec.c (struct symbol_matcher_data): New type. | |
55 | (iterate_name_matcher): Rewrite. | |
56 | (iterate_over_all_matching_symtabs): Pass a pointer to | |
57 | a symbol_matcher_data struct to expand_symtabs_matching | |
58 | instead of just the lookup name. | |
59 | * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, | |
60 | opencl-lang.c, p-lang.c, language.c: Delete field | |
61 | la_symbol_name_compare, and replace by NULL for new field | |
62 | la_get_symbol_name_match_p. | |
63 | * symfile.h (struct quick_symbol_functions): Update comment. | |
64 | ||
5d268276 TT |
65 | 2012-01-25 Tom Tromey <tromey@redhat.com> |
66 | ||
67 | * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before | |
68 | dereferencing. | |
69 | ||
edcc5120 TT |
70 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
71 | ||
72 | PR symtab/12406: | |
73 | * solib.c (update_solib_list): Update the program space's | |
74 | added_solibs and deleted_solibs fields. | |
75 | * progspace.h (struct program_space) <added_solibs, | |
76 | deleted_solibs>: New fields. | |
77 | (clear_program_space_solib_cache): Declare. | |
78 | * progspace.c (release_program_space): Call | |
79 | clear_program_space_solib_cache. | |
80 | (clear_program_space_solib_cache): New function. | |
81 | * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call | |
82 | bpstat_stop_status. Use handle_solib_event. | |
83 | * breakpoint.c: Include gdb_regex.h. | |
84 | (print_solib_event): New function. | |
85 | (bpstat_print): Use print_solib_event. | |
86 | (bpstat_stop_status): Add special case for bp_shlib_event. | |
87 | (handle_solib_event): New function. | |
88 | (bpstat_what): Use handle_solib_event. | |
89 | (struct solib_catchpoint): New. | |
90 | (dtor_catch_solib, insert_catch_solib, remove_catch_solib) | |
91 | (breakpoint_hit_catch_solib, check_status_catch_solib) | |
92 | (print_it_catch_solib, print_one_catch_solib) | |
93 | (print_mention_catch_solib, print_recreate_catch_solib): New | |
94 | functions. | |
95 | (catch_solib_breakpoint_ops): New global. | |
96 | (catch_load_or_unload, catch_load_command_1) | |
97 | (catch_unload_command_1): New functions. | |
98 | (internal_bkpt_check_status): Add special case for | |
99 | bp_shlib_event. | |
100 | (internal_bkpt_print_it): Use print_solib_event. | |
101 | (initialize_breakpoint_ops): Initialize | |
102 | catch_solib_breakpoint_ops. | |
103 | (_initialize_breakpoint): Register "catch load" and "catch | |
104 | unload". | |
105 | * breakpoint.h (handle_solib_event): Declare. | |
106 | * NEWS: Add entry for "catch load" and "catch unload". | |
107 | ||
fa864999 TT |
108 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
109 | ||
110 | * ada-lang.c: Include gdb_vecs.h. | |
111 | * charset.c: Include gdb_vecs.h. | |
112 | * tracepoint.h: Include gdb_vecs.h. | |
113 | * gdb_vecs.h: New file. | |
114 | ||
f90263c1 TT |
115 | 2012-01-24 Pedro Alves <pedro@codesourcery.com> |
116 | ||
117 | * breakpoint.c (breakpoint_hit_catch_fork) | |
118 | (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall) | |
119 | (breakpoint_hit_catch_exec): Make use of the `ws' argument. | |
120 | * infrun.c (inferior_has_forked, inferior_has_vforked) | |
121 | (inferior_has_execd, inferior_has_called_syscall): Delete. | |
122 | (handle_syscall_event): Get syscall_number from the execution | |
123 | control state's wait status. | |
124 | (wait_for_inferior): Don't clear syscall_number. | |
125 | ||
09ac7c10 TT |
126 | 2012-01-24 Pedro Alves <palves@redhat.com> |
127 | ||
128 | * breakpoint.c (bpstat_check_location, bpstat_stop_status, | |
129 | pc_at_non_inline_function): Add `ws' parameter, and pass it down. | |
130 | (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork) | |
131 | (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add | |
132 | `ws' parameter. | |
133 | (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return | |
134 | false for events other than TARGET_SIGNAL_TRAP. | |
135 | (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit): | |
136 | Add `ws' parameter. | |
137 | (bkpt_breakpoint_hit): Add `ws' parameter. Return false for | |
138 | events other than TARGET_SIGNAL_TRAP. | |
139 | (tracepoint_breakpoint_hit): Add `ws' parameter. | |
140 | * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws' | |
141 | parameter. | |
142 | (bpstat_stop_status): Same. | |
143 | (pc_at_non_inline_function): Same. | |
144 | * infrun.c (handle_syscall_event, handle_inferior_event): Adjust | |
145 | to pass the current event's waitstatus to bpstat_stop_status | |
146 | and pc_at_non_inline_function. | |
147 | ||
86eb7e95 JK |
148 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
149 | ||
150 | Code cleanup. | |
151 | * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM. | |
152 | Update the function comment for it. | |
153 | (source_script_with_search): Call make_cleanup_fclose for STREAM. | |
154 | * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose | |
155 | for STREAM. | |
156 | ||
a9b3a50f PA |
157 | 2012-01-24 Pedro Alves <palves@redhat.com> |
158 | ||
159 | * breakpoint.c (bpstat_stop_status): Moving clearing print_it | |
160 | outside `bs->stop' block. | |
161 | (bpstat_what): Rework bp_shlib_event handling. | |
162 | (internal_bkpt_check_status): If the breakpoint is a | |
163 | bp_shlib_event, then set bs->stop and bs->print if | |
164 | stop_on_solib_events is set. | |
165 | ||
53fe1783 GB |
166 | 2012-01-24 Gary Benson <gbenson@redhat.com> |
167 | ||
168 | Delete #if 0'd out code. | |
169 | * stack.c (print_frame_label_vars): Remove. | |
170 | (catch_info): Likewise. | |
171 | (_initialize_stack): Remove "info catch" command. | |
172 | * NEWS: Mention the above. | |
173 | ||
49c62f2e PA |
174 | 2012-01-24 Pedro Alves <palves@redhat.com> |
175 | ||
176 | * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use | |
177 | it. | |
178 | (remote_notice_new_inferior): If the remote end doesn't support | |
179 | the multiprocess extensions, then the PID is fake. | |
180 | (add_current_inferior_and_thread): New. | |
181 | (remote_start_remote): Use it. | |
182 | (extended_remote_attach_1): Adjust. | |
183 | (extended_remote_create_inferior_1): Use | |
184 | add_current_inferior_and_thread. | |
185 | ||
d0d8b0c6 JK |
186 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
187 | ||
188 | Fix watchpoints to be specific for each inferior. | |
189 | * breakpoint.c (watchpoint_in_thread_scope): Verify also | |
190 | current_program_space. | |
191 | * i386-nat.c (i386_inferior_data_cleanup): New. | |
192 | (i386_inferior_data_get): Replace variable inf_data_local by an | |
193 | inferior_data call. | |
194 | (i386_use_watchpoints): Initialize i386_inferior_data. | |
195 | * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID | |
196 | specific iterate_over_lwps. | |
197 | ||
4403d8e9 JK |
198 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
199 | ||
200 | Fix watchpoints across inferior fork. | |
201 | * amd64-linux-nat.c (update_debug_registers_callback): Update the | |
202 | comment for linux_nat_iterate_watchpoint_lwps. | |
203 | (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use | |
204 | linux_nat_iterate_watchpoint_lwps. | |
205 | (amd64_linux_prepare_to_resume): New comment on Linux kernel. | |
206 | * i386-linux-nat.c (update_debug_registers_callback): Update the | |
207 | comment for linux_nat_iterate_watchpoint_lwps. | |
208 | (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use | |
209 | linux_nat_iterate_watchpoint_lwps. | |
210 | (i386_linux_prepare_to_resume): New comment on Linux kernel. | |
211 | * i386-nat.c: Include inferior.h. | |
212 | (dr_mirror): Remove. | |
213 | (i386_inferior_data, struct i386_inferior_data) | |
214 | (i386_inferior_data_get): New. | |
215 | (i386_debug_reg_state): Use i386_inferior_data_get. | |
216 | (i386_cleanup_dregs, i386_update_inferior_debug_regs) | |
217 | (i386_insert_watchpoint, i386_remove_watchpoint) | |
218 | (i386_stopped_data_address, i386_insert_hw_breakpoint) | |
219 | (i386_remove_hw_breakpoint): New variable state, use | |
220 | i386_debug_reg_state instead of DR_MIRROR. | |
221 | * linux-nat.c (delete_lwp): New declaration. | |
222 | (num_lwps): Move here from downwards. | |
223 | (delete_lwp_cleanup): New. | |
224 | (linux_child_follow_fork): Create new child_lp, call | |
225 | linux_nat_new_thread and linux_nat_prepare_to_resume before calling | |
226 | PTRACE_DETACH. | |
227 | (num_lwps): Move upwards. | |
228 | (linux_nat_iterate_watchpoint_lwps): New. | |
229 | * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New. | |
230 | (linux_nat_iterate_watchpoint_lwps_ftype): New declaration. | |
231 | ||
2992c9a7 | 232 | 2012-01-24 Joel Brobecker <brobecker@adacore.com> |
233 | ||
234 | GDB 7.4 released. | |
235 | ||
e360902b PA |
236 | 2012-01-23 Pedro Alves <palves@redhat.com> |
237 | ||
238 | * top.c (caution): Rename to ... | |
239 | (confirm): ... this. | |
240 | (show_caution): Rename to ... | |
241 | (show_confirm): ... this. | |
242 | (quit_cover): Adjust. | |
243 | (init_main): Adjust. | |
244 | * top.h (caution): Rename to ... | |
245 | (confirm): ... this. | |
246 | * utils.c (internal_vproblem, defaulted_query): Adjust. | |
247 | ||
050a2e1d PA |
248 | 2012-01-23 Pedro Alves <palves@redhat.com> |
249 | ||
250 | * top.c (caution): Update comment. | |
251 | (execute_command): Don't consider the current value of `caution'. | |
252 | ||
77a35dd8 JK |
253 | 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
254 | ||
255 | * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen. | |
256 | ||
a71b5a38 UW |
257 | 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org> |
258 | ||
259 | * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>. | |
260 | * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning. | |
261 | * target.c (target_fileio_pwrite): Remove buffer address from | |
262 | debug output. | |
263 | (target_fileio_pread): Likewise. | |
264 | ||
d99bd577 UW |
265 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
266 | ||
267 | * NEWS: Document remote "info proc" and "generate-core-file". | |
268 | ||
35c2fab7 UW |
269 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
270 | ||
271 | * gdbarch.sh (find_memory_regions): New callback. | |
272 | * gdbarch.c, gdbarch.h: Regenerate. | |
273 | ||
274 | * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions | |
275 | callback before falling back to target method. | |
276 | ||
277 | * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove. | |
278 | (linux_target_install_ops): No longer install it. | |
279 | ||
280 | * linux-tdep.c (linux_find_memory_regions): New function. | |
281 | (linux_init_abi): Install it. | |
282 | ||
6432734d UW |
283 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
284 | ||
285 | * gdbarch.sh (make_corefile_notes): New architecture callback. | |
286 | * gdbarch.c: Regenerate. | |
287 | * gdbarch.h: Likewise. | |
288 | ||
289 | * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes | |
290 | before target_make_corefile_notes. If NULL is returned, the | |
291 | target does not support core file generation. | |
292 | ||
293 | * linux-nat.c: Include "linux-tdep.h". | |
294 | (find_signalled_thread, find_stop_signal): Remove. | |
295 | (linux_nat_do_thread_registers): Likewise. | |
296 | (struct linux_nat_corefile_thread_data): Likewise. | |
297 | (linux_nat_corefile_thread_callback): Likewise. | |
298 | (iterate_over_spus): Likewise. | |
299 | (struct linux_spu_corefile_data): Likewise. | |
300 | (linux_spu_corefile_callback): Likewise. | |
301 | (linux_spu_make_corefile_notes): Likewise. | |
302 | (linux_nat_collect_thread_registers): New function. | |
303 | (linux_nat_make_corefile_notes): Replace contents by call to | |
304 | linux_make_corefile_notes passing linux_nat_collect_thread_registers | |
305 | as native-only callback. | |
306 | ||
307 | * linux-tdep.h: Include "bfd.h". | |
308 | (struct regcache): Add forward declaration. | |
309 | (linux_collect_thread_registers_ftype): New typedef. | |
310 | (linux_make_corefile_notes): Add prototype. | |
311 | * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h", | |
312 | "regset.h", and "elf-bfd.h". | |
313 | (find_signalled_thread, find_stop_signal): New functions. | |
314 | (linux_spu_make_corefile_notes): Likewise. | |
315 | (linux_collect_thread_registers): Likewise. | |
316 | (struct linux_corefile_thread_data): New data structure. | |
317 | (linux_corefile_thread_callback): New funcion. | |
318 | (linux_make_corefile_notes): Likewise. | |
319 | (linux_make_corefile_notes_1): Likewise. | |
320 | (linux_init_abi): Install it. | |
321 | ||
3030c96e UW |
322 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
323 | ||
324 | * gdbarch.sh (info_proc): New callback. | |
325 | * gdbarch.c, gdbarch.h: Regenerate. | |
326 | ||
327 | * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback | |
328 | before falling back to the target info_proc callback. | |
329 | ||
330 | * linux-nat.c: Do not include "cli/cli-utils.h". | |
331 | (linux_nat_info_proc): Remove. | |
332 | (linux_target_install_ops): No longer install it. | |
333 | ||
334 | * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>. | |
335 | (read_mapping): New function. | |
336 | (linux_info_proc): Likewise. | |
337 | (linux_init_abi): Install it. | |
338 | ||
145b16a9 UW |
339 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
340 | ||
341 | * defs.h (enum info_proc_what): Moved here from linux-nat.c | |
342 | * infcmd.c: (info_proc_cmd_1): New function. | |
343 | (info_proc_cmd): New function, moved here from equivalent routine | |
344 | orignally in linux-nat.c. | |
345 | (info_proc_cmd_mappings): Likewise. | |
346 | (info_proc_cmd_stat): Likewise. | |
347 | (info_proc_cmd_status): Likewise. | |
348 | (info_proc_cmd_cwd): Likewise. | |
349 | (info_proc_cmd_cmdline): Likewise. | |
350 | (info_proc_cmd_exe): Likewise. | |
351 | (info_proc_cmd_all): Likewise. | |
352 | (_initialize_infcmd): Install "info proc" command and subcommands. | |
353 | ||
354 | * target.h (struct target_ops): Add to_info_proc. | |
355 | (target_info_proc): Add prototype. | |
356 | * target.c (target_info_proc): New function. | |
357 | ||
358 | * procfs.c (procfs_info_proc): Add prototype. | |
359 | (info_proc_cmd): Rename into ... | |
360 | (procfs_info_proc): ... this. Update argument types as appropriate | |
361 | for a to_info_proc implementation. Handle "what" argument. | |
362 | (procfs_target): Install procfs_info_proc. | |
363 | (_initialize_procfs): No longer install "info proc" command. | |
364 | ||
365 | * linux-nat.c: (enum info_proc_what): Remove. | |
366 | (linux_nat_info_proc_cmd_1): Rename into ... | |
367 | (linux_nat_info_proc): ... this. Update argument types as appropriate | |
368 | for a to_info_proc implementation. | |
369 | (linux_nat_info_proc_cmd): Remove. | |
370 | (linux_nat_info_proc_cmd_mappings): Likewise. | |
371 | (linux_nat_info_proc_cmd_stat): Likewise. | |
372 | (linux_nat_info_proc_cmd_status): Likewise. | |
373 | (linux_nat_info_proc_cmd_cwd): Likewise. | |
374 | (linux_nat_info_proc_cmd_cmdline): Likewise. | |
375 | (linux_nat_info_proc_cmd_exe): Likewise. | |
376 | (linux_nat_info_proc_cmd_all): Likewise. | |
377 | (linux_target_install_ops): Install linux_nat_info_proc. | |
378 | (_initialize_linux_nat): No longer install "info proc" command | |
379 | and subcommands. | |
380 | ||
b9e7b9c3 UW |
381 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
382 | ||
383 | * configure.ac [AC_CHECK_FUNCS]: Check for readlink. | |
384 | * config.in, configure: Regenerate. | |
385 | ||
386 | * target.h (struct target_ops): Add to_fileio_readlink. | |
387 | (target_fileio_readlink): Add prototype. | |
388 | * target.c (target_fileio_readlink): New function. | |
389 | ||
390 | * inf-child.c: Conditionally include <sys/param.h>. | |
391 | (inf_child_fileio_readlink): New function. | |
392 | (inf_child_target): Install it. | |
393 | ||
394 | * remote.c (PACKET_vFile_readlink): New enum value. | |
395 | (remote_hostio_readlink): New function. | |
396 | (init_remote_ops): Install it. | |
397 | (_initialize_remote): Handle vFile:readlink packet type. | |
398 | ||
7313baad UW |
399 | 2012-01-20 Pedro Alves <palves@redhat.com> |
400 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
401 | ||
402 | * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite. | |
403 | * config.in, configure: Regenerate. | |
404 | ||
405 | * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite, | |
406 | to_fileio_pread, to_fileio_close, to_fileio_unlink. | |
407 | (target_fileio_open): Add prototype. | |
408 | (target_fileio_pwrite): Likewise. | |
409 | (target_fileio_pread): Likewise. | |
410 | (target_fileio_close): Likewise. | |
411 | (target_fileio_unlink): Likewise. | |
412 | (target_fileio_read_alloc): Likewise. | |
413 | (target_fileio_read_stralloc): Likewise. | |
414 | ||
415 | * target.c: Include "gdb/fileio.h". | |
416 | (target_read_stralloc): Accept trailing, but not embedded NUL bytes. | |
417 | (default_fileio_target): New function. | |
418 | (target_fileio_open): Likewise. | |
419 | (target_fileio_pwrite): Likewise. | |
420 | (target_fileio_pread): Likewise. | |
421 | (target_fileio_close): Likewise. | |
422 | (target_fileio_unlink): Likewise. | |
423 | (target_fileio_close_cleanup): Likewise. | |
424 | (target_fileio_read_alloc_1): Likewise. | |
425 | (target_fileio_read_alloc): Likewise. | |
426 | (target_fileio_read_stralloc): Likewise. | |
427 | ||
428 | * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>, | |
429 | <fcntl.h>, and <unistd.h>. | |
430 | (inf_child_fileio_open_flags_to_host): New function. | |
431 | (inf_child_errno_to_fileio_error): Likewise. | |
432 | (inf_child_fileio_open): Likewise. | |
433 | (inf_child_fileio_pwrite): Likewise. | |
434 | (inf_child_fileio_pread): Likewise. | |
435 | (inf_child_fileio_close): Likewise. | |
436 | (inf_child_fileio_unlink): Likewise. | |
437 | (inf_child_target): Install to_fileio routines. | |
438 | ||
439 | * remote.c (init_remote_ops): Install to_fileio routines. | |
440 | ||
901f9912 UW |
441 | 2012-01-20 Pedro Alves <palves@redhat.com> |
442 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
443 | ||
444 | * remote.c (remote_multi_process_p): Only check for multi-process | |
445 | protocol feature, do not check for extended protocol. | |
446 | (remote_supports_multi_process): Check for extended protocol here. | |
447 | (set_general_process): Likewise. | |
448 | (extended_remote_kill): Likewise. | |
449 | (remote_pid_to_str): Likewise. | |
450 | (remote_query_supported): Always query multiprocess mode. | |
451 | ||
e714e1bf UW |
452 | 2012-01-20 Pedro Alves <palves@redhat.com> |
453 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
454 | ||
455 | * inferior.h (struct inferior): Add fake_pid_p. | |
456 | * inferior.c (exit_inferior_1): Clear fake_pid_p. | |
457 | * remote.c (remote_start_remote): Set fake_pid_p if we have to use | |
458 | magic_null_ptid since the remote side doesn't provide a real PID. | |
459 | ||
50897289 TT |
460 | 2012-01-19 Tom Tromey <tromey@redhat.com> |
461 | ||
462 | * NEWS: Combine the two Python sections. | |
463 | ||
1afc2033 JK |
464 | 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
465 | ||
466 | * target.h (target_close): Update comment on the target's unpush state. | |
467 | ||
305436e0 PA |
468 | 2012-01-19 Pedro Alves <palves@redhat.com> |
469 | ||
470 | * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and | |
471 | linux_nat_async directly instead of going through the target | |
472 | vector. | |
473 | * target.c (unpush_target): Close target after unpushing it, not | |
474 | before. | |
475 | ||
49323895 GB |
476 | 2012-01-19 Gary Benson <gbenson@redhat.com> |
477 | ||
478 | * mdebugread.c (sort_blocks): Replace integer constants with ones | |
479 | derived from FIRST_LOCAL_BLOCK. | |
480 | ||
1db33378 PP |
481 | 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com> |
482 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
483 | ||
484 | PR gdb/9538 | |
485 | * symfile.c (find_separate_debug_file): New function. | |
486 | (terminate_after_last_dir_separator): Likewise. | |
487 | (find_separate_debug_file_by_debuglink): Also try realpath. | |
488 | * configure.ac (AC_CHECK_FUNCS): Add lstat. | |
489 | * configure: Regenerate. | |
490 | * config.in: Regenerate. | |
491 | ||
f83d8a90 DE |
492 | 2012-01-18 Doug Evans <dje@google.com> |
493 | ||
494 | * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete. | |
495 | (main.o): Remove rule. | |
496 | * configure.ac (BINDIR): Define with AC_DEFINE_DIR. | |
497 | (--with-sysroot): Rewrite. | |
498 | * configure: Regenerate. | |
499 | * config.in: Regenerate. | |
500 | ||
2dbca4d6 SDJ |
501 | 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com> |
502 | ||
503 | * parse.c (initialize_expout): New function. | |
504 | (reallocate_expout): Likewise. | |
505 | (parse_exp_in_context): Use `initialize_expout' and | |
506 | `reallocate_expout' when appropriate. | |
507 | ||
0695b514 PA |
508 | 2012-01-18 Pedro Alves <palves@redhat.com> |
509 | ||
510 | * record.c (struct record_breakpoint, record_breakpoint_p) | |
511 | (record_breakpoints): New. | |
512 | (record_insert_breakpoint, record_remove_breakpoint): Manage | |
513 | record breakpoints list. Only remove breakpoints from the | |
514 | inferior if they had been inserted there in the first place. | |
515 | ||
136e1c30 DE |
516 | 2012-01-17 Doug Evans <dje@google.com> |
517 | ||
518 | * linespec.c (decode_line_internal): Don't call symtabs_from_filename | |
519 | if we know we don't have a file name to look for. | |
520 | ||
c0bf857d PA |
521 | 2012-01-17 Pedro Alves <palves@redhat.com> |
522 | ||
523 | * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if | |
524 | the frame's stop reason is UNWIND_UNAVAILABLE. | |
525 | ||
b486de60 JK |
526 | 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
527 | ||
528 | Fix compilation error. | |
529 | * m2-exp.y (yyerror): Use ANSI C prototype. | |
530 | ||
d04550a6 SDJ |
531 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
532 | ||
533 | * f-exp.y (parse_number): Convert prototype from K&R to ANSI C. | |
534 | (growbuf_by_size): Likewise. | |
535 | (yyerror): Likewise. | |
536 | * m2-exp.y (make_qualname): Remove function (was #if 0'ed). | |
537 | (modblock): Remove variable (was #if 0'ed). | |
538 | (parse_number): Convert prototype from K&R to ANSI C. | |
539 | (yyerror): Likewise. | |
540 | * objc-exp.y (parse_number): Likewise. | |
541 | (yyerror): Likewise. | |
542 | (yylex): Remove #if 0'ed code. | |
543 | * p-exp.y (uptok): Convert prototype from K&R to ANSI C. | |
544 | (yyerror): Likewise. | |
545 | ||
4aac40c8 TT |
546 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
547 | ||
548 | * NEWS: Add item. | |
549 | * symtab.h (compare_filenames_for_search): Declare. | |
550 | * symtab.c (compare_filenames_for_search): New function. | |
551 | (iterate_over_some_symtabs): Use it. | |
552 | * symfile.h (struct quick_symbol_functions) | |
553 | <map_symtabs_matching_filename>: Change spec. | |
554 | * psymtab.c (partial_map_symtabs_matching_filename): Use | |
555 | compare_filenames_for_search. Update for new spec. | |
556 | * dwarf2read.c (dw2_map_symtabs_matching_filename): Use | |
557 | compare_filenames_for_search. Update for new spec. | |
558 | * breakpoint.c (clear_command): Use compare_filenames_for_search. | |
559 | ||
cafec441 TT |
560 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
561 | ||
562 | PR python/13281: | |
563 | * gdbtypes.h (TYPE_FLAG_ENUM): New macro. | |
564 | (struct main_type) <flag_flag_enum>: New field. | |
565 | * dwarf2read.c (process_enumeration_scope): Detect "flag" enums. | |
566 | * NEWS: Add entries. | |
567 | * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag" | |
568 | enums. | |
569 | * python/lib/gdb/printing.py (_EnumInstance): New class. | |
570 | (FlagEnumerationPrinter): Likewise. | |
571 | ||
983af33b SDJ |
572 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
573 | ||
574 | * breakpoint.c (create_sals_from_address_default): New function. | |
575 | (create_breakpoints_sal_default): Likewise. | |
576 | (decode_linespec_default): Likewise. | |
577 | (is_marker_spec): Removed. | |
578 | (strace_marker_p): New function. | |
579 | (init_breakpoint_sal): Using `strace_marker_p' instead of | |
580 | `is_marker_spec'. | |
581 | (create_breakpoint): Call method `create_sals_from_address' from | |
582 | breakpoint_ops, replacing code that created SALs conditionally | |
583 | on the type of the breakpoint. Call method `create_breakpoints_sal', | |
584 | replacing code that created breakpoints conditionally on the type | |
585 | wanted. | |
586 | (base_breakpoint_create_sals_from_address): New function. | |
587 | (base_breakpoint_create_breakpoints_sal): Likewise. | |
588 | (base_breakpoint_decode_linespec): Likewise. | |
589 | (base_breakpoint_ops): Add methods | |
590 | `base_breakpoint_create_sals_from_address', | |
591 | `base_breakpoint_create_breakpoints_sal' and | |
592 | `base_breakpoint_decode_linespec'. | |
593 | (bkpt_create_sals_from_address): New function. | |
594 | (bkpt_create_breakpoints_sal): Likewise. | |
595 | (bkpt_decode_linespec): Likewise. | |
596 | (tracepoint_create_sals_from_address): Likewise. | |
597 | (tracepoint_create_breakpoints_sal): Likewise. | |
598 | (tracepoint_decode_linespec): Likewise. | |
599 | (strace_marker_create_sals_from_address): Likewise. | |
600 | (strace_marker_create_breakpoints_sal): Likewise. | |
601 | (strace_marker_decode_linespec): Likewise. | |
602 | (strace_marker_breakpoint_ops): New variable. | |
603 | (addr_string_to_sals): Remove `marker_spec'. Call method | |
604 | `decode_linespec' from breakpoint_ops, replacing code that decoded | |
605 | an address string into a SAL. Use `strace_marker_p' instead of | |
606 | `marker_spec'. | |
607 | (strace_command): Decide whether we are dealing with a static | |
608 | tracepoint with marker or not. Use the appropriate breakpoint_ops. | |
609 | (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops. | |
610 | * breakpoint.h (linespec_result, linespec_sals): New forward | |
611 | declarations. | |
612 | (breakpoint_ops) <create_sals_from_address>, | |
613 | <create_breakpoints_sal>, <decode_linespec>: New methods. | |
614 | ||
4795f398 DE |
615 | 2012-01-14 Doug Evans <dje@google.com> |
616 | ||
617 | * NEWS: Update text for "maint set python print-stack". | |
618 | It is deprecated in gdb 7.4 and deleted in 7.5. | |
619 | ||
ee5106fe EZ |
620 | 2012-01-13 Eli Zaretskii <eliz@gnu.org> |
621 | ||
622 | * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before | |
623 | including curses.h. | |
624 | ||
b161e06f JK |
625 | 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
626 | ||
627 | * configure: Regenerate. | |
628 | * config.in: Regenerate. | |
629 | ||
85254831 KS |
630 | 2012-01-12 Keith Seitz <keiths@redhat.com> |
631 | ||
632 | PR mi/10586 | |
633 | * varobj.c (ANONYMOUS_STRUCT_NAME): Define. | |
634 | (ANONYMOUS_UNION_NAME): Define. | |
635 | (is_path_expr_parent): New function. | |
636 | (get_path_expr_parent): New function. | |
637 | (is_anonymous_child): New function. | |
638 | (create_child_with_value): If the child is anonymous and without | |
639 | a name, assign an object name to it. | |
640 | (c_describe_child): Use get_path_expr_parent to determine | |
641 | the parent expression. | |
642 | If there field represents an anonymous struct or union and | |
643 | has no name, set an appropriate display name and expression. | |
644 | (cplus_describe_child): Likewise. | |
645 | ||
620fa63a PA |
646 | 2012-01-12 Pedro Alves <palves@redhat.com> |
647 | ||
648 | * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as | |
649 | available when %ebp is found to be zero (outermost). | |
650 | ||
2efa2c79 AT |
651 | 2012-01-11 Andreas Tobler <andreast@fgznet.ch> |
652 | ||
653 | * common/gdb_assert.h (gdb_static_assert): Rename static_assert to | |
654 | an internal gdb_static_assert. | |
655 | * mi/mi-common.c: Rename static_assert to gdb_static_assert. | |
656 | ||
88e7d25d TT |
657 | 2012-01-11 Tom Tromey <tromey@redhat.com> |
658 | ||
659 | PR gdb/9598: | |
660 | * breakpoint.c (_initialize_breakpoint): Fix help for "catch | |
661 | catch" and "catch throw". | |
662 | ||
72384ba3 PH |
663 | 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> |
664 | ||
665 | * blockframe.c (block_innermost_frame): Start search from selected | |
666 | frame, if present, or otherwise the current frame. | |
667 | ||
668 | * c-exp.y (variable): Update innermost_block for | |
669 | 'block COLONCOLON NAME' clause. | |
670 | * m2-exp.y (variable): Ditto. | |
671 | * objc-exp.y (variable): Ditto. | |
672 | ||
065a711f TT |
673 | 2012-01-10 Tom Tromey <tromey@redhat.com> |
674 | ||
675 | PR python/13199: | |
676 | * python/python.c (finish_python_initialization): Set sys.argv. | |
677 | ||
f3f5162e DE |
678 | 2012-01-10 Doug Evans <dje@google.com> |
679 | ||
680 | * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg | |
681 | "want_line_info". All callers updated. | |
682 | (dwarf_decode_lines_1): New function. | |
683 | (handle_DW_AT_stmt_list): Add function comment. | |
684 | New arg "want_line_info". All callers updated. | |
685 | (read_file_scope,read_type_unit_scope): Move comment from | |
686 | handle_DW_AT_stmt_list to here. | |
687 | ||
9934703b JK |
688 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
689 | ||
690 | Fix regression after libiberty/ update for GCC PR 6057 and others. | |
691 | * c-exp.y (operator) <OPERATOR DELETE> | |
692 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
693 | * cp-name-parser.y (fill_comp, make_operator, make_dtor) | |
694 | (make_builtin_type, make_name): New variable i, add gdb_assert. | |
695 | (operator) <OPERATOR NEW>: Update ARGS to 3. | |
696 | (operator) <OPERATOR DELETE>: Add trailing space. | |
697 | (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3. | |
698 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
699 | * cp-support.c (cp_canonicalize_string): Check NULL from | |
700 | cp_comp_to_string, call warning and return. | |
701 | ||
06b9f45f JK |
702 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
703 | ||
704 | Fix duplicate .o files after omitting libbfd.a. | |
705 | * Makefile.in (ALL_TARGET_OBS): Remove corelow.o. | |
706 | (SFILES): Add corelow.c. | |
707 | (COMMON_OBS): Add corelow.o. | |
708 | (ALLDEPFILES): Remove corelow.c. | |
709 | * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o. | |
710 | * config/alpha/alpha-osf3.mh: Likewise. | |
711 | * config/alpha/fbsd.mh: Likewise. | |
712 | * config/arm/nbsdaout.mh: Likewise. | |
713 | * config/arm/nbsdelf.mh: Likewise. | |
714 | * config/i386/i386gnu.mh: Likewise. | |
715 | * config/ia64/hpux.mh: Likewise. | |
716 | * config/ia64/linux.mh: Likewise. | |
717 | * config/m32r/linux.mh: Likewise. | |
718 | * config/m68k/linux.mh: Likewise. | |
719 | * config/mips/irix5.mh: Likewise. | |
720 | * config/mips/irix6.mh: Likewise. | |
721 | * config/pa/hpux.mh: Likewise. | |
722 | * config/pa/linux.mh: Likewise. | |
723 | * config/powerpc/aix.mh: Likewise. | |
724 | * config/sparc/linux.mh: Likewise. | |
725 | * config/sparc/linux64.mh: Likewise. | |
726 | * config/sparc/sol2.mh: Likewise. | |
727 | * config/vax/vax.mh: Likewise. | |
728 | * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu) | |
729 | (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*) | |
730 | (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*) | |
731 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*) | |
732 | (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*) | |
733 | (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*) | |
734 | (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*) | |
735 | (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*) | |
736 | (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*) | |
737 | (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu) | |
738 | (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*) | |
739 | (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*) | |
740 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
741 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*) | |
742 | (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*) | |
743 | (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
744 | (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*) | |
745 | (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu) | |
746 | (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*) | |
747 | (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*) | |
748 | (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*) | |
749 | (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove | |
750 | corelow.o from gdb_target_obs. | |
751 | * corefile.c (core_target): Update the comment on NULL value. | |
752 | (core_file_command): Replace error by gdb_assert on CORE_TARGET. | |
753 | * corelow.c (sniff_core_bfd): Call error instead of warning on zero | |
754 | MATCHES. Drop YUMMY set on NULL. | |
755 | (core_close): Do not call exit_inferior_silent on zero PID. Do not | |
756 | reclaim CORE_DATA if it is already NULL. | |
757 | ||
34365054 DE |
758 | 2012-01-09 Doug Evans <dje@google.com> |
759 | ||
760 | * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy. | |
761 | * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy. | |
762 | ||
696166a3 KS |
763 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
764 | ||
765 | * breakpoint.c (wrapper.h): Don't include. | |
766 | ||
8e7b59a5 KS |
767 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
768 | ||
769 | * Makefile.in (SFILES): Remove wrapper.c. | |
770 | (HFILES_NO_SRCDIR): Remove wrapper.h. | |
771 | (COMMON_OBS): Remove wrapper.o. | |
772 | * cli/cli-interp.c: Don't inlude wrapper.h. | |
773 | * corelow.c: Likewise. | |
774 | (core_open): Replace gdb_target_find_new_threads with | |
775 | TRY_CATCH around target_find_new_threads. | |
776 | * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. | |
777 | * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. | |
778 | * varobj.c (varobj_create): Likewise for parse_exp_1 and | |
779 | evaluate_expression. | |
780 | (varobj_set_value): Likewise for evaluate_expression and | |
781 | value_assign. | |
782 | (install_new_variable): Likewise for value_fetch_lazy. | |
783 | (adjust_value_for_child_access): Likewise for value_ind. | |
784 | (c_describe_child): Likewise for value_subscript and | |
785 | value_ind. | |
786 | (c_value_of_root): Likewise for evaluate_expression. | |
787 | * wrapper.c: Remove. | |
788 | * wrapper.h: Remove. | |
789 | ||
1a4eeb98 DE |
790 | 2012-01-09 Doug Evans <dje@google.com> |
791 | ||
9ff913ba DE |
792 | * dwarf2read.c (read_and_check_comp_unit_head): Renamed from |
793 | partial_read_comp_unit_head. Replace "buffer", "buffer_size" and | |
794 | "abfd" args with "section". All callers updated. | |
795 | Error checking code moved ... | |
796 | (error_check_comp_unit_head): ... here. New function. | |
797 | (read_and_check_type_unit_head): Renamed from read_type_unit_head. | |
798 | Delete arg "abfd". New arg "type_offset". All callers updated. | |
799 | (create_debug_types_hash_table): Simplify by using | |
800 | read_and_check_type_unit_head. | |
801 | ||
1a4eeb98 DE |
802 | * parser-defs.h (namecopy): Delete. |
803 | * parse.c (namecopy, namecopy_size): Move into copy_name. | |
804 | ||
2e6af8c0 JK |
805 | 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
806 | ||
807 | Partially fix duplicate .o files after omitting libbfd.a. | |
808 | * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o. | |
809 | * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
810 | * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o. | |
811 | * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
812 | * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o. | |
813 | * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o. | |
814 | * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
815 | ||
9f2f828a PA |
816 | 2012-01-09 Pedro Alves <palves@redhat.com> |
817 | ||
818 | * MAINTAINERS: Update my email address. | |
819 | ||
4d72c0bc DE |
820 | 2012-01-08 Doug Evans <dje@google.com> |
821 | ||
d467dd73 DE |
822 | * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to |
823 | n_type_units. Rename type_comp_units to all_type_units. | |
824 | All uses updated. | |
825 | (add_signatured_type_cu_to_table): Renamed from | |
826 | add_signatured_type_cu_to_list. All callers updated. | |
827 | ||
4d72c0bc DE |
828 | * gdbtypes.h (struct cplus_struct_type): Delete member |
829 | nfn_fields_total. All uses removed. | |
830 | ||
21b2bd31 DE |
831 | 2012-01-06 Doug Evans <dje@google.com> |
832 | ||
833 | * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard | |
834 | to top of file. | |
835 | (dwarf2_find_comp_unit): Delete. | |
836 | (process_psymtab_comp_unit): Make result "void". | |
837 | Delete args buffer, info_ptr, buffer_size, and replace with | |
838 | "section". All callers updated. | |
839 | (dwarf2_build_psymtabs_hard): Simplify. | |
840 | ||
bfd189b1 SDJ |
841 | 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com> |
842 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
843 | ||
844 | * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword | |
845 | before `struct gdb_exception'. | |
846 | * breakpoint.c (update_global_location_list_nothrow) | |
847 | (update_breakpoint_locations, enable_breakpoint_disp): Likewise. | |
848 | * cp-abi.c (value_rtti_type): Likewise. | |
849 | * cp-support.c (cp_validate_operator): Likewise. | |
850 | * infrun.c (insert_exception_resume_breakpoint) | |
851 | (check_exception_resume, keep_going): Likewise. | |
852 | * mi-interp.c (mi_breakpoint_created) | |
853 | (mi_breakpoint_modified): Likewise. | |
854 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise. | |
855 | * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p) | |
856 | (ia64_hpux_handle_dld_breakpoint_1): Likewise. | |
857 | ||
6b07635f DE |
858 | 2012-01-05 Doug Evans <dje@google.com> |
859 | ||
0b30b85c DE |
860 | * dwarf2read.c (statement_prologue): Delete, unused. |
861 | ||
98714339 DE |
862 | * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int. |
863 | * dwarf2loc.h (dwarf2_per_cu_addr_size): Update. | |
864 | ||
6b07635f DE |
865 | * dwarf2read.c (comp_unit_header): Delete, unused. |
866 | ||
761f4555 UW |
867 | 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com> |
868 | ||
869 | * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o. | |
870 | * config/s390/s390.mh (NATDEPFILES): Remove corelow.o. | |
871 | ||
2ca0b532 PA |
872 | 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> |
873 | ||
874 | * infrun.c (normal_stop): Don't skip calling the normal_stop | |
875 | observers if the thread was doing a multi-step, but stopped for | |
876 | some reason other than stepping. | |
877 | ||
50aeff07 PA |
878 | 2012-01-05 Pedro Alves <alves.ped@gmail.com> |
879 | ||
880 | * cli/cli-decode.h: Add comments. | |
881 | (CMD_LIST_AMBIGUOUS): Moved to command.h | |
882 | (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd) | |
883 | (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq) | |
884 | (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1) | |
885 | (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition) | |
886 | (add_com, add_com_alias, add_info, add_info_alias) | |
887 | (complete_on_cmdlist, complete_on_enum, help_list): Remove | |
888 | declarations. | |
889 | * command.h: Add and adjust comments. | |
890 | (CMD_LIST_AMBIGUOUS): Moved here. | |
891 | (help_cmd, help_cmd_list): Delete declarations. | |
892 | ||
5953832c DE |
893 | 2012-01-04 Doug Evans <dje@google.com> |
894 | ||
e5fe5e75 DE |
895 | * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd". |
896 | All callers updated. | |
897 | (load_full_type_unit): Renamed from read_signatured_type_at_offset. | |
898 | Replace all arguments with "per_cu". All callers updated. | |
899 | ||
28dee7f5 DE |
900 | * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment. |
901 | ||
23745b47 DE |
902 | * dwarf2read.c (init_one_comp_unit): Delete arg "objfile". |
903 | New arg "per_cu". All callers updated. | |
904 | ||
5953832c DE |
905 | Delete #if 0'd out code. |
906 | * language.c (binop_result_type): Delete. | |
907 | (simple_type, ordered_type, same_type, integral_type): Delete. | |
908 | (numeric_type, character_type, string_type, boolean_type): Delete. | |
909 | (float_type, structured_type): Delete. | |
910 | * language.h: Update. | |
911 | ||
0f5b7562 TT |
912 | 2012-01-04 Tom Tromey <tromey@redhat.com> |
913 | ||
914 | * python/py-value.c (valpy_binop): Initialize 'res_val'. | |
915 | ||
78218f56 JB |
916 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
917 | ||
918 | * corefile.c (close_exec_file): Delete. | |
919 | (reopen_exec_file): Remove commented out code that seems related | |
920 | to close_exec_file, which is being deleted here. | |
921 | * inferior.h (close_exec_file): Delete. | |
922 | * fork-child.c (fork_inferior): Remove call to fork_inferior. | |
923 | ||
0fcd72ba JB |
924 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
925 | ||
926 | * ada-lang.c: #include "cli/cli-utils.h". | |
927 | (get_selections): Use skip_spaces. | |
928 | (ada_get_next_arg): Use skip_spaces and skip_to_space. | |
929 | (catch_ada_exception_command_split): Use skip_spaces. | |
930 | (ada_decode_assert_location): Likewise. | |
931 | ||
1dabb4c4 JB |
932 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
933 | ||
934 | * linespec.c (decode_line_internal): Check for C++ or Java | |
935 | compound constructs only if the current language is C, C++ | |
936 | or Java. | |
937 | ||
5931a2fa JK |
938 | 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
939 | ||
940 | Revert: | |
941 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
942 | Joel Brobecker <brobecker@adacore.com> | |
943 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
944 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
945 | 3 times. | |
946 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
947 | fall through into AT_ENTRY_POINT. | |
948 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
949 | DUMMY_ADDR with it. | |
950 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
951 | PPC_INSN_SIZE skip to 3 times. | |
952 | ||
1a2da5ee JB |
953 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
954 | ||
955 | * linespec.c (add_minsym): Preserve function descriptors. | |
956 | ||
8645ff69 UW |
957 | 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
958 | ||
959 | * breakpoint.c (all_locations_are_pending): Consider locations | |
960 | in program spaces executing during startup pending as well. | |
961 | ||
0b302171 JB |
962 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
963 | ||
964 | Copyright year update in most files of the GDB Project. | |
965 | ||
8ba098ad JB |
966 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
967 | ||
968 | * copyright.sh: Delete. | |
969 | * copyright.py: Rewrite. | |
970 | ||
09c01c30 JB |
971 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
972 | ||
973 | * gnulib/extra/update-copyright: New file, imported from gnulib. | |
974 | ||
3c36c0af JB |
975 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
976 | ||
977 | * README (Copyright and License Notices): New section. | |
978 | ||
888fe1e1 TT |
979 | 2012-01-03 Tom Tromey <tromey@redhat.com> |
980 | ||
981 | PR python/12533: | |
982 | * python/py-value.c (valpy_dereference, valpy_get_address | |
983 | valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
984 | (valpy_getitem, valpy_call, valpy_binop, valpy_negative) | |
985 | (valpy_absolute, valpy_richcompare): Free intermediate values. | |
986 | ||
6e681866 JB |
987 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
988 | ||
989 | * ada-lang.c: Reformat the copyright notice. | |
990 | ||
0cd09acb JK |
991 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
992 | ||
993 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
994 | * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*) | |
995 | (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*) | |
996 | (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o. | |
997 | Revert this part of: | |
998 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
999 | Build gdb directly from *.o files not using libgdb.a. | |
1000 | * Makefile.in (COMMON_OBS): Remove solib-target.o. | |
1001 | ||
12c3e59c JB |
1002 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1003 | ||
1004 | * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c, | |
1005 | gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c: | |
1006 | Reformat the copyright header. | |
1007 | ||
11bf1490 JK |
1008 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1009 | ||
1010 | Revert this part of: | |
1011 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1012 | Remove the gdbtui binary. | |
1013 | * gdb.c (main): Remove args.interpreter_p initialization. | |
1014 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
1015 | * main.h (struct captured_main_args): Remove interpreter_p. | |
1016 | ||
1fef196f JB |
1017 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1018 | ||
1019 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011. | |
1020 | ||
67827812 JB |
1021 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
1022 | ||
1023 | * top.c (print_gdb_version): Update copyright year. | |
1024 | ||
a4d0b831 YQ |
1025 | 2012-01-02 Yao Qi <yao@codesourcery.com> |
1026 | ||
1027 | * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent. | |
1028 | ||
b5914469 JK |
1029 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1030 | Joel Brobecker <brobecker@adacore.com> | |
1031 | ||
1032 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
1033 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
1034 | 3 times. | |
1035 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
1036 | fall through into AT_ENTRY_POINT. | |
1037 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
1038 | DUMMY_ADDR with it. | |
1039 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
1040 | PPC_INSN_SIZE skip to 3 times. | |
1041 | ||
8da828f7 JK |
1042 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1043 | ||
1044 | * amd64-linux-nat.c (update_debug_registers_callback): New comment on | |
1045 | the return value. | |
1046 | * i386-linux-nat.c (update_debug_registers_callback): Likewise. | |
1047 | ||
8574e74b JK |
1048 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1049 | ||
1050 | Build gdb directly from *.o files not using libgdb.a. | |
1051 | * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o. | |
1052 | (COMMON_OBS): Remove solib-target.o. | |
1053 | (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule. | |
1054 | (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS). | |
1055 | (LIBGDB_OBS, libgdb.a): Move it above. | |
1056 | * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*) | |
1057 | (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu) | |
1058 | (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe) | |
1059 | (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu) | |
1060 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*) | |
1061 | (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*) | |
1062 | (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu) | |
1063 | (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*) | |
1064 | (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*) | |
1065 | (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*) | |
1066 | (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
1067 | (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*) | |
1068 | (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*) | |
1069 | (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*) | |
1070 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
1071 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*) | |
1072 | (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*) | |
1073 | (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
1074 | (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*) | |
1075 | (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu) | |
1076 | (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*) | |
1077 | (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*) | |
1078 | (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*) | |
1079 | (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*) | |
1080 | (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu) | |
1081 | (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*) | |
1082 | (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs. | |
1083 | ||
217bff3e JK |
1084 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1085 | ||
1086 | Remove the gdbtui binary. | |
1087 | * .gitignore (/gdbtui): Remove. | |
1088 | * Makefile.in (TUI): Remove. | |
1089 | (SUBDIR_TUI_OBS): Remove tui-main.o. | |
1090 | (SUBDIR_TUI_SRCS): Remove tui/tui-main.c. | |
1091 | (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui) | |
1092 | (tui-main.o): Remove. | |
1093 | (all_object_files): Remove tui-main.o. | |
1094 | * NEWS: New note for the gdbtui removal. | |
1095 | * configure: Rebuilt. | |
1096 | * configure.ac: No longer add all-tui, clean-tui, install-tui and | |
1097 | uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and | |
1098 | CONFIG_UNINSTALL respectively. | |
1099 | * gdb.c (main): Remove args.interpreter_p initialization. | |
1100 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
1101 | * main.h (struct captured_main_args): Remove interpreter_p. | |
1102 | * tui/tui-main.c: Remove. | |
1103 | ||
9cdd5dbd DE |
1104 | 2012-01-01 Doug Evans <dje@google.com> |
1105 | ||
bb5ed363 DE |
1106 | * dwarf2read.c (dwarf2_compute_name): Simplify objfile references. |
1107 | (dwarf2_physname, read_import_statement): Ditto. | |
1108 | (read_call_site_scope, dwarf2_record_block_ranges): Ditto. | |
1109 | (process_structure_scope read_subroutine_type): Ditto. | |
1110 | (read_typedef, load_partial_dies, read_partial_die): Ditto. | |
1111 | (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto. | |
1112 | (dwarf2_fetch_die_location_block): Ditto. | |
1113 | (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto. | |
1114 | ||
a0f42c21 DE |
1115 | * dwarf2read.c (read_signatured_type): Delete `objfile' arg. |
1116 | All callers updated. | |
1117 | (load_full_comp_unit, queue_comp_unit, process_queue): Ditto. | |
1118 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto. | |
1119 | (process_psymtab_comp_unit, load_partial_comp_unit): Ditto. | |
1120 | ||
2dc860c0 DE |
1121 | * dwarf2read.c (load_cu): Move assert to more useful location. |
1122 | ||
68dc6402 DE |
1123 | * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit. |
1124 | All callers updated. | |
1125 | ||
9cdd5dbd DE |
1126 | * dwarf2read.c (dwarf2_per_objfile): Add comment. |
1127 | (dwarf2_elf_names): Minor reformat. | |
1128 | (dwarf2_per_cu_data): Tweak comment. | |
1129 | (dwarf2_read_section): Fix comment. | |
1130 | (create_all_comp_units): Fix comment. | |
1131 | (load_full_comp_unit): Fix comment. | |
1132 | (process_full_comp_unit): Fix comment. | |
1133 | (read_signatured_type): Fix comment. | |
1134 | ||
0c10e53e | 1135 | For older changes see ChangeLog-2011. |
c906108c SS |
1136 | \f |
1137 | Local Variables: | |
1138 | mode: change-log | |
1139 | left-margin: 8 | |
1140 | fill-column: 74 | |
1141 | version-control: never | |
57da7796 | 1142 | coding: utf-8 |
c906108c | 1143 | End: |