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