Commit | Line | Data |
---|---|---|
6ac9ef80 DE |
1 | 2012-06-18 Doug Evans <dje@google.com> |
2 | ||
422d65e7 DE |
3 | * symtab.h (minimal_symbol): New member created_by_gdb. |
4 | * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym | |
5 | created by gdb. | |
6 | * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function. | |
7 | (search_symbols): Call it instead of lookup_symbol. | |
8 | Skip symbols created by gdb. Only scan minsyms if nfiles == 0. | |
9 | ||
49f6c839 DE |
10 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index. |
11 | Adjust address for DW_OP_GNU_addr_index. | |
12 | * dwarf2expr.h (dwarf_expr_context): Update comment. | |
13 | * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu, | |
14 | all callers updated. Handle TLS vars described with | |
15 | DW_OP_GNU_const_index. | |
16 | (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index | |
17 | and DW_OP_GNU_const_index. | |
18 | * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index. | |
19 | ||
6ac9ef80 DE |
20 | * block.c (find_block_in_blockvector): Make explicit the fact that we |
21 | ignore GLOBAL_BLOCK. | |
22 | ||
4cd18215 TT |
23 | 2012-06-18 Tom Tromey <tromey@redhat.com> |
24 | ||
25 | * c-exp.y (operator): Remove trailing space after "delete" and | |
26 | "delete[]". | |
27 | ||
a9b8d892 JK |
28 | 2012-06-18 Mark Kettenis <kettenis@gnu.org> |
29 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
30 | ||
31 | Switch i386 and derived targets to ON_STACK. | |
32 | * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove. | |
33 | (amd64_dicos_init_abi): Remove its installment. | |
34 | * dicos-tdep.c (dicos_init_abi): Remove the | |
35 | set_gdbarch_call_dummy_location call. Update the comment here. | |
36 | * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove. | |
37 | (i386_dicos_init_abi): Remove its installment. | |
38 | * i386-tdep.c (i386_push_dummy_code): New function. | |
39 | (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install | |
40 | i386_push_dummy_code. | |
41 | ||
e2e4d78b JK |
42 | 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
43 | ||
44 | Remove stale dummy frames. | |
45 | * breakpoint.c: Include dummy-frame.h. | |
46 | (longjmp_breakpoint_ops): New variable. | |
47 | (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also | |
48 | bp_longjmp_call_dummy. | |
49 | (bpstat_what, bptype_string, print_one_breakpoint_location) | |
50 | (init_bp_location): Support bp_longjmp_call_dummy. | |
51 | (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why. | |
52 | (set_longjmp_breakpoint_for_call_dummy) | |
53 | (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New | |
54 | functions. | |
55 | (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops. | |
56 | * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete | |
57 | FIXME comment and extend the other comment for bp_call_dummy. | |
58 | (set_longjmp_breakpoint_for_call_dummy) | |
59 | (check_longjmp_breakpoint_for_call_dummy): New declarations. | |
60 | * dummy-frame.c: Include gdbthread.h. | |
61 | (pop_dummy_frame_bpt): New function. | |
62 | (pop_dummy_frame): Call pop_dummy_frame_bpt. | |
63 | (dummy_frame_discard): New function. | |
64 | (cleanup_dummy_frames): Update the comment about longjmps. | |
65 | * dummy-frame.h (dummy_frame_discard): New declaration. | |
66 | * gdbthread.h (struct thread_info): Extend initiating_frame comment. | |
67 | * infcall.c (call_function_by_hand): New variable longjmp_b. Call | |
68 | set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT. | |
69 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: | |
70 | Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and | |
71 | keep_going if IS_LONGJMP and there is no other reason to stop. | |
72 | ||
09d5912c TT |
73 | 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com> |
74 | ||
75 | * remote-sim.c (sim_command_completer): Initialize | |
76 | variable 'result'. | |
77 | ||
1788b2d3 JK |
78 | 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
79 | ||
80 | * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref. | |
81 | * dwarf2loc.c (call_site_parameter_matches): Support | |
82 | CALL_SITE_PARAMETER_PARAM_OFFSET. | |
83 | (needs_dwarf_reg_entry_value): Push stub value. | |
84 | * dwarf2read.c (read_call_site_scope): New variable origin. Support | |
85 | CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin. | |
86 | * gdbtypes.h (enum call_site_parameter_kind): New item | |
87 | CALL_SITE_PARAMETER_PARAM_OFFSET. | |
88 | (struct call_site.parameter.u): New field param_offset. | |
89 | ||
24c5c679 JK |
90 | 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
91 | ||
92 | Code cleanup: Generalize call_site.parameter key. | |
93 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove | |
94 | variable dwarf_reg. New variable kind_u. Update parameters to | |
95 | push_dwarf_reg_entry_value. | |
96 | (ctx_no_push_dwarf_reg_entry_value): Update parameters. | |
97 | * dwarf2expr.h (enum call_site_parameter_kind) | |
98 | (union call_site_parameter_u): Forward declarations. | |
99 | (struct dwarf_expr_context_funcs): Update parameters and their | |
100 | description for push_dwarf_reg_entry_value. | |
101 | (ctx_no_push_dwarf_reg_entry_value): Update parameters. | |
102 | * dwarf2loc.c (call_site_parameter_matches): New function. | |
103 | (dwarf_expr_reg_to_entry_parameter): Update parameters and their | |
104 | description. Use call_site_parameter_matches. | |
105 | (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry): | |
106 | Update parameters and their description. | |
107 | (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset. | |
108 | New variable kind_u. Adjust the caller for updated parameters. | |
109 | (needs_dwarf_reg_entry_value): Update parameters. | |
110 | * dwarf2read.c (read_call_site_scope): New variable loc. Use it | |
111 | instead of attr. Update for the changed fields of struct | |
112 | call_site_parameter. | |
113 | * gdbtypes.h: Include dwarf2expr.h. | |
114 | (enum call_site_parameter_kind): New. | |
115 | (struct call_site.parameter): New field kind. Wrap dwarf_reg and | |
116 | fb_offset into new union u. | |
117 | ||
ac142d96 L |
118 | 2012-06-16 H.J. Lu <hongjiu.lu@intel.com> |
119 | ||
120 | * amd64-tdep.c (amd64_x32_analyze_stack_align): New function. | |
121 | (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align | |
122 | for x32. | |
123 | ||
ba224c70 L |
124 | 2012-06-16 H.J. Lu <hongjiu.lu@intel.com> |
125 | ||
126 | * amd64-linux-nat.c (compat_x32_clock_t): New. | |
127 | (compat_x32_siginfo_t): Likewise. | |
128 | (compat_x32_siginfo_from_siginfo): Likewise. | |
129 | (siginfo_from_compat_x32_siginfo): Likewise. | |
130 | (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
131 | and siginfo_from_compat_x32_siginfo for x32. | |
132 | ||
7ecbc825 HZ |
133 | 2012-06-15 Hui Zhu <hui_zhu@mentor.com> |
134 | ||
135 | * tracepoint.c (tfile_xfer_partial): Add a lseek. | |
136 | ||
233dfcf0 L |
137 | 2012-06-15 H.J. Lu <hongjiu.lu@intel.com> |
138 | ||
139 | * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word | |
140 | instead of gdbarch_ptr_bit. | |
141 | * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise. | |
142 | (amd64_supply_native_gregset): Likewise. | |
143 | (amd64_collect_native_gregset): Likewise. | |
144 | * amd64-tdep.c (amd64_supply_fxsave): Likewise. | |
145 | (amd64_supply_xsave): Likewise. | |
146 | (amd64_collect_fxsave): Likewise. | |
147 | (amd64_collect_xsave): Likewise. | |
148 | ||
6da38f42 L |
149 | 2012-06-15 H.J. Lu <hongjiu.lu@intel.com> |
150 | ||
151 | * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New. | |
152 | (amd64_linux_read_description): Check DS segment register for | |
153 | x32 process. | |
154 | ||
663b969e TT |
155 | 2012-06-15 Tom Tromey <tromey@redhat.com> |
156 | ||
157 | * dwarf2read.c (dw2_find_symbol_file): Unconditionally use | |
158 | init_cutu_and_read_dies. | |
159 | ||
d6f05027 IS |
160 | 2012-06-15 Iain Sandoe <iain@codesourcery.com> |
161 | ||
162 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
163 | ||
6598ed07 TT |
164 | 2012-06-15 Tom Tromey <tromey@redhat.com> |
165 | ||
166 | * valops.c (value_find_oload_method_list): Now static. | |
167 | * value.h (value_find_oload_method_list): Don't declare. | |
168 | ||
2b214ea6 TT |
169 | 2012-06-15 Tom Tromey <tromey@redhat.com> |
170 | ||
171 | * valops.c (find_overload_match): Use value_ind. | |
172 | ||
a210c238 MR |
173 | 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com> |
174 | ||
175 | * infrun.c (handle_inferior_event): Correct indentation. | |
176 | ||
3771a44c DE |
177 | 2012-06-14 Doug Evans <dje@google.com> |
178 | ||
179 | * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH. | |
180 | (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL. | |
181 | All uses updated. | |
182 | (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers | |
183 | updated. Handle DEBUG_LOC_START_LENGTH. | |
184 | (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH. | |
185 | (loclist_describe_location): Ditto. | |
186 | ||
1c5a993e MR |
187 | 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com> |
188 | ||
189 | PR backtrace/13866 | |
190 | * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch | |
191 | after hiding inline functions. | |
192 | ||
0b155465 JB |
193 | 2012-06-13 Joel Brobecker <brobecker@adacore.com> |
194 | ||
195 | * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into | |
196 | _initialize_inf_ttrace. | |
197 | ||
45717bac JB |
198 | 2012-06-13 Joel Brobecker <brobecker@adacore.com> |
199 | ||
200 | * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames | |
201 | _initialize_hppa_hpux_nat. | |
202 | ||
34370865 JB |
203 | 2012-06-13 Joel Brobecker <brobecker@adacore.com> |
204 | ||
205 | * remote-sim.c (sim_command_completer): Change type of return | |
206 | value to "VEC (char_ptr) *". Adjust implementation accordingly. | |
207 | ||
284c5a60 MK |
208 | 2012-06-13 Mark Kettenis <kettenis@gnu.org> |
209 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
210 | ||
211 | PR tdep/14222 | |
212 | * i386-tdep.c (i386_push_dummy_call): Unconditionally align the | |
213 | stack on a 16-byte boundary. | |
214 | ||
2535757a TT |
215 | 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com> |
216 | ||
217 | * jit.c (finalize_symtab): Set function's return type to 'void' by | |
218 | default. | |
219 | ||
fff4548b MK |
220 | 2012-06-13 Mark Kettenis <kettenis@gnu.org> |
221 | H.J. Lu <hongjiu.lu@intel.com> | |
222 | ||
5a83521a MK |
223 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function. |
224 | Move bits common to both the classic LP64 and the new x32 ILP32 | |
225 | ABI here. | |
226 | (amd64_linux_init_abi): Call amd64_linux_init_abi_common. | |
227 | (amd64_x32_linux_init_abi): New function. | |
228 | (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32 | |
229 | subtype. | |
230 | ||
fff4548b MK |
231 | * i386-tdep.h (i386_pseudo_register_name): New prototype. |
232 | * i386-tdep.c (i386_pseudo_register_name): Make public. | |
233 | * amd64-tdep.h (amd64_x32_init_abi): New prototype. | |
234 | * amd64-tdep.c (amd64_dword_names): Add "eip". | |
235 | (amd64_x32_pseudo_register_type): New function | |
236 | (amd64_x32_init_abi): New function. | |
237 | ||
dd80ea3c JK |
238 | 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
239 | ||
240 | PR build/14003 | |
241 | * inferior.h (struct inferior_suspend_state): Comment out. | |
242 | (struct inferior): Comment out the field suspend. | |
243 | * infrun.c (struct infcall_suspend_state): Comment out the field | |
244 | inferior_suspend. | |
245 | (save_infcall_suspend_state, restore_infcall_suspend_state): Comment | |
246 | out its assignment. | |
247 | ||
50af5481 JK |
248 | 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
249 | ||
250 | PR c++/14177 - Fix parsing TYPENAME:: in parentheses. | |
251 | * c-exp.y (classify_inner_name): Remove caller assumptions in the | |
252 | function comment. Return ERROR for unresolved cases. Implement | |
253 | returning proper NAME. | |
254 | (yylex): Accept also NAME from classify_inner_name. | |
255 | * cp-namespace.c (cp_lookup_nested_type): Rename to ... | |
256 | (cp_lookup_nested_symbol): ... here. Return any found symbol, not just | |
257 | LOC_TYPEDEF type. | |
258 | * cp-support.h (cp_lookup_nested_type): Update its declaration. | |
259 | ||
d55637df TT |
260 | 2012-06-13 Tom Tromey <tromey@redhat.com> |
261 | ||
262 | * breakpoint.c (condition_completer): New function. | |
263 | (_initialize_breakpoint): Use it. | |
264 | * value.c (complete_internalvar): New function. | |
265 | * value.h (complete_internalvar): Declare. | |
266 | ||
49c4e619 TT |
267 | 2012-06-13 Tom Tromey <tromey@redhat.com> |
268 | ||
269 | * ada-lang.c (ada_make_symbol_completion_list): Return a VEC. | |
270 | * breakpoint.c (catch_syscall_completer): Return a VEC. | |
271 | * cli/cli-cmds.c (complete_command): Update. | |
272 | * cli/cli-decode.c (complete_on_cmdlist): Return a VEC. | |
273 | (complete_on_enum): Likewise. | |
274 | * command.h: Include gdb_vecs.h. | |
275 | (completer_ftype): Change return type. | |
276 | (complete_on_cmdlist, complete_on_enum): Likewise. | |
277 | * completer.c (noop_completer, filename_completer) | |
278 | (location_completer): Return a VEC. | |
279 | (add_struct_fields): Remove 'nextp' argument. Change 'output' | |
280 | to a VEC. | |
281 | (expression_completer, complete_line_internal, complete_line) | |
282 | (command_completer): Return a VEC. | |
283 | (gdb_completion_word_break_characters, line_completion_function): | |
284 | Update. | |
285 | * completer.h: Include gdb_vecs.h. | |
286 | (complete_line, noop_completer, filename_completer) | |
287 | (expression_completer, location_completer, command_completer): | |
288 | Update. | |
289 | * f-lang.c (f_word_break_characters): Return a VEC. | |
290 | * interps.c (interpreter_completer): Return a VEC. | |
291 | * language.h (struct language_defn) | |
292 | <la_make_symbol_completion_list>: Return a VEC. | |
293 | * python/py-cmd.c (cmdpy_completer): Return a VEC. | |
294 | * symtab.c (free_completion_list): Take a VEC. | |
295 | (return_val_size, return_val_index): Remove. | |
296 | (return_val): Now a VEC. | |
297 | (completion_list_add_name): Update. | |
298 | (default_make_symbol_completion_list_break_on) | |
299 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
300 | (make_symbol_completion_list_fn, make_file_symbol_completion_list): | |
301 | Return a VEC. | |
302 | (add_filename_to_list): Update. | |
303 | (struct add_partial_filename_data) <list_used, list_alloced>: Remove. | |
304 | <list>: Now a VEC. | |
305 | (maybe_add_partial_symtab_filename): Update. | |
306 | (make_source_files_completion_list): Return a VEC. | |
307 | * symtab.h (default_make_symbol_completion_list_break_on) | |
308 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
309 | (make_symbol_completion_list_fn, make_file_symbol_completion_list) | |
310 | (make_source_files_completion_list): Update. | |
311 | ||
625e8578 TT |
312 | 2012-06-13 Tom Tromey <tromey@redhat.com> |
313 | ||
314 | * breakpoint.c (add_catch_command): Use completer_ftype. | |
315 | * breakpoint.h: Include command.h. | |
316 | (add_catch_command): Use completer_ftype. | |
317 | * cli/cli-decode.c (set_cmd_completer): Use completer_ftype. | |
318 | * cli/cli-decode.h (struct cmd_list_element) <completer>: | |
319 | Use completer_ftype. | |
320 | * command.h (completer_ftype): New typedef. | |
321 | (set_cmd_completer): Use it. | |
322 | * python/py-cmd.c (struct cmdpy_completer) <completer>: Use | |
323 | completer_ftype. | |
324 | ||
5eb3b062 PA |
325 | 2012-06-13 Pedro Alves <palves@redhat.com> |
326 | ||
327 | Partial revert of previous change. | |
328 | ||
329 | * serial.c (scb_base): New global. | |
330 | (serial_for_fd): New. | |
331 | (serial_open, serial_fdopen_ops): Link new serial in open serials | |
332 | chain. | |
333 | (do_serial_close): Unlink serial from the open serials chain. | |
334 | ||
8b3ee56d PA |
335 | 2012-06-12 Pedro Alves <palves@redhat.com> |
336 | ||
337 | * infrun.c (infrun_thread_stop_requested_callback): Don't switch | |
338 | threads here. | |
339 | (prepare_for_detach): No longer context switch here in non-stop | |
340 | mode. | |
341 | (fetch_inferior_event): Ditto. | |
342 | (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch | |
343 | to the event thread before removing breakpoints. Switch to the | |
344 | event thread before inserting breakpoints and resuming. | |
345 | (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the | |
346 | event thread before resuming. | |
347 | (handle_inferior_event) <stepping_past_singlestep_breakpoint>: | |
348 | Switch to the event thread before removing breakpoints. | |
349 | ||
5d60742e EZ |
350 | 2012-06-12 Eli Zaretskii <eliz@gnu.org> |
351 | ||
352 | * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote | |
353 | special characters correctly for the Windows shells. See | |
354 | http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug | |
355 | report. | |
356 | [!__MINGW32__]: Remove extra double quote character from special | |
357 | characters. | |
358 | ||
a6feecf7 SS |
359 | 2012-06-11 Stan Shebs <stan@codesourcery.com> |
360 | ||
361 | * ui-out.h: Remove #if 0 declarations. | |
362 | * ui-out.c: Remove #if 0 functions. | |
363 | ||
ddefb60f PA |
364 | 2012-06-11 Pedro Alves <palves@redhat.com> |
365 | ||
366 | * ser-base.c (run_async_handler_and_reschedule): New. | |
367 | (fd_event, push_event): Use it. | |
368 | * serial.c (serial_open, serial_fdopen_ops): Set the initial | |
369 | reference count to 1. | |
370 | (do_serial_close): Set the bufp field to NULL. Use serial_unref | |
371 | instead of xfree. | |
372 | (serial_is_open, serial_ref, serial_unref): New. | |
373 | * serial.h (serial_open): Adjust comment. | |
374 | (serial_is_open): Declare. | |
375 | (serial_close): Adjust comment. | |
376 | (serial_ref, serial_unref) Declare. | |
377 | (struct serial): New field 'refcnt'. | |
378 | ||
d5ad6aa5 PA |
379 | 2012-06-11 Pedro Alves <palves@redhat.com> |
380 | ||
381 | Remove #if 0'd "connect" command, and unnecessary associated | |
382 | refcounting and serial reuse bits. | |
383 | ||
384 | * serial.h (struct serial): Remove fields 'next' and 'refcnt'. | |
385 | * serial.c (last_serial_opened): Delete. | |
386 | (scb_base): Delete. | |
387 | (serial_open): Adjust. | |
388 | (serial_for_fd): Delete. | |
389 | (serial_fdopen_ops, do_serial_close): Adjust. | |
390 | (serial_fdopen_ops): Adjust. | |
391 | ||
318aa544 PA |
392 | 2012-06-11 Pedro Alves <palves@redhat.com> |
393 | ||
394 | * serial.c (do_serial_close): Remove early return when SCB is | |
395 | null. | |
396 | ||
07261596 TT |
397 | 2012-06-11 Tom Tromey <tromey@redhat.com> |
398 | ||
399 | * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units. | |
400 | ||
cc80f267 JK |
401 | 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
402 | ||
403 | Fix regression by the "ambiguous linespec" series. | |
404 | * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use | |
405 | get_last_displayed_symtab and get_last_displayed_line and depending | |
406 | on CURSAL. | |
407 | ||
356d9f9d TT |
408 | 2012-06-11 Tom Tromey <tromey@redhat.com> |
409 | ||
410 | * dwarf2read.c (dw2_get_primary_filename_reader): New function. | |
411 | (dw2_find_symbol_file): Use it. | |
412 | ||
232b8704 ME |
413 | 2012-06-11 Michael Eager <eager@eagercon.com> |
414 | ||
415 | * mips-linux-tdep.c (mips_gdb_signal_from_target): New | |
416 | * mips-linux-tdep.h (mips_signals): New | |
417 | ||
e81a37f7 TT |
418 | 2012-06-11 Tom Tromey <tromey@redhat.com> |
419 | ||
420 | * infrun.c (handle_inferior_event) | |
421 | <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume | |
422 | breakpoint. | |
423 | <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use | |
424 | exception logic in all cases. Update comments. | |
425 | (insert_longjmp_resume_breakpoint): Set the exception resume | |
426 | breakpoint. | |
427 | ||
2e81047f MR |
428 | 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com> |
429 | ||
430 | * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code. | |
431 | ||
4e32eda7 SCR |
432 | 2012-06-09 Siva Chandra Reddy <sivachandra@google.com> |
433 | ||
434 | * valarith.c (binop_types_user_defined_p): Fix a typo. | |
435 | ||
18648a37 YQ |
436 | 2012-06-08 Yao Qi <yao@codesourcery.com> |
437 | Chung-Lin Tang <cltang@codesourcery.com> | |
438 | ||
439 | * arch-utils.c (default_return_in_first_hidden_param_p): New. | |
440 | * arch-utils.h: Declare. | |
441 | * gdbarch.sh: Add return_in_first_hidden_param_p. | |
442 | * gdbarch.c, gdbarch.h: Regenerated. | |
443 | * infcall.c (call_function_by_hand): Call | |
444 | gdbarch_return_in_first_hidden_param_p instead of | |
445 | language_pass_by_reference. | |
446 | ||
447 | * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New. | |
448 | (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p. | |
449 | * sh-tdep.c (sh_return_in_first_hidden_param_p): New. | |
450 | (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p. | |
451 | * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable | |
452 | `cplus_return_struct_by_reference'. | |
453 | (tic6x_return_value): Handle language cplusplus. | |
454 | (tic6x_return_in_first_hidden_param_p): New. | |
455 | (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p. | |
456 | ||
034e5797 DE |
457 | 2012-06-07 Doug Evans <dje@google.com> |
458 | ||
459 | * dwarf2read.c (dwarf2_cu): Add comment. | |
460 | ||
6a00aa1e MR |
461 | 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com> |
462 | ||
463 | * mips-tdep.c (mips_pseudo_register_type): Remove tdep local | |
464 | variable. | |
465 | (mips_eabi_push_dummy_call): Likewise. | |
466 | (mips_n32n64_push_dummy_call): Likewise. | |
467 | (mips_o32_push_dummy_call): Likewise. | |
468 | (mips_o64_push_dummy_call): Likewise. | |
469 | ||
eaa05d59 MR |
470 | 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com> |
471 | ||
472 | * mips-tdep.c (mips_convert_register_p): Correct coding style. | |
473 | ||
de13fcf2 MR |
474 | 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com> |
475 | ||
476 | * mips-tdep.c (mips_pseudo_register_type): Use | |
477 | mips_float_register_p. | |
478 | ||
c3a01a22 PA |
479 | 2012-06-06 Pedro Alves <palves@redhat.com> |
480 | ||
481 | * infrun.c (handle_inferior_event): Remove calls to | |
482 | reinit_frame_cache that follow a context_switch call. | |
483 | ||
d25f45d9 PA |
484 | 2012-06-06 Pedro Alves <palves@redhat.com> |
485 | ||
486 | * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use | |
487 | context_switch and remove stale comment. | |
488 | ||
359f5fe6 PA |
489 | 2012-06-06 Pedro Alves <palves@redhat.com> |
490 | ||
491 | * infrun.c (struct execution_control_state): Remove | |
492 | `new_thread_event' field. | |
493 | (handle_inferior_event): Simplify new threads handling; don't | |
494 | resume the inferior if we find a new thread. | |
495 | ||
2d4c29c5 TS |
496 | 2012-06-06 Thomas Schwinge <thomas@codesourcery.com> |
497 | ||
498 | * NEWS: Document the deprecation of SH's 'regs' command. | |
499 | * inferior.h (all_registers_info): Add function declaration. | |
500 | * sh-tdep.c (sh_show_regs): Remove variable. | |
501 | (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs) | |
502 | (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs) | |
503 | (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs) | |
504 | (sh_show_regs_command): Remove functions. | |
505 | (sh_gdbarch_init): Don't set sh_show_regs. | |
506 | (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to | |
507 | 'info all-registers'. | |
508 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs) | |
509 | (sh64_show_regs): Remove functions. | |
510 | * sh64-tdep.h (sh64_show_regs): Remove function declaration. | |
511 | ||
f5f1cdb6 JK |
512 | 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
513 | ||
514 | * configure.ac: Move development=true below AC_INIT. | |
515 | * configure: Regenerate. | |
516 | ||
bf6309af SS |
517 | 2012-06-05 Stan Shebs <stan@codesourcery.com> |
518 | ||
519 | * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from | |
520 | gdb_stdout. | |
521 | ||
45aa4659 JK |
522 | 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com> |
523 | ||
524 | * corefile.c (read_memory, read_stack, write_memory): Accept LEN | |
525 | argument as ssize_t. | |
526 | * gdbcore.h (read_memory, read_stack, write_memory): Likewise. | |
527 | * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise. | |
528 | * target.c (target_read_stack, target_write_memory) | |
529 | (target_write_raw_memory): Likewise. | |
530 | * target.h (target_read_stack, target_write_memory) | |
531 | (target_write_raw_memory): Likewise. | |
532 | ||
1b162304 JK |
533 | 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
534 | ||
535 | * symfile-mem.c: Change gdb_static_assert to ssize_t. | |
536 | (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t. | |
537 | * target.c (target_read_memory): Change LEN to ssize_t. | |
538 | * target.h (target_read_memory): Change LEN to ssize_t. | |
539 | ||
8556afb4 PA |
540 | 2012-06-05 Pedro Alves <palves@redhat.com> |
541 | ||
542 | PR backtrace/13866 | |
543 | ||
544 | * breakpoint.c (until_break_command): Only fetch the selected | |
545 | frame after decode_line_1. | |
546 | ||
fb139f32 PA |
547 | 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> |
548 | ||
549 | * solib-svr4.c (enable_break): Don't fallback to setting the solib | |
550 | event breakpoint at _start, __start or main if a program | |
551 | interpreter is not found. | |
552 | ||
a8e1bb34 JB |
553 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
554 | ||
555 | * windows-tdep.h (windows_iterate_over_objfiles_in_search_order): | |
556 | Add declaration. | |
557 | * windows-tdep.c: #include "objfiles.h". | |
558 | (windows_iterate_over_objfiles_in_search_order): New function. | |
559 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
560 | iterate_over_objfiles_in_search_order gdbarch method to | |
561 | windows_iterate_over_objfiles_in_search_order. | |
562 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise. | |
563 | ||
19630284 JB |
564 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
565 | ||
566 | * gdbarch.sh: Add generation of | |
567 | "iterate_over_objfiles_in_search_order_cb_ftype" typedef in | |
568 | gdbarch.h. Add include of "objfiles.h" in gdbarch.c. | |
569 | (iterate_over_objfiles_in_search_order): New gdbarch method. | |
570 | * gdbarch.h, gdbarch.c: Regenerate. | |
571 | * objfiles.h (default_iterate_over_objfiles_in_search_order): | |
572 | Add declaration. | |
573 | * objfiles.c (default_iterate_over_objfiles_in_search_order): | |
574 | New function. | |
575 | * symtab.c (lookup_symbol_aux_objfile): New function, extracted | |
576 | out of lookup_symbol_aux_symtabs. | |
577 | (lookup_symbol_aux_symtabs): Replace extracted-out code by | |
578 | call to lookup_symbol_aux_objfile. | |
579 | (struct global_sym_lookup_data): New type. | |
580 | (lookup_symbol_global_iterator_cb): New function. | |
581 | (lookup_symbol_global): Search for symbol using | |
582 | gdbarch_iterate_over_objfiles_in_search_order and | |
583 | lookup_symbol_global_iterator_cb. | |
584 | * findvar.c (struct minsym_lookup_data): New type. | |
585 | (minsym_lookup_iterator_cb): New function. | |
586 | (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the | |
587 | symbol's address via gdbarch_iterate_over_objfiles_in_search_order | |
588 | and minsym_lookup_iterator_cb. | |
589 | ||
67ff19f7 JB |
590 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
591 | ||
592 | Revert the following patch: | |
593 | * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols, | |
594 | try locating the symbol in the symbol's own objfile first, before | |
595 | extending the search to all objfiles. | |
596 | * symtab.c (lookup_symbol_aux_objfile): New function, extracted | |
597 | out of lookup_symbol_aux_symtabs. | |
598 | (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile". | |
599 | Replace extracted-out code by call to lookup_symbol_aux_objfile. | |
600 | Do not search EXCLUDE_OBJFILE. | |
601 | (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs. | |
602 | (lookup_symbol_global): Search for matches in the block's objfile | |
603 | first, before searching all other objfiles. | |
604 | ||
ccab2054 JB |
605 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
606 | ||
607 | * breakpoint.c (find_condition_and_thread): Stop parsing | |
608 | as soon as the first invalid keyword is found. | |
609 | ||
e23d4a9c JB |
610 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
611 | ||
612 | * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list. | |
613 | ||
70160166 JB |
614 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
615 | ||
616 | * config/djgpp/djcheck.sh: Add copyright header. | |
617 | ||
399501a5 JB |
618 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
619 | ||
620 | * copyright.py (update_files, main): Fix path to update-copyright | |
621 | script. | |
622 | ||
3770a159 JB |
623 | 2012-06-05 Joel Brobecker <brobecker@adacore.com> |
624 | ||
625 | * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant. | |
626 | (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files | |
627 | for which a reminder to update by hand is printed. | |
628 | ||
4aad0dfc DE |
629 | 2012-06-04 Doug Evans <dje@google.com> |
630 | ||
631 | * buildsym.c (make_blockvector): Add comment. | |
632 | ||
1f8cf220 PA |
633 | 2012-06-04 Pedro Alves <palves@redhat.com> |
634 | ||
635 | * arch-utils.c (default_gdb_signal_from_target): Delete. | |
636 | * arch-utils.h (default_gdb_signal_from_target): Delete. | |
637 | * corelow.c (core_open) <signal mapping>: Extended comment. Check | |
638 | gdbarch_gdb_signal_from_target_p. | |
639 | * gdbarch.sh (gdb_signal_from_target): Make it an M method (with | |
640 | predicate). | |
641 | * gdbarch.h: Regenerate. | |
642 | * gdbarch.c: Regenerate. | |
643 | ||
86b49880 PA |
644 | 2012-06-04 Pedro Alves <palves@redhat.com> |
645 | ||
646 | * gdbarch.sh (gdb_signal_from_target): Mention that the | |
647 | implementation of the method must be host independent. | |
648 | * gdbarch.h: Regenerate. | |
649 | ||
fe78531d JK |
650 | 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
651 | ||
652 | * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd | |
653 | parameters. | |
654 | (target_read_memory_bfd): New function. | |
655 | (symbol_file_add_from_memory): Use it. | |
656 | ||
d790cf0a DE |
657 | 2012-06-03 Doug Evans <dje@google.com> |
658 | ||
78e5175a DE |
659 | * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector |
660 | of primary symtab. | |
661 | (basic_lookup_transparent_type): Ditto. | |
662 | ||
d790cf0a DE |
663 | * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro. |
664 | (ALL_PRIMARY_SYMTABS): Use it. | |
665 | (ALL_PSPACE_PRIMARY_SYMTABS): Ditto. | |
666 | * dwarf2read.c (dw2_find_symbol_file): Ditto. | |
667 | * linespec.c (iterate_over_all_matching_symtabs): Ditto. | |
668 | * symtab.c (lookup_symbol_aux_objfile): Ditto. | |
669 | (basic_lookup_transparent_type): Ditto. | |
670 | ||
c6e5ee5e SDJ |
671 | 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com> |
672 | ||
673 | * symtab.c (symbol_demangled_name): New variable `dem_name'. Use | |
674 | it to optimize resolution of demangled name. | |
675 | ||
a68ffae9 JK |
676 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
677 | ||
678 | * configure.ac (development): Define new variable. | |
679 | Call AC_CHECK_LIB for mcheck if $development. | |
680 | (ERROR_ON_WARNING): Enable it by default only if $development. | |
681 | * config.in: Regenerate. | |
682 | * configure: Regenerate. | |
683 | ||
5299c1c4 JK |
684 | 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com> |
685 | ||
686 | * target.c (target_read_memory): Make LEN argument as size_t. | |
687 | * target.h (target_read_memory): Likewise. | |
688 | ||
689 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> | |
7c71816c JK |
690 | |
691 | * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values. | |
692 | ||
0c56f59b EBM |
693 | 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com> |
694 | ||
695 | * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace | |
696 | BookE interface for PowerPC server processors if not available | |
697 | in the Linux Kernel. | |
698 | ||
71bdabee KS |
699 | 2012-05-31 Keith Seitz <keiths@redhat.com> |
700 | ||
701 | * linespec.c (decode_objc): Add cleanup to free | |
702 | INFO.FILE_SYMTABS. | |
703 | (find_linespec_symbols): Add cleanup to free CLASSES. | |
704 | * symfile.c (find_separate_debug_file_by_debuglink): Add | |
705 | cleanup to free DEBUGLINK. | |
706 | * ui-out.c (clear_header_list): No need to check if | |
707 | HEADER_NEXT.COLHDR is NULL. | |
708 | Free HEADER_NEXT.COL_NAME. | |
709 | ||
acbd605d MGD |
710 | 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
711 | ||
712 | * ada-lang.c (standard_lookup): Prevent uninitialized variable | |
713 | warning. | |
714 | ||
65662cde PA |
715 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
716 | ||
717 | * configure.host (gdb_host_cpu): Handle tilegx*. | |
718 | (gdb_host): Handle tilegx-*-linux*. | |
719 | * tilegx-linux-nat.c: New file. | |
720 | * config/tilegx/linux.mh: New file. | |
721 | ||
ade64f0e PA |
722 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
723 | ||
724 | * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and | |
725 | tilegx-linux-tdep.o. | |
726 | (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and | |
727 | tilegx-linux-tdep.c. | |
728 | * configure.tgt: Handle tilegx-*-linux*. | |
729 | * tilegx-tdep.h: New file. | |
730 | * tilegx-tdep.c: New file. | |
731 | * tilegx-linux-tdep.c: New file. | |
732 | * regformats/reg-tilegx.dat: New file. | |
733 | ||
bb08bdbd EBM |
734 | 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com> |
735 | ||
736 | * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix | |
737 | accounting of hw watchpoints on ppc. | |
738 | ||
ebd86fb5 TJB |
739 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
740 | ||
741 | * source.c (openp): Expand tilde in path entries. | |
742 | ||
0a0edcd5 DE |
743 | 2012-05-29 Doug Evans <dje@google.com> |
744 | ||
98cc87bd DE |
745 | * buildsym.c (block_compar): Fix comment. |
746 | (end_symtab): Fix and clarify some comments. | |
747 | ||
0a0edcd5 DE |
748 | * stabsread.h (cleanup_undefined_stabs_types): Renamed from |
749 | cleanup_undefined_types. | |
750 | * stabsread.c (cleanup_undefined_stabs_types): Ditto. | |
751 | All callers updated. | |
752 | ||
6f0c7050 TT |
753 | 2012-05-29 Tom Tromey <tromey@redhat.com> |
754 | ||
755 | * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen | |
756 | fails. | |
757 | * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails. | |
758 | * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen | |
759 | fails. | |
760 | * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen | |
761 | fails. | |
762 | ||
ec95993c TG |
763 | 2012-05-29 Tristan Gingold <gingold@adacore.com> |
764 | ||
765 | * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into... | |
766 | (struct darwin_info): ... New struct. | |
767 | (solib_darwin_pspace_data): New variable. | |
768 | (darwin_pspace_data_cleanup): New function. | |
769 | (get_darwin_info): Likewise. | |
770 | (darwin_dyld_version_ok, darwin_load_image_infos) | |
771 | (darwin_solib_get_all_image_info_addr_at_init) | |
772 | (darwin_solib_read_all_image_info_addr): Add info argument. | |
773 | Adjust code. | |
774 | (darwin_current_sos): Use per pspace structure. | |
775 | (darwin_solib_create_inferior_hook): Likewise. | |
776 | (darwin_clear_solib): Likewise. | |
777 | (_initialize_darwin_solib): Initialize solib_darwin_pspace_data. | |
778 | ||
ae25568b PA |
779 | 2012-05-28 Pedro Alves <palves@redhat.com> |
780 | ||
781 | * infrun.c (wait_for_inferior): Move ecss and ecs locals to the | |
782 | block that uses them. Clear ecss before handling each event. | |
783 | ||
0c5bf5a9 JK |
784 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
785 | ||
786 | * solib-svr4.c (svr4_current_sos): New comment on | |
787 | svr4_current_sos_via_xfer_libraries fall back. | |
788 | ||
bfb05775 JK |
789 | 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
790 | ||
791 | * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use | |
792 | it as a fallback for TYPE_IS_OPAQUE. | |
793 | * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE | |
794 | symbols for lookup_symbol. | |
795 | ||
685b1105 JK |
796 | 2012-05-24 John Steele Scott <toojays@toojays.net> |
797 | ||
798 | PR symtab/13277: Resolving opaque structures in ICC generated binaries. | |
799 | * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field. | |
800 | (producer_is_gxx_lt_4_6): Move the checking and caching to... | |
801 | (check_producer): ... this new function, which also checks for ICC | |
802 | and caches the result. | |
803 | (producer_is_icc): New function. | |
804 | (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the | |
805 | producer was ICC. | |
806 | ||
22203bbf PA |
807 | 2012-05-24 Pedro Alves <palves@redhat.com> |
808 | ||
809 | PR gdb/7205 | |
810 | ||
811 | * arch-utils.c (default_gdb_signal_to_host): Rename to ... | |
812 | (default_gdb_signal_to_target): ... this. Add comment. | |
813 | (default_gdb_signal_from_host): Rename to ... | |
814 | (default_gdb_signal_from_target): ... this. Add comment. | |
815 | * arch-utils.h (default_gdb_signal_to_host): Rename to ... | |
816 | (default_gdb_signal_to_target): ... this. | |
817 | (default_gdb_signal_from_host): Rename to ... | |
818 | (default_gdb_signal_from_target): ... this. | |
819 | * corelow.c (core_open): Adjust to naming change. Replace comment. | |
820 | * gdbarch.sh (gdb_signal_from_host): Rename to ... | |
821 | (gdb_signal_from_target): ... this. Adjust to | |
822 | default_gdb_signal_from_host naming change. Extend comment. | |
823 | (gdb_signal_to_host): Rename to ... | |
824 | (gdb_signal_to_target): ... this. Adjust to | |
825 | default_gdb_signal_to_host naming change. | |
826 | * gdbarch.h, gdbarch.c: Renegerate. | |
827 | ||
a493e3e2 PA |
828 | 2012-05-24 Pedro Alves <palves@redhat.com> |
829 | ||
830 | PR gdb/7205 | |
831 | ||
832 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. | |
833 | ||
2ea28649 PA |
834 | 2012-05-24 Pedro Alves <palves@redhat.com> |
835 | ||
836 | PR gdb/7205 | |
837 | ||
838 | Replace target_signal with gdb_signal throughout. | |
839 | ||
b09846a9 PA |
840 | 2012-05-24 Pedro Alves <palves@redhat.com> |
841 | ||
842 | PR tui/14159 | |
843 | ||
844 | * tui/tui-hooks.c (tui_query_hook): Pre-compute the question | |
845 | string, instead of reusing the va_list argument. | |
846 | ||
e77c107e TT |
847 | 2012-05-24 Tom Tromey <tromey@redhat.com> |
848 | ||
849 | * cp-support.h (cp_finalize_namespace, cp_initialize_namespace): | |
850 | Remove. | |
851 | ||
9fccedf7 DE |
852 | 2012-05-23 Doug Evans <dje@google.com> |
853 | ||
d50bd42b DE |
854 | * symtab.c (search_symbols): Formatting fixes. |
855 | (print_symbol_info): Formatting fixes. | |
856 | ||
9fccedf7 DE |
857 | * dwarf2-frame.c (execute_cfa_program): Update to handle long long -> |
858 | int64_t change to leb128 API. | |
859 | (read_encoded_value, decode_frame_entry_1): Ditto. | |
860 | * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto. | |
861 | (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto. | |
862 | (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto. | |
863 | (execute_stack_op): Ditto. | |
864 | * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto. | |
865 | (safe_read_uleb128, safe_read_sleb128): Ditto. | |
866 | * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto. | |
867 | (dwarf2_compile_expr_to_ax): Ditto. | |
868 | (locexpr_describe_location_piece): Ditto. | |
869 | (disassemble_dwarf_expression): Ditto. | |
870 | (locexpr_describe_location_1): Ditto. | |
871 | ||
f3e0e960 SS |
872 | 2012-05-23 Stan Shebs <stan@codesourcery.com> |
873 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
874 | ||
875 | * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o. | |
876 | (SUBDIR_MI_SRCS): Add mi-cmd-info.c. | |
877 | (mi-cmd-info.o): New rule. | |
878 | * osdata.h (info_osdata_command): New declaration. | |
879 | * osdata.c (info_osdata_command): Change to non-static. | |
880 | * mi/mi-cmds.h (mi_cmd_info_os): New declaration. | |
881 | * mi/mi-cmds.c (mi_cmds): Add -info-os MI command. | |
882 | * mi/mi-cmd-info.c: New file. | |
883 | ||
c51fe631 DE |
884 | 2012-05-23 Doug Evans <dje@google.com> |
885 | ||
71cddcc1 DE |
886 | * symtab.c (search_symbols): Pass NULL for file_matcher to |
887 | expand_symtabs_matching if there are no files to match. | |
888 | ||
c51fe631 DE |
889 | * gdbtypes.c (lookup_typename): Simplify. |
890 | ||
a79378d4 PA |
891 | 2012-05-23 Pedro Alves <palves@redhat.com> |
892 | ||
893 | * arch-utils.h (default_target_signal_to_host): Delete. | |
894 | * arch-utils.c (default_target_signal_to_host): Delete. | |
895 | * gdbarch.sh (target_signal_to_host): Remove. | |
896 | * gdbarch.h, gdbarch.c: Regenerate. | |
897 | ||
f664829e DE |
898 | 2012-05-22 Doug Evans <dje@google.com> |
899 | ||
900 | * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end | |
901 | "const gdb_byte *". | |
902 | (struct dwarf2_fde): Make instructions, end "const gdb_byte *". | |
903 | (execute_cfa_program): Update to match API of leb128 functions. | |
904 | (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter | |
905 | "const gdb_byte *". | |
906 | (read_unsigned_leb128, read_signed_leb128): Delete. | |
907 | (read_initial_length): Change type of buf argument to | |
908 | "const gdb_byte *". | |
909 | (read_encoded_value): Update to match API of leb128 functions. | |
910 | (decode_frame_entry): Change result to "const gdb_byte *", and | |
911 | similarly for "start" parameter. | |
912 | (decode_frame_entry_1): Ditto. Use new leb128 reader functions. | |
913 | (dwarf2_build_frame_info): Change local frame_ptr to | |
914 | "const gdb_byte *". | |
915 | * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces | |
916 | read_uleb128, read_sleb128. All callers updated. | |
917 | (safe_skip_leb128): New function. | |
918 | (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions. | |
919 | Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128. | |
920 | (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128 | |
921 | functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of | |
922 | read_uleb128, read_sleb128. | |
923 | (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto. | |
924 | (execute_stack_op): Update to match API of leb128 functions. | |
925 | * dwarf2expr.h: #include "leb128.h". | |
926 | (read_uleb128, read_sleb128): Delete. | |
927 | (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions. | |
928 | (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare. | |
929 | * dwarf2loc.c (debug_loc_kind): New enum. | |
930 | (decode_debug_loc_addresses): New function. | |
931 | (decode_debug_loc_dwo_addresses): New function. | |
932 | (dwarf2_find_location_expression): Rewrite. | |
933 | (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions. | |
934 | (locexpr_describe_location_piece): Ditto. | |
935 | (disassemble_dwarf_expression): Ditto. | |
936 | (locexpr_describe_location_1): Ditto. | |
937 | (loclist_describe_location): Rewrite. | |
938 | * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo". | |
939 | * dwarf2read.c (die_reader_specs): New member "buffer_end". | |
940 | (dwarf2_section_buffer_overflow_complaint): Renamed from | |
941 | dwarf2_macros_too_long_complaint. All callers updated. | |
942 | (skip_leb128): Delete. | |
943 | (init_cu_die_reader): Initialize reader->buffer_end. | |
944 | (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128. | |
945 | (skip_form_bytes): New arg buffer_end. All callers updated. | |
946 | Replace call to skip_leb128 with gdb_skip_leb128. | |
947 | (skip_unknown_opcode): New arg mac_end. All callers updated. | |
948 | (fill_in_loclist_baton): Initialize baton->from_dwo. | |
949 | ||
837a1b32 MR |
950 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
951 | ||
952 | * mips-linux-nat.c (mips_linux_read_description): Use a more | |
953 | verbose error message. | |
954 | ||
d0e64392 MR |
955 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
956 | ||
957 | * NEWS: Add MIPS/Linux DSP support. | |
958 | * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout. | |
959 | (SIGCONTEXT_DSPCTL): New macro. | |
960 | (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise. | |
961 | (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise. | |
962 | (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise. | |
963 | (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise. | |
964 | (N64_SIGCONTEXT_HI3): Likewise. | |
965 | (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise. | |
966 | (N64_SIGCONTEXT_LO3): Likewise. | |
967 | (N64_SIGCONTEXT_DSPCTL): Likewise. | |
968 | (N64_SIGCONTEXT_FPCSR): Clarify definition. | |
969 | (mips_linux_o32_sigframe_init): Handle DSP registers. | |
970 | (mips_linux_n32n64_sigframe_init): Likewise. | |
971 | ||
8bea7ed1 PM |
972 | 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr> |
973 | ||
974 | * common/buffer.c (buffer_grow): ARI fix: Remove unneeded | |
975 | call to abort. | |
976 | ||
dab06dbe PA |
977 | 2012-05-22 Pedro Alves <palves@redhat.com> |
978 | ||
979 | * target.h (store_waitstatus): Move declaration ... | |
980 | * inf-child.h (store_waitstatus): ... here. | |
981 | * target.c: Move inclusion of gdb_wait.h, and ... | |
982 | (store_waitstatus): ... this ... | |
983 | * inf-child.c: ... here. | |
984 | * linux-nat.c: Include inf-child.h. | |
985 | * rs6000-nat.c: Include inf-child.h. | |
986 | * spu-linux-nat.c: Include inf-child.h. | |
987 | ||
43011e52 PM |
988 | 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr> |
989 | ||
990 | * tracepoint.c (start_tracing): Add missing i18n markup. | |
991 | (stop_tracing, set_trace_user): Ditto. | |
992 | (set_trace_notes, set_trace_stop_notes): Ditto. | |
993 | ||
b1af9e97 TT |
994 | 2012-05-21 Tom Tromey <tromey@redhat.com> |
995 | ||
996 | PR c++/7173: | |
997 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java | |
998 | types. | |
999 | * value.h (value_cast_pointers): Update. | |
1000 | * valops.c (value_cast_pointers): Add 'subclass_check' argument. | |
1001 | (value_cast): Update. | |
1002 | (update_search_result): New function. | |
1003 | (do_search_struct_field): New, from search_struct_field. Check | |
1004 | for ambiguous results. | |
1005 | (search_struct_field): Rewrite. | |
1006 | * infcall.c (value_arg_coerce): Update. | |
1007 | * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use | |
1008 | value_cast_pointers. | |
1009 | * ada-lang.c (ada_convert_actual): Update. | |
1010 | ||
e9e5e6b3 TT |
1011 | 2012-05-21 Tom Tromey <tromey@redhat.com> |
1012 | ||
1013 | * macroexp.c (macro_stringify): Terminate the string. | |
1014 | ||
1564a261 JK |
1015 | 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
1016 | ||
1017 | * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path. | |
1018 | Describe it. | |
1019 | * auto-load.c (auto_load_expand_dir_vars): New function. | |
1020 | (auto_load_safe_path_vec_update): Use it, remove the | |
1021 | substitute_path_component call thanks to it. | |
1022 | (auto_load_objfile_script): Remove the debug_file_directory processing. | |
1023 | Use auto_load_expand_dir_vars, remove the substitute_path_component | |
1024 | call thanks to it. | |
1025 | * configure: Regenerate. | |
1026 | * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default | |
1027 | path. Escape $ also for $debugdir. | |
1028 | (--with_auto_load_safe_path): Escape $ also for $debugdir. | |
1029 | * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR. | |
1030 | ||
a3ec0bb1 DE |
1031 | 2012-05-20 Doug Evans <dje@google.com> |
1032 | ||
1033 | * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s" | |
1034 | before use. Check for symtab->includes == NULL before scanning it. | |
1035 | ||
d467df4e MR |
1036 | 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com> |
1037 | ||
1038 | * mips-tdep.c (mips_reg3_to_reg): Optimize storage. | |
1039 | ||
4cc0665f MR |
1040 | 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com> |
1041 | ||
1042 | * NEWS: Add microMIPS support and "set mips compression", | |
1043 | "show mips compression" commands. | |
1044 | * mips-tdep.h (mips_isa): New enum. | |
1045 | (gdbarch_tdep): Add mips_isa. | |
1046 | (mips_pc_is_mips16): Update prototype. | |
1047 | (mips_pc_is_mips, mips_pc_is_micromips): New prototypes. | |
1048 | * mips-tdep.c (mips_compression_mips16): New variable. | |
1049 | (mips_compression_micromips): Likewise. | |
1050 | (mips_compression_strings): Likewise. | |
1051 | (mips_compression_string): Likewise. | |
1052 | (is_mips16_isa, is_micromips_isa): New functions. | |
1053 | (is_mips16_addr): Rename to... | |
1054 | (is_compact_addr): ... this. | |
1055 | (unmake_mips16_addr): Likewise to... | |
1056 | (unmake_compact_addr): ... this. | |
1057 | (make_mips16_addr): Likewise to... | |
1058 | (make_compact_addr): ... this. | |
1059 | (is_mips_addr, is_mips16_addr, is_micromips_addr): New | |
1060 | functions. | |
1061 | (mips_elf_make_msymbol_special): Handle microMIPS code. | |
1062 | (msymbol_is_special): Rename to... | |
1063 | (msymbol_is_mips16): ... this. | |
1064 | (mips_make_symbol_special, mips_pc_is_mips16): Update | |
1065 | accordingly. | |
1066 | (msymbol_is_mips, msymbol_is_micromips): New functions. | |
1067 | (mips16_to_32_reg): Rename to... | |
1068 | (mips_reg3_to_reg): ... this. | |
1069 | (mips_pc_is_mips, mips_pc_is_micromips): New functions. | |
1070 | (mips_pc_isa): Likewise. | |
1071 | (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS | |
1072 | code. | |
1073 | (mips_fetch_instruction): Pass return status instead of printing | |
1074 | an error message if requested. Handle microMIPS code. Bail out | |
1075 | on an invalid ISA. | |
1076 | (micromips_op): New macro. | |
1077 | (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise. | |
1078 | (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise. | |
1079 | (b6s4_op, b7s3_reg): Likewise. | |
1080 | (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise. | |
1081 | (b6s10_ext, b11s5_reg, b12s4_op): Likewise. | |
1082 | (mips_insn_size): New function. | |
1083 | (mips32_next_pc): Update mips_fetch_instruction call. | |
1084 | (micromips_relative_offset7): New function. | |
1085 | (micromips_relative_offset10): Likewise. | |
1086 | (micromips_relative_offset16): Likewise. | |
1087 | (micromips_pc_insn_size): Likewise. | |
1088 | (micromips_bc1_pc): Likewise. | |
1089 | (micromips_next_pc): Likewise. | |
1090 | (unpack_mips16): Update mips_fetch_instruction call. | |
1091 | (extended_mips16_next_pc): Update according to change to | |
1092 | mips16_to_32_reg. | |
1093 | (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS | |
1094 | code. | |
1095 | (mips16_scan_prologue): Update mips_fetch_instruction call. | |
1096 | Update according to change to mips16_to_32_reg. | |
1097 | (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call. | |
1098 | (mips_insn16_frame_base_sniffer): Likewise. | |
1099 | (micromips_decode_imm9): New function. | |
1100 | (micromips_scan_prologue): Likewise. | |
1101 | (mips_micro_frame_cache): Likewise. | |
1102 | (mips_micro_frame_this_id): Likewise. | |
1103 | (mips_micro_frame_prev_register): Likewise. | |
1104 | (mips_micro_frame_sniffer): Likewise. | |
1105 | (mips_micro_frame_unwind): New variable. | |
1106 | (mips_micro_frame_base_address): New function. | |
1107 | (mips_micro_frame_base): New variable. | |
1108 | (mips_micro_frame_base_sniffer): New function. | |
1109 | (mips32_scan_prologue): Update mips_fetch_instruction call. | |
1110 | (mips_insn32_frame_sniffer): Check for the standard MIPS ISA | |
1111 | rather than for MIPS16. | |
1112 | (mips_insn32_frame_base_sniffer): Likewise. | |
1113 | (mips_addr_bits_remove): Handle microMIPS code. | |
1114 | (deal_with_atomic_sequence): Rename to... | |
1115 | (mips_deal_with_atomic_sequence): ... this. Update the type | |
1116 | of the variable used to hold an instruction. Remove the ISA bit | |
1117 | check. Update mips_fetch_instruction call. | |
1118 | (micromips_deal_with_atomic_sequence): New function. | |
1119 | (deal_with_atomic_sequence): Likewise. | |
1120 | (mips_about_to_return): Handle microMIPS code. Update | |
1121 | mips_fetch_instruction call. | |
1122 | (heuristic_proc_start): Check for the standard MIPS ISA rather | |
1123 | than for MIPS16. Update mips_pc_is_mips16 and | |
1124 | mips_fetch_instruction calls. Handle microMIPS code. | |
1125 | (mips_push_dummy_code): Handle microMIPS code. | |
1126 | (mips_eabi_push_dummy_call): Likewise. | |
1127 | (mips_o32_return_value): Update mips_pc_is_mips16 call. | |
1128 | (mips_o64_push_dummy_call): Handle microMIPS code. | |
1129 | (mips_o64_return_value): Update mips_pc_is_mips16 call. | |
1130 | (is_delayed): Remove function. | |
1131 | (mips_single_step_through_delay): Replace the call to is_delayed | |
1132 | with mips32_instruction_has_delay_slot. Correct MIPS16 handling. | |
1133 | Handle microMIPS code. | |
1134 | (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle | |
1135 | microMIPS code. | |
1136 | (mips32_in_function_epilogue_p): Update mips_fetch_instruction | |
1137 | call. | |
1138 | (micromips_in_function_epilogue_p): New function. | |
1139 | (mips16_in_function_epilogue_p): Update mips_fetch_instruction | |
1140 | call. | |
1141 | (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call. | |
1142 | Handle microMIPS. | |
1143 | (gdb_print_insn_mips): Likewise. | |
1144 | (mips_breakpoint_from_pc): Likewise. | |
1145 | (mips_remote_breakpoint_from_pc): New function. | |
1146 | (mips32_instruction_has_delay_slot): Simplify making use of the | |
1147 | updated mips_fetch_instruction interface. | |
1148 | (micromips_instruction_has_delay_slot): New function. | |
1149 | (mips16_instruction_has_delay_slot): Simplify making use of the | |
1150 | updated mips_fetch_instruction interface. | |
1151 | (mips_adjust_breakpoint_address): Check for the standard MIPS | |
1152 | ISA rather than for MIPS16 ISA. Update for unmake_compact_addr | |
1153 | calls. Handle microMIPS code. | |
1154 | (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call. | |
1155 | (mips_skip_trampoline_code): Handle microMIPS code. | |
1156 | (global_mips_compression): New function. | |
1157 | (mips_gdbarch_init): Handle the compressed ISA setting from ELF | |
1158 | file flags. Register the microMIPS remote breakpoint handler | |
1159 | and heuristic frame unwinder. | |
1160 | (show_mips_compression): New function. | |
1161 | (_initialize_mips_tdep): Add the "set mips compression" and | |
1162 | "show mips compression" commands. | |
1163 | ||
22e048c9 SDJ |
1164 | 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com> |
1165 | ||
1166 | * ada-lang.c: | |
1167 | * ada-tasks.c: | |
1168 | * ada-varobj.c: | |
1169 | * amd64-darwin-tdep.c: | |
1170 | * arm-symbian-tdep.c: | |
1171 | * arm-tdep.c: | |
1172 | * avr-tdep.c: | |
1173 | * ax-gdb.c: | |
1174 | * bfin-linux-tdep.c: | |
1175 | * breakpoint.c: | |
1176 | * c-valprint.c: | |
1177 | * cli/cli-cmds.c: | |
1178 | * coffread.c: | |
1179 | * cp-support.c: | |
1180 | * cris-tdep.c: | |
1181 | * dwarf2-frame-tailcall.c: | |
1182 | * dwarf2-frame.c: | |
1183 | * dwarf2expr.c: | |
1184 | * dwarf2loc.c: | |
1185 | * dwarf2read.c: | |
1186 | * elfread.c: | |
1187 | * eval.c: | |
1188 | * expprint.c: | |
1189 | * f-valprint.c: | |
1190 | * frv-tdep.c: | |
1191 | * h8300-tdep.c: | |
1192 | * hppa-hpux-tdep.c: | |
1193 | * hppa-tdep.c: | |
1194 | * hppanbsd-tdep.c: | |
1195 | * i386-nto-tdep.c: | |
1196 | * i386-tdep.c: | |
1197 | * i387-tdep.c: | |
1198 | * ia64-tdep.c: | |
1199 | * jit.c: | |
1200 | * linespec.c: | |
1201 | * linux-tdep.c: | |
1202 | * lm32-tdep.c: | |
1203 | * m2-valprint.c: | |
1204 | * m32c-tdep.c: | |
1205 | * m32r-rom.c: | |
1206 | * m32r-tdep.c: | |
1207 | * m68k-tdep.c: | |
1208 | * m68klinux-tdep.c: | |
1209 | * mi/mi-main.c: | |
1210 | * microblaze-tdep.c: | |
1211 | * mips-linux-tdep.c: | |
1212 | * mips-tdep.c: | |
1213 | * mn10300-tdep.c: | |
1214 | * p-valprint.c: | |
1215 | * parse.c: | |
1216 | * ppc-linux-tdep.c: | |
1217 | * ppc-sysv-tdep.c: | |
1218 | * printcmd.c: | |
1219 | * python/py-finishbreakpoint.c: | |
1220 | * python/py-inferior.c: | |
1221 | * python/py-infthread.c: | |
1222 | * python/py-type.c: | |
1223 | * python/python.c: | |
1224 | * remote-fileio.c: | |
1225 | * remote-m32r-sdi.c: | |
1226 | * remote-mips.c: | |
1227 | * reverse.c: | |
1228 | * rl78-tdep.c: | |
1229 | * rs6000-aix-tdep.c: | |
1230 | * rs6000-tdep.c: | |
1231 | * s390-tdep.c: | |
1232 | * score-tdep.c: | |
1233 | * sh64-tdep.c: | |
1234 | * skip.c: | |
1235 | * solib-darwin.c: | |
1236 | * solib-dsbt.c: | |
1237 | * solib-frv.c: | |
1238 | * sparc-tdep.c: | |
1239 | * spu-multiarch.c: | |
1240 | * spu-tdep.c: | |
1241 | * stack.c: | |
1242 | * symfile.c: | |
1243 | * symtab.c: | |
1244 | * tic6x-tdep.c: | |
1245 | * tracepoint.c: | |
1246 | * v850-tdep.c: | |
1247 | * valarith.c: | |
1248 | * valprint.c: | |
1249 | * value.c: | |
1250 | * xcoffread.c: | |
1251 | * xtensa-tdep.c: | |
1252 | * ada-lang.c: | |
1253 | * ada-tasks.c: | |
1254 | * ada-varobj.c: | |
1255 | * amd64-darwin-tdep.c: | |
1256 | * arm-symbian-tdep.c: | |
1257 | * arm-tdep.c: Delete unused variables. | |
1258 | ||
aff139ff JK |
1259 | 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
1260 | ||
1261 | Rename $ddir to $datadir. | |
1262 | * NEWS (--with-auto-load-dir): Rename $ddir to $datadir. | |
1263 | * auto-load.c (auto_load_safe_path_vec_update) | |
1264 | (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise. | |
1265 | * configure: Regenerate. | |
1266 | * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path): | |
1267 | Likewise. Remove the 'use $ddir' help string. | |
1268 | ||
f7bfa992 JK |
1269 | 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
1270 | ||
1271 | * auto-load.c (show_auto_load_safe_path): Accept any combination of | |
1272 | DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match. | |
1273 | ||
9cb709b6 TT |
1274 | 2012-05-18 Tom Tromey <tromey@redhat.com> |
1275 | ||
1276 | PR exp/13907: | |
1277 | * valprint.h (struct value_print_options) <symbol_print>: New | |
1278 | field. | |
1279 | * valprint.c (user_print_options): Add default for symbol_print. | |
1280 | (show_symbol_print): New function. | |
1281 | (generic_val_print): Respect symbol_print. | |
1282 | (_initialize_valprint): Add "print symbol" setting. | |
1283 | * f-valprint.c (f_val_print): Respect symbol_print. | |
1284 | * c-valprint.c (c_val_print): Respect symbol_print. | |
1285 | * NEWS: Update. | |
1286 | * printcmd.c (print_address_symbolic): Return int. Ignore some | |
1287 | zero-size symbols. | |
1288 | (print_address_demangle): Return int. | |
1289 | * defs.h: (print_address_symbolic): Return int. | |
1290 | * value.h (print_address_demangle): Return int. | |
1291 | ||
b012acdd TT |
1292 | 2012-05-18 Tom Tromey <tromey@redhat.com> |
1293 | ||
1294 | * valprint.c (val_print_string): Don't print leading space. | |
1295 | * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally | |
1296 | print space before string or vtbl. | |
1297 | * m2-valprint.c (print_unpacked_pointer): Optionally print space | |
1298 | before string. | |
1299 | * jv-valprint.c (java_value_print): Print space before string. | |
1300 | * go-valprint.c (print_go_string): Print space before string. | |
1301 | * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print | |
1302 | space before string. | |
1303 | * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print | |
1304 | space before string or vtbl. | |
1305 | * auxv.c (fprint_target_auxv): Print space after address. | |
1306 | ||
1d51a733 TT |
1307 | 2012-05-18 Tom Tromey <tromey@redhat.com> |
1308 | ||
1309 | * printcmd.c (print_address_demangle): Remove special case for 0. | |
1310 | ||
edf0c1b7 TT |
1311 | 2012-05-18 Tom Tromey <tromey@redhat.com> |
1312 | ||
1313 | * printcmd.c (print_address_demangle): Add 'opts' argument. | |
1314 | * p-valprint.c (pascal_val_print): Update. | |
1315 | * jv-valprint.c (java_val_print): Update. | |
1316 | * value.h: Update. | |
1317 | * valprint.c (generic_val_print): Update. | |
1318 | (print_function_pointer_address): Add 'options' argument. Remove | |
1319 | 'addressprint' argument. Update. | |
1320 | * m2-valprint.c (print_unpacked_pointer): Update. | |
1321 | * gnu-v3-abi.c (print_one_vtable): Update. | |
1322 | (gnuv3_print_method_ptr): Update. | |
1323 | * f-valprint.c (f_val_print): Update. | |
1324 | * cp-valprint.c (cp_print_value_fields): Update. | |
1325 | * valprint.h (print_function_pointer_address): Update. | |
1326 | * c-valprint.c (c_val_print): Update. | |
1327 | ||
9703b513 TT |
1328 | 2012-05-18 Tom Tromey <tromey@redhat.com> |
1329 | ||
1330 | * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab | |
1331 | directly corresponding to the found psymtab. | |
1332 | * dwarf2read.c (recursively_find_pc_sect_symtab): New function. | |
1333 | (dw2_find_pc_sect_symtab): Use it. | |
1334 | * block.h (blockvector_contains_pc): Declare. | |
1335 | * block.c (find_block_in_blockvector): New function. | |
1336 | (blockvector_for_pc_sect): Use it. | |
1337 | (blockvector_contains_pc): New function. | |
1338 | ||
5a439849 MR |
1339 | 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com> |
1340 | ||
1341 | * mips-tdep.h (mips_write_pc): New prototype. | |
1342 | * mips-tdep.c (mips_write_pc): Make external, add description. | |
1343 | * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc, | |
1344 | add description. | |
1345 | ||
8376de04 MR |
1346 | 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com> |
1347 | ||
1348 | * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of | |
1349 | mips_regnum->pc. | |
1350 | (mips_unwind_pc, mips_write_pc): Likewise. | |
1351 | (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and | |
1352 | gdbarch_read_pc. | |
1353 | ||
d3581e61 JB |
1354 | 2012-05-17 Joel Brobecker <brobecker@adacore.com> |
1355 | ||
1356 | * procfs.c (procfs_find_new_threads, procfs_pid_to_str, | |
1357 | proc_warn, proc_error, proc_get_status, proc_flags, | |
1358 | proc_why, proc_what, proc_nsysarg, proc_sysargs, | |
1359 | proc_set_run_on_last_close, proc_unset_run_on_last_close, | |
1360 | proc_unset_inherit_on_fork, proc_set_async, proc_unset_async, | |
1361 | proc_stop_process, proc_wait_for_stop, proc_run_process, | |
1362 | proc_set_traced_signals, proc_set_traced_faults, | |
1363 | proc_set_traced_sysentry, proc_set_traced_sysexit, | |
1364 | proc_set_held_signals, proc_get_held_signals, | |
1365 | proc_get_traced_signals, proc_get_traced_faults, | |
1366 | proc_get_traced_sysentry, proc_get_traced_sysexit, | |
1367 | proc_clear_current_fault, proc_set_current_signal, | |
1368 | proc_clear_current_signal, proc_get_gregs, proc_get_fpregs, | |
1369 | proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid, | |
1370 | proc_get_nthreads, proc_get_nthreads, proc_get_nthreads, | |
1371 | proc_get_current_thread, proc_get_current_thread, | |
1372 | proc_get_current_thread, proc_update_threads, | |
1373 | proc_update_threads, proc_update_threads, proc_update_threads, | |
1374 | proc_iterate_over_threads, procfs_find_new_threads, | |
1375 | procfs_pid_to_str): Make static. Remove advance declaration. | |
1376 | (proc_cursig): Make static. Conditionalized defintion on | |
1377 | PROCFS_DONT_PIOCSSIG_CURSIG being defined. | |
1378 | (proc_syscall, proc_set_kill_on_last_close, | |
1379 | proc_unset_kill_on_last_close, proc_set_inherit_on_fork, | |
1380 | proc_get_pending_signals, proc_get_signal_actions, | |
1381 | proc_trace_signal, proc_ignore_signal): Delete. | |
1382 | ||
81b9b86e SDJ |
1383 | 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com> |
1384 | ||
1385 | * coffread.c (cs_section_address): Passing proper argument for | |
1386 | `bfd_get_section_vma'. | |
1387 | * dwarf2read.c (dwarf2_locate_sections): Likewise, for | |
1388 | `bfd_get_section_flags'. | |
1389 | * remote.c (remote_trace_set_readonly_regions): Likewise, for | |
1390 | `bfd_get_section_vma'. | |
1391 | ||
abc9d0dc TT |
1392 | 2012-05-16 Tom Tromey <tromey@redhat.com> |
1393 | ||
1394 | PR macros/13205: | |
1395 | * macrotab.h: (macro_define_special): Declare. | |
1396 | (enum macro_special_kind): New. | |
1397 | (struct macro_definition) <argc, replacement>: Update comments. | |
1398 | * macrotab.c (new_macro_definition): Unconditionally set 'argc'. | |
1399 | (macro_define_object_internal): New function. | |
1400 | (macro_define_object): Use it. | |
1401 | (macro_define_special): New function. | |
1402 | (fixup_definition): New function. | |
1403 | (macro_lookup_definition, foreach_macro_in_scope) | |
1404 | (foreach_macro): Use fixup_definition. | |
1405 | * macroexp.h (macro_stringify): Declare. | |
1406 | * macroexp.c (free_buffer_return_text): New function. | |
1407 | (stringify): Constify "arg". | |
1408 | (macro_stringify): New function. | |
1409 | * dwarf2read.c (macro_start_file): Call macro_define_special. | |
1410 | ||
6a3a010b MR |
1411 | 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com> |
1412 | Maciej W. Rozycki <macro@mips.com> | |
1413 | ||
1414 | * breakpoint.h (bp_location): Add related_address member. | |
1415 | * inferior.h (get_return_value): Take a pointer to struct value | |
1416 | instead of struct type for the function requested. | |
1417 | * value.h (using_struct_return): Likewise. | |
1418 | * gdbarch.sh (return_value): Take a pointer to struct value | |
1419 | instead of struct type for the function requested. | |
1420 | * breakpoint.c (set_breakpoint_location_function): Initialize | |
1421 | related_address for bp_gnu_ifunc_resolver breakpoints. | |
1422 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the | |
1423 | requested function's address to gdbarch_return_value. | |
1424 | * eval.c (evaluate_subexp_standard): Pass the requested | |
1425 | function's address to using_struct_return. | |
1426 | * infcall.c (call_function_by_hand): Pass the requested | |
1427 | function's address to using_struct_return and | |
1428 | gdbarch_return_value. | |
1429 | * infcmd.c (get_return_value): Take a pointer to struct value | |
1430 | instead of struct type for the function requested. | |
1431 | (print_return_value): Update accordingly. | |
1432 | (finish_command_continuation): Likewise. | |
1433 | * stack.c (return_command): Pass the requested function's | |
1434 | address to using_struct_return and gdbarch_return_value. | |
1435 | * value.c (using_struct_return): Take a pointer to struct value | |
1436 | instead of struct type for the function requested. Pass the | |
1437 | requested function's address to gdbarch_return_value. | |
1438 | * python/py-finishbreakpoint.c (finish_breakpoint_object): | |
1439 | New function_value member, replacing function_type. | |
1440 | (bpfinishpy_dealloc): Update accordingly. | |
1441 | (bpfinishpy_pre_stop_hook): Likewise. | |
1442 | (bpfinishpy_init): Likewise. Record the requested function's | |
1443 | address. | |
1444 | * mips-tdep.c (mips_fval_reg): New enum. | |
1445 | (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap | |
1446 | words put in GP registers. | |
1447 | (mips_o64_push_dummy_call): Update a comment. | |
1448 | (mips_o32_return_value): Take a pointer to struct value instead | |
1449 | of struct type for the function requested and use it to check if | |
1450 | using the MIPS16 calling convention. Return the designated | |
1451 | general purpose registers for floating-point values returned in | |
1452 | MIPS16 mode. | |
1453 | (mips_o64_return_value): Likewise. | |
1454 | * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype. | |
1455 | (ppc_sysv_abi_broken_return_value): Likewise. | |
1456 | (ppc64_sysv_abi_return_value): Likewise. | |
1457 | * alpha-tdep.c (alpha_return_value): Take a pointer to struct | |
1458 | value instead of struct type for the function requested. | |
1459 | * amd64-tdep.c (amd64_return_value): Likewise. | |
1460 | * amd64-windows-tdep.c (amd64_windows_return_value): Likewise. | |
1461 | * arm-tdep.c (arm_return_value): Likewise. | |
1462 | * avr-tdep.c (avr_return_value): Likewise. | |
1463 | * bfin-tdep.c (bfin_return_value): Likewise. | |
1464 | * cris-tdep.c (cris_return_value): Likewise. | |
1465 | * frv-tdep.c (frv_return_value): Likewise. | |
1466 | * h8300-tdep.c (h8300_return_value): Likewise. | |
1467 | (h8300h_return_value): Likewise. | |
1468 | * hppa-tdep.c (hppa32_return_value): Likewise. | |
1469 | (hppa64_return_value): Likewise. | |
1470 | * i386-tdep.c (i386_return_value): Likewise. | |
1471 | * ia64-tdep.c (ia64_return_value): Likewise. | |
1472 | * iq2000-tdep.c (iq2000_return_value): Likewise. | |
1473 | * lm32-tdep.c (lm32_return_value): Likewise. | |
1474 | * m32c-tdep.c (m32c_return_value): Likewise. | |
1475 | * m32r-tdep.c (m32r_return_value): Likewise. | |
1476 | * m68hc11-tdep.c (m68hc11_return_value): Likewise. | |
1477 | * m68k-tdep.c (m68k_return_value): Likewise. | |
1478 | (m68k_svr4_return_value): Likewise. | |
1479 | * m88k-tdep.c (m88k_return_value): Likewise. | |
1480 | * mep-tdep.c (mep_return_value): Likewise. | |
1481 | * microblaze-tdep.c (microblaze_return_value): Likewise. | |
1482 | * mn10300-tdep.c (mn10300_return_value): Likewise. | |
1483 | * moxie-tdep.c (moxie_return_value): Likewise. | |
1484 | * mt-tdep.c (mt_return_value): Likewise. | |
1485 | * ppc-linux-tdep.c (ppc_linux_return_value): Likewise. | |
1486 | * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise. | |
1487 | (ppc_sysv_abi_broken_return_value): Likewise. | |
1488 | (ppc64_sysv_abi_return_value): Likewise. | |
1489 | * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise. | |
1490 | * rl78-tdep.c (rl78_return_value): Likewise. | |
1491 | * rs6000-aix-tdep.c (rs6000_return_value): Likewise. | |
1492 | * rx-tdep.c (rx_return_value): Likewise. | |
1493 | * s390-tdep.c (s390_return_value): Likewise. | |
1494 | * score-tdep.c (score_return_value): Likewise. | |
1495 | * sh-tdep.c (sh_return_value_nofpu): Likewise. | |
1496 | (sh_return_value_fpu): Likewise. | |
1497 | * sh64-tdep.c (sh64_return_value): Likewise. | |
1498 | * sparc-tdep.c (sparc32_return_value): Likewise. | |
1499 | * sparc64-tdep.c (sparc64_return_value): Likewise. | |
1500 | * spu-tdep.c (spu_return_value): Likewise. | |
1501 | * tic6x-tdep.c (tic6x_return_value): Likewise. | |
1502 | * v850-tdep.c (v850_return_value): Likewise. | |
1503 | * vax-tdep.c (vax_return_value): Likewise. | |
1504 | * xstormy16-tdep.c (xstormy16_return_value): Likewise. | |
1505 | * xtensa-tdep.c (xtensa_return_value): Likewise. | |
1506 | * gdbarch.c: Regenerate. | |
1507 | * gdbarch.h: Regenerate. | |
1508 | ||
29ca12b3 TT |
1509 | 2012-05-15 Tom Tromey <tromey@redhat.com> |
1510 | ||
1511 | * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest. | |
1512 | ||
588ae58c JB |
1513 | 2012-05-15 Joel Brobecker <brobecker@adacore.com> |
1514 | ||
1515 | * breakpoint.c (init_breakpoint_sal): Add quotes around part | |
1516 | of command in two error message. | |
1517 | ||
855a6e68 JB |
1518 | 2012-05-15 Joel Brobecker <brobecker@adacore.com> |
1519 | ||
1520 | * breakpoint.c (init_breakpoint_sal): Remove trailing spaces. | |
1521 | ||
d634f2de JB |
1522 | 2012-05-15 Joel Brobecker <brobecker@adacore.com> |
1523 | ||
1524 | * breakpoint.c (find_condition_and_thread): Minor reformatting. | |
1525 | ||
9cc815f5 JK |
1526 | 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1527 | ||
1528 | * NEWS (show auto-load scripts-directory): Add forgotten command. | |
1529 | ||
6a609e58 JK |
1530 | 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1531 | ||
1532 | * spu-tdep.c (spu_catch_start): Update create_breakpoint caller | |
1533 | parameters. | |
1534 | ||
ac1438b5 L |
1535 | 2012-05-14 H.J. Lu <hongjiu.lu@intel.com> |
1536 | ||
1537 | * amd64-tdep.c: Include features/i386/x32.c and | |
1538 | features/i386/x32-avx.c. | |
1539 | (_initialize_amd64_tdep): Call initialize_tdesc_x32 and | |
1540 | initialize_tdesc_x32_avx. | |
1541 | ||
e7e0cddf SS |
1542 | 2012-05-14 Stan Shebs <stan@codesourcery.com> |
1543 | ||
1544 | Add dynamic printf. | |
1545 | * breakpoint.h (enum bptype): New type bp_dprintf. | |
1546 | (struct breakpoint): New field extra_string. | |
1547 | (struct breakpoint_ops): Add arg to create_breakpoints_sal. | |
1548 | (create_breakpoint): Add extra_string arg. | |
1549 | * breakpoint.c (dprintf_breakpoint_ops): New. | |
1550 | (is_breakpoint): Add bp_dprintf. | |
1551 | (bpstat_what): Add dprintf case. | |
1552 | (bptype_string): Ditto. | |
1553 | (print_one_breakpoint_location): Ditto. | |
1554 | (init_bp_location): Ditto. | |
1555 | (bkpt_print_mention): Ditto. | |
1556 | (dprintf_style_enums): New array. | |
1557 | (dprintf_style): New global. | |
1558 | (dprintf_function): New global. | |
1559 | (dprintf_channel): New global. | |
1560 | (update_dprintf_command_list): New function. | |
1561 | (update_dprintf_commands): New function. | |
1562 | (init_breakpoint_sal): Add extra_string argument, handle it. | |
1563 | (create_breakpoint_sal): Add extra_string argument. | |
1564 | (create_breakpoints_sal): Add extra_string argument, update callers. | |
1565 | (find_condition_and_thread): Add extra argument. | |
1566 | (create_breakpoint): Add extra_string argument, record it. | |
1567 | (dprintf_command): New function. | |
1568 | (break_command_1): Add arg to create_breakpoint call. | |
1569 | (handle_gnu_v3_exceptions): Ditto. | |
1570 | (trace_command): Ditto. | |
1571 | (ftrace_command): Ditto. | |
1572 | (strace_command): Ditto. | |
1573 | (bkpt_print_mention): Add dprintf case. | |
1574 | (create_breakpoint_sal_default): Add extra_string argument. | |
1575 | (_initialize_breakpoint): Add new commands. | |
1576 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call. | |
1577 | * python/py-breakpoint.c (bppy_init): Ditto. | |
1578 | * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto. | |
1579 | ||
8ae38c14 MR |
1580 | 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com> |
1581 | ||
1582 | * mips-tdep.c (mips_push_dummy_code): Correct description typo. | |
1583 | ||
9f676e66 SCR |
1584 | 2012-05-14 Siva Chandra Reddy <sivachandra@google.com> |
1585 | ||
1586 | * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of | |
1587 | unsigned long long. | |
1588 | ||
7efc75aa SCR |
1589 | 2012-05-13 Siva Chandra Reddy <sivachandra@google.com> |
1590 | ||
1591 | Add a new function gdb.find_pc_line to the Python API. | |
1592 | * NEWS (Python Scripting): Add entry about the new function. | |
1593 | * python/python.c (gdbpy_find_pc_line): New function which | |
1594 | implements gdb.find_pc_line. | |
1595 | (GdbMethods): Add entry for the new function. | |
1596 | ||
70af3797 PA |
1597 | 2012-05-12 Pedro Alves <palves@redhat.com> |
1598 | ||
1599 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call | |
1600 | initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux. | |
1601 | ||
06da564e EZ |
1602 | 2012-05-12 Eli Zaretskii <eliz@gnu.org> |
1603 | ||
1604 | * inferior.c: Include completer.h | |
1605 | (initialize_inferiors): Set completer of add-inferior to | |
1606 | filename_completer. | |
1607 | ||
0288cee2 L |
1608 | 2012-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1609 | ||
1610 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
1611 | gdbarch_ptr_bit for x32 core dump. | |
1612 | ||
f6537a2c L |
1613 | 2012-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1614 | ||
1615 | * amd64-linux-tdep.c: Include features/i386/x32-linux.c | |
1616 | and features/i386/x32-avx-linux.c. | |
1617 | ||
85d4a676 SS |
1618 | 2012-05-11 Stan Shebs <stan@codesourcery.com> |
1619 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
1620 | ||
1621 | * NEWS: Describe new info os commands. | |
1622 | * common/linux-osdata.c (PID_T, TIME_T): Define. | |
1623 | (MAX_PID_T_STRLEN): New. | |
1624 | (linux_common_core_of_thread): Add comment. Change to use PID_T and | |
1625 | MAX_PID_T_STRLEN. | |
1626 | (command_from_pid): Add comment. Change to use PID_T. | |
1627 | (commandline_from_pid): Change to use PID_T. | |
1628 | (user_from_pid): Add comment. | |
1629 | (get_process_owner): Add comment. Change to use PID_T and | |
1630 | MAX_PID_T_STRLEN. | |
1631 | (get_number_of_cpu_cores): Add comment. | |
1632 | (get_cores_used_by_process): Add comment. Change to use PID_T and | |
1633 | MAX_PID_T_STRLEN. | |
1634 | (linux_xfer_osdata_processes): Change to use PID_T and | |
1635 | MAX_PID_T_STRLEN. | |
1636 | (compare_processes): New function. | |
1637 | (linux_xfer_osdata_processgroups): New function. | |
1638 | (linux_xfer_osdata_threads): Change to use PID_T. | |
1639 | (linux_xfer_osdata_fds): New function. | |
1640 | (format_socket_state, print_sockets): New functions. | |
1641 | (union socket_addr): New union. | |
1642 | (linux_xfer_osdata_isockets): New function. | |
1643 | (time_from_time_t, group_from_gid): New functions. | |
1644 | (linux_xfer_osdata_shm): New function. | |
1645 | (linux_xfer_osdata_sem): New function. | |
1646 | (linux_xfer_osdata_msg): New function. | |
1647 | (linux_xfer_osdata_modules): New function. | |
1648 | (osdata_table): Add new entries. | |
1649 | * common/buffer.c (buffer_xml_printf): Add support for long and | |
1650 | long long format specifiers. | |
1651 | ||
f24afd6d L |
1652 | 2012-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1653 | ||
1654 | * amd64-linux-tdep.h (tdesc_x32_linux): New. | |
1655 | (tdesc_x32_avx_linux): Likewise. | |
1656 | ||
7349ff92 JK |
1657 | 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1658 | ||
1659 | Implement multi-component --with-auto-load-dir. | |
1660 | * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New | |
1661 | entries. | |
1662 | (--with-auto-load-safe-path): Update the default value description. | |
1663 | * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir): | |
1664 | New. | |
1665 | (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove | |
1666 | GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by | |
1667 | AUTO_LOAD_DIR. Support $ddir and multiple components in it. | |
1668 | (_initialize_auto_load): Initialize also auto_load_dir. Install new | |
1669 | "set auto-load scripts-directory". | |
1670 | * config.in: Regenerate. | |
1671 | * configure: Regenerate. | |
1672 | * configure.ac (--with-auto-load-dir): New configure option. | |
1673 | (--auto-load-safe-path): Change the default to --with-auto-load-dir. | |
1674 | ||
6dea1fbd JK |
1675 | 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1676 | ||
1677 | Provide $ddir substitution for --with-auto-load-safe-path. | |
1678 | * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New | |
1679 | entries. | |
1680 | * auto-load.c: Include observer.h. | |
1681 | (auto_load_safe_path_vec_update): Call substitute_path_component for | |
1682 | each component. New variable ddir_subst. | |
1683 | (auto_load_gdb_datadir_changed): New function. | |
1684 | (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to | |
1685 | AUTO_LOAD_SAFE_PATH. New comment. | |
1686 | (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to | |
1687 | AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed. | |
1688 | * config.in: Regenerate. | |
1689 | * configure: Regenerate. | |
1690 | * configure.ac (--auto-load-safe-path): Rename | |
1691 | DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to | |
1692 | GDB_DATADIR/auto-load. | |
1693 | * defs.h (substitute_path_component): New declaration. | |
1694 | * top.c: Include observer.h. | |
1695 | (set_gdb_datadir): New function. | |
1696 | (init_main): Install it for "set data-directory". | |
1697 | * utils.c (substitute_path_component): New function. | |
1698 | ||
b09aca3a JK |
1699 | 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1700 | ||
1701 | Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY. | |
1702 | * auto-load.c (auto_load_objfile_script): Remove check for NULL | |
1703 | DEBUG_FILE_DIRECTORY. Handle multiple components of | |
1704 | DEBUG_FILE_DIRECTORY. | |
1705 | ||
95554aad TT |
1706 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1707 | ||
1708 | * dwarf2read.c (recursively_write_psymbols): New function. | |
1709 | (write_psymtabs_to_index): Use it. | |
1710 | ||
1711 | * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New | |
1712 | field. | |
1713 | (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit) | |
1714 | (load_partial_comp_unit): Update. | |
1715 | (queue_comp_unit): Add argument 'pretend_language'. | |
1716 | (process_queue): Update. | |
1717 | (psymtab_to_symtab_1): Skip dependencies that have a user. | |
1718 | (load_partial_comp_unit_reader): Give meaning to the 'data' | |
1719 | argument. | |
1720 | (load_full_comp_unit): Add 'pretend_language' argument. | |
1721 | (process_full_comp_unit): Add 'pretend_language' argument. Set | |
1722 | language on CU. | |
1723 | (process_imported_unit_die, read_file_scope, read_type_unit_scope): | |
1724 | Update. | |
1725 | (maybe_queue_comp_unit): Add 'pretend_language' argument. | |
1726 | (follow_die_offset, follow_die_sig, read_signatured_type_reader): | |
1727 | Update. | |
1728 | (prepare_one_comp_unit): Add 'pretend_language' argument. | |
1729 | ||
1730 | * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef. | |
1731 | (struct dwarf2_per_objfile) <just_read_cus>: New field. | |
1732 | (struct dwarf2_per_cu_data) <imported_symtabs>: New field. | |
1733 | (dw2_do_instantiate_symtab): Check whether symtab was read in | |
1734 | before queueing. | |
1735 | (dw2_instantiate_symtab): Add assertion. Call | |
1736 | process_cu_includes. | |
1737 | (process_psymtab_comp_unit): Compute 'dependencies' for psymtab. | |
1738 | (partial_symtab_p): New typedef. | |
1739 | (set_partial_user): New function. | |
1740 | (dwarf2_build_psymtabs_hard): Use set_partial_user. | |
1741 | (scan_partial_symbols): Add imported CU to imported_symtabs. | |
1742 | (dwarf2_psymtab_to_symtab): Call process_cu_includes. | |
1743 | (psymtab_to_symtab_1): Do nothing if psymtab is readin. | |
1744 | (get_symtab, recursively_compute_inclusions) | |
1745 | (compute_symtab_includes, process_cu_includes) | |
1746 | (process_imported_unit_die): New functions. | |
1747 | (process_die) <DW_TAG_imported_unit>: New case. | |
1748 | (dwarf2_per_objfile_free): Free 'imported_symtabs'. | |
1749 | ||
1750 | * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update | |
1751 | comment. | |
1752 | (struct partial_die_info) <locdesc>: Remove. | |
1753 | <d>: New field. | |
1754 | (process_psymtab_comp_unit): Add 'read_partial' argument. | |
1755 | Update. | |
1756 | (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update. | |
1757 | (scan_partial_symbols): Handle DW_TAG_imported_unit. | |
1758 | (add_partial_symbol): Update. | |
1759 | (process_die): Handle DW_TAG_partial_unit. | |
1760 | (read_file_scope): Update comment. | |
1761 | (load_partial_dies): Handle DW_TAG_imported_unit. | |
1762 | (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import. | |
1763 | (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit. | |
1764 | ||
e871fbb9 TT |
1765 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1766 | ||
1767 | * cc-with-dwz.sh: New file. | |
1768 | ||
b5b04b5b TT |
1769 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1770 | ||
1771 | * symtab.h (struct symtab) <includes, user>: New fields. | |
1772 | * block.h (struct block_iterator) <d, idx, which>: New fields. | |
1773 | * block.c (initialize_block_iterator, find_iterator_symtab) | |
1774 | (block_iterator_step, block_iter_name_step) | |
1775 | (block_iter_match_step): New functions. | |
1776 | (block_iterator_first, block_iterator_next) | |
1777 | (block_iter_name_first, block_iter_name_next) | |
1778 | (block_iter_match_first, block_iter_match_next): Rewrite. | |
1779 | (get_block_symtab): New function. | |
1780 | ||
84a146c9 TT |
1781 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1782 | ||
1783 | * jv-lang.c (get_java_class_symtab): Use allocate_global_block, | |
1784 | set_block_symtab. | |
1785 | * jit.c (finalize_symtab): Use allocate_global_block, | |
1786 | set_block_symtab. | |
1787 | * buildsym.c (finish_block_internal): New function, from old | |
1788 | finish_block. | |
1789 | (finish_block): Rewrite. | |
1790 | (end_symtab): Use finish_block_internal, set_block_symtab. | |
1791 | * block.h (struct global_block): New. | |
1792 | (allocate_global_block, set_block_symtab): Declare. | |
1793 | * block.c (allocate_global_block, set_block_symtab): New | |
1794 | functions. | |
1795 | ||
9439a077 TT |
1796 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1797 | ||
1798 | * psymtab.c (partial_map_expand_apply): Add assertion. | |
1799 | (partial_map_symtabs_matching_filename): Skip included psymtabs. | |
1800 | (psymtab_to_symtab): Find unshared psymtab. | |
1801 | (dump_psymtab): Print including psymtabs. | |
1802 | (recursively_search_psymtabs): New function. | |
1803 | (expand_symtabs_matching_via_partial): Use it. | |
1804 | * psympriv.h (struct partial_symtab) <user, searched_flag>: New | |
1805 | fields. | |
1806 | (enum psymtab_search_status): New. | |
1807 | ||
8157b174 TT |
1808 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1809 | ||
1810 | * tracepoint.c (scope_info): Update. | |
1811 | * symtab.c (lookup_block_symbol, iterate_over_symbols) | |
1812 | (find_pc_sect_symtab, search_symbols) | |
1813 | (default_make_symbol_completion_list_break_on) | |
1814 | (make_file_symbol_completion_list): Update. | |
1815 | * symmisc.c (dump_symtab_1): Update. | |
1816 | * stack.c (print_frame_args, iterate_over_block_locals) | |
1817 | (print_frame_labels, iterate_over_block_arg_vars): Update. | |
1818 | * python/py-block.c (block_object) <dict>: Remove. | |
1819 | <block>: New field. | |
1820 | <iter>: Change type. | |
1821 | (blpy_iter): Update. | |
1822 | (blpy_block_syms_iternext): Update. | |
1823 | * psymtab.c (map_block): Use block iterators. | |
1824 | * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS. | |
1825 | * mi/mi-cmd-stack.c (list_args_or_locals): Update. | |
1826 | * mdebugread.c (parse_symbol, mylookup_symbol): Update. | |
1827 | * infrun.c (check_exception_resume): Update. | |
1828 | * cp-support.c (make_symbol_overload_list_block): Update. | |
1829 | * coffread.c (patch_opaque_types): Update. | |
1830 | * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS. | |
1831 | * block.h (struct block_iterator): New. | |
1832 | (block_iterator_first, block_iterator_next, block_iter_name_first) | |
1833 | (block_iter_name_next, block_iter_match_first) | |
1834 | (block_iter_match_next): Declare. | |
1835 | (ALL_BLOCK_SYMBOLS): Redefine. | |
1836 | * block.c (block_iterator_first, block_iterator_next) | |
1837 | (block_iter_name_first, block_iter_name_next) | |
1838 | (block_iter_match_first, block_iter_match_next): New functions. | |
1839 | * ada-lang.c (ada_add_block_symbols) | |
1840 | (ada_make_symbol_completion_list): Use block iterator. | |
1841 | ||
a2ca7a52 TT |
1842 | 2012-05-10 Tom Tromey <tromey@redhat.com> |
1843 | ||
1844 | * psymtab.c (PSYMTAB_TO_SYMTAB): Remove. | |
1845 | (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs) | |
1846 | (lookup_partial_symbol, find_last_source_symtab_from_partial) | |
1847 | (read_psymtabs_with_filename, map_matching_symbols_psymtab) | |
1848 | (expand_symtabs_matching_via_partial, maintenance_check_symtabs): | |
1849 | Update. | |
1850 | ||
64ea88dc JB |
1851 | 2012-05-10 Joel Brobecker <brobecker@adacore.com> |
1852 | ||
1853 | * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c, | |
1854 | print-file-var-lib2.c, print-file-var-main.c and | |
1855 | print-file-var.exp (located in gdb/testsuite/gdb.base). | |
1856 | ||
99a547d6 JB |
1857 | 2012-05-10 Joel Brobecker <brobecker@adacore.com> |
1858 | ||
1859 | * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols, | |
1860 | try locating the symbol in the symbol's own objfile first, before | |
1861 | extending the search to all objfiles. | |
1862 | * symtab.c (lookup_symbol_aux_objfile): New function, extracted | |
1863 | out of lookup_symbol_aux_symtabs. | |
1864 | (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile". | |
1865 | Replace extracted-out code by call to lookup_symbol_aux_objfile. | |
1866 | Do not search EXCLUDE_OBJFILE. | |
1867 | (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs. | |
1868 | (lookup_symbol_global): Search for matches in the block's objfile | |
1869 | first, before searching all other objfiles. | |
1870 | ||
0ece64fd TG |
1871 | 2012-05-10 Tristan Gingold <gingold@adacore.com> |
1872 | ||
1873 | * printcmd.c (set_command): Add pre/post inc/dec. | |
1874 | ||
3d16a105 FCE |
1875 | 2012-05-09 Frank Ch. Eigler <fche@redhat.com> |
1876 | ||
1877 | * gdb.1: Document -ex option. | |
1878 | ||
2efbc0f7 JB |
1879 | 2012-05-09 Joel Brobecker <brobecker@adacore.com> |
1880 | ||
1881 | * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling. | |
1882 | * inferior.h (AT_SYMBOL): Delete. | |
1883 | ||
2c76a0c7 JB |
1884 | 2012-05-09 Joel Brobecker <brobecker@adacore.com> |
1885 | ||
1886 | * mips-tdep.c (mips_push_dummy_code): New function. | |
1887 | (mips_gdbarch_init): Set the gdbarch call_dummy_location to | |
1888 | ON_STACK and install mips_push_dummy_code as our gdbarch | |
1889 | push_dummy_code routine. | |
1890 | ||
9401a810 PA |
1891 | 2012-05-09 Pedro Alves <palves@redhat.com> |
1892 | ||
1893 | * target.c (set_maintenance_target_async_permitted): Rename to ... | |
1894 | (set_target_async_command): ... this. | |
1895 | (show_maintenance_target_async_permitted): Rename to ... | |
1896 | (show_target_async_command): ... this. | |
1897 | (initialize_targets): Adjust. | |
1898 | ||
3929b321 DE |
1899 | 2012-05-08 Doug Evans <dje@google.com> |
1900 | ||
1901 | * go-exp.y (classify_name): Add missing assignment of fields of | |
1902 | yylval.ssym. | |
1903 | ||
c41535fd EZ |
1904 | 2012-05-08 Eli Zaretskii <eliz@gnu.org> |
1905 | ||
1906 | Display the ">" prompt in interactive mode while reading canned | |
1907 | commands, even when the current interpreter is MI. | |
1908 | ||
1909 | * interps.c (interp_set_temp): New function. | |
1910 | ||
1911 | * interps.h (interp_set_temp): Add prototype. | |
1912 | ||
1913 | * cli/cli-script.c (restore_interp): New cleanup function. | |
1914 | (read_command_lines): Temporarily override the current interpreter | |
1915 | with CLI and arrange for restoring the original one. | |
1916 | ||
c0749c4d JS |
1917 | 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com> |
1918 | ||
1919 | * microblaze-rom.c (_initialize_picobug_rom): Add prototype. | |
1920 | ||
d7333987 SDJ |
1921 | 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com> |
1922 | ||
1923 | * probe.c (parse_probes): Move conditional to check for | |
1924 | debuginfo files from here... | |
1925 | * stap-probe.c (stap_get_probes): ... to here. | |
1926 | ||
649e6d92 MK |
1927 | 2012-05-07 Mark Kettenis <kettenis@gnu.org> |
1928 | H.J. Lu <hongjiu.lu@intel.com> | |
1929 | ||
1930 | * amd64-tdep.c (amd64_analyze_prologue): Additionally check for | |
1931 | `movl %esp, %ebp' for the X32 ABI. | |
1932 | ||
f39c6ffd TT |
1933 | 2012-05-07 Tom Tromey <tromey@redhat.com> |
1934 | ||
1935 | * dwarf2read.c (dwarf_tag_name): Return const char *. Use | |
1936 | get_DW_TAG_name. | |
1937 | (dwarf_attr_name): Return const char *. Use get_DW_AT_name. | |
1938 | (dwarf_form_name): Return const char *. Use get_DW_FORM_name. | |
1939 | (dwarf_stack_op_name): Remove. | |
1940 | (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name. | |
1941 | (decode_locdesc): Use get_DW_OP_name. | |
1942 | * dwarf2loc.c (unimplemented): Use get_DW_OP_name. | |
1943 | (dwarf2_compile_expr_to_ax): Likewise. | |
1944 | (disassemble_dwarf_expression): Likewise. | |
1945 | * dwarf2expr.h: (dwarf_stack_op_name): Remove. | |
1946 | ||
1e1f6591 CLT |
1947 | 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com> |
1948 | ||
1949 | * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h. | |
1950 | (sh_linux_sigtramp_cache): New function. | |
1951 | (sh_linux_sigreturn_init): New function. | |
1952 | (sh_linux_rt_sigreturn_init): New function. | |
1953 | (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction | |
1954 | patterns. | |
1955 | (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn | |
1956 | syscall codes. | |
1957 | (sh_linux_sigreturn_tramp_frame): New tramp_frame definition. | |
1958 | (sh_linux_rt_sigreturn_tramp_frame): Likewise. | |
1959 | (sh_linux_init_abi): Add init calls to register new tramp_frame | |
1960 | definitions under 32-bit SH, update comments. | |
1961 | ||
545c08b4 PA |
1962 | 2012-05-07 Pedro Alves <palves@redhat.com> |
1963 | ||
daac165e PA |
1964 | PR gdb/10952 |
1965 | ||
545c08b4 PA |
1966 | * amd64-linux-tdep.c: Include glibc-tdep.h. |
1967 | (amd64_linux_init_abi): Install glibc_skip_solib_resolver as | |
1968 | gdbarch_skip_solib_resolver callback. | |
1969 | ||
af2c1515 JK |
1970 | 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1971 | ||
1972 | * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH | |
1973 | back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "". | |
1974 | (show_auto_load_safe_path): Check any-directory by comparison with "/". | |
1975 | (add_auto_load_safe_path): Change the error message. | |
1976 | (_initialize_auto_load): Change the "safe-path" help text. | |
1977 | * configure: Regenerate | |
1978 | * configure.ac (--without-auto-load-safe-path): Set | |
1979 | WITH_AUTO_LOAD_SAFE_PATH to /. | |
1980 | ||
1067f998 SDJ |
1981 | 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com> |
1982 | ||
1983 | * stap-probe.h: Do not include unecessary `probe.h'. | |
1984 | ||
45dfa85a AM |
1985 | 2012-05-05 Alan Modra <amodra@gmail.com> |
1986 | ||
1987 | * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and | |
1988 | bfd_und_section_ptr. | |
1989 | * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr | |
1990 | and bfd_com_section_ptr. | |
1991 | ||
cf093994 JB |
1992 | 2012-05-04 Joel Brobecker <brobecker@adacore.com> |
1993 | ||
762ebb75 | 1994 | * MAINTAINERS (Past Maintainers): Add Chris Faylor. |
cf093994 | 1995 | |
d40dc7a8 JB |
1996 | 2012-05-04 Joel Brobecker <brobecker@adacore.com> |
1997 | ||
1998 | * windows-nat.h (segment_register_p_ftype): New typedef. | |
1999 | (windows_set_segment_register_p): Add declaration. | |
2000 | * windows-nat.c (segment_register_p): New static global. | |
2001 | (windows_set_segment_register_p): New function. | |
2002 | (do_windows_fetch_inferior_registers): Add special handling | |
2003 | for segment registers. | |
2004 | * amd64-windows-nat.c: #include "amd64-tdep.h". | |
2005 | (amd64_windows_segment_register_p): New function. | |
2006 | (_initialize_amd64_windows_nat): Call windows_set_segment_register_p. | |
2007 | * i386-windows-nat.c: #include "i386-tdep.h". | |
2008 | (i386_windows_segment_register_p): New function. | |
2009 | (_initialize_i386_windows_nat): Call windows_set_segment_register_p. | |
2010 | ||
52b3699b TG |
2011 | 2012-05-04 Tristan Gingold <gingold@adacore.com> |
2012 | ||
2013 | * printcmd.c (set_command): Emit a warning if the expression is not | |
2014 | an assignment. | |
2015 | ||
94c74239 JB |
2016 | 2012-05-03 Joel Brobecker <brobecker@adacore.com> |
2017 | ||
2018 | * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str): | |
2019 | Make static. | |
2020 | ||
fcf57f19 SDJ |
2021 | 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
2022 | ||
2023 | * stap-probe.c (stap_is_operator): Change declaration. | |
2024 | (stap_get_opcode): Change return value. | |
2025 | (stap_parse_argument_1): Update calls to `stap_get_opcode' and | |
2026 | `stap_parse_argument_1'. | |
2027 | ||
27d2932e PA |
2028 | 2012-05-03 Pedro Alves <pedro@codesourcery.com> |
2029 | ||
2030 | * infrun.c (displaced_step_fixup): Add "displaced:" prefix to | |
2031 | debug log. | |
2032 | ||
a20ee7a4 SCR |
2033 | 2012-05-03 Siva Chandra Reddy <sivachandra@google.com> |
2034 | ||
2035 | Add two new methods global_block and static_block to gdb.Symtab | |
2036 | objects. | |
2037 | * NEWS (Python scripting): Add entry about the new methods. | |
2038 | * python/py-symtab.c (stpy_global_block): New function which | |
2039 | implements the gdb.Symtab.global_block() method. | |
2040 | (stpy_static_block): New function which implements the | |
2041 | gdb.Symtab.static_block() method. | |
2042 | (symtab_object_methods): Add entries for the two new methods. | |
2043 | ||
943cb756 DE |
2044 | 2012-05-03 Doug Evans <dje@google.com> |
2045 | ||
2046 | * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no | |
2047 | files. | |
2048 | ||
f4644a3f YQ |
2049 | 2012-05-03 Yao Qi <yao@codesourcery.com> |
2050 | ||
2051 | * i386-tdep.c (i386_fetch_pointer_argument): Remove extra | |
2052 | space. | |
2053 | (i386_process_record): Ditto. | |
2054 | ||
ef61f180 JB |
2055 | 2012-05-02 Joel Brobecker <brobecker@adacore.com> |
2056 | ||
2057 | * infcall.c (unwind_on_signal_p): Make static. | |
2058 | ||
02f1df11 JB |
2059 | 2012-05-02 Joel Brobecker <brobecker@adacore.com> |
2060 | ||
2061 | * sol-thread.c (solaris_pid_to_str): Make static. | |
2062 | (_initialize_sol_thread): Add prototype. | |
2063 | ||
39023530 JB |
2064 | 2012-05-02 Joel Brobecker <brobecker@adacore.com> |
2065 | ||
2066 | * sol-thread.c (procfs_pid_to_str): Delete extern declaration. | |
2067 | ||
c6b0c501 CF |
2068 | 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx> |
2069 | ||
2070 | * MAINTAINERS: Remove myself. | |
2071 | ||
1ef71717 JK |
2072 | 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2073 | ||
2074 | Fix --without-auto-load-safe-path for MS-Windows host platform. | |
2075 | * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0. | |
2076 | ||
b31b86a7 EZ |
2077 | 2012-05-02 Eli Zaretskii <eliz@gnu.org> |
2078 | ||
2079 | * gdb_curses.h: Undefine KEY_EVENT before including curses | |
2080 | headers. Move "#undef MOUSE_MOVED" before any curses header | |
2081 | inclusion. | |
2082 | ||
777532fc SDJ |
2083 | 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com> |
2084 | ||
2085 | * features/i386/i386-mmx-linux.c: Regenerate. | |
2086 | * features/rs6000/powerpc-32.c: Likewise. | |
2087 | * features/rs6000/powerpc-32l.c: Likewise. | |
2088 | * features/rs6000/powerpc-403.c: Likewise. | |
2089 | * features/rs6000/powerpc-403gc.c: Likewise. | |
2090 | * features/rs6000/powerpc-405.c: Likewise. | |
2091 | * features/rs6000/powerpc-505.c: Likewise. | |
2092 | * features/rs6000/powerpc-601.c: Likewise. | |
2093 | * features/rs6000/powerpc-602.c: Likewise. | |
2094 | * features/rs6000/powerpc-603.c: Likewise. | |
2095 | * features/rs6000/powerpc-604.c: Likewise. | |
2096 | * features/rs6000/powerpc-64.c: Likewise. | |
2097 | * features/rs6000/powerpc-64l.c: Likewise. | |
2098 | * features/rs6000/powerpc-750.c: Likewise. | |
2099 | * features/rs6000/powerpc-860.c: Likewise. | |
2100 | * features/rs6000/powerpc-e500.c: Likewise. | |
2101 | * features/rs6000/powerpc-e500l.c: Likewise. | |
2102 | * features/rs6000/powerpc-isa205-32l.c: Likewise. | |
2103 | * features/rs6000/powerpc-isa205-64l.c: Likewise. | |
2104 | * features/rs6000/rs6000.c: Likewise. | |
2105 | ||
d71871bc SDJ |
2106 | 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com> |
2107 | ||
2108 | * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused | |
2109 | variable. | |
2110 | * stap-probe.c (stap_parse_single_operand) <reg_suffix, | |
2111 | reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise. | |
2112 | (stap_parse_argument) <e>: Likewise. | |
2113 | (handle_stap_probe) <byte_order>: Likewise. | |
2114 | ||
fd820528 DE |
2115 | 2012-04-30 Doug Evans <dje@google.com> |
2116 | ||
2117 | * dwarf2read.c (init_cutu_and_read_dies): Renamed from | |
2118 | init_and_read_dies_worker. All callers updated. | |
2119 | (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls | |
2120 | replaced with init_cutu_and_read_dies. | |
2121 | (load_partial_comp_unit): Pass 1 for use_existing_cu. | |
2122 | (find_partial_die): Remove FIXME. Don't free current CU. | |
2123 | ||
ec3f619d | 2124 | 2012-04-30 Sterling Augustine <saugustine@google.com> |
be36f02d SA |
2125 | |
2126 | * contrib: New directory. | |
2127 | * contrib/test_pubnames_and_indexes.py: New file. | |
2128 | ||
fceca515 DE |
2129 | 2012-04-30 Doug Evans <dje@google.com> |
2130 | ||
2131 | * dwarf2read.c (dwarf_decode_macros): New arg section_name. | |
2132 | All callers updated. | |
2133 | (init_cu_die_reader): Verify the section is non-empty. | |
2134 | (dwarf_decode_line_header): Don't dereference section->asection | |
2135 | until we know the section is present. | |
2136 | ||
311fe7e1 SDJ |
2137 | 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com> |
2138 | ||
2139 | * tracepoint.c (start_tracing, stop_tracing): Checking for NULL | |
2140 | probes. | |
2141 | ||
5977971a YQ |
2142 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
2143 | ||
2144 | * gdb-code-style.el: New hook gdb-markup-hook | |
2145 | and gdb-comment-hook. | |
2146 | ||
dee91e82 DE |
2147 | 2012-04-28 Doug Evans <dje@google.com> |
2148 | ||
3019eac3 DE |
2149 | Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission |
2150 | * symfile.c (default_symfile_relocate): Use sectp->owner instead of | |
2151 | objfile->obfd. | |
2152 | * symfile.h (dwarf2_debug_sections): New member addr. | |
2153 | * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index. | |
2154 | (ctx_no_get_addr_index): New function. | |
2155 | * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index. | |
2156 | (ctx_no_get_addr_index): Declare. | |
2157 | * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update. | |
2158 | * dwarf2loc.c (dwarf_expr_get_addr_index): New function. | |
2159 | (dwarf_expr_ctx_funcs): Update. | |
2160 | (needs_get_addr_index): New function. | |
2161 | (needs_frame_ctx_funcs): Update. | |
2162 | * dwarf2loc.h (dwarf2_read_addr_index): Declare. | |
2163 | * dwarf2read.c: #include "gdbcore.h". | |
2164 | (dwarf2_per_objfile): New members addr, dwo_files. | |
2165 | (dwarf2_elf_names): Add entry for addr. | |
2166 | (struct dwo_section_names): New type. | |
2167 | (dwo_section_names): New static global. | |
2168 | (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base. | |
2169 | (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of | |
2170 | old debug_types_section member updated to use this. | |
2171 | Rename member debug_types_section to info_or_types_section, | |
2172 | all uses updated. | |
2173 | (signatured_type): Rename member type_offset to type_offset_in_tu, | |
2174 | all uses updated. New member type_offset_in_section. | |
2175 | (struct dwo_sections): New type. | |
2176 | (struct dwo_unit): New type. | |
2177 | (struct dwo_file): New type. | |
2178 | (die_reader_specs): New member dwo_file. | |
2179 | (dwarf2_locate_sections): Watch for .debug_addr. | |
2180 | (zlib_decompress_section): Use sectp->owner instead of objfile->obfd. | |
2181 | (dwarf2_read_section): Get bfd of section from bfd's asection, | |
2182 | instead of objfile. | |
2183 | (create_cus_from_index): Initialize the_cu->info_or_types_section. | |
2184 | (create_signatured_type_table_from_index): Initialize | |
2185 | sig_type->info_or_types_section. | |
2186 | (dw2_get_file_names): Statement lists for type units with DWO files | |
2187 | live in the DWO file. | |
2188 | (create_debug_types_hash_table): New function. | |
2189 | (create_all_type_units): Rewrite. | |
2190 | (init_cu_die_reader): New arg dwo_file, all callers updated. | |
2191 | (init_and_read_dies_worker): Get section from | |
2192 | this_cu->info_or_types_section. Set sig_type->type_offset_in_section. | |
2193 | Watch for DW_AT_GNU_dwo_name and if present lookup the file and | |
2194 | continue reading the CU/TU from there. | |
2195 | (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers | |
2196 | updated. Get section from this_cu->info_or_types_section. | |
2197 | (create_all_comp_units): Initialize this_cu->info_or_types_section. | |
2198 | (skip_one_die): New cases DW_FORM_GNU_addr_index, | |
2199 | DW_FORM_GNU_str_index. | |
2200 | (hash_dwo_file, eq_dwo_file): New functions. | |
2201 | (allocate_dwo_file_hash_table): New function. | |
2202 | (hash_dwo_unit, eq_dwo_unit): New functions. | |
2203 | (allocate_dwo_unit_table): New function. | |
2204 | (dwarf2_locate_dwo_sections): New function. | |
2205 | (struct create_dwo_info_table_data): New type. | |
2206 | (create_debug_info_hash_table_reader): New function. | |
2207 | (create_debug_info_hash_table): New function. | |
2208 | (try_open_dwo_file, open_dwo_file, init_dwo_file): New function. | |
2209 | (lookup_dwo_file): New function. | |
2210 | (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions. | |
2211 | (free_dwo_file, free_dwo_file_cleanup): New functions. | |
2212 | (free_dwo_file_from_slot, free_dwo_files): New functions. | |
2213 | (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index. | |
2214 | (dwarf2_record_block_ranges): Ditto. | |
2215 | (read_partial_die): Ditto. | |
2216 | (process_enumeration_scope): Update to use type_offset_in_section. | |
2217 | (read_full_die_1): New function. | |
2218 | (read_full_die): Rewrite. | |
2219 | (read_attribute_value): New cases DW_FORM_GNU_addr_index, | |
2220 | DW_FORM_GNU_str_index. | |
2221 | (read_addr_index_1, read_addr_index): New functions. | |
2222 | (read_addr_index_from_leb128): New function. | |
2223 | (struct dwarf2_read_addr_index_data): New type. | |
2224 | (dwarf2_read_addr_index_reader): New function. | |
2225 | (dwarf2_read_addr_index): New function. | |
2226 | (read_str_index): New function. | |
2227 | (leb128_size): New function. | |
2228 | (dwarf_decode_line_header): Delete arg abfd, all callers updated. | |
2229 | If processing a type unit from a DWO file, get the line section | |
2230 | from the DWO file. | |
2231 | (var_decode_location): Watch for DW_OP_GNU_addr_index. | |
2232 | (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index, | |
2233 | DW_FORM_GNU_str_index. | |
2234 | (lookup_die_type): Check whether section offset of type's die is | |
2235 | known before looking it up. Remove assert. Condition can | |
2236 | legimately happen for inter-cu type references. | |
2237 | (dwarf_attr_name): Handle Fission attributes. | |
2238 | (dwarf_form_name): Handle Fission forms. | |
2239 | (dump_die_shallow): New cases DW_FORM_GNU_addr_index, | |
2240 | DW_FORM_GNU_str_index. | |
2241 | (follow_die_sig): Update to use type_offset_in_section. | |
2242 | (decode_locdesc): New case DW_OP_GNU_addr_index. | |
2243 | (skip_form_bytes): New cases DW_FORM_GNU_addr_index, | |
2244 | DW_FORM_GNU_str_index. | |
2245 | (cu_debug_loc_section): New function. | |
2246 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it. | |
2247 | (dwarf2_per_objfile_free): Unmap .debug_addr section. | |
2248 | Free DWO files if present. | |
2249 | * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr. | |
2250 | ||
dee91e82 DE |
2251 | Refactor DIE reading. |
2252 | * dwarf2read.c (dwarf2_per_objfile): Replace members | |
2253 | debug_info_type_hash and debug_types_type_hash with die_type_hash. | |
2254 | (die_reader_specs): New member "die_section". Temporarily make | |
2255 | member "buffer" non-const, pending constifying all info_ptr uses. | |
2256 | (die_reader_func_ftype): New typedef. | |
2257 | (dw2_get_file_names_reader): New function. | |
2258 | (dw2_get_file_names): Rewrite. | |
2259 | (read_and_check_type_unit_head): Rename arg type_offset to | |
2260 | type_offset_in_tu. | |
2261 | (create_all_type_units): Improve debugging message. | |
2262 | Improve dummy type unit check. | |
2263 | (init_cu_die_reader): New arg "section". All callers updated. | |
2264 | (init_and_read_dies_worker): New function. | |
2265 | (init_cu_and_read_dies, init_tu_and_read_dies): New functions. | |
2266 | (init_cutu_and_read_dies_no_follow): New function. | |
2267 | (init_cutu_and_read_dies_simple): New function. | |
2268 | (process_psymtab_comp_unit_reader): New function. | |
2269 | (process_psymtab_comp_unit): Delete args section, | |
2270 | is_debug_types_section. Rewrite. All callers updated. | |
2271 | (process_psymtab_type_unit): Renamed from process_type_comp_unit. | |
2272 | All callers updated. Rewrite. | |
2273 | (load_partial_comp_unit_reader): New function. | |
2274 | (load_partial_comp_unit): Rewrite. | |
2275 | (skip_children): New arg reader. Delete args buffer, cu. | |
2276 | All callers updated. | |
2277 | (skip_one_die): New arg reader. Delete args buffer, cu. | |
2278 | All callers updated. | |
2279 | (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu. | |
2280 | All callers updated. | |
2281 | (load_full_comp_unit_reader): New function. | |
2282 | (load_full_comp_unit): Rewrite. | |
2283 | (read_comp_unit): Delete. | |
2284 | (read_die_and_children_1): Delete, contents moved ... | |
2285 | (read_die_and_children): ... here. | |
2286 | (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated. | |
2287 | (load_partial_dies): New arg reader. Delete args abfd, buffer, cu. | |
2288 | All callers updated. | |
2289 | (read_partial_die): New arg reader. Delete args abfd, buffer, cu. | |
2290 | All callers updated. | |
2291 | (find_partial_die): Rewrite load_all_dies support. | |
2292 | (read_attribute_value): New arg reader. Delete args abfd, cu. | |
2293 | All callers updated. | |
2294 | (read_attribute): New arg reader. Delete args abfd, cu. | |
2295 | All callers updated. | |
2296 | (load_full_type_unit): Add assert. | |
2297 | (read_signatured_type_reader): New function. | |
2298 | (read_signatured_type): Rewrite. | |
2299 | (free_stack_comp_unit): Remove call to age_cached_comp_units. | |
2300 | (free_one_cached_comp_unit): Change target_cu arg to target_per_cu. | |
2301 | All callers updated. Set per_cu->cu = NULL after freeing it. | |
2302 | (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type. | |
2303 | (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash. | |
2304 | (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq. | |
2305 | (set_die_type): Update. | |
2306 | (get_die_type_at_offset): Update. | |
2307 | (read_file_scope): Call prepare_one_comp_unit. | |
2308 | (read_type_unit_scope): Ditto. | |
2309 | (prepare_one_comp_unit): Set producer if present. | |
2310 | ||
72d59e0d SDJ |
2311 | 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com> |
2312 | ||
2313 | * probe.c (compile_rx_or_error): Silence ARI warning about missing | |
2314 | gettext function on `error'. | |
2315 | ||
0fefef59 DE |
2316 | 2012-04-27 Doug Evans <dje@google.com> |
2317 | ||
2318 | * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table | |
2319 | is empty. | |
2320 | ||
28106bc2 SDJ |
2321 | 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com> |
2322 | Tom Tromey <tromey@redhat.com> | |
2323 | ||
2324 | * breakpoint.c (struct breakpoint_objfile_data) | |
2325 | <longjmp_searched>,<longjmp_probes>,<exception_searched>, | |
2326 | <exception_probes>: New fields. | |
2327 | (free_breakpoint_probes): New function. | |
2328 | (create_longjmp_master_breakpoint): Prefer SystemTap probe over | |
2329 | `_Unwind_DebugHook'. | |
2330 | (create_exception_master_breakpoint): Likewise. | |
2331 | (_initialize_breakpoint): Registering cleanup for SystemTap probes. | |
2332 | * infrun.c: Including necessary header files for handling SystemTap | |
2333 | probes. | |
2334 | (handle_inferior_event): Handling longjmp breakpoint and exceptions | |
2335 | via SystemTap probes. | |
2336 | (check_exception_resume): Remove `func' argument. Handle exception | |
2337 | unwinding breakpoint set via a SystemTap probe. | |
2338 | (insert_exception_resume_from_probe): New function. | |
2339 | ||
55aa24fb SDJ |
2340 | 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com> |
2341 | Tom Tromey <tromey@redhat.com> | |
2342 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
2343 | ||
2344 | * Makefile.in (SFILES): Add `probe' and `stap-probe'. | |
2345 | (COMMON_OBS): Likewise. | |
2346 | (HFILES_NO_SRCDIR): Add `probe'. | |
2347 | * NEWS: Mention support for static and SystemTap probes. | |
2348 | * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by | |
2349 | SystemTap probes' arguments parser. | |
2350 | * arm-linux-tdep.c: Including headers needed to perform the parsing | |
2351 | of SystemTap probes' arguments. | |
2352 | (arm_stap_is_single_operand): New function. | |
2353 | (arm_stap_parse_special_token): Likewise. | |
2354 | (arm_linux_init_abi): Initializing proper fields used by SystemTap | |
2355 | probes' arguments parser. | |
2356 | * ax-gdb.c (require_rvalue): Removing static declaration. | |
2357 | (gen_expr): Likewise. | |
2358 | * ax-gdb.h (gen_expr): Declaring function. | |
2359 | (require_rvalue): Likewise. | |
2360 | * breakpoint.c: Include `gdb_regex.h' and `probe.h'. | |
2361 | (bkpt_probe_breakpoint_ops): New variable. | |
2362 | (momentary_breakpoint_from_master): Set the `probe' value. | |
2363 | (add_location_to_breakpoint): Likewise. | |
2364 | (break_command_1): Using proper breakpoint_ops according to the | |
2365 | argument passed by the user in the command line. | |
2366 | (bkpt_probe_insert_location): New function. | |
2367 | (bkpt_probe_remove_location): Likewise. | |
2368 | (bkpt_probe_create_sals_from_address): Likewise. | |
2369 | (bkpt_probe_decode_linespec): Likewise. | |
2370 | (tracepoint_probe_create_sals_from_address): Likewise. | |
2371 | (tracepoint_probe_decode_linespec): Likewise. | |
2372 | (tracepoint_probe_breakpoint_ops): New variable. | |
2373 | (trace_command): Using proper breakpoint_ops according to the | |
2374 | argument passed by the user in the command line. | |
2375 | (initialize_breakpoint_ops): Initializing breakpoint_ops for | |
2376 | static probes on breakpoints and tracepoints. | |
2377 | * breakpoint.h (struct bp_location) <probe>: New field. | |
2378 | * cli-utils.c (skip_spaces_const): New function. | |
2379 | (extract_arg): Likewise. | |
2380 | * cli-utils.h (skip_spaces_const): Likewise. | |
2381 | (extract_arg): Likewise. | |
2382 | * coffread.c (coff_sym_fns): Add `sym_probe_fns' value. | |
2383 | * configure.ac: Append `stap-probe.o' to be generated when ELF | |
2384 | support is present. | |
2385 | * configure: Regenerate. | |
2386 | * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value. | |
2387 | * elfread.c: Include `probe.h' and `arch-utils.h'. | |
2388 | (probe_key): New variable. | |
2389 | (elf_get_probes): New function. | |
2390 | (elf_get_probe_argument_count): Likewise. | |
2391 | (elf_evaluate_probe_argument): Likewise. | |
2392 | (elf_compile_to_ax): Likewise. | |
2393 | (elf_symfile_relocate_probe): Likewise. | |
2394 | (stap_probe_key_free): Likewise. | |
2395 | (elf_probe_fns): New variable. | |
2396 | (elf_sym_fns): Add `sym_probe_fns' value. | |
2397 | (elf_sym_fns_lazy_psyms): Likewise. | |
2398 | (elf_sym_fns_gdb_index): Likewise. | |
2399 | (_initialize_elfread): Initialize objfile cache for static | |
2400 | probes. | |
2401 | * gdb_vecs.h (struct probe): New forward declaration. | |
2402 | (probe_p): New VEC declaration. | |
2403 | * gdbarch.c: Regenerate. | |
2404 | * gdbarch.h: Regenerate. | |
2405 | * gdbarch.sh (stap_integer_prefix): New variable. | |
2406 | (stap_integer_suffix): Likewise. | |
2407 | (stap_register_prefix): Likewise. | |
2408 | (stap_register_suffix): Likewise. | |
2409 | (stap_register_indirection_prefix): Likewise. | |
2410 | (stap_register_indirection_suffix): Likewise. | |
2411 | (stap_gdb_register_prefix): Likewise. | |
2412 | (stap_gdb_register_suffix): Likewise. | |
2413 | (stap_is_single_operand): New function. | |
2414 | (stap_parse_special_token): Likewise. | |
2415 | (struct stap_parse_info): Forward declaration. | |
2416 | * i386-tdep.c: Including headers needed to perform the parsing | |
2417 | of SystemTap probes' arguments. | |
2418 | (i386_stap_is_single_operand): New function. | |
2419 | (i386_stap_parse_special_token): Likewise. | |
2420 | (i386_elf_init_abi): Initializing proper fields used by SystemTap | |
2421 | probes' arguments parser. | |
2422 | * i386-tdep.h (i386_stap_is_single_operand): New function. | |
2423 | (i386_stap_parse_special_token): Likewise. | |
2424 | * machoread.c (macho_sym_fns): Add `sym_probe_fns' value. | |
2425 | * mipsread.c (ecoff_sym_fns): Likewise. | |
2426 | * objfiles.c (objfile_relocate1): Support relocation for static | |
2427 | probes. | |
2428 | * parse.c (prefixify_expression): Remove static declaration. | |
2429 | (initialize_expout): Likewise. | |
2430 | (reallocate_expout): Likewise. | |
2431 | * parser-defs.h (initialize_expout): Declare function. | |
2432 | (reallocate_expout): Likewise. | |
2433 | (prefixify_expression): Likewise. | |
2434 | * ppc-linux-tdep.c: Including headers needed to perform the parsing | |
2435 | of SystemTap probes' arguments. | |
2436 | (ppc_stap_is_single_operand): New function. | |
2437 | (ppc_stap_parse_special_token): Likewise. | |
2438 | (ppc_linux_init_abi): Initializing proper fields used by SystemTap | |
2439 | probes' arguments parser. | |
2440 | * probe.c: New file, for generic statically defined probe support. | |
2441 | * probe.h: Likewise. | |
2442 | * s390-tdep.c: Including headers needed to perform the parsing of | |
2443 | SystemTap probes' arguments. | |
2444 | (s390_stap_is_single_operand): New function. | |
2445 | (s390_gdbarch_init): Initializing proper fields used by SystemTap | |
2446 | probes' arguments parser. | |
2447 | * somread.c (som_sym_fns): Add `sym_probe_fns' value. | |
2448 | * stap-probe.c: New file, for SystemTap probe support. | |
2449 | * stap-probe.h: Likewise. | |
2450 | * symfile.h: Include `gdb_vecs.h'. | |
2451 | (struct sym_probe_fns): New struct. | |
2452 | (struct sym_fns) <sym_probe_fns>: New field. | |
2453 | * symtab.c (init_sal): Initialize `probe' field. | |
2454 | * symtab.h (struct probe): Forward declaration. | |
2455 | (struct symtab_and_line) <probe>: New field. | |
2456 | * tracepoint.c (start_tracing): Adjust semaphore on breakpoints | |
2457 | locations. | |
2458 | (stop_tracing): Likewise. | |
2459 | * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value. | |
2460 | ||
22d2b532 SDJ |
2461 | 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com> |
2462 | Tom Tromey <tromey@redhat.com> | |
2463 | ||
2464 | * ax-gdb.c (gen_expr): Clean up code to handle internal variables | |
2465 | and to compile agent expressions. | |
2466 | * infrun.c (siginfo_make_value): New argument `ignore'. | |
2467 | (siginfo_funcs): New struct. | |
2468 | (_initialize_infrun): New argument when calling | |
2469 | `create_internalvar_type_lazy'. | |
2470 | * thread.c (thread_id_make_value): New argument `ignore'. | |
2471 | (thread_funcs): New struct. | |
2472 | (_initialize_thread): New argument when calling | |
2473 | `create_internalvar_type_lazy'. | |
2474 | * tracepoint.c (sdata_make_value): New argument `ignore'. | |
2475 | (sdata_funcs): New struct. | |
2476 | (_initialize_tracepoint): New argument when calling | |
2477 | `create_internalvar_type_lazy'. | |
2478 | * value.c (make_value): New struct. | |
2479 | (create_internalvar_type_lazy): New argument `data'. | |
2480 | (compile_internalvar_to_ax): New function. | |
2481 | (value_of_internalvar): Properly handling `make_value' case. | |
2482 | (clear_internalvar): Likewise. | |
2483 | (show_convenience): Adding `TRY_CATCH' block. | |
2484 | * value.h (internalvar_make_value): Delete, replace by... | |
2485 | (struct internalvar_funcs): ... this. | |
2486 | (create_internalvar_type_lazy) <fun>: Delete argument. | |
2487 | (create_internalvar_type_lazy) <funcs>, <data>: New arguments. | |
2488 | (compile_internalvar_to_ax): New function. | |
2489 | * windows-tdep.c (tlb_make_value): New argument `ignore'. | |
2490 | (tlb_funcs): New struct. | |
2491 | (_initialize_windows_tdep): New argument when calling | |
2492 | `create_internalvar_type_lazy'. | |
2493 | ||
91da1414 MW |
2494 | 2012-04-27 Mark Wielaard <mjw@redhat.com> |
2495 | ||
2496 | * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to | |
2497 | see whether it is an address or a constant offset from DW_AT_low_pc. | |
2498 | (dwarf2_record_block_ranges): Likewise. | |
2499 | (read_partial_die): Likewise. | |
2500 | ||
4ab9d8ec MW |
2501 | 2012-04-26 Mark Wielaard <mjw@redhat.com> |
2502 | ||
2503 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
2504 | ||
a0911fd0 MR |
2505 | 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com> |
2506 | ||
2507 | * proc-utils.h (proc_prettyprint_signalset): New prototype. | |
2508 | (proc_prettyprint_signal): Likewise. | |
2509 | (proc_prettyprint_faultset): Likewise. | |
2510 | (proc_prettyprint_fault): Likewise. | |
2511 | (proc_prettyprint_actionset): Likewise. | |
2512 | (proc_prettyprint_flags): Move to new proc-flags.c section. | |
2513 | (proc_prettyfprint_flags): New prototype. | |
2514 | * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes. | |
2515 | (proc_syscall, proc_cursig): Likewise. | |
2516 | (proc_set_kill_on_last_close): Likewise. | |
2517 | (proc_unset_kill_on_last_close): Likewise. | |
2518 | (proc_set_watchpoint): Make static. | |
2519 | (proc_delete_dead_threads): Likewise. | |
2520 | (procfs_set_watchpoint): Likewise. | |
2521 | (_initialize_procfs): Add prototype. | |
2522 | * proc-events.c: Include proc-utils.h. | |
2523 | (init_syscall_table): Make static. | |
2524 | * proc-api.c (_initialize_proc_api): Add prototype. | |
2525 | * proc-flags.c: Include proc-utils.h. | |
2526 | ||
9009e1ae MR |
2527 | 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com> |
2528 | ||
2529 | * configure.ac: Add AC_ARG_PROGRAM. | |
2530 | * configure: Regenerate. | |
2531 | ||
4fae6e18 JK |
2532 | 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
2533 | ||
2534 | Fix DW_AT_lower_bound defaults for DWARF-4+. | |
2535 | * dwarf2read.c (read_subrange_type): Remove initialization of low and | |
2536 | high. New variable low_default_is_valid. Implement DWARF-4+ | |
2537 | DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with | |
2538 | no default by the DWARF standard. | |
2539 | ||
14132e89 MR |
2540 | 2012-04-26 Maciej W. Rozycki <macro@mips.com> |
2541 | Maciej W. Rozycki <macro@codesourcery.com> | |
2542 | ||
2543 | * infrun.c (handle_inferior_event): Move the check for return | |
2544 | trampolines ahead of the check for function trampolines. | |
2545 | * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros. | |
2546 | * mips-tdep.c (mips_str_mips16_call_stub): New variable. | |
2547 | (mips_str_mips16_ret_stub): Likewise. | |
2548 | (mips_str_call_fp_stub): Likewise. | |
2549 | (mips_str_call_stub): Likewise. | |
2550 | (mips_str_fn_stub): Likewise. | |
2551 | (mips_str_pic): Likewise. | |
2552 | (mips_in_frame_stub): New function. | |
2553 | (mips_unwind_pc): Return the return address rather than the PC | |
2554 | if the PC of an intermediate frame is inside a call thunk. | |
2555 | (mips_is_stub_suffix): New function. | |
2556 | (mips_is_stub_mode): Likewise. | |
2557 | (mips_get_mips16_fn_stub_pc): Likewise. | |
2558 | (mips_skip_mips16_trampoline_code): Update to handle all the | |
2559 | currently generated stub types. Don't recurse into __fn_stub | |
2560 | thunks. Remove heuristics to handle stubs beyond etext/_etext. | |
2561 | Use cooked register accesses. | |
2562 | (mips_in_return_stub): Reintroduce function. | |
2563 | (mips_skip_trampoline_code): Traverse trampolines recursively. | |
2564 | (mips_gdbarch_init): Handle MIPS16 return trampolines. | |
2565 | ||
518f0db5 | 2566 | 2012-04-26 Joel Brobecker <brobecker@adacore.com> |
2567 | ||
2568 | GDB 7.4.1 released. | |
2569 | ||
3184d3f9 JL |
2570 | 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com> |
2571 | ||
2572 | * arm-tdep.h (VFP_REGISTER_SIZE): Define. | |
2573 | * features/arm-with-m-vfp-d16.xml: New file. Describes | |
2574 | Cortex-M with VFPv4-sp-d16 FPU register layout. | |
2575 | * features/Makefile (WHICH): Add arm-with-m-vfp-d16. | |
2576 | * features/arm-with-m-vfp-d16.c: New. Generated from above. | |
2577 | * arm-tdep.c: Include arm-with-m-vfp-d16.c. | |
2578 | (arm-register_g_packet_guesses): Add vfp-d16 guess. | |
2579 | (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc. | |
2580 | ||
b6201d44 DE |
2581 | 2012-04-25 Doug Evans <dje@google.com> |
2582 | ||
2583 | * cli/cli-decode.c (print_doc_line): Use stream instead of | |
2584 | current_uiout. | |
2585 | ||
4e2f8df6 SDJ |
2586 | 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com> |
2587 | ||
2588 | * features/arm-with-iwmmxt.c: Regenerate. | |
2589 | * features/arm-with-m-fpa-layout.c: Likewise. | |
2590 | * features/arm-with-m.c: Likewise. | |
2591 | * features/arm-with-neon.c: Likewise. | |
2592 | * features/arm-with-vfpv2.c: Likewise. | |
2593 | * features/arm-with-vfpv3.c: Likewise. | |
2594 | * features/mips-dsp-linux.c: Likewise. | |
2595 | * features/mips-linux.c: Likewise. | |
2596 | * features/mips64-dsp-linux.c: Likewise. | |
2597 | * features/mips64-linux.c: Likewise. | |
2598 | * features/s390-linux32.c: Likewise. | |
2599 | * features/s390-linux32v1.c: Likewise. | |
2600 | * features/s390-linux32v2.c: Likewise. | |
2601 | * features/s390-linux64.c: Likewise. | |
2602 | * features/s390-linux64v1.c: Likewise. | |
2603 | * features/s390-linux64v2.c: Likewise. | |
2604 | * features/s390x-linux64.c: Likewise. | |
2605 | * features/s390x-linux64v1.c: Likewise. | |
2606 | * features/s390x-linux64v2.c: Likewise. | |
2607 | * features/tic6x-c62x-linux.c: Likewise. | |
2608 | * features/tic6x-c62x.c: Likewise. | |
2609 | * features/tic6x-c64x-linux.c: Likewise. | |
2610 | * features/tic6x-c64x.c: Likewise. | |
2611 | * features/tic6x-c64xp-linux.c: Likewise. | |
2612 | * features/tic6x-c64xp.c: Likewise. | |
2613 | * target-descriptions.c: Only generate `field_type' and `type' | |
2614 | variables when needed. | |
2615 | ||
2def3e66 JB |
2616 | 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com> |
2617 | ||
2618 | * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy. | |
2619 | ||
a766d390 DE |
2620 | 2012-04-25 Doug Evans <dje@google.com> |
2621 | ||
2622 | Initial pass at Go language support. | |
2623 | * NEWS: Mention Go. | |
2624 | * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c, | |
2625 | go-valprint.c. | |
2626 | (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o. | |
2627 | (YYFILES): Add go-exp.c. | |
2628 | (YYOBJ): Add go-exp.o. | |
2629 | (local-maintainer-clean): Delete go-exp.c. | |
2630 | * defs.h (enum language): Add language_go. | |
2631 | * dwarf2read.c: #include "go-lang.h". | |
2632 | (fixup_go_packaging): New function. | |
2633 | (process_full_comp_unit): Call it when processing Go CUs. | |
2634 | (dwarf2_physname): Add Go support. | |
2635 | (read_file_scope): Handle missing language spec for GNU Go. | |
2636 | (set_cu_language): Handle DW_LANG_Go. | |
2637 | * go-exp.y: New file. | |
2638 | * go-lang.h: New file. | |
2639 | * go-lang.c: New file. | |
2640 | * go-typeprint.c: New file. | |
2641 | * go-valprint.c: New file. | |
2642 | * symtab.c: #include "go-lang.h". | |
2643 | (symbol_set_language): Handle language_go. | |
2644 | (symbol_find_demangled_name, symbol_set_names): Ditto. | |
2645 | (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto. | |
2646 | ||
4e2af517 JM |
2647 | 2012-04-24 Jim Meyering <meyering@redhat.com> |
2648 | ||
2649 | avoid a few strncpy-induced buffer overruns | |
2650 | * procfs.c (procfs_make_note_section): Be sure to NUL-terminate | |
2651 | fname and psargs before trying to concatenate. | |
2652 | * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate | |
2653 | "name" before applying strchr. | |
2654 | ||
b77b7f52 SCR |
2655 | 2012-04-25 Siva Chandra Reddy <sivachandra@google.com> |
2656 | ||
2657 | * CONTRIBUTE: Use unified diff instead of context diff when | |
2658 | generating patches. | |
2659 | ||
6321c22a MR |
2660 | 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com> |
2661 | ||
2662 | * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support | |
2663 | code. Handle JR.HB correctly. | |
2664 | ||
742c84f6 MR |
2665 | 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com> |
2666 | ||
2667 | * mips-tdep.c | |
2668 | (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group | |
2669 | with the other MIPS16 helpers. | |
2670 | ||
7fc7e0c3 SDJ |
2671 | 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com> |
2672 | ||
2673 | * observer.sh: Conditionally declare `args', thus cleaning up | |
2674 | unused instances of this variable. | |
2675 | ||
20388dd6 YQ |
2676 | 2012-04-24 Yao Qi <yao@codesourcery.com> |
2677 | ||
2678 | Revert this patch to allow breakpoint always-inserted | |
2679 | in record target. | |
2680 | 2011-12-05 Pedro Alves <pedro@codesourcery.com> | |
2681 | * breakpoint.c: Include record.h. | |
2682 | (breakpoints_always_inserted_mode): Return false when the record | |
2683 | target is in use. | |
2684 | ||
2685 | * breakpoint.c (iterate_over_bp_locations): New. | |
2686 | * breakpoint.h: Declare. | |
2687 | New typedef walk_bp_location_callback. | |
2688 | * record.c (record_open): Call record_init_record_breakpoints. | |
2689 | (record_sync_record_breakpoints): New. | |
2690 | (record_init_record_breakpoints): New. | |
2691 | * NEWS: Mention supporting breakpoint always-inserted mode in | |
2692 | record target. | |
2693 | ||
4734f50e MK |
2694 | 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com> |
2695 | ||
2696 | * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just | |
2697 | any thread. | |
2698 | ||
c326b90e YQ |
2699 | 2012-04-24 Yao Qi <yao@codesourcery.com> |
2700 | ||
2701 | * breakpoint.c (ep_is_catchpoint): Renamed to ... | |
2702 | (is_catchpoint): ... it. | |
2703 | (print_one_breakpoint_location): Caller update. | |
2704 | * breakpoint.h: Update declaration. | |
2705 | ||
d8fb5a1e DM |
2706 | 2012-04-23 David S. Miller <davem@davemloft.net> |
2707 | ||
2708 | * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes. | |
2709 | ||
34431a2a TT |
2710 | 2012-04-23 Tom Tromey <tromey@redhat.com> |
2711 | ||
2712 | * buildsym.c (add_free_pendings): Remove. | |
2713 | * buildsym.h (add_free_pendings): Remove. | |
2714 | ||
4568ecf9 DE |
2715 | 2012-04-23 Doug Evans <dje@google.com> |
2716 | ||
2717 | * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in | |
2718 | attr.u.unsnd instead of attr.u.addr. | |
2719 | (read_attribute_value) Ditto for cases DW_FORM_ref_addr, | |
2720 | DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8, | |
2721 | DW_FORM_ref_udata. | |
2722 | (dump_die_shallow): Update cases DW_FORM_ref_addr, | |
2723 | DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8, | |
2724 | DW_FORM_ref_udata. | |
2725 | (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes. | |
2726 | ||
dca9aa3a MR |
2727 | 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com> |
2728 | ||
2729 | * mips-tdep.c (mips_n32n64_return_value): Fix coding style. | |
2730 | (mips_o32_return_value): Likewise. | |
2731 | (mips_o64_return_value): Likewise. | |
2732 | ||
c8ea1972 PH |
2733 | 2012-04-21 Paul Hilfinger <hilfinger@adacore.com> |
2734 | ||
2735 | * ada-lang.c (ada_evaluate_subexp): Add cases for | |
2736 | TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following | |
2737 | their treatment in eval.c. | |
2738 | ||
8d1b3521 DM |
2739 | 2012-04-21 David S. Miller <davem@davemloft.net> |
2740 | ||
2741 | * sparc-tdep.c (X_DISP10): Define. | |
2742 | (sparc_analyze_control_transfer): Handle compare-and-branch. | |
2743 | ||
03145bf4 JL |
2744 | 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com> |
2745 | ||
2746 | * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout. | |
2747 | * arm-tdep.c (arm_register_g_packet_guesses): Fix comment. | |
2748 | ||
004159a2 MR |
2749 | 2012-04-20 Nigel Stephens <nigel@mips.com> |
2750 | Maciej W. Rozycki <macro@codesourcery.com> | |
2751 | ||
2752 | * mips-tdep.c (mips_float_register_p): New function. | |
2753 | (mips_convert_register_float_case_p): Use mips_float_register_p. | |
2754 | (mips_register_type): Likewise. | |
2755 | (mips_print_register): Likewise. | |
2756 | (print_gp_register_row): Likewise. | |
2757 | (mips_print_registers_info): Likewise. | |
2758 | ||
7f0e6aae MR |
2759 | 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com> |
2760 | ||
2761 | * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification | |
2762 | of mips16 symbols. | |
2763 | ||
bc17beea AP |
2764 | 2012-04-20 Andrew Pinski <apinski@cavium.com> |
2765 | ||
2766 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
2767 | ||
1730a5a5 SDJ |
2768 | 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2769 | ||
2770 | * MAINTAINERS: Update my e-mail address. | |
2771 | ||
38ea300a PA |
2772 | 2012-04-20 Pedro Alves <palves@redhat.com> |
2773 | ||
2774 | * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute | |
2775 | $srcdir. | |
2776 | * configure: Regenerate. | |
2777 | ||
111dfaae SDJ |
2778 | 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2779 | ||
2780 | * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC | |
2781 | declaration. | |
2782 | * gdb_vecs.h: Declare `const_char_ptr' VEC. | |
2783 | ||
4fb2c64a JK |
2784 | 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2785 | ||
2786 | Fix compilation compatibility with python-2.4 | |
2787 | * python/py-type.c (convert_field): Cast ADDRSTRING for | |
2788 | PyObject_SetAttrString as non-const. New comment. | |
2789 | ||
6328eb38 TT |
2790 | 2012-04-19 Tom Tromey <tromey@redhat.com> |
2791 | ||
2792 | * top.c (quit_target): Use all_cleanups. | |
2793 | * main.c (captured_command_loop): Use all_cleanups. | |
2794 | * exceptions.c (throw_exception): Use all_cleanups. | |
2795 | ||
c971b7fa PA |
2796 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2797 | ||
2798 | * Makefile.in (GNULIB_BUILDDIR): New. | |
2799 | (LIBGNU, INCGNU, GNULIB_H): Adjust. | |
2800 | (SUBDIRS): Add $(GNULIB_BUILDDIR). | |
2801 | (CLEANDIRS). Remove gnulib/import. | |
2802 | (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR). | |
2803 | (all-lib): Ditto. | |
2804 | (distclean): Remove the $(GNULIB_BUILDDIR) directory. | |
2805 | (gnulib/import/Makefile): Replace gnulib/import with | |
2806 | $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile. | |
2807 | (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'. | |
2808 | (aclocal_m4_deps): Remove the gnulib dependencies. Add | |
2809 | acx_configure_dir.m4. | |
2810 | * acinclude.m4: Include acx_configure_dir.m4. | |
2811 | * acx_configure_dir.m4: New file. | |
2812 | * aclocal.m4: Regenerate. | |
a09130f9 PA |
2813 | * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE |
2814 | calls. Configure gnulib using ACX_CONFIGURE_DIR. | |
2815 | (GNULIB): New variable. | |
2816 | (GNULIB_STDINT_H): Adjust. | |
2817 | (AC_OUTPUT): Don't output gnulib/Makefile. | |
2818 | * gdb/defs.h: Include build-gnulib/config.h. | |
2819 | * aclocal.m4: Regenerate. | |
2820 | * config.in: Regenerate. | |
2821 | * configure: Regenerate. | |
2822 | ||
2823 | * gnulib/Makefile.in: New file. | |
2824 | * gnulib/configure.ac: New file. | |
2825 | * gnulib/aclocal.m4: New file. | |
2826 | * gnulib/config.in: New file. | |
2827 | * gnulib/configure: New file. | |
c971b7fa PA |
2828 | * gnulib/: Re-run gnulib-tool to adjust. |
2829 | ||
b10faa68 DE |
2830 | 2012-04-19 Doug Evans <dje@google.com> |
2831 | ||
2832 | * cleanups.h (struct cleanup): Move to cleanups.c. | |
2833 | (make_cleanup_dtor_ftype): New typedef. | |
2834 | (make_cleanup_dtor): Use it. | |
2835 | (ALL_CLEANUPS): Replace with ... | |
2836 | (all_cleanups): ... this. Declare. All uses updated. | |
2837 | * cleanups.c: #include "gdb_assert.h". | |
2838 | (sentinel_cleanup): New static global. | |
2839 | (SENTINEL_CLEANUP): Define. | |
2840 | (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP. | |
2841 | (make_my_cleanup2): Assert result is non-NULL. | |
2842 | (all_cleanups): New function. | |
2843 | (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead | |
2844 | of NULL. | |
2845 | ||
d8c267cc PA |
2846 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2847 | ||
2848 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h. | |
2849 | Adjust paths to gnulib imported files. | |
2850 | ||
809277f8 PA |
2851 | 2012-04-19 Pedro Alves <palves@redhat.com> |
2852 | ||
2853 | * gnulib/: Move whole directory ... | |
2854 | * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust. | |
2855 | * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS) | |
2856 | (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS) | |
2857 | (aclocal_m4_deps): Adjust. | |
2858 | * aclocal.m4: Regenerate. | |
2859 | * configure: Regenerate. | |
2860 | * configure.ac: Adjust AC_OUTPUT output. | |
2861 | ||
aad9eab9 YQ |
2862 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
2863 | ||
2864 | * Makefile.in (SFILES): Add common/vec.c and remove vec.c. | |
2865 | (vec.o): New rule. | |
2866 | * vec.c: Move it ... | |
2867 | * common/vec.c: ... here. | |
2868 | * vec.h: Move it ... | |
2869 | * common/vec.h: ... here. | |
2870 | ||
48fe4669 YQ |
2871 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
2872 | ||
2873 | * gdb-code-style.el: New. | |
2874 | ||
770d76d7 PA |
2875 | 2012-04-18 Pedro Alves <palves@redhat.com> |
2876 | ||
2877 | Update gnulib from latest git. | |
2878 | (639ea5ae15e39fe48d43e04864b2997301e4b969) | |
2879 | ||
2880 | * gnulib/Makefile.am: Update. | |
2881 | * gnulib/dummy.c: Update. | |
2882 | * gnulib/extra/arg-nonnull.h: Update. | |
2883 | * gnulib/extra/c++defs.h: Update. | |
2884 | * gnulib/extra/update-copyright: Update. | |
2885 | * gnulib/extra/warn-on-use.h: Update. | |
2886 | * gnulib/inttypes.in.h: Update. | |
2887 | * gnulib/m4/00gnulib.m4: Update. | |
2888 | * gnulib/m4/extensions.m4: Update. | |
2889 | * gnulib/m4/gnulib-cache.m4: Update. | |
2890 | * gnulib/m4/gnulib-common.m4: Update. | |
2891 | * gnulib/m4/gnulib-comp.m4: Update. | |
2892 | * gnulib/m4/gnulib-tool.m4: Update. | |
2893 | * gnulib/m4/include_next.m4: Update. | |
2894 | * gnulib/m4/inttypes-pri.m4: Update. | |
2895 | * gnulib/m4/inttypes.m4: Update. | |
2896 | * gnulib/m4/longlong.m4: Update. | |
2897 | * gnulib/m4/memchr.m4: Update. | |
2898 | * gnulib/m4/memmem.m4: Update. | |
2899 | * gnulib/m4/mmap-anon.m4: Update. | |
2900 | * gnulib/m4/multiarch.m4: Update. | |
2901 | * gnulib/m4/onceonly.m4: Update. | |
2902 | * gnulib/m4/stddef_h.m4: Update. | |
2903 | * gnulib/m4/stdint.m4: Update. | |
2904 | * gnulib/m4/string_h.m4: Update. | |
2905 | * gnulib/m4/warn-on-use.m4: Update. | |
2906 | * gnulib/m4/wchar_h.m4: Update. | |
2907 | * gnulib/m4/wchar_t.m4: Update. | |
2908 | * gnulib/m4/wint_t.m4: Update. | |
2909 | * gnulib/memchr.c: Update. | |
2910 | * gnulib/memmem.c: Update. | |
2911 | * gnulib/stddef.in.h: Update. | |
2912 | * gnulib/stdint.in.h: Update. | |
2913 | * gnulib/str-two-way.h: Update. | |
2914 | * gnulib/string.in.h: Update. | |
2915 | * gnulib/wchar.in.h: Update. | |
2916 | ||
2917 | * gnulib/extra/arg-nonnull.h: Delete. | |
2918 | * gnulib/extra/c++defs.h: Delete. | |
2919 | * gnulib/extra/warn-on-use.h: Delete. | |
2920 | * gnulib/m4/wchar_h.m4: Delete. | |
2921 | * gnulib/m4/wint_t.m4: Delete. | |
2922 | * gnulib/wchar.in.h: Delete. | |
2923 | ||
2924 | * gnulib/extra/snippets/arg-nonnull.h: New. | |
2925 | * gnulib/extra/snippets/c++defs.h: New. | |
2926 | * gnulib/extra/snippets/warn-on-use.h: New. | |
2927 | ||
2928 | * aclocal.m4: Regenerate. | |
2929 | * config.in: Regenerate. | |
2930 | * configure: Regenerate. | |
2931 | * gnulib/Makefile.in: Regenerate. | |
2932 | ||
174e088e PA |
2933 | 2012-04-18 Pedro Alves <palves@redhat.com> |
2934 | ||
2935 | Reimport the update-copyright module from gnulib | |
2936 | (250b80067c1e1d8faa0c42fb572f721975b929c5). | |
2937 | ||
2938 | * configure: Regenerate. | |
2939 | * gnulib/Makefile.am: Update. | |
2940 | * gnulib/Makefile.in: Regenerate. | |
2941 | * gnulib/extra/update-copyright: Update. | |
2942 | * gnulib/m4/gnulib-cache.m4: Update. | |
2943 | * gnulib/m4/gnulib-comp.m4: Update. | |
2944 | ||
7f533142 JB |
2945 | 2012-04-18 Tristan Gingold <gingold@adacore.com> |
2946 | ||
2947 | * configure.ac (aix): Put -lpthread into libs. | |
2948 | * configure: Regenerate. | |
2949 | ||
001822aa TT |
2950 | 2012-04-18 Tom Tromey <tromey@redhat.com> |
2951 | ||
2952 | * linespec.c (convert_linespec_to_sals): Don't use | |
2953 | SYMBOL_OBJ_SECTION. | |
2954 | (compare_msymbols): Arguments are minsym_and_objfile, not | |
2955 | minimal_symbol*. Don't use SYMBOL_OBJ_SECTION. | |
2956 | ||
db026a31 PA |
2957 | 2012-04-18 Pedro Alves <palves@redhat.com> |
2958 | ||
2959 | Revert gnulib/ part of: | |
2960 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> | |
2961 | Copyright year update in most files (performed by copyright.sh). | |
2962 | ||
12df843f JK |
2963 | 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2964 | ||
2965 | Fix 64-bit constants on 32-bit hosts. | |
2966 | * dwarf2read.c (read_unsigned_leb128): Change declaration return type | |
2967 | from unsigned long to ULONGEST. | |
2968 | (read_signed_leb128): Change declaration return type from long to | |
2969 | LONGEST. | |
2970 | (dwarf2_const_value_attr): Change declaration parameter value from long | |
2971 | to LONGEST. | |
2972 | (dwarf2_compute_name): Change variable value from long to LONGEST. | |
2973 | (read_unsigned_leb128): Change return type, variable result and some | |
2974 | casts from unsigned long to ULONGEST. | |
2975 | (read_signed_leb128): Change return type, variable result and some | |
2976 | casts from long to LONGEST. | |
2977 | (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter | |
2978 | value from long to LONGEST. | |
2979 | (dwarf2_const_value): Change variable value from long to LONGEST. | |
2980 | * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use | |
2981 | plongest and hex_string. | |
2982 | * symtab.h (struct general_symbol_info): Change ivalue from long to | |
2983 | LONGEST, remove the comment. | |
2984 | * tracepoint.c (validate_actionline, collect_symbol, scope_info): | |
2985 | Change SYMBOL_VALUE format strings to use plongest and hex_string. | |
2986 | ||
14e75d8e JK |
2987 | 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com> |
2988 | ||
2989 | PR symtab/7259: | |
2990 | * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL. | |
2991 | * ada-lang.c (ada_discrete_type_high_bound) | |
ac4ea3c2 JK |
2992 | (ada_discrete_type_low_bound): Fix function comment. Use |
2993 | TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM. | |
14e75d8e JK |
2994 | (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL. |
2995 | (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM. | |
2996 | * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST. | |
2997 | Use TYPE_FIELD_ENUMVAL. | |
2998 | * ada-valprint.c (print_optional_low_bound, ada_print_scalar) | |
2999 | (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM. | |
3000 | * c-typeprint.c (c_type_print_base): Move variable lastval to inner | |
3001 | block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for | |
3002 | TYPE_CODE_ENUM. | |
3003 | * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL. | |
3004 | * dwarf2read.c (process_enumeration_scope): Likewise. | |
3005 | * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of | |
3006 | field.bitpos. | |
3007 | (class StructMainTypePrettyPrinter): Support also | |
3008 | FIELD_LOC_KIND_ENUMVAL. | |
3009 | * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for | |
3010 | TYPE_CODE_ENUM. | |
3011 | (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM. | |
3012 | (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL. | |
3013 | * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL. | |
3014 | (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New | |
3015 | field enumval. | |
3016 | (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to | |
3017 | accommodate enumval. | |
3018 | (struct call_site): Adjust loc_kind to accommodate enumval. | |
3019 | (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL) | |
3020 | (TYPE_FIELD_ENUMVAL): New macros. | |
3021 | * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL. | |
3022 | * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for | |
3023 | TYPE_CODE_ENUM. | |
3024 | * p-typeprint.c (pascal_type_print_base): Likewise. | |
3025 | * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use | |
3026 | enumval. | |
3027 | * python/lib/gdb/types.py (make_enum_dict): Likewise. | |
3028 | * python/py-type.c (convert_field): New variable addrstring. Use | |
3029 | TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM. | |
3030 | (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL. | |
3031 | * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL. | |
3032 | * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for | |
3033 | TYPE_CODE_ENUM. | |
3034 | * valprint.c (generic_val_print): Likewise. | |
3035 | ||
380bca97 DE |
3036 | 2012-04-17 Doug Evans <dje@google.com> |
3037 | ||
dcc07052 DE |
3038 | * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0. |
3039 | ||
380bca97 DE |
3040 | * dwarf2read.c: Whitespace fixes. |
3041 | (lookup_signatured_type): Tweak comment. | |
3042 | (get_die_type_at_offset): Fix comment. | |
3043 | ||
ec92004f JB |
3044 | 2012-04-17 Joel Brobecker <brobecker@adacore.com> |
3045 | ||
3046 | * xcoffread.c (xcoff_secnum_to_sections): New function. | |
3047 | (secnum_to_section, secnum_to_bfd_section): Reimplement | |
3048 | using xcoff_secnum_to_sections. Rename "secnum" parameter | |
3049 | into "n_scnum". | |
3050 | (RECORD_MINIMAL_SYMBOL): Delete. | |
3051 | (record_minimal_symbol): New function. | |
3052 | (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL | |
3053 | by call to record_minimal_symbol and set misc_func_recorded | |
3054 | to 1. Set last_csect_sec to the XCOFF section index instead | |
3055 | of GDB's section_offset index. Update calls to | |
3056 | prim_record_minimal_symbol_and_info to pass the BFD section | |
3057 | as well. | |
3058 | ||
40301fb7 JB |
3059 | 2012-04-17 Joel Brobecker <brobecker@adacore.com> |
3060 | ||
3061 | * xcoffread.c (read_xcoff_symtab): Delete variables | |
3062 | last_csect_val and last_csect_sec and associated code. | |
3063 | ||
e0088cfd DE |
3064 | 2012-04-17 Doug Evans <dje@google.com> |
3065 | ||
58d5e2c3 DE |
3066 | * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static. |
3067 | (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto. | |
3068 | * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete | |
3069 | (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete. | |
3070 | ||
c27f5738 DE |
3071 | * cleanups.h: New file. |
3072 | * cleanups.c: New file. | |
3073 | * Makefile.in (SFILES): Add cleanups.c. | |
3074 | (HFILES_NO_SRCDIR): Add cleanups.h. | |
3075 | (COMMON_OBS): Add cleanups.o. | |
3076 | * defs.h (struct cleanup): Moved to cleanups.h. | |
3077 | (do_cleanups,do_final_cleanups): Ditto. | |
3078 | (discard_cleanups,discard_final_cleanups): Ditto | |
3079 | (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto. | |
3080 | (save_cleanups,save_final_cleanups): Ditto. | |
3081 | (restore_cleanups,restore_final_cleanups): Ditto. | |
3082 | (null_cleanup): Ditto. | |
3083 | (make_my_cleanup,make_my_cleanup2): Ditto. | |
3084 | (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto. | |
3085 | * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c. | |
3086 | (do_cleanups,do_final_cleanups): Ditto. | |
3087 | (discard_cleanups,discard_final_cleanups): Ditto | |
3088 | (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto. | |
3089 | (save_cleanups,save_final_cleanups): Ditto. | |
3090 | (restore_cleanups,restore_final_cleanups): Ditto. | |
3091 | (null_cleanup): Ditto. | |
3092 | (make_my_cleanup,make_my_cleanup2): Ditto. | |
3093 | (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto. | |
3094 | ||
e0088cfd DE |
3095 | * utils.c (make_cleanup_freeargv): Use make_cleanup instead of |
3096 | make_my_cleanup. | |
3097 | (make_cleanup_dyn_string_delete): Ditto. | |
3098 | (make_cleanup_ui_file_delete): Ditto. | |
3099 | (make_cleanup_ui_out_redirect_pop): Ditto. | |
3100 | (make_cleanup_free_section_addr_info): Ditto. | |
3101 | (make_cleanup_restore_integer): Ditto. | |
3102 | (make_cleanup_unpush_target): Ditto. | |
3103 | (make_cleanup_value_free_to_mark): Ditto. | |
3104 | (make_cleanup_value_free): Ditto. | |
3105 | (make_cleanup_free_so): Ditto. | |
3106 | ||
4dc84fd1 JK |
3107 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3108 | ||
3109 | New option "set debug auto-load". | |
3110 | * NEWS: New commands "set debug auto-load" and "show debug auto-load". | |
3111 | * auto-load.c (debug_auto_load, show_debug_auto_load: New. | |
3112 | (auto_load_safe_path_vec_update) | |
3113 | (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered | |
3114 | if DEBUG_AUTO_LOAD. | |
3115 | (file_is_auto_load_safe): New parameters debug_fmt and .... | |
3116 | Call fprintf_unfiltered if DEBUG_AUTO_LOAD. | |
3117 | (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe | |
3118 | caller by explanatory string. | |
3119 | (_initialize_auto_load): Register "set debug auto-load". | |
3120 | * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt | |
3121 | and .... | |
3122 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
3123 | (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller | |
3124 | by explanatory string. | |
3125 | * main.c (captured_main): Likewise. | |
3126 | * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile) | |
3127 | (source_section_scripts): Likewise. | |
3128 | ||
bccbefd2 JK |
3129 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3130 | ||
3131 | New option "set auto-load safe-path". | |
3132 | * NEWS: New commands "set auto-load safe-path" | |
3133 | and "show auto-load safe-path". | |
3134 | * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h. | |
3135 | (auto_load_safe_path, auto_load_safe_path_vec) | |
3136 | (auto_load_safe_path_vec_update, set_auto_load_safe_path) | |
3137 | (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir) | |
3138 | (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New. | |
3139 | (source_gdb_script_for_objfile): New variable is_safe. Call | |
3140 | file_is_auto_load_safe. Return if it is not. | |
3141 | (struct loaded_script): New field loaded. | |
3142 | (maybe_add_script): Add parameter loaded. Initialize SLOT with it. | |
3143 | (print_script): Use LOADED indicator instead of FULL_PATH. Change | |
3144 | output "Missing" to "No". | |
3145 | (_initialize_auto_load): New variable cmd. Initialize | |
3146 | auto_load_safe_path. Register "set auto-load safe-path", | |
3147 | "show auto-load safe-path" and "add-auto-load-safe-path". | |
3148 | * auto-load.h (maybe_add_script): Add parameter loaded. | |
3149 | (file_is_auto_load_safe): New declaration. | |
3150 | * config.in: Regenerate. | |
3151 | * configure: Regenerate. | |
3152 | * configure.ac: New parameters --with-auto-load-safe-path | |
3153 | and --without-auto-load-safe-path. | |
3154 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
3155 | (try_thread_db_load_from_dir): Check file_is_auto_load_safe first. | |
3156 | * main.c (captured_main): Check file_is_auto_load_safe for | |
3157 | LOCAL_GDBINIT. | |
3158 | * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New | |
3159 | variable is_safe. Call file_is_auto_load_safe. Return if it is not. | |
3160 | (source_section_scripts): Call file_is_auto_load_safe. Return if it is | |
3161 | not. | |
3162 | ||
bf88dd68 JK |
3163 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3164 | ||
3165 | auto-load: Implementation. | |
3166 | * NEWS: New descriptions for "info auto-load", | |
3167 | "info auto-load gdb-scripts", "info auto-load python-scripts", | |
3168 | "info auto-load local-gdbinit" and "info auto-load libthread-db". | |
3169 | Deprecate "info auto-load-scripts", "set auto-load-scripts on|off" | |
3170 | and "show auto-load-scripts". New description for "set auto-load", | |
3171 | "show auto-load", "set auto-load gdb-scripts", | |
3172 | "show auto-load gdb-scripts", "set auto-load python-scripts", | |
3173 | "show auto-load python-scripts", "set auto-load local-gdbinit", | |
3174 | "show auto-load local-gdbinit", "set auto-load libthread-db" and | |
3175 | "show auto-load libthread-db". | |
3176 | * auto-load.c: Remove include python/python-internal.h. Add includes | |
3177 | exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and | |
3178 | cli/cli-setshow.h. | |
3179 | (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile) | |
3180 | (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New. | |
3181 | (gdbpy_global_auto_load): Rename to ... | |
3182 | (global_auto_load): ... here. | |
3183 | (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname) | |
3184 | (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit) | |
3185 | (script_language_gdb, source_gdb_script_for_objfile): New. | |
3186 | (struct loaded_script): New field language. | |
3187 | (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also | |
3188 | LANGUAGE. | |
3189 | (maybe_add_script): Add parameter language. Drop redundant | |
3190 | entry.full_path initialization. Initialize entry.language and | |
3191 | (*slot)->language. | |
3192 | (auto_load_objfile_script): Change parameter suffix to language. | |
3193 | Remove the call of maybe_add_script. | |
3194 | Call language->source_script_for_objfile. | |
3195 | (load_auto_scripts_for_objfile, struct collect_matching_scripts_data): | |
3196 | New. | |
3197 | (collect_matching_scripts): Adjust it for | |
3198 | struct collect_matching_scripts_data. | |
3199 | (auto_load_info_scripts_pattern_nl): New variable. | |
3200 | (info_auto_load_scripts): Rename to ... | |
3201 | (auto_load_info_scripts): ... here, add parameter language. Adjust it | |
3202 | for struct collect_matching_scripts_data. | |
3203 | (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit) | |
3204 | (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd) | |
3205 | (auto_load_show_cmdlist_get, info_auto_load_cmd) | |
3206 | (auto_load_info_cmdlist_get): New. | |
3207 | (_initialize_auto_load): Move add_info of "auto-load-scripts" to | |
3208 | python/py-auto-load.c. New installment for "set auto-load gdb-scripts", | |
3209 | "info auto-load gdb-scripts", "set auto-load local-gdbinit" and | |
3210 | "info auto-load local-gdbinit". | |
3211 | * auto-load.h (struct script_language): New. | |
3212 | (gdbpy_global_auto_load): Rename to ... | |
3213 | (global_auto_load): ... here. | |
3214 | (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname) | |
3215 | (auto_load_local_gdbinit_loaded): New declarations. | |
3216 | (maybe_add_script): New parameter language. | |
3217 | (auto_load_objfile_script): Change parameter suffix to language. | |
3218 | (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl) | |
3219 | (auto_load_info_scripts, auto_load_set_cmdlist_get) | |
3220 | (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New | |
3221 | declarations. | |
3222 | * linux-thread-db.c: Include auto-load.h and ctype.h. | |
3223 | (auto_load_thread_db, show_auto_load_thread_db): New. | |
3224 | (struct thread_db_info): New field filename. | |
3225 | (delete_thread_db_info): Call xfree for FILENAME. | |
3226 | (try_thread_db_load): Initialize FILENAME. | |
3227 | (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return | |
3228 | if !AUTO_LOAD_THREAD_DB. | |
3229 | (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New. | |
3230 | (_initialize_thread_db): Install auto_load_thread_db | |
3231 | as "set auto-load libthread-db" and install info_auto_load_libthread_db | |
3232 | as "info auto-load libthread-db". | |
3233 | * main.c (captured_main): Rename gdbpy_global_auto_load to | |
3234 | global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and | |
3235 | AUTO_LOAD_LOCAL_GDBINIT_LOADED. | |
3236 | (print_gdb_help): Extend the help for 'local init file'. | |
3237 | * python/py-auto-load.c: Remove a comment about gdb scripts extension. | |
3238 | (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific. | |
3239 | (auto_load_scripts): Rename to ... | |
3240 | (auto_load_python_scripts): ... here, update the comment. | |
3241 | (gdbpy_load_auto_script_for_objfile): New declaration. | |
3242 | (show_auto_load_python_scripts, script_language_python) | |
3243 | (gdbpy_load_auto_script_for_objfile): New. | |
3244 | (source_section_scripts): Refactor the code. | |
3245 | (load_auto_scripts_for_objfile): Rename to ... | |
3246 | (gdbpy_load_auto_scripts_for_objfile): ... here, update the | |
3247 | auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking. | |
3248 | (info_auto_load_python_scripts): New. | |
3249 | (gdbpy_initialize_auto_load): New variables cmd and cmd_name. | |
3250 | Rename "set auto-load-scripts" to "set auto-load python-scripts". | |
3251 | Register "set auto-load-scripts" as its deprecated alias. Register | |
3252 | "info auto-load python-scripts". Register "info auto-load-scripts" as | |
3253 | its deprecated alias. | |
3254 | (load_auto_scripts_for_objfile): Rename to ... | |
3255 | (gdbpy_load_auto_scripts_for_objfile): ... here. | |
3256 | * python/python.h (load_auto_scripts_for_objfile): Rename to ... | |
3257 | (gdbpy_load_auto_scripts_for_objfile): ... here. | |
3258 | ||
e2207b9a JK |
3259 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3260 | ||
3261 | auto-load: Move files. | |
3262 | * Makefile.in (SFILES): Add auto-load.c. | |
3263 | (HFILES_NO_SRCDIR): Add auto-load.h. | |
3264 | (COMMON_OBS): Add auto-load.o. | |
3265 | (distclean): Change .gdbinit for gdb-gdb.gdb. | |
3266 | * auto-load.c: New file, with parts from python/py-auto-load.c. | |
3267 | * auto-load.h: New file, with parts from python/python.h. | |
3268 | * configure: Regenerate. | |
3269 | * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb. | |
3270 | * gdb-gdb.gdb.in: New file, renamed from gdbinit.in. | |
3271 | * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in. | |
3272 | * main.c: Include auto-load.h. | |
3273 | * python/py-auto-load.c: Move include filenames.h, gdb_regex.h, | |
3274 | command.h, observer.h and progspace.h to auto-load.c. Add include | |
3275 | auto-load.h. | |
3276 | (gdbpy_global_auto_load, struct auto_load_pspace_info) | |
3277 | (struct loaded_script, auto_load_pspace_data) | |
3278 | (auto_load_pspace_data_cleanup, get_auto_load_pspace_data) | |
3279 | (hash_loaded_script_entry, eq_loaded_script_entry) | |
3280 | (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading) | |
3281 | (maybe_add_script): Move to auto-load.c. | |
3282 | (source_section_scripts): Change maybe_add_script parameters passing, | |
3283 | use script_not_found_warning_print. | |
3284 | (clear_section_scripts, auto_load_objfile_script) | |
3285 | (auto_load_new_objfile, loaded_script_ptr) | |
3286 | (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script) | |
3287 | (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c. | |
3288 | (gdbpy_initialize_auto_load): Move auto_load_pspace_data, | |
3289 | auto_load_new_objfile and info_auto_load_scripts initizations to | |
3290 | auto-load.c. | |
3291 | * python/python.h (gdbpy_global_auto_load): Move to auto-load.h. | |
3292 | ||
e4ab2fad JK |
3293 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3294 | ||
3295 | Code cleanup. | |
3296 | * charset.c (find_charset_names): Remove variables ix and elt. | |
3297 | Use free_char_ptr_vec. | |
3298 | * elfread.c (build_id_to_debug_filename): New variables debugdir_vec, | |
3299 | back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable | |
3300 | debugdir_end. New variable debugdir_len. | |
3301 | * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec) | |
3302 | (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New | |
3303 | declarations. | |
3304 | * progspace.c (clear_program_space_solib_cache): Remove variables ix | |
3305 | and elt. Use free_char_ptr_vec. | |
3306 | * source.c (add_path): Remove variables argv, arg and argv_index. | |
3307 | New variables dir_vec, back_to, ix and name. | |
3308 | Use dirnames_to_char_ptr_vec_append. Use freeargv instead of | |
3309 | make_cleanup_freeargv. Remove variable separator. Simplify the code | |
3310 | no longer expecting DIRNAME_SEPARATOR. | |
3311 | (openp): Remove variable p, p1 and len. New variables dir_vec, | |
3312 | back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code | |
3313 | no longer expecting DIRNAME_SEPARATOR. | |
3314 | * symfile.c (find_separate_debug_file): New variables debugdir_vec, | |
3315 | back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable | |
3316 | debugdir_end. | |
3317 | * utils.c (free_char_ptr_vec, do_free_char_ptr_vec) | |
3318 | (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append) | |
3319 | (dirnames_to_char_ptr_vec): New functions. | |
3320 | ||
5ee4ed9f JK |
3321 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3322 | ||
3323 | Code cleanup. | |
3324 | * source.c (add_path): Remove always true conditional 'p == 0' and | |
3325 | unindent its code block. | |
3326 | ||
f41f5e61 PA |
3327 | 2012-04-17 Pedro Alves <palves@redhat.com> |
3328 | ||
3329 | * gdbtypes.h (FIELD_BITPOS): Rename to ... | |
3330 | (FIELD_BITPOS_LVAL): ... this. | |
3331 | (FIELD_BITPOS): New. | |
3332 | (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL. | |
3333 | * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS. | |
3334 | * gdbtypes.c (append_composite_type_field_aligned): Adjust to use | |
3335 | SET_FIELD_BITPOS. | |
3336 | * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use | |
3337 | SET_FIELD_BITPOS. | |
3338 | * stabsread.c (read_cpp_abbrev, read_one_struct_field) | |
3339 | (read_baseclasses): Adjust to use SET_FIELD_BITPOS. | |
3340 | * target-descriptions.c (tdesc_gdb_type): Adjust to use | |
3341 | SET_FIELD_BITPOS. | |
3342 | ||
945b3a32 JK |
3343 | 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
3344 | ||
3345 | Do not rely on FIELD_LOC_KIND_BITPOS being zero. | |
3346 | * ada-lang.c (ada_template_to_fixed_record_type_1): Replace | |
3347 | TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS. | |
3348 | * gdbtypes.c (append_flags_type_flag): Likewise, twice. | |
3349 | * jv-lang.c (java_link_class_type): Likewise, once. | |
3350 | * stabsread.c (read_enum_type): Likewise. | |
3351 | ||
42476b70 YQ |
3352 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
3353 | ||
3354 | * common/agent.c (agent_run_command): Add one more parameter `len'. | |
3355 | Update callers. | |
3356 | * common/agent.h: Update declaration. | |
3357 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
3358 | Update. | |
3359 | (linux_child_static_tracepoint_markers_by_strid): Ditto. | |
3360 | ||
8264ba82 AG |
3361 | 2012-04-14 Anton Gorenkov <xgsa@yandex.ru> |
3362 | ||
3363 | PR mi/13393 | |
3364 | * value.c (value_actual_type): New function. | |
3365 | * value.h (value_actual_type): New declaration. | |
3366 | * varobj.c (update_type_if_necessary): New function. | |
3367 | (varobj_create): Call value_actual_type instead of | |
3368 | value_type. | |
3369 | (install_dynamic_child): distinct changed and type changed MI variable | |
3370 | objects. | |
3371 | (update_dynamic_varobj_children): Updated for install_dynamic_child | |
3372 | change. All callers updated. | |
a09130f9 | 3373 | (varobj_update): Support for MI variable object type change if |
8264ba82 AG |
3374 | the value changed and RTTI is used to determine the type. |
3375 | (create_child_with_value): Call value_actual_type instead of | |
3376 | value_type. | |
a09130f9 | 3377 | (adjust_value_for_child_access): Extended with a new parameter which |
8264ba82 AG |
3378 | specify whether the given value should be casted to enclosing type. |
3379 | All callers updated. | |
3380 | ||
55a8c076 YQ |
3381 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
3382 | ||
3383 | Import gnulib module inttypes from git | |
3384 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
3385 | * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h. | |
a09130f9 PA |
3386 | (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and |
3387 | gnulib/m4/inttypes-pri.m4 | |
55a8c076 YQ |
3388 | * aclocal.m4, config.in, configure: Regenerated. |
3389 | * gnulib/Makefile.am: Update. | |
3390 | * gnulib/Makefile.in: Update. | |
3391 | * gnulib/m4/gnulib-cache.m4: Update. | |
3392 | * gnulib/m4/gnulib-comp.m4: Update. | |
3393 | * gnulib/inttypes.in.h: New. | |
3394 | * gnulib/m4/inttypes-pri.m4: New. | |
a09130f9 | 3395 | * gnulib/m4/inttypes.m4: New. |
55a8c076 | 3396 | |
ca7781d2 LM |
3397 | 2012-04-13 Luis Machado <lgustavo@codesourcery.com> |
3398 | ||
3399 | * infrun.c (resume): Update PC address to the real PC after | |
3400 | preparing to do displaced stepping. | |
3401 | ||
e319fa28 DE |
3402 | 2012-04-12 Doug Evans <dje@google.com> |
3403 | ||
3404 | * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused. | |
3405 | All callers updated. | |
3406 | ||
15add3f5 MK |
3407 | 2012-04-12 Mark Kettenis <kettenis@gnu.org> |
3408 | ||
3409 | * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype. | |
3410 | ||
52dc124a DE |
3411 | 2012-04-12 Doug Evans <dje@google.com> |
3412 | ||
0e50663e DE |
3413 | * dwarf2read.c (create_all_type_units): Renamed from |
3414 | create_debug_types_hash_table. All callers updated. | |
3415 | ||
52dc124a DE |
3416 | * dwarf2read.c (create_signatured_type_table_from_index): Rename |
3417 | local type_sig to sig_type, type_offset to type_offset_in_tu. | |
3418 | (hash_signatured_type): Renamed from hash_type_signature, | |
3419 | all callers updated. | |
3420 | (eq_signatured_type): Renamed from eq_type_signature, | |
3421 | all callers updated. | |
3422 | (create_debug_types_hash_table): Rename local type_sig to sig_type. | |
3423 | (process_enumeration_scope): Ditto. | |
3424 | (lookup_signatured_type_at_offset): Ditto. | |
3425 | (load_full_type_unit, read_signatured_type): Ditto. | |
3426 | ||
248fd3bf YQ |
3427 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
3428 | ||
3429 | * remote.c (async_remote_interrupt): Correct function name in | |
3430 | debug message. | |
3431 | (async_remote_interrupt_twice): Ditto. | |
3432 | ||
bc3aa6c3 DE |
3433 | 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com> |
3434 | ||
3435 | * source.c (find_and_open_source): Consistently pass resulting | |
3436 | full path through xfullpath. | |
3437 | ||
9e529e1d JK |
3438 | 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3439 | ||
3440 | Provide more specific displaced-stepping memory error message. | |
3441 | * infrun.c (displaced_step_prepare): New variable status. Call | |
3442 | target_read_memory instead of read_memory, provide more specific | |
3443 | error message. | |
3444 | ||
82e0cec1 TG |
3445 | 2012-04-11 Tristan Gingold <gingold@adacore.com> |
3446 | ||
3447 | PR gdb/13901 | |
3448 | * darwin-nat.c (darwin_execvp): Revert previous patch. | |
3449 | ||
d987a266 TG |
3450 | 2012-04-11 Tristan Gingold <gingold@adacore.com> |
3451 | ||
3452 | PR gdb/13901 | |
3453 | * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only | |
3454 | in case of change. | |
3455 | ||
016b7430 TG |
3456 | 2012-04-11 Tristan Gingold <gingold@adacore.com> |
3457 | ||
3458 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix | |
3459 | warning. | |
3460 | ||
06fc020f SCR |
3461 | 2012-04-11 Siva Chandra Reddy <sivachandra@google.com> |
3462 | ||
3463 | New command 'explore' which helps explore values and types in | |
3464 | scope. | |
3465 | * NEWS: Add an entry about the new 'explore' command. | |
3466 | * data-directory/Makefile.in: Add gdb/command/explore.py | |
3467 | * python/lib/gdb/command/explore.py: Implemention of the 'explore' | |
a09130f9 | 3468 | command using the GDB Python API. |
06fc020f | 3469 | |
de0919f8 | 3470 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
34b192ce MR |
3471 | |
3472 | * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign | |
3473 | extension in jump target calculation. | |
3474 | ||
de0919f8 | 3475 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
9e8da49c MR |
3476 | |
3477 | * mips-tdep.c (mips32_next_pc): Handle JALX. | |
3478 | ||
2f26ef89 YQ |
3479 | 2012-04-10 Yao Qi <yao@codesourcery.com> |
3480 | ||
3481 | * Makefile.in (gnulib/Makefile): Remove duplicated dependency. | |
3482 | ||
2e505b66 YQ |
3483 | 2012-04-10 Yao Qi <yao@codesourcery.com> |
3484 | ||
3485 | * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4 | |
3486 | and gnulib/m4/gnulib-tool.m4. | |
3487 | ||
0d99eb77 DE |
3488 | 2012-04-10 Doug Evans <dje@google.com> |
3489 | ||
3490 | * dwarf2read.c (dwarf2_per_cu_data). Clarify comment. | |
3491 | (load_partial_dies): Clarify comment. | |
3492 | (find_partial_die): Support rereading type units. | |
3493 | Clarify CU handling, if we know offset is in CU, don't search for the | |
3494 | containing CU. Add comment regarding memory waste. | |
3495 | ||
9a82b8ff L |
3496 | 2012-04-10 H.J. Lu <hongjiu.lu@intel.com> |
3497 | ||
3498 | * features/Makefile (WHICH): Add i386/x32, i386/x32-linux, | |
3499 | i386/x32-avx and i386/x32-avx-linux. | |
3500 | (i386/x32-expedite): New. | |
3501 | (i386/x32-linux-expedite): Likewise. | |
3502 | (i386/x32-avx-expedite): Likewise. | |
3503 | (i386/x32-avx-linux-expedite): Likewise. | |
3504 | ($(outdir)/i386/x32.dat): Likewise. | |
3505 | ($(outdir)/i386/x32-linux.dat): Likewise. | |
3506 | ($(outdir)/i386/x32-avx.dat): Likewise. | |
3507 | ($(outdir)/i386/x32-avx-linux.dat): Likewise. | |
3508 | ||
3509 | * features/i386/x32-avx-linux.xml: New file. | |
3510 | * features/i386/x32-avx.xml: Likewise. | |
3511 | * features/i386/x32-core.xml: Likewise. | |
3512 | * features/i386/x32-linux.xml: Likewise. | |
3513 | * features/i386/x32.xml: Likewise. | |
3514 | ||
3515 | * features/i386/x32-avx-linux.c: New. Generated. | |
3516 | * features/i386/x32-avx.c: Likewise. | |
3517 | * features/i386/x32-linux.c: Likewise. | |
3518 | * features/i386/x32.c: Likewise. | |
3519 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
3520 | * regformats/i386/x32-avx.dat: Likewise. | |
3521 | * regformats/i386/x32-linux.dat: Likewise. | |
3522 | * regformats/i386/x32.dat: Likewise. | |
3523 | ||
ee41036f TG |
3524 | 2012-04-10 Tristan Gingold <gingold@adacore.com> |
3525 | ||
3526 | * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace | |
3527 | code to kill the inferior. | |
3528 | ||
a7aa5b8a MK |
3529 | 2012-04-09 Mark Kettenis <kettenis@gnu.org> |
3530 | ||
3531 | * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3532 | defines. | |
3533 | * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3534 | defines. | |
a09130f9 | 3535 | * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs) |
a7aa5b8a MK |
3536 | (yyvsp): New defines. |
3537 | * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3538 | defines. | |
3539 | * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3540 | defines. | |
3541 | * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3542 | defines. | |
3543 | * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3544 | defines. | |
3545 | * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New | |
3546 | defines. | |
3547 | ||
fb57d452 MK |
3548 | 2012-04-09 Mark Kettenis <kettenis@gnu.org> |
3549 | ||
a09130f9 | 3550 | * sparc64-tdep.c (sparc64_store_arguments) |
fb57d452 MK |
3551 | (sparc64_store_arguments): Fix coding style. |
3552 | ||
cdc7b32f MK |
3553 | 2012-04-07 Mark Kettenis <kettenis@gnu.org> |
3554 | ||
3555 | * sparc64-tdep.c (sparc64_store_arguments): Fix handling of | |
3556 | complex floats, adjust some related comments and tighten a related | |
3557 | assertion. | |
3558 | (sparc64_extract_return_value): Handle complex floats. | |
3559 | ||
7adf1e79 DE |
3560 | 2012-04-07 Doug Evans <dje@google.com> |
3561 | ||
3562 | * dwarf2read.c (load_partial_dies): Change condition to assert. | |
3563 | ||
50f1ae7b DE |
3564 | 2012-04-06 Doug Evans <dje@google.com> |
3565 | ||
3566 | * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of | |
3567 | "mov %rsp,%rbp". | |
3568 | ||
55fa75c3 KB |
3569 | 2012-04-05 Kevin Buettner <kevinb@redhat.com> |
3570 | ||
3571 | * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix | |
3572 | fencepost error. | |
3573 | (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS. | |
3574 | (v850_gdbarch_init): Set `num_regs' as appropriate for the | |
3575 | architecture. | |
3576 | ||
40e084e1 KS |
3577 | 2012-04-05 Keith Seitz <keiths@redhat.com> |
3578 | ||
3579 | * linespec.c (decode_compound): Remove. | |
3580 | (enum offset_relative_sign): New enum. | |
3581 | (struct line_offset): New struct. | |
3582 | (struct linespec): New struct. | |
3583 | (struct linespec_state): Move file_symtabs, | |
3584 | user_filename, and user_function into struct linespec. | |
3585 | Make result an anonymous struct holding vectors of | |
3586 | symbolp and minsym_and_objfile_d. | |
3587 | Add language member. | |
3588 | (enum ls_token_type): New enum. | |
3589 | (linespec_keywords): New array. | |
3590 | (struct ls_token): New struct. | |
3591 | (struct ls_parser): New struct. | |
3592 | (linespec_lexer_lex_number): New function. | |
3593 | (linespec_lexer_lex_keyword): New function. | |
3594 | (is_ada_operator): New function. | |
3595 | (skip_quote_char): New function. | |
3596 | (copy_token_string): New function. | |
3597 | (is_closing_quote_enclosed): New function. | |
3598 | (find_parameter_list_end): New function. | |
3599 | (linespec_lexer_lex_string): New function. | |
3600 | (linespec_lexer_lex_one): New function. | |
3601 | (linespec_lexer_consume_token): New function. | |
3602 | (linespec_lexer_peek_token): New function. | |
3603 | (cplusplus_error): Remove unused function. | |
3604 | (find_methods): Update comment. | |
3605 | (find_toplevel_char): Return const. | |
3606 | (is_objc_method_format): Remove unused function. | |
3607 | (find_toplevel_string): New function. | |
3608 | (is_linespec_boundary): Remove. | |
3609 | (symbol_not_found_error): New function. | |
3610 | (find_method_overload_end): Remove function. | |
3611 | (unexpected_linespec_error): New function. | |
3612 | (keep_name_info): Remove. | |
3613 | (linespec_parse_line_offset): New function. | |
3614 | (linespec_parse_basic): New function. | |
3615 | (canonicalize_linespec): New function. | |
3616 | (decode_line_internal): Remove. | |
3617 | (create_sals_line_offset): New function adapted from | |
3618 | decode_all_digits. | |
3619 | (convert_linespec_to_sals): New function. | |
3620 | (parse_linespec): New function. | |
3621 | (linespec_parser_new): New function. | |
3622 | (linespec_state_destructor): Change parameter type to | |
3623 | struct linespec_state *. | |
3624 | Add language parameter. | |
3625 | Remove freeing of moved members. | |
3626 | (linespec_parser_delete): New function. | |
3627 | (decode_line_full): Use parse_linespec and linespec_parser_new. | |
3628 | (decode_line_1): Likewise. | |
3629 | (decode_indirect): Rename to ... | |
3630 | (linespec_expression_to_pc): ... this and rewrite | |
3631 | to simply find CORE_ADDR, storing this result for later | |
3632 | conversion to SALs. | |
3633 | (locate_first_half): Remove. | |
3634 | (deocde_objc): Add parameter LS. | |
3635 | Initialize new struct collect_info members. | |
3636 | Handle minimal symbols, too. | |
3637 | (decode_compound): Delete. | |
3638 | (lookup_prefix_sym): Rewrite. | |
3639 | (compare_msymbols): New function. | |
3640 | (find_method): Rewrite. | |
3641 | Do not call cplusplus_error. | |
3642 | (symtabs_from_filename): Rewrite. | |
3643 | (collect_function_symbols): Delete. | |
3644 | (find_function_symbols): Rewrite without ARGPTR-style | |
3645 | processing. | |
3646 | (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.) | |
3647 | (decode_dollar): Adapted and renamed to ... | |
3648 | (linespec_parse_variable): ... this. | |
3649 | (find_linespec_symbols): New function. | |
3650 | (decode_label): Adapted and renamed to ... | |
3651 | (find_label_symbols): ... this. | |
3652 | (decode_digits_list_mode): Add and use LS argument. | |
3653 | (decode_digits_ordinary): Likewise. | |
3654 | (collect_symbols): Do not collect SALs, just symbols and msymbols. | |
3655 | If in list mode, allow any symbol class. Otherwise, only | |
3656 | permit LOC_BLOCK symbols. | |
3657 | (minsym_found): Update comments. | |
3658 | (search_minsyms_for_name): Do not convert the matching symbol | |
3659 | into a SAL. Simply push the symbol and objfile into the | |
3660 | result vector. | |
3661 | (decode_variable): Delete. Contents adapted into | |
3662 | find_linespec_symbols. | |
3663 | ||
3664 | * cp-support.c (SKIP_SPACE): Remove. | |
3665 | (operator_tokens): Remove unused global. | |
3666 | (cp_validate_operator): Remove. | |
3667 | * cp-support.h (cp_validate_operator): Remove declaration. | |
3668 | ||
a72c8f6a JK |
3669 | 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3670 | ||
3671 | * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity | |
3672 | for TYPE_VPTR_FIELDNO. | |
3673 | * valprint.c (valprint_check_validity): Make it global, move the | |
3674 | function comment ... | |
3675 | * value.h (valprint_check_validity): ... to this new declaration. | |
3676 | ||
cf9bb588 TG |
3677 | 2012-04-02 Tristan Gingold <gingold@adacore.com> |
3678 | ||
3679 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use | |
3680 | the STATE32 api for i386 state. | |
3681 | (i386_darwin_store_inferior_registers): Likewise. | |
3682 | ||
17092398 TG |
3683 | 2012-04-02 Tristan Gingold <gingold@adacore.com> |
3684 | ||
3685 | * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix | |
3686 | SS offset. | |
3687 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix | |
3688 | format_string. | |
3689 | ||
ece0061f TG |
3690 | 2012-04-02 Tristan Gingold <gingold@adacore.com> |
3691 | ||
3692 | PR gdb/13901 | |
d987a266 | 3693 | * darwin-nat.c (darwin_execvp): Set binary preference. |
ece0061f | 3694 | |
cf65ecd3 JK |
3695 | 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3696 | ||
3697 | * NEWS (set breakpoint condition-evaluation): Use imperative mood. | |
3698 | ||
9bc3523d TT |
3699 | 2012-03-30 Tom Tromey <tromey@redhat.com> |
3700 | ||
3701 | * python/python.c (gdbpy_decode_line): Move cleanup creation out | |
3702 | of TRY_CATCH. Fix error handling. | |
3703 | * python/py-value.c (convert_value_from_python): Move 'old' | |
3704 | declaration to innermost scope. | |
3705 | ||
b1ed564a JB |
3706 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3707 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3708 | ||
3709 | -Wshadow warning fix. | |
3710 | * ada-lang.c (ada_make_symbol_completion_list): Rename parameters | |
3711 | "wild_match" and "encoded" into "wild_match_p" and "encoded_p". | |
3712 | Adjust code accordingly. | |
3713 | ||
cb8e9b97 JB |
3714 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3715 | ||
3716 | * ada-lang.c (symbol_completion_add): Rename parameter | |
3717 | "encoded" into "encoded_p". Ajust code and documentation | |
3718 | accordingly. | |
3719 | ||
c0af1706 JB |
3720 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3721 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3722 | ||
3723 | -Wshadow warning fix. | |
3724 | * ada-lang.c (symbol_completion_add): Rename parameter | |
3725 | "wild_match" into wild_match_p. Update code and documentation | |
3726 | accordingly. | |
3727 | ||
6ea35997 JB |
3728 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3729 | ||
3730 | * ada-lang.c (symbol_completion_match): Rename parameter | |
3731 | "encoded" into "encoded_p". Ajust code and documentation | |
3732 | accordingly. | |
3733 | ||
e701b3c0 JB |
3734 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3735 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3736 | ||
3737 | -Wshadow warning fix. | |
3738 | * ada-lang.c (symbol_completion_match): Rename parameter | |
3739 | "wild_match" into "wild_match_p". Adjust code and function | |
3740 | documentation accordingly. | |
3741 | ||
5e2336be JB |
3742 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3743 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3744 | ||
3745 | -Wshadow warning fix. | |
3746 | * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter | |
3747 | "symbol_info" into "info". Adjust code accordingly. | |
3748 | (ada_lookup_symbol): Likewise. | |
3749 | ||
9f88c959 JB |
3750 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3751 | ||
3752 | * ada-lang.c (ada_lookup_symbol_list): Minor reformatting | |
3753 | of this function's documentation. | |
3754 | ||
82ccd55e JB |
3755 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3756 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3757 | ||
3758 | -Wshadow warning fix. | |
3759 | * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match" | |
3760 | variable into "wild_match_p". Adjust code accordingly. | |
3761 | ||
d0a8ab18 JB |
3762 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3763 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3764 | ||
3765 | -Wshadow warning fix. | |
3766 | * ada-lang.c (ada_add_local_symbols): Rename "wild_match" | |
3767 | parameter into "wild_match_p". Adjust code accordingly. | |
3768 | Document this parameter in the function description. | |
3769 | ||
48b78332 JB |
3770 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3771 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3772 | ||
3773 | -Wshadow warning fix. | |
3774 | * ada-lang.c (add_symbols_from_enclosing_procs): Rename | |
3775 | "wild_match" parameter to "wild_match_p" (-Wshadow). | |
3776 | ||
2e6e0353 JB |
3777 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3778 | ||
3779 | * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces | |
3780 | in function documentation. | |
3781 | ||
dc4024cd JB |
3782 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3783 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3784 | ||
3785 | -Wshadow warning fix. | |
3786 | * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local | |
3787 | variable into wild_match_p. Adjust code accordingly. | |
3788 | ||
6c88661c JB |
3789 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3790 | Andrey Smirnov <andrew.smirnov@gmail.com> | |
3791 | ||
3792 | * ada-valprint.c (ada_val_print_1): Move the code handling | |
3793 | TYPE_CODE_ENUM inside its own lexical block. Declare | |
3794 | variables len and val there, instead of in the function's | |
3795 | top level block. Avoid declaring deref_val again in a way | |
3796 | that shadows another variable of the same name declared | |
3797 | in one of the up-level blocks. Just re-use the up-level | |
3798 | variable instead. | |
3799 | ||
4e5c77fe JB |
3800 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3801 | ||
3802 | * ada-lang.c (ada_lookup_encoded_symbol): Now returns void. | |
3803 | Replace block_found argument by symbol_info. Adjust | |
3804 | implementation accordingly. Add function documentation. | |
3805 | (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol. | |
3806 | Fix documentation. | |
3807 | * ada-lang.h (ada_lookup_encoded_symbol): Update declaration. | |
3808 | * ada-exp.y (write_object_renaming): Adjust to new | |
3809 | ada_lookup_encoded_symbol API. | |
3810 | ||
1c0ac8c7 JB |
3811 | 2012-03-29 Joel Brobecker <brobecker@adacore.com> |
3812 | ||
3813 | * ada-lang.h (struct ada_symbol_info): Reformat. Improve | |
3814 | documentation. | |
3815 | ||
2aaed979 KB |
3816 | 2012-03-28 Rathish C <rathish.c@kpitcummins.com> |
3817 | ||
3818 | * v850-tdep.c: Add the enum values for mpu and fpu registers. | |
3819 | (v850_register_name): Add the mpu and fpu register names. | |
3820 | (v850e_register_name): Add the mpu and fpu register names. | |
3821 | (v850e2_register_name): New function. | |
a09130f9 | 3822 | (v850_gdbarch_init): Add case for bfd_mach_v850e2 and |
2aaed979 KB |
3823 | bfd_mach_v850e2v3. |
3824 | ||
927fbba6 JB |
3825 | 2012-03-28 Joel Brobecker <brobecker@adacore.com> |
3826 | ||
3827 | * NEWS: Add entry for Ada varobj support. | |
3828 | ||
d32cafc7 JB |
3829 | 2012-03-28 Joel Brobecker <brobecker@adacore.com> |
3830 | ||
3831 | * varobj.c (default_value_is_changeable_p): New function, | |
3832 | extracted from varobj_value_is_changeable_p. Add declaration. | |
3833 | (ada_value_is_changeable_p): New function, extracted from | |
3834 | varobj_value_is_changeable_p. Add declaration. | |
3835 | (struct language_specific): New field "value_is_changeable_p". | |
3836 | (languages): Add entries for new field. | |
3837 | (varobj_create): Set language before calling install_new_value. | |
3838 | (varobj_value_is_changeable_p): Reimplement to call the varobj's | |
3839 | "value_is_changeable_p" language callback. | |
3840 | ||
181875a4 JB |
3841 | 2012-03-28 Joel Brobecker <brobecker@adacore.com> |
3842 | ||
3843 | * ada-varobj.h, ada-varobj.c: New files. | |
3844 | * Makefile.in (SFILES): Add ada-varobj.c. | |
3845 | (HFILES_NO_SRCDIR): Add ada-varobj.h. | |
3846 | (COMMON_OBS): Add ada-varobj.o. | |
3847 | ||
7a290c40 JB |
3848 | 2012-03-28 Joel Brobecker <brobecker@adacore.com> |
3849 | ||
3850 | * varobj.c (ada_value_has_mutated): Add declaration. New function. | |
3851 | (struct language_specific): New field "value_has_mutated". | |
3852 | (languages): Set field "value_has_mutated" in each entry of array. | |
3853 | (varobj_value_has_mutated): New function. | |
3854 | (varobj_udpdate): Add handling of type mutation. | |
3855 | (value_of_root): Add handling of type mutation. | |
3856 | (ada_value_has_mutated): New function. | |
3857 | ||
ca9b8b9c PA |
3858 | 2012-03-28 Pedro Alves <palves@redhat.com> |
3859 | ||
3860 | * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register): | |
3861 | Always supply $fr0 as 0.0 and $fr1 as 1.0. | |
3862 | ||
cc0265cd TT |
3863 | 2012-03-28 Tom Tromey <tromey@redhat.com> |
3864 | ||
3865 | * python/py-inferior.c (infpy_read_memory): Remove cleanups and | |
3866 | explicitly free 'buffer' on exit paths. Decref 'membuf_object' | |
3867 | before returning. | |
3868 | ||
3ad2ec6f TT |
3869 | 2012-03-28 Tom Tromey <tromey@redhat.com> |
3870 | ||
3871 | * .dir-locals.el: New file. | |
3872 | ||
4a6510ba PA |
3873 | 2012-03-28 Pedro Alves <palves@redhat.com> |
3874 | ||
3875 | * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC. | |
3876 | ||
5a75128f JB |
3877 | 2012-03-28 Joel Brobecker <brobecker@adacore.com> |
3878 | ||
3879 | * ia64-linux-nat.c (ia64_linux_fetch_register): Add special | |
3880 | handling for r0. | |
3881 | ||
f99d8bf4 PA |
3882 | 2012-03-27 Pedro Alves <palves@redhat.com> |
3883 | ||
3884 | Eliminate struct ui_stream. | |
3885 | ||
3886 | * ui-out.h (struct ui_stream): Delete. | |
3887 | (ui_out_field_stream): Adjust prototype. | |
3888 | (ui_out_stream_new, ui_out_stream_delete) | |
3889 | (make_cleanup_ui_out_stream_delete): Delete declarations. | |
3890 | * ui-out.c (ui_out_field_stream): Change prototype to take a | |
3891 | ui_file instead of a ui_stream. Adjust. | |
3892 | (ui_out_stream_new, ui_out_stream_delete, do_stream_delete) | |
3893 | (make_cleanup_ui_out_stream_delete): Delete. | |
3894 | * breakpoint.c (print_breakpoint_location) | |
3895 | (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use | |
3896 | ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. | |
3897 | * disasm.c (dump_insns): Ditto. | |
3898 | (do_mixed_source_and_assembly, do_assembly_only): Adjust | |
3899 | prototype. | |
3900 | (gdb_disassembly): Use ui_file/mem_fileopen instead of | |
3901 | ui_stream/ui_out_stream_new. | |
3902 | * infcmd.c (print_return_value): Ditto. | |
3903 | * osdata.c (info_osdata_command): Don't allocate a local | |
3904 | ui_stream. | |
3905 | * stack.c (print_frame_arg, print_frame_args, print_frame): Use | |
3906 | ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. | |
3907 | * tracepoint.c (print_one_static_tracepoint_marker): Don't | |
3908 | allocate a local ui_stream. | |
3909 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen | |
3910 | instead of ui_stream/ui_out_stream_new. | |
3911 | (list_args_or_locals): Don't allocate a local ui_stream. | |
3912 | * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression) | |
3913 | (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of | |
3914 | ui_stream/ui_out_stream_new. | |
3915 | * cli/cli-setshow.c (do_setshow_command): Ditto. | |
3916 | ||
6350a066 | 3917 | 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com> |
72508ac0 | 3918 | |
6350a066 PA |
3919 | * arm-linux-tdep.c (arm_linux_init_abi): Call |
3920 | set_gdbarch_process_record. Initialize `arm_swi_record' field. | |
3921 | * arm-tdep.c (arm_process_record): New function. | |
3922 | (deallocate_reg_mem): New function. | |
3923 | (decode_insn): New function. | |
3924 | (thumb_record_branch): New function. | |
3925 | (thumb_record_ldm_stm_swi(): New function. | |
3926 | (thumb_record_misc): New function. | |
3927 | (thumb_record_ld_st_stack): New function. | |
3928 | (thumb_record_ld_st_imm_offset): New function. | |
3929 | (thumb_record_ld_st_reg_offset(): New function. | |
3930 | (thumb_record_add_sub_cmp_mov): New function. | |
3931 | (thumb_record_shift_add_sub): New function. | |
3932 | (arm_record_coproc_data_proc): New function. | |
3933 | (arm_record_coproc): New function. | |
3934 | (arm_record_b_bl): New function. | |
3935 | (arm_record_ld_st_multiple): New function. | |
3936 | (arm_record_ld_st_reg_offset): New function. | |
3937 | (arm_record_ld_st_imm_offset): New function. | |
3938 | (arm_record_data_proc_imm): New function. | |
3939 | (arm_record_data_proc_misc_ld_str): New function. | |
3940 | (arm_record_extension_space): New function. | |
3941 | (arm_record_strx): New function. | |
3942 | (sbo_sbz): New function. | |
3943 | (struct insn_decode_record): New structure for arm insn record. | |
3944 | (REG_ALLOC): New macro for reg allocations. | |
3945 | (MEM_ALLOC): New macro for memory allocations. | |
3946 | * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'. | |
72508ac0 | 3947 | |
89e028e2 AS |
3948 | 2012-03-27 Andreas Schwab <schwab@linux-m68k.org> |
3949 | ||
3950 | * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation. | |
3951 | (store_register): Likewise. | |
3952 | ||
6350a066 | 3953 | 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com> |
3d9a9eb0 | 3954 | |
6350a066 | 3955 | * MAINTAINERS (Write After Approval): Add myself to the list. |
3d9a9eb0 | 3956 | |
5b43fab2 JK |
3957 | 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3958 | ||
3959 | * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host". | |
3960 | Describe also the option "auto". | |
3961 | ||
b5453b95 RH |
3962 | 2012-03-22 Richard Henderson <rth@redhat.com> |
3963 | ||
3964 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype. | |
3965 | * sparc-nat.c (sparc_xfer_wcookie): Make static. | |
3966 | ||
227ee7fc RH |
3967 | 2012-03-22 Richard Henderson <rth@redhat.com> |
3968 | ||
3969 | * jit.c (jit_read_code_entry): Compute alignment and offset of | |
3970 | int64_t member before computing entry_size. | |
3971 | ||
7b282c5a SCR |
3972 | 2012-03-22 Siva Chandra Reddy <sivachandra@google.com> |
3973 | ||
3974 | Python scripting: Add new method Value.referenced_value to | |
3975 | gdb.Value which can dereference pointer as well as reference | |
3976 | values. | |
3977 | * NEWS: Add entry under 'Python scripting' about the new method | |
3978 | Value.referenced_value on gdb.Value objects. | |
3979 | * python/py-value.c (valpy_referenced_value): New function | |
3980 | defining a new method on gdb.Value objects which can dereference | |
3981 | pointer and reference values. | |
3982 | ||
0c83539f SCR |
3983 | 2012-03-22 Siva Chandra Reddy <sivachandra@google.com> |
3984 | ||
3985 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
3986 | ||
7ccffd7c KB |
3987 | 2012-03-21 Kevin Buettner <kevinb@redhat.com> |
3988 | ||
3989 | * symtab.c (skip_prologue_sal): Change test to check for "main()" | |
3990 | in addition to "main". | |
3991 | ||
bd0b9f9e JB |
3992 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
3993 | ||
3994 | * expression.h (op_name): Add declaration. | |
3995 | * expprint.c (op_name): Remove declaration. Make non-static. | |
3996 | * ax-gdb.c (gen_expr): Use op_name instead of op_string. | |
3997 | ||
a5362b9a TS |
3998 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
3999 | ||
4000 | * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead | |
4001 | of struct siginfo. | |
4002 | * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise. | |
4003 | * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise. | |
4004 | * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup) | |
4005 | (linux_xfer_siginfo, linux_nat_set_siginfo_fixup) | |
4006 | (linux_nat_get_siginfo): Likewise. | |
4007 | * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup) | |
4008 | (linux_nat_get_siginfo): Likewise. | |
4009 | * linux-tdep.c (linux_get_siginfo_type): Likewise. | |
4010 | * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise. | |
4011 | * procfs.c (gdb_siginfo_t): Likewise. | |
4012 | ||
adcadaab MF |
4013 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
4014 | ||
4015 | * .gitignore: Ignore more files. | |
4016 | ||
e278ad5b PA |
4017 | 2012-03-20 Pedro Alves <palves@redhat.com> |
4018 | ||
4019 | * remote.c (remote_start_remote): Clear `rs->starting_up' on early | |
4020 | returns. | |
4021 | ||
741e63d7 YQ |
4022 | 2012-03-20 Yao Qi <yao@codesourcery.com> |
4023 | ||
4024 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in | |
4025 | comment. | |
4026 | ||
b64f50a1 JK |
4027 | 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4028 | ||
4029 | Code cleanupp: Use cu_offset and sect_offset compile time type checking. | |
4030 | * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op) | |
4031 | (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and | |
4032 | sect_offset. | |
4033 | * dwarf2expr.h (cu_offset, sect_offset): New types. | |
4034 | (struct dwarf_expr_context_funcs) <dwarf_call> | |
4035 | (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and | |
4036 | sect_offset. | |
4037 | (struct dwarf_expr_context) <len>: Improve the comment. | |
4038 | (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use | |
4039 | cu_offset and sect_offset. | |
4040 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call) | |
4041 | (dwarf_expr_get_base_type, needs_frame_dwarf_call) | |
4042 | (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise. | |
4043 | * dwarf2loc.h: Include dwarf2expr.h. | |
4044 | (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset | |
4045 | and sect_offset. | |
4046 | * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>: | |
4047 | Improve the comment. | |
4048 | (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data) | |
4049 | (struct signatured_type, struct line_header, struct partial_die_info) | |
4050 | (struct die_info, find_partial_die, dwarf2_get_ref_die_offset) | |
4051 | (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit) | |
4052 | (get_die_type_at_offset, create_cus_from_index) | |
4053 | (create_signatured_type_table_from_index, dw2_get_file_names) | |
4054 | (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head) | |
4055 | (read_and_check_comp_unit_head, read_and_check_type_unit_head) | |
4056 | (create_debug_types_hash_table, process_psymtab_comp_unit) | |
4057 | (load_partial_comp_unit, create_all_comp_units) | |
4058 | (partial_die_parent_scope, partial_die_full_name, skip_one_die) | |
4059 | (load_full_comp_unit, dwarf2_physname, read_import_statement) | |
4060 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
4061 | (dwarf2_add_member_fn, process_enumeration_scope, read_module_type) | |
4062 | (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs) | |
4063 | (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit) | |
4064 | (find_partial_die, read_attribute_value, lookup_die_type) | |
4065 | (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset. | |
4066 | (is_ref_attr): New function comment. | |
4067 | (dwarf2_get_ref_die_offset): New function comment, new variable retval. | |
4068 | Use cu_offset and sect_offset. | |
4069 | (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block) | |
4070 | (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset) | |
4071 | (load_full_type_unit, read_signatured_type, per_cu_header_read_in) | |
4072 | (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type) | |
4073 | (offset_and_type_hash, offset_and_type_eq, set_die_type) | |
4074 | (get_die_type_at_offset, partial_die_hash, partial_die_eq) | |
4075 | (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and | |
4076 | sect_offset. | |
4077 | ||
e97a38f7 JK |
4078 | 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4079 | ||
4080 | Code cleanup. | |
4081 | * python/py-auto-load.c (source_section_scripts): New variable back_to. | |
4082 | Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup | |
4083 | with xfree. | |
4084 | (auto_load_objfile_script): Turn fclose into make_cleanup_fclose. | |
4085 | ||
8320cc4f JK |
4086 | 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4087 | ||
4088 | * NEWS: Describe new options --init-command=FILE, -ix and | |
4089 | --init-eval-command=COMMAND, -iex. | |
4090 | * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and | |
4091 | CMDARG_INIT_COMMAND. | |
4092 | (captured_main): New enum items OPT_IX and OPT_IEX. Add | |
4093 | "init-command", "init-eval-command", "ix" and "iex" to the variable | |
4094 | long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC. | |
4095 | New comment for CMDARG_FILE and CMDARG_COMMAND processing. | |
4096 | (print_gdb_help): Describe --init-command=FILE, -ix and | |
4097 | --init-eval-command=COMMAND, -iex. | |
4098 | ||
26743505 JK |
4099 | 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
4100 | ||
4101 | Code cleanup. | |
4102 | * main.c (struct cmdarg): Move it here from main. Add more comments. | |
4103 | (cmdarg_s, VEC (cmdarg_s)): New. | |
4104 | (main): Move struct cmdarg from here. New variables cmdarg_vec and | |
4105 | cmdarg_p. Remove variables cmdsize and ncmd and their initialization. | |
4106 | Install cleanup for cmdarg_vec. Update filling for options 'x' and | |
4107 | 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree | |
4108 | of CMDARG. | |
4109 | ||
5ff5c7b4 TT |
4110 | 2012-03-19 Tom Tromey <tromey@redhat.com> |
4111 | ||
4112 | * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'. | |
4113 | ||
ab260dad JK |
4114 | 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
4115 | ||
4116 | PR symtab/13777 | |
4117 | * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for | |
4118 | GCC >=4.5. | |
4119 | ||
c366c1f0 TT |
4120 | 2012-03-16 Chris January <chris.january@allinea.com> |
4121 | ||
4122 | * tui-tui.win.c (tui_resize_all): Use erase and clearok instead | |
4123 | of clear. | |
4124 | ||
e16edb45 TT |
4125 | 2012-03-16 Chris January <chris.january@allinea.com> |
4126 | ||
4127 | * source.c (add_path): Use memmove instead of strcpy because the | |
4128 | strings overlap. | |
4129 | ||
53ba8333 JB |
4130 | 2012-03-16 Joel Brobecker <brobecker@adacore.com> |
4131 | ||
4132 | * value.h (set_value_parent): Add declaration. | |
4133 | * value.c (set_value_parent): New function. | |
4134 | (value_address): If VALUE->PARENT is not NULL, then use it as | |
4135 | the base address instead of VALUE->LOCATION.address. | |
4136 | * ada-lang.c (ada_value_primitive_packed_val): Keep V's address | |
4137 | the same as OBJ's address. Adjust V's offset accordingly. | |
4138 | Set V's parent. | |
4139 | ||
481860b3 GB |
4140 | 2012-03-16 Gary Benson <gbenson@redhat.com> |
4141 | ||
4142 | PR breakpoints/10738 | |
4143 | * dwarf2read.c (use_deprecated_index_sections): New global. | |
4144 | (struct partial_die_info): New member may_be_inlined. | |
4145 | (read_partial_die): Set may_be_inlined where appropriate. | |
4146 | (add_partial_subprogram): Add partial symbols for partial | |
4147 | DIEs that may be inlined. | |
4148 | (new_symbol_full): Add inlined subroutines to the current | |
4149 | scope. | |
4150 | (write_psymtabs_to_index): Bump version number. | |
4151 | (dwarf2_read_index): Read only version 6 indices unless | |
4152 | use_deprecated_index_sections is set. | |
4153 | * linespec.c (symbol_and_data_callback): New structure. | |
4154 | (iterate_inline_only): New function. | |
4155 | (iterate_over_all_matching_symtabs): New argument | |
4156 | "include_inline". If nonzero, also call the callback for | |
4157 | symbols representing inlined subroutines. | |
4158 | (lookup_prefix_sym): Pass extra argument to the above. | |
4159 | (find_function_symbols): Likewise. | |
4160 | (add_matching_symbols_to_info): Likewise. | |
4161 | * NEWS: Mention that GDB can now set breakpoints on inlined | |
4162 | functions. | |
4163 | ||
d0e7e15a PM |
4164 | 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4165 | ||
4166 | * p-typeprint.c (pascal_type_print_method_args): | |
4167 | Fix display of parameter of methods. | |
4168 | ||
3d354654 PM |
4169 | 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
4170 | ||
4171 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): | |
4172 | Add missing prototype. | |
4173 | ||
cafe75b0 JK |
4174 | 2012-03-16 Yao Qi <yao@codesourcery.com> |
4175 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4176 | ||
4177 | Fix false compilation warning. | |
4178 | * gnu-v3-abi.c (print_one_vtable): Initialize ADDR. | |
4179 | ||
25f8c692 JL |
4180 | 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com> |
4181 | Pedro Alves <pedro@codesourcery.com> | |
4182 | ||
4183 | * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c". | |
4184 | (arm_register_g_packet_guesses): New function. | |
4185 | (arm_gdbarch_init): Don't force a target description with | |
4186 | registers when the executable is detected as M-profile. Instead | |
4187 | set gdbarch->tdep->is_m. Register `g' packet guesses. | |
4188 | (_initialize_arm_tdep): Initialize the new target description. | |
4189 | * features/arm-with-m-fpa-layout.xml: New description. | |
4190 | * features/arm-with-m-fpa-layout.c: New, generated. | |
4191 | ||
35c63cd8 JB |
4192 | 2012-03-15 Joel Brobecker <brobecker@adacore.com> |
4193 | ||
4194 | * breakpoint.c (breakpoint_xfer_memory): Add assertion. | |
4195 | Update function description. | |
4196 | (insert_bp_location): Do not wipe bl->target_info out. | |
4197 | * mem-break.c: #include "gdb_string.h". | |
4198 | (default_memory_insert_breakpoint): Do not call target_read_memory | |
4199 | with a pointer to the breakpoint's shadow_contents buffer. Use | |
4200 | a local buffer instead. | |
4201 | * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto. | |
4202 | ||
57651221 TT |
4203 | 2012-03-15 Tom Tromey <tromey@redhat.com> |
4204 | ||
4205 | * NEWS: Mention "info vtbl", not "info vtable". | |
4206 | * cp-support.c (info_vtbl_command): Fix comment. | |
4207 | (_initialize_cp_support): Fix text. | |
4208 | ||
410528f0 TT |
4209 | 2012-03-15 Tom Tromey <tromey@redhat.com> |
4210 | ||
4211 | * cp-valprint.c (cp_print_value_fields): Use | |
4212 | print_function_pointer_address for vtable slot. | |
4213 | ||
c4aeac85 TT |
4214 | 2012-03-15 Tom Tromey <tromey@redhat.com> |
4215 | ||
4216 | * gnu-v3-abi.c (struct value_and_voffset): New. | |
4217 | (hash_value_and_voffset, eq_value_and_voffset) | |
4218 | (compare_value_and_voffset, compute_vtable_size) | |
4219 | (print_one_vtable, gnuv3_print_vtable): New functions. | |
4220 | (init_gnuv3_ops): Initialize 'print_vtable' field. | |
4221 | * cp-support.c (info_vtbl_command): New function. | |
4222 | (_initialize_cp_support): Add "info vtbl". | |
4223 | * cp-abi.h (cplus_print_vtable): Declare. | |
4224 | (struct cp_abi_ops) <print_vtable>: New field. | |
4225 | * cp-abi.c (cplus_print_vtable): New function. | |
4226 | * NEWS: Update. | |
4227 | ||
95cbceff TT |
4228 | 2012-03-15 Tom Tromey <tromey@redhat.com> |
4229 | ||
4230 | * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to | |
4231 | iterate_over_symbols. | |
4232 | ||
589b4a32 DE |
4233 | 2012-03-14 Doug Evans <dje@google.com> |
4234 | ||
4235 | * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr, | |
4236 | DW_OP_GNU_parameter_ref. | |
4237 | ||
e837f12a JK |
4238 | 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
4239 | ||
4240 | Fix double prompt of 'interpreter-exec mi'. | |
4241 | * mi/mi-interp.c (mi_execute_command_input_handler): New prototype. | |
4242 | (mi_interpreter_resume): use it. | |
4243 | (mi_execute_command_input_handler): New function. | |
4244 | * mi/mi-main.c (mi_execute_command): Move prompt printing to | |
4245 | mi_execute_command_input_handler. | |
4246 | ||
ff1e4526 | 4247 | 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change) |
c381a3f6 JB |
4248 | |
4249 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add | |
4250 | prototype. | |
4251 | (darwin_debug_port_info): Make static. | |
4252 | * darwin-nat.c (_initialize_darwin_inferior): Add prototype. | |
4253 | * machoread.c (_initialize_machoread): Add prototype. | |
4254 | * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get) | |
4255 | (i386_darwin_set_control, i386_darwin_get_control) | |
4256 | i386_darwin_dr_set_addr, i386_darwin_get_addr) | |
4257 | i386_darwin_get_status, i386_darwin_get_control): | |
4258 | Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro. | |
4259 | ||
d8a5d6ee JB |
4260 | 2012-03-13 Joel Brobecker <brobecker@adacore.com> |
4261 | ||
4262 | * ax-gdb.c (gen_usual_unary): Remove special handling of | |
4263 | enum and bool types. | |
4264 | ||
af381b8c JB |
4265 | 2012-03-13 Joel Brobecker <brobecker@adacore.com> |
4266 | ||
4267 | * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types. | |
4268 | ||
786c562f JB |
4269 | 2012-03-13 Joel Brobecker <brobecker@adacore.com> |
4270 | ||
4271 | * aix-thread.c (supply_fprs): Make more consistent with fill_fprs. | |
4272 | ||
e3ebf1bb JB |
4273 | 2012-03-13 Chris January <chris.january@allinea.com> |
4274 | ||
4275 | * aix-thread.c (fill_sprs): Store the floating point registers | |
4276 | at the correct offsets into vals. | |
4277 | ||
c5b7e1cb DE |
4278 | 2012-03-13 Doug Evans <dje@google.com> |
4279 | ||
16899756 DE |
4280 | * NEWS: Mention symbol-reloading has been deleted. |
4281 | * symfile.c (symbol_reloading): Delete. | |
4282 | (show_symbol_reloading): Delete. | |
4283 | (_initialize_symfile): Delete set/show symbol-reloading. | |
4284 | ||
c5b7e1cb DE |
4285 | * dwarf2read.c (load_partial_comp_unit): Defer adding cu to |
4286 | read_in_chain until we have successfully read it in. | |
4287 | (load_full_comp_unit): Ditto. | |
4288 | (read_signatured_type): Add comment. | |
4289 | ||
46cb6474 JB |
4290 | 2012-03-13 Chris January <chris.january@allinea.com> |
4291 | ||
4292 | * stabsread.c (fix_common_block): Change type of valu argument | |
4293 | to CORE_ADDR. | |
4294 | ||
76219d77 JB |
4295 | 2012-03-13 Chris January <chris.january@allinea.com> |
4296 | ||
4297 | * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0 | |
4298 | instruction. | |
4299 | ||
87b0bb13 JK |
4300 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4301 | ||
4302 | * common/linux-procfs.c (linux_proc_get_int): New, from | |
4303 | linux_proc_get_tgid, change its LWPID type to pid_t, add parameter | |
4304 | field. | |
4305 | (linux_proc_get_tgid): Only call linux_proc_get_int. | |
4306 | (linux_proc_get_tracerpid): New. | |
4307 | (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie. | |
4308 | (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call | |
4309 | linux_proc_pid_has_state. | |
4310 | * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration. | |
4311 | * common/linux-ptrace.c: Include linux-procfs.h and buffer.h. | |
4312 | (linux_ptrace_attach_warnings): New. | |
4313 | * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings): | |
4314 | New declaration. | |
4315 | * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h. | |
4316 | (linux_nat_attach): New variables ex, buffer, message and message_s. | |
4317 | Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings. | |
4318 | ||
5f572dec JK |
4319 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4320 | ||
4321 | * Makefile.in (linux-ptrace.o): New. | |
4322 | * common/linux-procfs.c (linux_proc_pid_is_zombie): New, | |
4323 | from linux-nat.c. | |
4324 | * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration. | |
4325 | * common/linux-ptrace.c: New file. | |
4326 | * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o. | |
4327 | * config/arm/linux.mh: Likewise. | |
4328 | * config/i386/linux.mh: Likewise. | |
4329 | * config/i386/linux64.mh: Likewise. | |
4330 | * config/ia64/linux.mh: Likewise. | |
4331 | * config/m32r/linux.mh: Likewise. | |
4332 | * config/m68k/linux.mh: Likewise. | |
4333 | * config/mips/linux.mh: Likewise. | |
4334 | * config/pa/linux.mh: Likewise. | |
4335 | * config/powerpc/linux.mh: Likewise. | |
4336 | * config/powerpc/ppc64-linux.mh: Likewise. | |
4337 | * config/powerpc/spu-linux.mh: Likewise. | |
4338 | * config/s390/s390.mh: Likewise. | |
4339 | * config/sparc/linux.mh: Likewise. | |
4340 | * config/sparc/linux64.mh: Likewise. | |
4341 | * config/xtensa/linux.mh: Likewise. | |
4342 | * linux-nat.c (linux_lwp_is_zombie): Remove, move it to | |
4343 | common/linux-procfs.c. | |
4344 | (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie. | |
4345 | ||
44f238bb PA |
4346 | 2012-03-13 Hui Zhu <teawater@gmail.com> |
4347 | Pedro Alves <palves@redhat.com> | |
4348 | ||
4349 | * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle | |
4350 | CREATE_BREAKPOINT_FLAGS_INSERTED. | |
4351 | (create_breakpoint_sal, create_breakpoints_sal) | |
4352 | (base_breakpoint_create_breakpoints_sal) | |
4353 | (tracepoint_create_breakpoints_sal) | |
4354 | (strace_marker_create_breakpoints_sal): New flags parameter. Pass | |
4355 | down. | |
4356 | (break_command_1, handle_gnu_v3_exceptions, trace_command) | |
4357 | (ftrace_command, strace_command): Adjust. | |
4358 | (create_tracepoint_from_upload): Pass | |
4359 | CREATE_BREAKPOINT_FLAGS_INSERTED. | |
4360 | * breakpoint.h (enum breakpoint_create_flags): New. | |
4361 | (create_breakpoint): New flags parameter. | |
4362 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
4363 | * python/py-breakpoint.c (bppy_init): Adjust. | |
4364 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust. | |
4365 | * spu-tdep.c (spu_catch_start): Adjust. | |
4366 | ||
1e51243a PA |
4367 | 2012-03-13 Pedro Alves <palves@redhat.com> |
4368 | Hui Zhu <teawater@gmail.com> | |
4369 | Yao Qi <yao@codesourcery.com> | |
4370 | ||
4371 | * remote.c (struct remote_state): New field `starting_up'. | |
4372 | (remote_start_remote): Set and clear it. | |
4373 | (remote_can_download_tracepoint): If starting up, return false. | |
4374 | ||
fa3064dd YQ |
4375 | 2012-03-13 Yao Qi <yao@codesourcery.com> |
4376 | ||
4377 | * inferior.h (struct inferior): Remove fields any_syscall_count, | |
4378 | syscalls_counts and total_syscalls_count. Move them to new | |
4379 | struct catch_syscall_inferior_data in breakpoint.c. | |
4380 | * breakpoint.c: Call DEF_VEC_I(int). | |
4381 | (struct catch_syscall_inferior_data): New. | |
4382 | (get_catch_syscall_inferior_data): New. | |
4383 | (catch_syscall_inferior_data_cleanup): New. | |
4384 | (insert_catch_syscall): Update to access data in | |
4385 | struct catch_syscall_inferior_data. | |
4386 | (insert_catch_syscall): Likewise. | |
4387 | (remove_catch_syscall): Likewise. | |
4388 | (remove_catch_syscall): Likewise. | |
4389 | (is_syscall_catchpoint_enabled): Likewise. | |
4390 | (add_catch_command): Likewise. | |
4391 | (_initialize_breakpoint): Register cleanup. | |
4392 | * breakpoint.h: Removed DEF_VEC_I(int). | |
4393 | * dwarf2loc.c: Call DEF_VEC_I(int). | |
4394 | * mi/mi-main.c: Likewise. | |
4395 | ||
460fac3c MK |
4396 | 2012-03-12 Mark Kettenis <kettenis@gnu.org> |
4397 | ||
4398 | * inf-ptrace.c (inf_ptrace_post_attach): Make static. | |
4399 | ||
e1aca11e JB |
4400 | 2012-03-12 Chris January <chris.january@allinea.com> |
4401 | ||
4402 | * aix-thread.c (_initialize_aix_thread): Add prototype. | |
4403 | * rs6000-nat.c (_initialize_rs6000_nat): Ditto. | |
4404 | * xcoffsolib.c (_initialize_xcoffsolib): Ditto. | |
4405 | ||
649c7061 JB |
4406 | 2012-03-12 Joel Brobecker <brobecker@adacore.com> |
4407 | ||
4408 | * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after | |
4409 | include of "amd64-nat.h". | |
4410 | ||
0b49e518 TT |
4411 | 2012-03-12 Tom Tromey <tromey@redhat.com> |
4412 | ||
4413 | * buildsym.c (record_pending_block): Now static. | |
4414 | * buildsym.h: (record_pending_block): Remove. | |
4415 | ||
fd24fa94 AT |
4416 | 2012-03-12 Andreas Tobler <andreast@fgznet.ch> |
4417 | ||
4418 | * amd64bsd-nat.c: Include amd64bsd-nat.h. | |
4419 | ||
ba919b58 TT |
4420 | 2012-03-09 Tom Tromey <tromey@redhat.com> |
4421 | ||
4422 | * dwarf2read.c (struct dwarf2_cu) <checked_producer, | |
4423 | producer_is_gxx_lt_4_6>: New fields. | |
4424 | (producer_is_gxx_lt_4_6): Use and update producer cache fields. | |
4425 | ||
a48e046c TT |
4426 | 2012-03-09 Tom Tromey <tromey@redhat.com> |
4427 | ||
4428 | * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call. | |
4429 | ||
6f5e9362 JB |
4430 | 2012-03-08 Joel Brobecker <brobecker@adacore.com> |
4431 | ||
4432 | * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add | |
4433 | prototype. | |
4434 | ||
8d037db9 JB |
4435 | 2012-03-08 Joel Brobecker <brobecker@adacore.com> |
4436 | ||
4437 | * ravenscar-thread.c (_initialize_ravenscar): Add prototype. | |
4438 | ||
4e841acf JK |
4439 | 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4440 | ||
4441 | Fix -Wmissing-prototypes build. | |
4442 | * arm-linux-nat.c (get_thread_id): Make it static. | |
4443 | * xtensa-linux-nat.c (get_thread_id): Likewise. | |
4444 | ||
c6030312 JB |
4445 | 2012-03-08 Joel Brobecker <brobecker@adacore.com> |
4446 | ||
4447 | * server.c (process_point_options): If a conditional expression | |
4448 | is found, only print a message if remote_debug is nonzero. | |
4449 | ||
52323be9 LM |
4450 | 2012-03-08 Luis Machado <lgustavo@codesourcery.com> |
4451 | ||
4452 | * ax-gdb.c (gen_fetch): Fail gracefully and use error instead | |
4453 | of internal error for unknown/unsupported types. | |
4454 | ||
7fe25d9b JK |
4455 | 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4456 | ||
4457 | Fix CU relative vs. absolute DIE offsets. | |
4458 | * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter | |
4459 | offset to offset_in_cu. | |
4460 | * dwarf2read.c (process_enumeration_scope): Add CU offset to | |
4461 | TYPE_OFFSET. | |
4462 | (dwarf2_fetch_die_location_block): Rename parameter offset to | |
4463 | offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU. | |
4464 | ||
05e7c244 JK |
4465 | 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4466 | ||
4467 | * libunwind-frame.c: Rename to ... | |
4468 | * ia64-libunwind-tdep.c: ... here. | |
4469 | * libunwind-frame.h: Rename to ... | |
4470 | * ia64-libunwind-tdep.h: ... here. | |
4471 | * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to | |
4472 | ia64-libunwind-tdep.h. | |
4473 | (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c. | |
4474 | * README (--with-libunwind): Rename to ... | |
4475 | (--with-libunwind-ia64): ... here, note it is ia64 specific now. | |
4476 | * config.in: Regenerate. | |
4477 | * configure: Regenerate. | |
4478 | * configure.ac: New option --with-libunwind-ia64, make the | |
4479 | AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind. | |
4480 | Remove AC_DEFINE for HAVE_LIBUNWIND. | |
4481 | * ia64-libunwind-tdep.c: Make the file top comment ia64 specific. | |
4482 | Rename libunwind-frame.h #include to ia64-libunwind-tdep.h. | |
4483 | Rename libunwind-frame in the general comment. | |
4484 | * ia64-libunwind-tdep.h: Make the file top comment ia64 specific. | |
4485 | Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H. | |
4486 | Move forward declarations inside #ifndef. Rename libunwind-frame in | |
4487 | the general comment. | |
4488 | * ia64-tdep.c: Rename libunwind-frame.h #include to | |
4489 | ia64-libunwind-tdep.h. | |
4490 | (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg) | |
4491 | (ia64_libunwind_descr): Rename libunwind-frame to | |
4492 | ia64-libunwind-tdep in these function comments. | |
4493 | * ia64-tdep.h: Rename libunwind-frame.h #include to | |
4494 | ia64-libunwind-tdep.h. | |
4495 | * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to | |
4496 | ia64-libunwind-tdep in that data comment. | |
4497 | ||
3755cbfd JK |
4498 | 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4499 | ||
4500 | * libunwind-frame.h (struct frame_unwind): New declaration. | |
4501 | ||
d1cda5d9 JB |
4502 | 2012-03-08 Joel Brobecker <brobecker@adacore.com> |
4503 | ||
4504 | * breakpoint.c (_initialize_breakpoint): Fix error in help of | |
4505 | "set breakpoint condition-evaluation" command. | |
4506 | ||
a0ba0aa2 TG |
4507 | 2012-03-08 Tristan Gingold <gingold@adacore.com> |
4508 | ||
4509 | * sparc-stub.c: Move to stubs/ | |
4510 | * sh-stub.c: Likewise. | |
4511 | * m68k-stub.c: Likewise. | |
4512 | * m32r-stub.c: Likewise. | |
4513 | * i386-stub.c: Likewise. | |
4514 | ||
7b8b6d6d AS |
4515 | 2012-03-08 Andreas Schwab <schwab@linux-m68k.org> |
4516 | ||
007cafee AS |
4517 | * m68klinux-tdep.c (m68k_linux_init_abi): Register |
4518 | linux_get_siginfo_type. | |
4519 | ||
7b8b6d6d AS |
4520 | * m68klinux-nat.c: Include "gdb_proc_service.h". |
4521 | (PTRACE_GET_THREAD_AREA): Define. | |
4522 | (ps_get_thread_area): New function. | |
4523 | ||
bba74b36 YQ |
4524 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
4525 | ||
4526 | * remote.c (remote_get_noisy_reply): Replace `sprintf' with | |
4527 | `xsnprintf'. | |
4528 | (remote_query_attached): Likewise. | |
4529 | (remote_static_tracepoint_marker_at): Likewise. | |
4530 | (remote_set_permissions): Likewise. | |
4531 | (remote_detach_1, extended_remote_attach_1): Likewise. | |
4532 | (send_g_packet, remote_vkill): Likewise. | |
4533 | (extended_remote_disable_randomization): Likewise. | |
4534 | (remote_add_target_side_condition): Likewise. | |
4535 | (remote_insert_breakpoint): Likewise. | |
4536 | (remote_remove_breakpoint): Likewise. | |
4537 | (remote_insert_watchpoint): Likewise. | |
4538 | (remote_remove_watchpoint): Likewise. | |
4539 | (remote_insert_hw_breakpoint): Likewise. | |
4540 | (remote_insert_hw_breakpoint): Likewise. | |
4541 | (remote_remove_hw_breakpoint): Likewise. | |
4542 | (remote_download_command_source): Likewise. | |
4543 | (remote_download_tracepoint): Likewise. | |
4544 | (remote_download_trace_state_variable): Likewise. | |
4545 | (remote_disable_tracepoint): Likewise. | |
4546 | (remote_trace_set_readonly_regions): Likewise. | |
4547 | (remote_get_tracepoint_status): Likewise. | |
4548 | (remote_trace_find): Likewise. | |
4549 | (remote_get_trace_state_variable_value): Likewise. | |
4550 | (remote_set_disconnected_tracing): Likewise. | |
4551 | (remote_set_circular_trace_buffer): Likewise. | |
4552 | (remote_get_min_fast_tracepoint_insn_len): Likewise. | |
4553 | (remote_use_agent): Likewise. | |
4554 | (remote_add_target_side_condition): Add one parameter BUF_SIZE. | |
4555 | Update callers. | |
4556 | ||
9b224c5e PA |
4557 | 2012-03-07 Pedro Alves <palves@redhat.com> |
4558 | ||
4559 | * NEWS: Mention QProgramSignals. | |
4560 | * inferior.h (update_signals_program_target): Declare. | |
4561 | * infrun.c: (update_signals_program_target): New. | |
4562 | (handle_command): Update the target of the new program signals | |
4563 | array changes. | |
4564 | * remote.c (PACKET_QProgramSignals): New enum. | |
4565 | (last_program_signals_packet): New global. | |
4566 | (remote_program_signals): New. | |
4567 | (remote_start_remote): Update the target with the program signals | |
4568 | list. | |
4569 | (remote_protocol_features): Add entry for QPassSignals. | |
4570 | (remote_open_1): Free anc clear last_program_signals_packet. | |
4571 | (init_remote_ops): Install remote_program_signals. | |
4572 | * target.c (update_current_target): Adjust. | |
4573 | (target_program_signals): New. | |
4574 | * target.h (struct target_ops) <to_program_signals>: New field. | |
4575 | (target_program_signals): Declare. | |
4576 | ||
74c48cbb PA |
4577 | 2012-03-07 Pedro Alves <palves@redhat.com> |
4578 | ||
4579 | * NEWS: Add subtitle for new z0/z1 conditional breakpoint | |
4580 | extensions. | |
4581 | ||
0c13fc49 AS |
4582 | 2012-03-07 Andreas Schwab <schwab@linux-m68k.org> |
4583 | ||
4584 | * m68klinux-nat.c (getregs_supplies): Make static. | |
4585 | (getfpregs_supplies): Likewise. | |
4586 | (have_ptrace_getregs): Likewise. | |
4587 | ||
1281d2a3 JB |
4588 | 2012-03-06 Joel Brobecker <brobecker@adacore.com> |
4589 | ||
4590 | * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset | |
4591 | in call to get_die_type_at_offset. | |
4592 | ||
2b03b41d SS |
4593 | 2012-03-06 Stan Shebs <stan@codesourcery.com> |
4594 | ||
4595 | * mi/mi-cmd-break.c: Enforce coding standards, fix comments. | |
4596 | * mi/mi-cmd-disas.c: Ditto. | |
4597 | * mi/mi-cmd-env.c: Ditto. | |
4598 | * mi/mi-cmd-file.c: Ditto. | |
4599 | * mi/mi-cmd-stack.c: Ditto. | |
4600 | * mi/mi-cmd-target.c: Ditto. | |
4601 | * mi/mi-cmd-var.c: Ditto. | |
4602 | * mi/mi-cmds.c: Ditto. | |
4603 | * mi/mi-cmds.h: Ditto. | |
4604 | * mi/mi-console.c: Ditto. | |
4605 | * mi/mi-getopt.c: Ditto. | |
4606 | * mi/mi-getopt.h: Ditto. | |
4607 | * mi/mi-interp.c: Ditto. | |
4608 | * mi/mi-main.c: Ditto. | |
4609 | * mi/mi-out.c: Ditto. | |
4610 | * mi/mi-parse.c: Ditto. | |
4611 | * mi/mi-parse.h: Ditto. | |
4612 | * mi/mi-symbol-cmds.c: Ditto. | |
4613 | ||
4614 | * mi/mi-getopt.h: Move mi_opt struct up. | |
4615 | * mi/mi-main.c (captured_mi_execute_command): Remove redundant | |
4616 | return. | |
4617 | * mi/mi-out.c (_initialize_mi_out): Remove empty initialize. | |
4618 | ||
c988ad87 TT |
4619 | 2012-03-06 Tom Tromey <tromey@redhat.com> |
4620 | ||
4621 | * proc-service.c (ps_pglobal_lookup): Set the current program | |
4622 | space. | |
4623 | ||
1b7c1b10 PA |
4624 | 2012-03-06 Pedro Alves <palves@redhat.com> |
4625 | ||
4626 | * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>. | |
4627 | ||
3c182069 JB |
4628 | 2012-03-05 Joel Brobecker <brobecker@adacore.com> |
4629 | ||
4630 | * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer. | |
4631 | ||
2e794194 JK |
4632 | 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
4633 | ||
4634 | Code cleanup. | |
4635 | * common/linux-osdata.c (linux_common_core_of_thread): New function | |
4636 | comment. | |
4637 | * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1 | |
4638 | call by linux_common_core_of_thread. | |
4639 | (linux_nat_core_of_thread_1): Remove. | |
4640 | * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration. | |
4641 | * linux-thread-db.c: Include linux-osdata.h. | |
4642 | (update_thread_core): Replace linux_nat_core_of_thread_1 call by | |
4643 | linux_common_core_of_thread. | |
4644 | ||
9f9f1f31 TT |
4645 | 2012-03-05 Tom Tromey <tromey@redhat.com> |
4646 | ||
4647 | * value.c (value_primitive_field): Don't fetch contents for | |
4648 | non-virtual bases. | |
4649 | ||
b7b189f3 TT |
4650 | 2012-03-05 Tom Tromey <tromey@redhat.com> |
4651 | ||
4652 | * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'. | |
4653 | ||
05b8a789 | 4654 | 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5538f557 | 4655 | |
5538f557 JB |
4656 | * s390-nat.c: Include "gregset.h". |
4657 | ||
75528772 JK |
4658 | 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
4659 | ||
4660 | * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8. | |
4661 | [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define. | |
4662 | (libunwind_load): New variable so_error, use it for dlerror. Try to | |
4663 | load also LIBUNWIND_SO_7. | |
4664 | ||
275418ae PA |
4665 | 2012-03-05 Pedro Alves <palves@redhat.com> |
4666 | ||
4667 | * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer | |
4668 | is not NULL, and remove resulting dead code. | |
4669 | ||
5cbb9812 TS |
4670 | 2012-03-05 Thomas Schwinge <thomas@codesourcery.com> |
4671 | ||
4672 | * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function | |
4673 | prologue to sh_analyze_prologue. | |
4674 | (sh_analyze_prologue): Make better use of such an upper limit, and | |
4675 | generally be more cautious about accessing memory. | |
4676 | ||
541515ad TT |
4677 | 2012-03-05 Tom Tromey <tromey@redhat.com> |
4678 | ||
4679 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from | |
4680 | _initialize_ia64_hpux_tdep. | |
4681 | ||
b4d36fb8 PA |
4682 | 2012-03-05 Pedro Alves <palves@redhat.com> |
4683 | ||
24490249 PA |
4684 | PR gdb/13766 |
4685 | ||
b4d36fb8 PA |
4686 | * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and |
4687 | the register state is clear, supply explicit zero, instead of | |
4688 | marking the register unavailable. | |
4689 | ||
60c9a3c0 TG |
4690 | 2012-03-05 Tristan Gingold <gingold@adacore.com> |
4691 | ||
4692 | * NEWS: Mention OpenVMS ia64 new target. | |
4693 | ||
696759ad TG |
4694 | 2012-03-05 Tristan Gingold <gingold@adacore.com> |
4695 | ||
4696 | * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h. | |
4697 | (ia64_unw_accessors, ia64_unw_rse_accessors) | |
4698 | (ia64_libunwind_descr): Declare. | |
4699 | * ia64-vms-tdep.c: New file. | |
4700 | * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors) | |
4701 | (ia64_libunwind_descr): Make them public. | |
4702 | * configure.tgt: Add ia64-*-*vms*. | |
4703 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o | |
4704 | (ALLDEPFILES): Add ia64-vms-tdep.c | |
4705 | ||
34864976 TG |
4706 | 2012-03-05 Tristan Gingold <gingold@adacore.com> |
4707 | ||
169081d0 TG |
4708 | * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB. |
4709 | * remote.c (PACKET_qXfer_uib): New enum value. | |
4710 | (remote_protocol_features): Add entry for PACKET_qXfer_uib. | |
4711 | (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB. | |
4712 | (_initialize_remote): Call add_packet_config_cmd for | |
4713 | xfer:uib packet. | |
4714 | ||
4715 | 2012-03-05 Tristan Gingold <gingold@adacore.com> | |
4716 | ||
4717 | * osabi.c (gdb_osabi_names): Add OpenVMS. | |
4718 | (generic_elf_osabi_sniffer): Likewise. | |
4719 | * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS. | |
34864976 | 4720 | |
6597b100 JK |
4721 | 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
4722 | ||
4723 | Removed unused code. | |
4724 | * libunwind-frame.c (libunwind_frame_unwind) | |
4725 | (libunwind_frame_base_address): Remove. | |
4726 | * libunwind-frame.h (libunwind_frame_base_address): Remove declaration. | |
4727 | ||
87399aa1 YQ |
4728 | 2012-03-04 Yao Qi <yao@codesourcery.com> |
4729 | ||
4730 | * common/agent.c (gdb_connect_sync_socket): Add _ markup and | |
4731 | remove trailing new line. | |
4732 | (agent_run_command, agent_run_command): Add _ markup. | |
4733 | (agent_capability_check): Likewise. | |
4734 | ||
abf1152a JK |
4735 | 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
4736 | ||
4737 | * breakpoint.c (set_condition_evaluation_mode): Set | |
4738 | CONDITION_EVALUATION_MODE unconditionally. | |
4739 | ||
5808517f YQ |
4740 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
4741 | ||
4742 | * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'. | |
4743 | * common/agent.h: Update declaration. | |
4744 | * inf-child.c (inf_child_use_agent): New. | |
4745 | (inf_child_can_use_agent): New. | |
4746 | (inf_child_target): Initialize fields `to_use_agent' | |
4747 | and `to_can_use_agent'. | |
4748 | * agent.c (agent_new_objfile): New. | |
89b7509a | 4749 | (_initialize_agent): Add agent_new_objfile to new_objfile |
5808517f YQ |
4750 | observer. |
4751 | ||
4752 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
4753 | New. | |
89b7509a | 4754 | (linux_target_install_ops): Initialize field |
5808517f YQ |
4755 | `to_static_tracepoint_markers_by_strid'. |
4756 | * remote.c (free_current_marker): Move it to ... | |
4757 | * tracepoint.c (free_current_marker): ... here. New. | |
4758 | (cleanup_target_stop): New. | |
4759 | * tracepoint.h: Declare free_current_marker. | |
4760 | * NEWS: Add one entry about `info static-tracepoint-marker'. | |
4761 | ||
58b4daa5 YQ |
4762 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
4763 | ||
4764 | * common/agent.c (agent_loaded_p): New. | |
89b7509a | 4765 | (agent_look_up_symbols): New global. |
58b4daa5 YQ |
4766 | * common/agent.h: Declare agent_loaded_p. |
4767 | ||
8ffcbaaf YQ |
4768 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
4769 | ||
4770 | * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New. | |
4771 | (agent_capability_check, agent_capability_invalidate): New. | |
4772 | (symbol_list): New array element. | |
4773 | * common/agent.h (enum agent_capa): New. | |
4774 | * target.c (target_pre_inferior): Call agent_capability_invalidate. | |
4775 | ||
d1feda86 YQ |
4776 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
4777 | ||
4778 | * target.h (struct target_ops) <to_use_agent>: New field. | |
4779 | (struct target_ops) <to_can_use_agent>: New field. | |
4780 | (target_use_agent, target_can_use_agent): New macro. | |
4781 | * target.c (update_current_target): Update. | |
4782 | * remote.c: New enum `PACKET_QAgent'. | |
4783 | (remote_protocol_features): Add a new element. | |
4784 | (remote_use_agent, remote_can_use_agent): New. | |
4785 | (init_remote_ops): Initialize field `can_use_agent' with | |
4786 | remote_can_use_agent. Intiailize field `use_agent' with | |
4787 | remote_use_agent. | |
4788 | * common/agent.c (use_agent): New global. | |
4789 | * common/agent.h: Declare it. | |
4790 | * tracepoint.c (info_static_tracepoint_markers_command): Add | |
4791 | comment. | |
4792 | * Makefile.in (SFILES): Add common/agent.c and agent.c. | |
4793 | (COMMON_OBS): Add common/agent.o and agent.o | |
4794 | (common-agent.o): New rule. | |
4795 | * agent.c: New. | |
4796 | ||
2fa291ac YQ |
4797 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
4798 | ||
4799 | * common/agent.c: New. | |
4800 | * common/agent.h: New. | |
4801 | * configure.ac: Add `sys/socket.h' and `sys/un.h' to | |
4802 | AC_CHECK_HEADERS. | |
4803 | * configure, configh.in: Regenerated. | |
4804 | ||
9fc05685 KB |
4805 | 2012-03-02 Kevin Buettner <kevinb@redhat.com> |
4806 | ||
4807 | * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register | |
4808 | unless it exists for this architecture. | |
4809 | ||
a5ee536b JB |
4810 | 2012-03-02 Joel Brobecker <brobecker@adacore.com> |
4811 | ||
4812 | * language.h (struct language_defn): New "method" la_read_var_value. | |
4813 | * findvar.c: #include "language.h". | |
4814 | (default_read_var_value): Renames read_var_value. Rewrite | |
4815 | function description. | |
4816 | (read_var_value): New function. | |
4817 | * value.h (default_read_var_value): Add prototype. | |
4818 | * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value): | |
4819 | New functions. | |
4820 | (ada_language_defn): Add entry for la_read_var_value. | |
4821 | * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c, | |
4822 | * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update | |
4823 | language_defn structures to add entry for new la_read_var_value | |
4824 | field. | |
4825 | ||
f59f708a PA |
4826 | 2012-03-02 Tom Tromey <tromey@redhat.com> |
4827 | Pedro Alves <palves@redhat.com> | |
4828 | ||
4829 | PR breakpoints/13776: | |
4830 | * breakpoint.c (breakpoint_init_inferior): Delete step-resume | |
4831 | breakpoints. | |
4832 | (delete_longjmp_breakpoint_at_next_stop): New. | |
4833 | * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare. | |
4834 | * target.c (generic_mourn_inferior): Call mark_breakpoints_out | |
4835 | before deleting the inferior. Add comments. | |
4836 | * thread.c (clear_thread_inferior_resources): Don't delete lonjmp | |
4837 | breakpoints immediately, but only on next stop. Move that code | |
4838 | next to where we mark other breakpoints for deletion. | |
4839 | ||
44099a67 JB |
4840 | 2012-03-02 Joel Brobecker <brobecker@adacore.com> |
4841 | ||
4842 | * mips-linux-nat.c (mips_linux_read_description): Add missing i18n | |
4843 | marker. | |
4844 | * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI | |
4845 | violation. | |
4846 | ||
2a2ef594 PA |
4847 | 2012-03-02 Pedro Alves <palves@redhat.com> |
4848 | ||
4849 | * linux-thread-db.c (attach_thread): Avoid in_thread_list call. | |
4850 | ||
b261e0c5 UW |
4851 | 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com> |
4852 | ||
4853 | Fix -Wmissing-prototypes build. | |
4854 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static. | |
4855 | * remote-sim.c (gdbsim_has_all_memory): Likewise. | |
4856 | (gdbsim_has_memory): Likewise. | |
4857 | ||
a95babbf YQ |
4858 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
4859 | ||
4860 | Fix -Wmissing-prototypes build. | |
4861 | * charset.c (phony_iconv_open): Make static. | |
4862 | (phony_iconv_close, phony_iconv): Likewise. | |
4863 | * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype. | |
4864 | * i386-windows-nat.c (_initialize_i386_windows_nat): New | |
4865 | prototype. | |
4866 | * mingw-hdep.c (_initialize_mingw_hdep): New prototype. | |
4867 | * ser-mingw.c (create_select_thread): Make static. | |
4868 | * windows-termcap.c (tgetent): New prototype. | |
4869 | (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise. | |
4870 | ||
d603d4b3 JK |
4871 | 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com> |
4872 | ||
4873 | Fix -Wmissing-prototypes build. | |
4874 | * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static. | |
4875 | (_initialize_windows_nat, _initialize_check_for_gdb_ini) | |
4876 | (_initialize_loadable): New prototypes. | |
4877 | ||
7fb3ad1f DE |
4878 | 2012-03-02 Doug Evans <dje@google.com> |
4879 | ||
4880 | * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of | |
4881 | abbrev table, read_comp_unit will do it. | |
4882 | ||
693be288 JK |
4883 | 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
4884 | ||
4885 | Fix -Wmissing-prototypes build. | |
4886 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static. | |
4887 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype. | |
4888 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise. | |
4889 | * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static. | |
4890 | (_initialize_arm_symbian_tdep): New prototype. | |
4891 | * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static. | |
4892 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype. | |
4893 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it | |
4894 | static. | |
4895 | * lm32-tdep.c (_initialize_lm32_tdep): New prototype. | |
4896 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New | |
4897 | prototype. | |
4898 | * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction) | |
4899 | (microblaze_skip_prologue, microblaze_frame_cache): Make them static. | |
4900 | * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it | |
4901 | static. | |
4902 | * moxie-tdep.c (moxie_process_record): Likewise. | |
4903 | * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint) | |
4904 | (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static. | |
4905 | * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static. | |
4906 | (_initialize_rl78_tdep): New prototype. | |
4907 | * rx-tdep.c (rx_breakpoint_from_pc): Make it static. | |
4908 | (_initialize_rx_tdep): New prototype. | |
4909 | * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static. | |
4910 | (_initialize_darwin_solib): New prototype. | |
4911 | * solib-spu.c: Include solib-spu.h. | |
4912 | (_initialize_spu_solib): New prototype. | |
4913 | * spu-multiarch.c (_initialize_spu_multiarch): New prototype. | |
4914 | * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue) | |
4915 | (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache) | |
4916 | (tic6x_software_single_step): Make it static. | |
4917 | (_initialize_tic6x_tdep): New prototype. | |
4918 | ||
638234e5 JK |
4919 | 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
4920 | ||
4921 | Fix -Wmissing-prototypes build. | |
4922 | * cris-tdep.c (cris_can_use_hardware_watchpoint) | |
4923 | (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove. | |
4924 | ||
f4a6f16d JK |
4925 | 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4926 | ||
4927 | Fix -Wmissing-prototypes build. | |
4928 | * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address) | |
4929 | (frv_have_stopped_data_address): Remove. | |
4930 | ||
04dcf5fa JK |
4931 | 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
4932 | ||
4933 | Fix -Wmissing-prototypes build. | |
4934 | * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h. | |
4935 | * sh-tdep.c: Include sh64-tdep.h. | |
4936 | * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations. | |
4937 | * sh64-tdep.c: Include sh64-tdep.h. | |
4938 | * sh64-tdep.h: New file. | |
4939 | ||
19080931 MR |
4940 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
4941 | ||
4942 | * mips-tdep.c (mips32_scan_prologue): Correct indentation. | |
4943 | ||
9aac7884 MR |
4944 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
4945 | ||
4946 | * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and | |
4947 | sp_regnum once the gdbarch_init_osabi hook has been called. | |
4948 | ||
a385295e MR |
4949 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
4950 | ||
4951 | * mips-tdep.c (mips32_bc1_pc): New function. | |
4952 | (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T, | |
4953 | BPOSGE32 and BPOSGE64 instructions. | |
4954 | (deal_with_atomic_sequence): Likewise. | |
4955 | (mips32_instruction_has_delay_slot): Likewise. | |
4956 | ||
1faeff08 | 4957 | 2012-03-01 Maciej W. Rozycki <macro@mips.com> |
a09130f9 PA |
4958 | Chris Dearman <chris@mips.com> |
4959 | Maciej W. Rozycki <macro@codesourcery.com> | |
4960 | Joseph Myers <joseph@codesourcery.com> | |
1faeff08 MR |
4961 | |
4962 | * features/mips-dsp.xml: New file. | |
4963 | * features/mips64-dsp.xml: New file. | |
4964 | * features/mips-dsp-linux.xml: New file. | |
4965 | * features/mips64-dsp-linux.xml: New file. | |
4966 | * features/Makefile (WHICH): Add mips-dsp-linux and | |
4967 | mips64-dsp-linux. | |
4968 | (mips-dsp-expedite, mips64-dsp-expedite): New variables. | |
4969 | * features/mips-dsp-linux.c: New file. | |
4970 | * features/mips64-dsp-linux.c: New file. | |
4971 | * regformats/mips-dsp-linux.dat: New file. | |
4972 | * regformats/mips64-dsp-linux.dat: New file. | |
4973 | * mips-linux-nat.c (mips_linux_register_addr): Handle DSP | |
4974 | registers. | |
4975 | (mips64_linux_register_addr): Likewise. | |
4976 | (mips64_linux_regsets_fetch_registers): Likewise. | |
4977 | (mips64_linux_regsets_store_registers): Likewise. | |
4978 | (mips64_linux_fetch_registers): Update call to | |
4979 | mips64_linux_regsets_fetch_registers. | |
4980 | (mips64_linux_store_registers): Update call to | |
4981 | mips64_linux_regsets_store_registers. | |
4982 | (mips_linux_read_description): Probe for DSP registers. | |
4983 | (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux | |
4984 | and initialize_tdesc_mips64_dsp_linux. | |
4985 | * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset): | |
4986 | Remove padding of no longer used embedded register slots. | |
4987 | * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros. | |
4988 | (MIPS_RESTART_REGNUM): Redefine enum value. | |
4989 | * mips-tdep.c (mips_generic_reg_names): Remove trailing null | |
4990 | strings. | |
4991 | (mips_tx39_reg_names): Likewise. | |
4992 | (mips_linux_reg_names): New array of register names for Linux | |
4993 | targets. | |
4994 | (mips_register_name): Check for a null pointer in | |
4995 | mips_processor_reg_names and return an empty string. | |
4996 | (mips_register_type): Exclude embedded registers for the IRIX | |
4997 | and Linux ABIs. | |
4998 | (mips_pseudo_register_type): Likewise. Use dynamic numbers to | |
4999 | refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle | |
5000 | DSP registers. | |
5001 | (mips_stab_reg_to_regnum): Handle DSP accumulators. | |
5002 | (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise. | |
5003 | (mips_gdbarch_init): Likewise. Initialize internal register | |
5004 | indices for the Linux ABI. Use dynamic numbers to refer to | |
5005 | registers, as applicable, while parsing the target description. | |
5006 | * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets. | |
5007 | ||
263689d8 JB |
5008 | 2012-03-01 Joel Brobecker <brobecker@adacore.com> |
5009 | ||
5010 | * frame.h (read_frame_register_unsigned): Fix typo in function | |
5011 | description. | |
5012 | ||
f3b4f45c PA |
5013 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5014 | ||
5015 | * jit-reader.in [!__cplusplus] | |
5016 | (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash. | |
5017 | ||
b03a2011 PA |
5018 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5019 | ||
5020 | * configure.ac (build_warnings): Add -Wmissing-prototypes. | |
5021 | * configure: Regenerate. | |
5022 | ||
70221824 PA |
5023 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5024 | ||
5025 | * amd64-linux-tdep.c (amd64_linux_record_signal): Make static. | |
5026 | * breakpoint.c (create_exception_master_breakpoint, trace_command) | |
5027 | (ftrace_command, strace_command): Make static. | |
5028 | * d-lang.c (_initialize_d_language): Declare. | |
5029 | * dwarf2expr.c (_initialize_dwarf2expr): Declare. | |
5030 | * dwarf2loc.c (_initialize_dwarf2loc): | |
5031 | * dwarf2read.c (process_psymtab_comp_unit): Make static. | |
5032 | * exec.c (exec_get_section_table): Make static. | |
5033 | * i386-linux-tdep.c (i386_linux_record_signal): Make static. | |
5034 | * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static. | |
5035 | * inferior.c (remove_inferior_command, add_inferior_command) | |
5036 | (clone_inferior_command): Make static. | |
5037 | * linux-nat.c (linux_nat_thread_address_space) | |
5038 | (linux_nat_core_of_thread): Make static. | |
5039 | * linux-tdep.c (_initialize_linux_tdep): Declare. | |
5040 | * objc-lang.c (_initialize_objc_lang): Declare. | |
5041 | * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info): | |
5042 | Make static. | |
5043 | (_initialize_opencl_language): Declare. | |
5044 | * record.c (_initialize_record): Declare. | |
5045 | * remote.c (demand_private_info, remote_get_tib_address) | |
5046 | (remote_supports_cond_tracepoints) | |
5047 | (remote_supports_fast_tracepoints, remote_get_tracepoint_status): | |
5048 | Make static. | |
5049 | * skip.c (_initialize_step_skip): Declare. | |
5050 | * symtab.c (skip_prologue_using_lineinfo): Make static. | |
5051 | * tracepoint.c (delete_trace_state_variable) | |
5052 | (trace_variable_command, delete_trace_variable_command) | |
5053 | (get_uploaded_tsv, find_matching_tracepoint_location) | |
5054 | (find_matching_tsv, create_tsv_from_upload, get_traceframe_info): | |
5055 | Make static. | |
5056 | * value.c (pack_unsigned_long): Make static. | |
5057 | * varobj.c (varobj_ensure_python_env): Make static. | |
5058 | * windows-tdep.c (_initialize_windows_tdep): Declare. | |
5059 | * xml-syscall.c (make_cleanup_free_syscalls_info): Make static. | |
5060 | ||
33fbcbee PA |
5061 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5062 | ||
5063 | * linux-tdep.c (linux_has_shared_address_space): Make static. Add | |
5064 | gdbarch parameter. | |
5065 | (linux_init_abi): Install it as has_shared_address_space gdbarch | |
5066 | callback. | |
5067 | ||
44d0cd3b PA |
5068 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5069 | ||
5070 | * observer.c (observer_test_first_notification_function) | |
5071 | (observer_test_second_notification_function) | |
5072 | (observer_test_third_notification_function): Add declarations. | |
5073 | ||
ed01b82c PA |
5074 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5075 | ||
5076 | * common/signals.c (default_target_signal_to_host) | |
5077 | (default_target_signal_from_host): Move ... | |
5078 | * arch-utils.c: ... here. | |
5079 | * arch-utils.h (default_target_signal_to_host) | |
5080 | (default_target_signal_from_host): Declare. | |
5081 | ||
5082 | * common/signals.c (target_signal_from_command): Move ... | |
5083 | * infrun.c: ... here. | |
5084 | * inferior.h (target_signal_from_command): Declare. | |
5085 | * target.h (target_signal_from_command) | |
5086 | (default_target_signal_from_host, default_target_signal_to_host): | |
5087 | Delete declarations. | |
5088 | ||
5089 | * common/signals.c (_initialize_signals): Delete. | |
5090 | ||
c9b87335 PA |
5091 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5092 | ||
5093 | * jit-reader.in (plugin_is_GPL_compatible): Add declarations for | |
5094 | both __cplusplus and !__cplusplus. | |
5095 | ||
9340a6c0 PA |
5096 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5097 | ||
5098 | * psymtab.c (find_and_open_source): Delete declaration. | |
5099 | * source.c (find_and_open_source): Move comment ... | |
5100 | * source.h (find_and_open_source): ... to this new declaration. | |
5101 | ||
e451c4a1 PA |
5102 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5103 | ||
5104 | * inline-frame.c: Include inline-frame.h. | |
5105 | ||
983fb104 PA |
5106 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5107 | ||
5108 | * tui/tui-data.c (set_gen_win_origin): Delete. | |
5109 | * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration. | |
5110 | * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete. | |
5111 | ||
5fbce5df PA |
5112 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5113 | ||
5114 | * remote.c (encode_actions): Delete declaration. | |
5115 | * tracepoint.c (encode_actions): Make extern. | |
5116 | * tracepoint.h (encode_actions): Declare. | |
5117 | ||
49a8461d PA |
5118 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5119 | ||
5120 | * python/py-breakpoint.c: Include python.h. | |
5121 | * python/py-continueevent.c (create_continue_event_object): Make | |
5122 | static. | |
5123 | * python/py-lazy-string.c (stpy_get_type): Make static. | |
5124 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
5125 | Make static. | |
5126 | * python/py-utils.c (unicode_to_target_python_string): Make | |
5127 | static. | |
5128 | * python/py-value.c: Include python.h. | |
5129 | ||
9079102f PA |
5130 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5131 | ||
5132 | * inferior.c (delete_threads_of_inferior): Delete. | |
5133 | ||
a298c5e8 PA |
5134 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5135 | ||
5136 | Import fallback definitions from glibc. | |
5137 | ||
5138 | * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct | |
5139 | ps_prochandle): Forward declare. | |
5140 | (ps_err_e): Use glibc's comments. | |
5141 | [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread) | |
5142 | (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
5143 | (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup) | |
5144 | (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize) | |
5145 | (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare. | |
5146 | (struct ps_prochandle): Adjust comment. | |
5147 | ||
e3084549 PA |
5148 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5149 | ||
5150 | * ada-lang.c (ada_modulus_from_name): Delete. | |
5151 | * ada-lex.l (lexer_init): Make static. | |
5152 | ||
ad5f7d6e PA |
5153 | 2012-03-01 Pedro Alves <palves@redhat.com> |
5154 | ||
5155 | PR gdb/13767 | |
5156 | ||
5157 | * frame.c (read_frame_register_unsigned): New. | |
5158 | * frame.h (read_frame_register_unsigned): Declare. | |
5159 | * i387-tdep.c (print_i387_status_word): New parameter `status_p'. | |
5160 | Handle it. | |
5161 | (print_i387_control_word): New parameter `control_p'. Handle it. | |
5162 | (i387_print_float_info): Handle unavailable float registers. | |
5163 | ||
e0a4d108 KS |
5164 | 2012-03-01 Keith Seitz <keiths@redhat.com> |
5165 | ||
5166 | * linespec.c (decode_line_2): Sort the list of methods | |
5167 | alphabetically before presenting the user with a selection | |
5168 | menu. | |
5169 | ||
122d1940 DE |
5170 | 2012-03-01 Doug Evans <dje@google.com> |
5171 | ||
5172 | * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr, | |
5173 | has_namespace_info. | |
5174 | (dwarf2_read_abbrevs): Remove corresponding initialization. | |
5175 | ||
7d74f244 DE |
5176 | 2012-03-01 Scott J. Goldman <scottjg@vmware.com> |
5177 | ||
5178 | * NEWS: Mention new python command class gdb.COMMAND_USER. | |
5179 | * cli/cli-cmds.c (show_user): Print error when used on a python | |
5180 | command. | |
5181 | (init_cli_cmds): Update documentation strings for "show user" and | |
5182 | "set/show max-user-call-depth" to clarify that it does not apply to | |
5183 | python commands. | |
5184 | * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in | |
5185 | error check. | |
5186 | (gdbpy_initialize_commands): Add COMMAND_USER as a constant in | |
5187 | gdb python api. | |
5188 | * top.c (execute_command): Only execute a user-defined command as a | |
5189 | legacy macro if c->user_commands is set. | |
5190 | ||
e88acd96 TT |
5191 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5192 | ||
5193 | * valprint.h (struct generic_val_print_decorations): New. | |
5194 | (generic_val_print): Declare. | |
5195 | * valprint.c (generic_val_print): New function. | |
5196 | * p-valprint.c (p_decorations): New global. | |
5197 | (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, | |
5198 | TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT, | |
5199 | TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF, | |
5200 | TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print. | |
5201 | * m2-valprint.c (m2_decorations): New global. | |
5202 | (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC, | |
5203 | TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR, | |
5204 | TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF, | |
5205 | TYPE_CODE_ERROR>: Call generic_val_print. | |
5206 | * f-valprint.c (f_decorations): New global. | |
5207 | (f_val_print): Use print_function_pointer_address. | |
5208 | <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS, | |
5209 | TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE, | |
5210 | TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call | |
5211 | generic_val_print. | |
5212 | * c-valprint.c (c_decorations): New global. | |
5213 | (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM, | |
5214 | TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL, | |
5215 | TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT, | |
5216 | TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR, | |
5217 | TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print. | |
5218 | * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove | |
5219 | case. | |
5220 | ||
d3eab38a TT |
5221 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5222 | ||
5223 | * valprint.c (val_print): Update. | |
5224 | * p-valprint (pascal_val_print): Return void. | |
5225 | * p-lang.h (pascal_val_print): Return void. | |
5226 | * m2-valprint.c (m2_val_print): Return void. | |
5227 | * m2-lang.h (m2_val_print): Return void. | |
5228 | * language.h (struct language_defn) <la_val_print>: Return void. | |
5229 | * language.c (unk_lang_val_print): Return void. | |
5230 | * jv-valprint.c (java_val_print): Return void. | |
5231 | * jv-lang.h (java_val_print): Return void. | |
5232 | * f-valprint.c (f_val_print): Return void. | |
5233 | * f-lang.h (f_val_print): Return void. | |
5234 | * d-valprint.c (d_val_print): Return void. | |
5235 | (dynamic_array_type): Update. | |
5236 | * d-lang.h (d_val_print): Return void. | |
5237 | * c-valprint.c (c_val_print): Return void. | |
5238 | * c-lang.h (c_val_print): Return void. | |
5239 | * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return | |
5240 | void. | |
5241 | * ada-lang.h (ada_val_print): Return void. | |
5242 | ||
35c0084b TT |
5243 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5244 | ||
5245 | * value.h (val_print): Return void. | |
5246 | * valprint.c (val_print): Return void. | |
5247 | ||
a1f5dd1b TT |
5248 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5249 | ||
5250 | * value.h (common_val_print): Return void. | |
5251 | * valprint.c (common_val_print): Return void. | |
5252 | ||
8e069a98 TT |
5253 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5254 | ||
5255 | * value.h (value_print): Return void. | |
5256 | * valprint.c (value_print): Return void. | |
5257 | * p-valprint.c (pascal_value_print): Return void. | |
5258 | * p-lang.h (pascal_value_print): Return void. | |
5259 | * language.h (struct language_defn) <la_value_print>: Return | |
5260 | void. | |
5261 | * language.c (unk_lang_value_print): Return void. | |
5262 | * jv-valprint.c (java_value_print): Return void. | |
5263 | * jv-lang.h (java_value_print): Return void. | |
5264 | * f-valprint.c (c_value_print): Don't declare. | |
5265 | Include c-lang.h. | |
5266 | * c-valprint.c (c_value_print): Return void. | |
5267 | * c-lang.h (c_value_print): Return void. | |
5268 | * ada-valprint.c (ada_value_print): Return void. | |
5269 | * ada-lang.h (ada_value_print): Return void. | |
5270 | ||
be335936 TT |
5271 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5272 | ||
5273 | * value.c (value_primitive_field): Handle virtual base classes. | |
5274 | ||
b0db66a7 TT |
5275 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5276 | ||
5277 | * gdbtypes.h (struct vbase): Remove. | |
5278 | ||
132c57b4 TT |
5279 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5280 | ||
5281 | * c-valprint.c (print_function_pointer_address): Move... | |
5282 | * valprint.c: ... here. Make non-static. | |
5283 | * m2-valprint.c (print_function_pointer_address): Remove. | |
5284 | * valprint.h (print_function_pointer_address): Declare. | |
5285 | ||
e41eec66 JB |
5286 | 2012-03-01 Joel Brobecker <brobecker@adacore.com> |
5287 | ||
5288 | * NEWS: Document the fact that one can provide a condition when | |
5289 | creating an Ada exception catchpoint. | |
5290 | ||
19c37f24 TT |
5291 | 2012-03-01 Tom Tromey <tromey@redhat.com> |
5292 | ||
5293 | * valprint.c (val_print_type_code_flags): Fix placement of | |
5294 | trailing brace. | |
5295 | ||
f0fed3a3 JB |
5296 | 2012-03-01 Joel Brobecker <brobecker@adacore.com> |
5297 | ||
5298 | * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete. | |
5299 | (update_files): Do not set MULTILINE_COMMENT_PREFIXES | |
5300 | environment variable before calling update-copyright. | |
5301 | ||
8ba85d85 JB |
5302 | 2012-03-01 Joel Brobecker <brobecker@adacore.com> |
5303 | ||
5304 | * gnulib/extra/update-copyright: Update to the latest from | |
5305 | gnulib's git repository. | |
5306 | * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment | |
5307 | variable to 2 instead of 1. | |
5308 | ||
8219b1e8 JB |
5309 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5310 | ||
5311 | * varobj.c (c_value_of_variable): Remove dead code. | |
5312 | ||
718cb7da JB |
5313 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5314 | ||
5315 | * ada-lex.p (processId): Do not modify already encoded IDs. | |
5316 | Update function documentation. | |
5317 | ||
739593e0 JB |
5318 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5319 | ||
5320 | * ada-lang.h (ada_find_renaming_symbol): Replace parameter | |
5321 | "name" with "struct symbol *name_sym". | |
5322 | * ada-exp.y (write_var_or_type): Update call to | |
5323 | ada_find_renaming_symbol. | |
5324 | "name" with "struct symbol *name_sym". Adjust Implementation | |
5325 | accordingly. Adjust the function documentation. | |
5326 | ||
852dff6c JB |
5327 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5328 | ||
5329 | * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete. | |
5330 | * ada-lang.c (ada_find_any_type): Add advance declaration. | |
5331 | Make static. Replace ada_find_any_symbol by | |
5332 | ada_find_any_type_symbol. | |
5333 | (ada_find_any_type_symbol): Renames ada_find_any_symbol. | |
5334 | Improve function description. Make static. | |
5335 | (ada_find_renaming_symbol, find_old_style_renaming_symbol): | |
5336 | Replace ada_find_any_symbol by ada_find_any_type_symbol. | |
5337 | ||
1b611343 JB |
5338 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5339 | ||
5340 | * ada-lang.c (struct tag_args): Delete. | |
5341 | (ada_get_tsd_type): Function body moved up in source file. | |
5342 | (ada_tag_name_1, ada_tag_name_2): Delete. | |
5343 | (ada_get_tsd_from_tag): New function. | |
5344 | (ada_tag_name_from_tsd): New function. | |
5345 | (ada_tag_name): Use a TRY_CATCH block instead of catch_errors | |
5346 | to determine the tag name. | |
5347 | ||
41246937 JB |
5348 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5349 | ||
5350 | * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add | |
5351 | declaration. | |
5352 | * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New | |
5353 | function. | |
5354 | ||
ffde82bf JB |
5355 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5356 | ||
5357 | * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment. | |
5358 | ||
2ad01556 JB |
5359 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5360 | ||
5361 | * ada-lang.c (ada_lookup_symbol_list): Only cache the result of | |
5362 | full searches. | |
5363 | ||
99b1c762 JB |
5364 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5365 | ||
5366 | * ada-lang.c (constrained_packed_array_type): If there is a | |
5367 | parallel XA type, use it to determine the array index type. | |
5368 | ||
2d4a02ee JB |
5369 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5370 | ||
5371 | * ada-valprint.c (ada_val_print_1): If our value is a reference | |
5372 | to an array descriptor, dereference it before converting it | |
5373 | to a simple array. | |
5374 | ||
c48db5ca JB |
5375 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5376 | ||
5377 | * ada-lang.c (ada_to_fixed_value): Call unwrap_value before | |
5378 | creating fixed value. | |
5379 | (ada_value_ind, ada_coerce_ref, assign_component) | |
5380 | (ada_evaluate_subexp): Remove call to unwrap_value before | |
5381 | call to ada_to_fixed_value. | |
5382 | ||
2e6fda7d JB |
5383 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5384 | ||
5385 | * ada-lang.c (to_fixed_array_type): Set result's type name. | |
5386 | ||
5845583d JB |
5387 | 2012-02-29 Joel Brobecker <brobecker@adacore.com> |
5388 | ||
5389 | * ada-lang.c (catch_ada_exception_command_split): Add new | |
5390 | argument cond_string. Add support for condition at end of | |
5391 | "catch exception" commands. | |
5392 | (ada_decode_exception_location): Add new argument cond_string. | |
5393 | Update call to catch_ada_exception_command_split. | |
5394 | (create_ada_exception_catchpoint): Add new argument cond_string. | |
5395 | Set the breakpoint condition if needed. | |
5396 | (catch_ada_exception_command): Update call to | |
5397 | ada_decode_exception_location. | |
5398 | (ada_decode_assert_location): Add function documentation. | |
5399 | Add support for condition at end of "catch assert" command. | |
5400 | (catch_assert_command): Update calls to ada_decode_assert_location | |
5401 | and create_ada_exception_catchpoint. | |
5402 | ||
9a7f938f JK |
5403 | 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5404 | ||
5405 | Fix disp-step-syscall.exp: fork: single step over fork. | |
5406 | * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ... | |
5407 | (i386_linux_get_syscall_number_from_regcache): ... here, new function | |
5408 | comment, change parameters gdbarch and ptid to regcache. Remove | |
5409 | parameter regcache, initialize gdbarch from regcache here. | |
5410 | (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn): | |
5411 | New functions. | |
5412 | (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn | |
5413 | instead. | |
5414 | * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and | |
5415 | 'syscall'. Make the 'int' check more strict. | |
5416 | ||
ffdf6de5 JK |
5417 | 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5418 | ||
5419 | Fix reverse mode for syscall on AMD CPUs in 32-bit mode. | |
5420 | * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ... | |
5421 | (i386_linux_intx80_sysenter_syscall_record): ... here. | |
5422 | (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD. | |
5423 | Use the renamed function name. | |
5424 | ||
c70a6932 JK |
5425 | 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5426 | ||
5427 | * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME. | |
5428 | * breakpoint.c (until_break_command): Likewise. | |
5429 | * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. | |
5430 | * infcall.c (call_function_by_hand): Likewise. | |
5431 | * infcmd.c (finish_forward): Likewise. | |
5432 | * infrun.c (insert_exception_resume_breakpoint): Likewise. | |
5433 | ||
05b8a789 | 5434 | 2012-02-28 Tristan Gingold <gingold@adacore.com> |
d4cd3da9 | 5435 | |
d4cd3da9 JB |
5436 | * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to |
5437 | avoid variable assignments inside condition. | |
5438 | ||
6425366c JK |
5439 | 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
5440 | ||
5441 | Fix static analysis issue found by cppcheck. | |
5442 | * microblaze-tdep.c (microblaze_extract_return_value): Fix | |
5443 | uninitialized BUF for size 2. | |
5444 | ||
c8cef75f | 5445 | 2012-02-27 Chris Dearman <chris@mips.com> |
a09130f9 PA |
5446 | Nathan Froyd <froydnj@codesourcery.com> |
5447 | Maciej W. Rozycki <macro@codesourcery.com> | |
c8cef75f MR |
5448 | |
5449 | * mips-tdep.c (mips32_instruction_has_delay_slot): New function. | |
5450 | (mips16_instruction_has_delay_slot): Likewise. | |
5451 | (mips_segment_boundary): Likewise. | |
5452 | (mips_adjust_breakpoint_address): Likewise. | |
5453 | (mips_gdbarch_init): Use mips_adjust_breakpoint_address. | |
5454 | ||
473347ad | 5455 | 2012-02-27 Maciej W. Rozycki <macro@mips.com> |
a09130f9 | 5456 | Maciej W. Rozycki <macro@codesourcery.com> |
473347ad MR |
5457 | |
5458 | * infrun.c (handle_inferior_event): Don't proceed through | |
5459 | shared library trampolines if stepping at the machine | |
5460 | instruction level. | |
5461 | ||
cf233303 MR |
5462 | 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com> |
5463 | ||
5464 | * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs | |
5465 | too. | |
5466 | ||
cb2cf4ce TS |
5467 | 2012-02-27 Thomas Schwinge <thomas@codesourcery.com> |
5468 | ||
5469 | * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id) | |
5470 | (sh_stub_unwind_sniffer): New functions. | |
5471 | (sh_stub_unwind): New variable. | |
5472 | (sh_gdbarch_init): Wire everything. | |
5473 | ||
644cebc9 PA |
5474 | 2012-02-27 Pedro Alves <palves@redhat.com> |
5475 | ||
5476 | * linux-nat.c (pid_is_stopped): Delete, moved to common/. | |
5477 | (linux_nat_post_attach_wait): Adjust to use | |
5478 | linux_proc_pid_is_stopped. | |
5479 | * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare. | |
5480 | * common/linux-procfs.c (linux_proc_pid_is_stopped): New function, | |
5481 | based on pid_is_stopped from both linux-nat.c and | |
5482 | gdbserver/linux-low.c, and renamed. | |
5483 | ||
283002cf MR |
5484 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
5485 | ||
5486 | * remote.c (remote_watchpoint_addr_within_range): New function. | |
5487 | (init_remote_ops): Use it. | |
5488 | ||
9b3e86b1 MR |
5489 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
5490 | ||
5491 | * target.h (target_watchpoint_addr_within_range): Document macro. | |
5492 | ||
e36930bb PA |
5493 | 2012-02-24 Pedro Alves <palves@redhat.com> |
5494 | ||
5495 | * stack.c (set_last_displayed_sal): Issue internal_error instead | |
5496 | of warning, and issue it after clearing the last displayed sal. | |
5497 | ||
883bc8d1 PA |
5498 | 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
5499 | Pedro Alves <palves@redhat.com> | |
5500 | ||
5501 | * breakpoint.c (until_break_command): Install breakpoints after | |
5502 | all frame manipulations. | |
5503 | ||
b775012e LM |
5504 | 2012-02-24 Luis Machado <lgustavo@codesourcery.com> |
5505 | ||
5506 | * remote.c (remote_supports_cond_breakpoints): New forward | |
5507 | declaration. | |
5508 | (remote_add_target_side_condition): New function. | |
5509 | (remote_insert_breakpoint): Add target-side breakpoint | |
5510 | conditional if supported. | |
5511 | (remote_insert_hw_breakpoint): Likewise. | |
5512 | (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions | |
5513 | hook. | |
5514 | ||
5515 | * target.c (update_current_target): Inherit | |
5516 | to_supports_evaluation_of_breakpoint_conditions. | |
5517 | Default to_supports_evaluation_of_breakpoint_conditions to return_zero. | |
5518 | ||
5519 | * target.h (struct target_ops) | |
5520 | <to_supports_evaluation_of_breakpoint_conditions>: New field. | |
5521 | (target_supports_evaluation_of_breakpoint_conditions): New #define. | |
5522 | ||
5523 | * breakpoint.c (get_first_locp_gte_addr): New forward declaration. | |
5524 | (condition_evaluation_both, condition_evaluation_auto, | |
5525 | condition_evaluation_host, condition_evaluation_target, | |
5526 | condition_evaluation_enums, condition_evaluation_mode_1, | |
5527 | condition_evaluation_mode): New static globals. | |
5528 | (translate_condition_evaluation_mode): New function. | |
5529 | (breakpoint_condition_evaluation_mode): New function. | |
5530 | (gdb_evaluates_breakpoint_condition_p): New function. | |
5531 | (ALL_BP_LOCATIONS_AT_ADDR): New helper macro. | |
5532 | (mark_breakpoint_modified): New function. | |
5533 | (mark_breakpoint_location_modified): New function. | |
5534 | (set_condition_evaluation_mode): New function. | |
5535 | (show_condition_evaluation_mode): New function. | |
5536 | (bp_location_compare_addrs): New function. | |
5537 | (get_first_location_gte_addr): New helper function. | |
5538 | (set_breakpoint_condition): Free condition bytecode if locations | |
5539 | has become unconditional. Call mark_breakpoint_modified (...). | |
5540 | (condition_command): Call update_global_location_list (1) for | |
5541 | breakpoints. | |
5542 | (breakpoint_xfer_memory): Use is_breakpoint (...). | |
5543 | (is_breakpoint): New function. | |
5544 | (parse_cond_to_aexpr): New function. | |
5545 | (build_target_condition_list): New function. | |
5546 | (insert_bp_location): Handle target-side conditional | |
5547 | breakpoints and call build_target_condition_list (...). | |
5548 | (update_inserted_breakpoint_locations): New function. | |
5549 | (insert_breakpoint_locations): Handle target-side conditional | |
5550 | breakpoints. | |
5551 | (bpstat_check_breakpoint_conditions): Add comment. | |
5552 | (bp_condition_evaluator): New function. | |
5553 | (bp_location_condition_evaluator): New function. | |
5554 | (print_breakpoint_location): Print information on where the condition | |
5555 | will be evaluated. | |
5556 | (print_one_breakpoint_location): Likewise. | |
5557 | (init_bp_location): Call mark_breakpoint_location_modified (...) for | |
5558 | breakpoint location. | |
5559 | (force_breakpoint_reinsertion): New functions. | |
5560 | (update_global_location_list): Handle target-side breakpoint | |
5561 | conditions. | |
5562 | Reinsert locations that are already inserted if conditions have | |
5563 | changed. | |
5564 | (bp_location_dtor): Free agent expression bytecode. | |
5565 | (disable_breakpoint): Call mark_breakpoint_modified (...). | |
5566 | Call update_global_location_list (...) with parameter 1 for breakpoints. | |
5567 | (disable_command): Call mark_breakpoint_location_modified (...). | |
5568 | Call update_global_location_list (...) with parameter 1 for breakpoints. | |
5569 | (enable_breakpoint_disp): Call mark_breakpoint_modified (...). | |
5570 | (enable_command): mark_breakpoint_location_modified (...). | |
5571 | (_initialize_breakpoint): Update documentation and add | |
5572 | condition-evaluation breakpoint subcommand. | |
5573 | ||
5574 | * breakpoint.h: Include ax.h. | |
5575 | (condition_list): New data structure. | |
5576 | (condition_status): New enum. | |
5577 | (bp_target_info) <cond_list>: New field. | |
5578 | (bp_location) <condition_changed, cond_bytecode>: New fields. | |
5579 | (is_breakpoint): New prototype. | |
5580 | ||
3788aec7 LM |
5581 | 2012-02-24 Luis Machado <lgustavo@codesourcery.com> |
5582 | ||
5583 | * remote.c (remote_state) <cond_breakpoints>: New field. | |
5584 | (PACKET_ConditionalBreakpoints): New enum. | |
5585 | (remote_cond_breakpoint_feature): New function. | |
5586 | (remote_protocol_features): Add new ConditionalBreakpoints entry. | |
5587 | (remote_supports_cond_breakpoints): New function. | |
5588 | (_initialize_remote): Add new packet configuration for | |
5589 | target-side conditional breakpoints. | |
5590 | ||
72895ff6 LM |
5591 | 2012-02-24 Luis Machado <lgustavo@codesourcery.com> |
5592 | ||
5593 | * NEWS: Mention target-side conditional breakpoint support, | |
5594 | new condition-evaluation breakpoint subcommand and remote | |
5595 | packet extensions. | |
5596 | ||
dea2aa5f LM |
5597 | 2012-02-24 Luis Machado <lgustavo@codesourcery.com> |
5598 | ||
5599 | * breakpoint.c (bp_location_compare): Sort by pspace before sorting by | |
5600 | number. | |
5601 | ||
8a8bc27f TS |
5602 | 2012-02-24 Thomas Schwinge <thomas@codesourcery.com> |
5603 | ||
5604 | * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal. | |
5605 | (after_prologue): Remove. | |
5606 | ||
6b446fdf TT |
5607 | 2012-02-23 Tom Tromey <tromey@redhat.com> |
5608 | ||
5609 | * jv-valprint.c (java_val_print): Remove dead code. | |
5610 | ||
ef59abfb TG |
5611 | 2012-02-23 Tristan Gingold <gingold@adacore.com> |
5612 | ||
a09130f9 PA |
5613 | * ada-tasks.c (struct ada_tasks_inferior_data): Add |
5614 | known_tasks_element and known_tasks_length fields. | |
5615 | (read_known_tasks_array): Change argument type. Use pointer type | |
5616 | and number of elements from DATA. Adjust. | |
5617 | (read_known_tasks_list): Likewise. | |
5618 | (get_known_tasks_addr): Remove. | |
5619 | (ada_set_current_inferior_known_tasks_addr): Renamed to ... | |
5620 | (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element | |
5621 | type and array length. Merge former get_known_tasks_addr code. | |
ef59abfb | 5622 | |
def166f6 JK |
5623 | 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
5624 | ||
5625 | PR backtrace/13716 | |
5626 | * infcmd.c (finish_forward): New variable frame_id, initialize it, use | |
5627 | it after set_momentary_breakpoint. | |
5628 | ||
aeaa2474 SA |
5629 | 2012-02-22 Sterling Augustine <saugustine@google.com> |
5630 | ||
5631 | PR 13689: | |
5632 | * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch. | |
5633 | ||
feea76c2 GB |
5634 | 2012-02-22 Gary Benson <gbenson@redhat.com> |
5635 | ||
5636 | * dwarf2read.c (dwarf2_read_index): Correct misspelling. | |
5637 | (find_slot_in_mapped_hash): Likewise. | |
5638 | ||
f06e05e0 JK |
5639 | 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
5640 | ||
5641 | PR build/13638 | |
5642 | * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR. | |
5643 | (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR. | |
5644 | * configure: Regenerate. | |
5645 | ||
b54a8fd7 PA |
5646 | 2012-02-21 Tristan Gingold <gingold@adacore.com> |
5647 | Pedro Alves <palves@redhat.com> | |
5648 | ||
5649 | * ia64-tdep.c: Do not include libunwind-ia64.h. | |
5650 | * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard. | |
5651 | Include libunwind-ia64.h instead of libunwind.h. | |
5652 | * configure.ac (--with-libunwind, $enable_libunwind): Don't check | |
5653 | for libunwind.h existence. | |
5654 | * configure, config.in: Regenerate. | |
5655 | ||
dfcee124 AG |
5656 | 2012-02-21 Anton Gorenkov <xgsa@yandex.ru> |
5657 | ||
5658 | * c-valprint.c (c_value_print): Use value_rtti_indirect_type | |
5659 | instead of value_rtti_target_type. | |
5660 | * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type | |
5661 | instead of value_rtti_target_type. | |
5662 | * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of | |
5663 | value_rtti_target_type. | |
5664 | * valops.c (value_ind): Extract function readjust_indirect_value_type. | |
5665 | (value_rtti_target_type): Rename to ... | |
5666 | (value_rtti_indirect_type): ... here and make it indirect. Update | |
5667 | function comment. | |
5668 | * value.c (readjust_indirect_value_type): New function. | |
5669 | (coerce_ref): Support for enclosing type setting for references | |
5670 | with readjust_indirect_value_type. | |
5671 | * value.h (readjust_value_type): New declaration. | |
5672 | (value_rtti_target_type): Rename to ... | |
5673 | (value_rtti_indirect_type): ... here. | |
5674 | ||
02568277 AG |
5675 | 2012-02-21 Anton Gorenkov <xgsa@yandex.ru> |
5676 | ||
5677 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
5678 | ||
10c07b7e | 5679 | 2012-02-20 Doug Evans <dje@google.com> |
28ee876a | 5680 | |
d82ea6a8 DE |
5681 | * objfiles.c (add_to_objfile_sections): Remove outdated comments. |
5682 | Rename objfile_p_char parameter to objfilep. | |
5683 | (build_objfile_section_table): Result is now void. All callers | |
5684 | updated. | |
5685 | * objfiles.h (struct objfile): Tweak comments, whitespace. | |
5686 | (build_objfile_section_table): Update. | |
5687 | ||
28ee876a DE |
5688 | * elfread.c (elf_symfile_segments): Fix warning text. |
5689 | ||
24c79950 TT |
5690 | 2012-02-20 Tom Tromey <tromey@redhat.com> |
5691 | ||
5692 | PR gdb/13498: | |
5693 | * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a | |
5694 | particular set of file names once. | |
5695 | (dw2_map_symbol_filenames): Likewise. | |
5696 | ||
3a9b40b6 JK |
5697 | 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
5698 | ||
5699 | Code cleanup. | |
5700 | * main.c (write_files): Remove the declaration. | |
5701 | (external_editor_command): Move the declaration ... | |
5702 | [GDBTK] (external_editor_command): ... here. Fix the comment. | |
5703 | ||
4d0795ca TT |
5704 | 2012-02-20 Tom Tromey <tromey@redhat.com> |
5705 | ||
5706 | * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove | |
5707 | extraneous block. | |
5708 | ||
637fd620 TG |
5709 | 2012-02-20 Tristan Gingold <gingold@adacore.com> |
5710 | ||
5711 | * darwin-nat.h (enum darwin_msg_state): Add comments. | |
5712 | ||
6f124894 TG |
5713 | 2012-02-20 Tristan Gingold <gingold@adacore.com> |
5714 | ||
5715 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset | |
5716 | value. | |
5717 | ||
2e6e3d9c JB |
5718 | 2012-20-18 Joel Brobecker <brobecker@adacore.com> |
5719 | ||
5720 | * breakpoint.c (watchpoint_exp_is_const): Add missing empty line | |
5721 | between function description and implementation. | |
5722 | ||
2e8265fd TT |
5723 | 2012-02-17 Tom Tromey <tromey@redhat.com> |
5724 | ||
5725 | PR python/12070: | |
5726 | * python/py-event.c (event_object_getset): New global. | |
5727 | (event_object_type): Reference it. | |
5728 | * python/py-type.c (field_object_getset): New global. | |
5729 | (field_object_type): Reference it. | |
5730 | * python/python-internal.h (gdb_py_generic_dict): Declare. | |
5731 | * python/py-utils.c (gdb_py_generic_dict): New function. | |
5732 | ||
8544a150 | 5733 | 2012-02-17 Tristan Gingold <gingold@adacore.com> |
6f124894 | 5734 | |
8544a150 | 5735 | * solib-darwin.c (darwin_current_sos): Check magic and filetype |
6f124894 | 5736 | |
ca193e27 TS |
5737 | 2012-02-17 Thomas Schwinge <thomas@codesourcery.com> |
5738 | ||
5739 | * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of | |
5740 | TYPE_CALLING_CONVENTION annotation. | |
5741 | ||
e5586183 KB |
5742 | 2012-02-16 Kevin Buettner <kevinb@redhat.com> |
5743 | ||
5744 | * MAINTAINERS: Add rx to target ISA section. | |
5745 | * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o. | |
5746 | (ALLDEPFILES): Add rx-tdep.c. | |
5747 | ||
7dcd53a0 TT |
5748 | 2012-02-16 Tom Tromey <tromey@redhat.com> |
5749 | ||
5750 | * symfile.c (symbol_file_add_main_1): Use inferior's | |
5751 | symfile_flags. | |
5752 | * solib.c (solib_read_symbols): Use inferior's symfile_flags. | |
5753 | * linux-nat.c (linux_child_follow_fork): Set symfile_flags on | |
5754 | inferior. | |
5755 | * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on | |
5756 | inferior. | |
5757 | (follow_exec): Use inferior's symfile_flags. | |
5758 | * inferior.h (struct inferior) <symfile_flags>: New field. | |
5759 | ||
ddd60447 MF |
5760 | 2012-02-16 Mike Frysinger <vapier@gentoo.org> |
5761 | ||
5762 | PR gdb/9734: | |
5763 | * remote-sim.c (gdbsim_create_inferior): Call error() when | |
5764 | sim_create_inferior() fails. | |
5765 | ||
b0d32fb6 TG |
5766 | 2012-02-16 Josh Matthews <josh@joshmatthews.net> |
5767 | ||
5768 | * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure. | |
5769 | ||
9addecb9 TT |
5770 | 2012-02-16 Tom Tromey <tromey@redhat.com> |
5771 | ||
5772 | PR c++/13653: | |
5773 | * thread.c (struct current_thread_cleanup) <was_removable>: New | |
5774 | field. | |
5775 | (restore_current_thread_cleanup_dtor): Restore 'removable' field. | |
5776 | (make_cleanup_restore_current_thread): Initialize new field. | |
5777 | ||
a58b110a KB |
5778 | 2012-02-15 Kevin Buettner <kevinb@redhat.com> |
5779 | ||
5780 | * MAINTAINERS: Add rl78 to target ISA section. | |
5781 | * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o. | |
5782 | (ALLDEPFILES): Add rl78-tdep.c. | |
5783 | * NEWS: Mention rl78 as a new target. | |
5784 | ||
4cb6da1c AR |
5785 | 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com> |
5786 | ||
5787 | * frame.c (find_frame_sal): Initialize sal->pspace field from frame | |
5788 | data. | |
5789 | * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL. | |
5790 | ||
3af2590d TT |
5791 | 2012-02-15 Tom Tromey <tromey@redhat.com> |
5792 | ||
5793 | PR gdb/12659: | |
5794 | * infcmd.c (registers_info): Print just the current register's | |
5795 | name. | |
5796 | ||
c6910659 TT |
5797 | 2012-02-15 Tom Tromey <tromey@redhat.com> |
5798 | ||
5799 | * python/py-symbol.c (sympy_value): Use _(). | |
5800 | ||
7cee1e54 PA |
5801 | 2012-02-15 Pedro Alves <palves@redhat.com> |
5802 | ||
5803 | * remote.c (remote_detach_1, extended_remote_attach_1): Tweak | |
5804 | output to be like native targets'. | |
5805 | (remote_pid_to_str): Special case the null ptid. | |
5806 | ||
816338b5 SS |
5807 | 2012-02-14 Stan Shebs <stan@codesourcery.com> |
5808 | ||
5809 | * NEWS: Mention enable count command. | |
5810 | * breakpoint.h (struct breakpoint): New field enable_count. | |
5811 | * breakpoint.c (enable_breakpoint_disp): Add count argument. | |
5812 | (enable_breakpoint): Add arg to call. | |
5813 | (struct disp_data): New struct. | |
5814 | (do_enable_breakpoint_disp): Interp arg as disp_data and unpack. | |
5815 | (do_map_enable_once_breakpoint): Create a struct and pass it. | |
5816 | (do_map_enable_delete_breakpoint): Ditto. | |
5817 | (do_map_enable_count_breakpoint): New function. | |
5818 | (enable_count_command): New function. | |
5819 | (bpstat_stop_status): Decrement enable_count. | |
5820 | (print_one_breakpoint_location): Report enable count. | |
5821 | (_initialize_breakpoint): Add enable count command. | |
5822 | ||
c47a44f4 KB |
5823 | 2012-02-14 Kevin Buettner <kevinb@redhat.com> |
5824 | ||
5825 | * rl78-tdep.c (reggroups.h): Include. | |
5826 | (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM) | |
5827 | (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM) | |
5828 | (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM) | |
5829 | (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM) | |
5830 | (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM) | |
5831 | (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM) | |
5832 | (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM) | |
5833 | (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM) | |
5834 | (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM) | |
5835 | (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM) | |
5836 | (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM) | |
5837 | (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM) | |
5838 | (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM) | |
5839 | (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM) | |
5840 | (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM) | |
5841 | (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to | |
5842 | beginning of register list. | |
5843 | (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM) | |
5844 | (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM) | |
5845 | (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM) | |
5846 | (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM) | |
5847 | (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM) | |
5848 | (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM) | |
5849 | (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM) | |
5850 | (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM) | |
5851 | (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM) | |
5852 | (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM) | |
5853 | (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into | |
5854 | the pseudo registers. Rearrange other pseudo registers too so | |
5855 | that the bank registers appear at the end. | |
5856 | (rl78_register_type): Account for the fact that the byte sized | |
5857 | bank registers are now pseudo-registers. | |
5858 | (rl78_register_name): Rearrange the register name array. Make | |
5859 | initial set of raw banked registers inaccessible. | |
5860 | (rl78_register_reggroup_p, rl78_register_sim_regno): New functions. | |
5861 | (rl78_pseudo_register_read, rl78_pseudo_register_write): Add | |
5862 | case for copying bytes back and forth between raw and pseudo | |
5863 | versions of the banked registers. Update other cases to reflect | |
5864 | the changed names. | |
5865 | (rl78_return_value): Update to account for changed names of | |
5866 | raw registers. | |
5867 | (rl78_gdbarch_init): Register rl78_register_reggroup_p() and | |
5868 | rl78_register_sim_regno(). | |
5869 | ||
e4569f1e KB |
5870 | 2012-02-14 Kevin Buettner <kevinb@redhat.com> |
5871 | ||
5872 | * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of | |
5873 | the name parameter being passed to find_pc_partial_function(). | |
5874 | ||
7a05aae7 JK |
5875 | 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
5876 | ||
5877 | * MAINTAINERS: Step down from being ia64 target maintainer. | |
5878 | ||
11fde611 JK |
5879 | 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
5880 | ||
5881 | * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing | |
5882 | compilation warning. | |
5883 | ||
57008375 JK |
5884 | 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
5885 | ||
5886 | Fix crash on loaded shlibs without loaded exec_bfd. | |
5887 | * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD. | |
5888 | (set_section_command): Replace exec_bfd by p->bfd. | |
5889 | ||
ff3c9849 TT |
5890 | 2012-02-10 Tom Tromey <tromey@redhat.com> |
5891 | ||
5892 | * linespec.c (decode_line_internal): Skip symtabs_from_filename | |
5893 | when we have a C++ qualified name. | |
5894 | ||
db2b9fdd PA |
5895 | 2012-02-10 Pedro Alves <palves@redhat.com> |
5896 | ||
5897 | * inferior.c (inferior_pid_to_str): New. | |
5898 | (print_inferior, inferior_command): Use it. | |
5899 | ||
12cd34f3 PA |
5900 | 2012-02-10 Pedro Alves <palves@redhat.com> |
5901 | ||
5902 | * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of | |
5903 | the test CFLAGS. | |
5904 | * configure: Regenerate. | |
5905 | ||
e871429d JK |
5906 | 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
5907 | ||
5908 | * linespec.c (decode_line_internal): Fix comment correctness. | |
5909 | ||
1916efaf PA |
5910 | 2012-02-09 Valery Khromov <valery.khromov@gmail.com> |
5911 | ||
5912 | PR gdb/12953 | |
5913 | * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h. | |
5914 | * amd64bsd-nat.c: Add support for debug registers (adapted from | |
5915 | i386bsd-nat.c). | |
5916 | [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set) | |
5917 | (amd64bsd_dr_set_control, amd64bsd_dr_set_addr) | |
5918 | (amd64bsd_dr_get_addr, amd64bsd_dr_get_status) | |
5919 | (amd64bsd_dr_get_control): New functions. | |
5920 | * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h). | |
5921 | * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h". | |
5922 | [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware | |
5923 | watchpoints initialization. | |
5924 | * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o. | |
5925 | ||
f4859d94 JK |
5926 | 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
5927 | ||
5928 | * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print | |
5929 | flds_bnds.fields. | |
5930 | (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds. | |
5931 | ||
c56a97f9 JK |
5932 | 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
5933 | ||
5934 | * breakpoint.c (bp_location_compare): Fix comment. Reindent the code. | |
5935 | ||
1a119f36 JB |
5936 | 2012-02-08 Joel Brobecker <brobecker@adacore.com> |
5937 | ||
5938 | * language.h (symbol_name_cmp_ftype): Renames | |
5939 | symbol_name_match_p_ftype. | |
5940 | (struct language_defn)[la_get_symbol_name_cmp]: Renames | |
5941 | la_get_symbol_name_match_p. | |
5942 | * ada-lang.c (ada_get_symbol_name_cmp): Renames | |
5943 | ada_get_symbol_name_match_p. Update comment. | |
5944 | (ada_language_defn)[la_get_symbol_name_cmp]: Update value. | |
5945 | * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]: | |
5946 | Renames symbol_name_match_p. Update field type. | |
5947 | (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust. | |
5948 | * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, | |
5949 | opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by | |
5950 | "la_get_symbol_name_cmp" in comments. | |
5951 | * language.c: Likewise. | |
5952 | ||
c71bb1cf RO |
5953 | 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5954 | ||
5955 | * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct | |
5956 | %eflags offset. | |
5957 | * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs) | |
5958 | (amd64_sol2_gregset32_reg_offs): Likewise. | |
5959 | ||
4b2d20a5 TG |
5960 | 2012-02-08 Joel Brobecker <brobecker@adacore.com> |
5961 | ||
5962 | * solib-darwin.c (darwin_bfd_open): Make sure that the filename | |
5963 | of the returned BFD is allocated by GDB. | |
5964 | ||
f0823d2c TT |
5965 | 2012-02-07 Tom Tromey <tromey@redhat.com> |
5966 | ||
5967 | PR python/12027: | |
5968 | * python/python-internal.h (frame_object_type): Declare. | |
5969 | * python/py-symbol.c (sympy_needs_frame): New function. | |
5970 | (sympy_value): New function. | |
5971 | (symbol_object_getset): Add "needs_frame". | |
5972 | (symbol_object_methods): Add "value". | |
5973 | * python/py-frame.c (frame_object_type): No longer static. | |
5974 | ||
64e7d9dd TT |
5975 | 2012-02-07 Tom Tromey <tromey@redhat.com> |
5976 | ||
5977 | PR python/13599: | |
5978 | * python/py-symbol.c (sympy_line): New function. | |
5979 | (symbol_object_getset): Add "line". | |
5980 | ||
1d6b2d2b TT |
5981 | 2012-02-07 Tom Tromey <tromey@redhat.com> |
5982 | ||
5983 | * charset.c (find_charset_names): Check 'in' against NULL. | |
5984 | ||
0d5cff50 DE |
5985 | 2012-02-06 Doug Evans <dje@google.com> |
5986 | ||
5987 | * gdbtypes.h (struct main_type): Change type of name,tag_name, | |
5988 | and fields.name members from char * to const char *. All uses updated. | |
5989 | (struct cplus_struct_type): Change type of fn_fieldlists.name member | |
5990 | from char * to const char *. All uses updated. | |
5991 | (type_name_no_tag): Update. | |
5992 | (lookup_unsigned_typename, lookup_signed_typename): Update. | |
5993 | * gdbtypes.c (type_name_no_tag): Change result type | |
5994 | from char * to const char *. All callers updated. | |
5995 | (lookup_unsigned_typename, lookup_signed_typename): Change type of | |
5996 | name parameter from char * to const char *. | |
5997 | * symtab.h (struct cplus_specific): Change type of demangled_name | |
5998 | member from char * to const char *. All uses updated. | |
5999 | (struct general_symbol_info): Change type of name and | |
6000 | mangled_lang.demangled_name members from char * to const char *. | |
6001 | All uses updated. | |
6002 | (symbol_get_demangled_name, symbol_natural_name): Update. | |
6003 | (symbol_demangled_name, symbol_search_name): Update. | |
6004 | * symtab.c (symbol_get_demangled_name): Change result type | |
6005 | from char * to const char *. All callers updated. | |
6006 | (symbol_natural_name, symbol_demangled_name): Ditto. | |
6007 | (symbol_search_name): Ditto. | |
6008 | (completion_list_add_name): Change type of symname,sym_text, | |
6009 | text,word parameters from char * to const char *. | |
6010 | (completion_list_objc_symbol): Change type of sym_text, | |
6011 | text,word parameters from char * to const char *. | |
6012 | * ada-lang.c (find_struct_field): Change type of name parameter | |
6013 | from char * to const char *. | |
6014 | (encoded_ordered_before): Similarly for N0,N1 parameters. | |
6015 | (old_renaming_is_invisible): Similarly for function_name parameter. | |
6016 | (ada_type_name): Change result type from char * to const char *. | |
6017 | All callers updated. | |
6018 | * ada-lang.h (ada_type_name): Update. | |
6019 | * buildsym.c (hashname): Change type of name parameter | |
6020 | from char * to const char *. | |
6021 | * buildsym.h (hashname): Update. | |
6022 | * dbxread.c (end_psymtab): Change type of include_list parameter | |
6023 | from char ** to const char **. | |
6024 | * dwarf2read.c (determine_prefix): Change result type | |
6025 | from char * to const char *. All callers updated. | |
6026 | * f-lang.c (find_common_for_function): Change type of name, funcname | |
6027 | parameters from char * to const char *. | |
6028 | * f-lang.c (find_common_for_function): Update. | |
6029 | * f-valprint.c (list_all_visible_commons): Change type of funcname | |
6030 | parameters from char * to const char *. | |
6031 | * gdbarch.sh (static_transform_name): Change type of name parameter | |
6032 | and result from char * to const char *. | |
6033 | * gdbarch.c: Regenerate. | |
6034 | * gdbarch.h: Regenerate. | |
6035 | * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type | |
6036 | of name parameter from char * to const char *. | |
6037 | * jv-lang.c (java_primitive_type_from_name): Ditto. | |
6038 | (java_demangled_signature_length): Similarly for signature parameter. | |
6039 | (java_demangled_signature_copy): Ditto. | |
6040 | (java_demangle_type_signature): Ditto. | |
6041 | * jv-lang.h (java_primitive_type_from_name): Update. | |
6042 | (java_demangle_type_signature): Update. | |
6043 | * objc-lang.c (specialcmp): Change type of a,b parameters | |
6044 | from char * to const char *. | |
6045 | * p-lang.c (is_pascal_string_type): Change type of arrayname parameter | |
6046 | from char * to const char *. All callers updated. | |
6047 | * p-lang.h (is_pascal_string_type): Update. | |
6048 | * solib-frv.c (find_canonical_descriptor_in_load_object): Change type | |
6049 | of name parameter from char * to const char *. | |
6050 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto. | |
6051 | * utils.c (fprintf_symbol_filtered): Ditto. | |
6052 | * defs.h (fprintf_symbol_filtered): Update. | |
6053 | * sparc-tdep.h (sparc_sol2_static_transform_name): Update. | |
6054 | * stabsread.h (end_psymtab): Update. | |
6055 | * stack.c (find_frame_funname): Change type of funname parameter | |
6056 | from char ** to const char **. | |
6057 | * stack.h (find_frame_funname): Update. | |
6058 | * typeprint.c (type_print): Change type of varstring parameter | |
6059 | from char * to const char *. | |
6060 | * value.h (type_print): Update. | |
6061 | * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter | |
6062 | from char * to const char *. All callers updated. | |
6063 | (xcoff_end_psymtab): Change type of include_list parameter | |
6064 | from char ** to const char **. All callers updated. | |
6065 | (swap_sym): Similarly for name parameter. All callers updated. | |
6066 | * coffread.c (patch_type): Add (char*) cast to xfree parameter. | |
6067 | Use xstrdup. | |
6068 | (process_coff_symbol): Use xstrdup. | |
6069 | * stabsread.c (stabs_method_name_from_physname): Renamed from | |
6070 | update_method_name_from_physname. Change result type from void | |
6071 | to char *. All callers updated. | |
6072 | (read_member_functions): In has_destructor case, store name in objfile | |
6073 | obstack instead of malloc space. In !has_stub case, fix mem leak. | |
6074 | ||
5579a92e TT |
6075 | 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com> |
6076 | ||
6077 | * configure: Rebuild. | |
6078 | * configure.ac: Put -L../bfd and -L../libiberty at the front of | |
6079 | LDFLAGS. | |
6080 | ||
9058f767 KB |
6081 | 2012-02-03 Kevin Buettner <kevinb@redhat.com> |
6082 | ||
6083 | * configure.tgt (rl78-*-elf): New target. | |
6084 | * rl78-tdep.c: New file. | |
6085 | ||
5b37825d PW |
6086 | 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6087 | ||
6088 | * remote.c (remote_rcmd): Use getpkt_sane to detect timeout | |
6089 | and continue the loop. Add QUIT statement. | |
6090 | ||
e009ee71 TT |
6091 | 2012-02-03 Tom Tromey <tromey@redhat.com> |
6092 | ||
6093 | PR gdb/13596: | |
6094 | * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from | |
6095 | bfd_lookup_symbol_from_symtab. | |
6096 | * solib-pa64.c (pa64_solib_create_inferior_hook): Use | |
6097 | gdb_bfd_lookup_symbol_from_symtab. | |
6098 | ||
f7e44f65 JB |
6099 | 2012-02-03 Joel Brobecker <brobecker@adacore.com> |
6100 | ||
6101 | * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols, | |
6102 | use SYMBOL_LINKAGE_NAME to find the corresponding non-argument | |
6103 | symbol. Add assertion that sym2 is never NULL. | |
6104 | ||
2c02bd72 DE |
6105 | 2012-02-02 Doug Evans <dje@google.com> |
6106 | ||
6107 | * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of | |
6108 | "name" parameter to const char ** from char **. All callers updated. | |
6109 | (find_pc_partial_function): Ditto. | |
6110 | (cache_pc_function_name): Change type to const char * from char *. | |
6111 | * symtab.h ((find_pc_partial_function_gnu_ifunc): Update. | |
6112 | (find_pc_partial_function): Update. | |
6113 | * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change | |
6114 | type of "name" parameter to const char * from char *. | |
6115 | All uses updated. | |
6116 | * arch-utils.c (generic_in_solib_return_trampoline): Change | |
6117 | type of "name" parameter to const char * from char *. | |
6118 | * arch-utils.h (generic_in_solib_return_trampoline): Update. | |
6119 | * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change | |
6120 | type of "name" parameter to const char * from char *. | |
6121 | * gdbarch.sh (in_solib_return_trampoline): Ditto. | |
6122 | * gdbarch.c: Regenerate. | |
6123 | * gdbarch.h: Regenerate. | |
6124 | * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update. | |
6125 | * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update. | |
6126 | * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change | |
6127 | type of "name" parameter to const char * from char *. | |
6128 | * skip.c (skip_function_pc): Ditto. | |
6129 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto. | |
6130 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update. | |
6131 | * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto. | |
6132 | * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto. | |
6133 | * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto. | |
6134 | * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto. | |
6135 | * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto. | |
6136 | * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name". | |
6137 | * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update. | |
6138 | ||
e886a173 PA |
6139 | 2012-02-02 Pedro Alves <palves@redhat.com> |
6140 | ||
6141 | * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if | |
6142 | the current inferior has no execution. Make sure the current | |
6143 | remote process matches gdb's current inferior. | |
6144 | ||
c709a7c2 TT |
6145 | 2012-02-02 Tom Tromey <tromey@redhat.com> |
6146 | ||
6147 | PR gdb/13405: | |
6148 | * tui/tui-win.c (parse_scrolling_args): Don't write to possibly | |
6149 | read-only memory. | |
6150 | ||
f149aabd TT |
6151 | 2012-02-02 Tom Tromey <tromey@redhat.com> |
6152 | ||
6153 | PR gdb/9307: | |
6154 | * symtab.c (lookup_language_this): Set block_found. | |
6155 | ||
03bef283 TT |
6156 | 2012-02-01 Tom Tromey <tromey@redhat.com> |
6157 | ||
6158 | PR gdb/13431: | |
6159 | * jit.c (struct jit_inferior_data): Rewrite. | |
6160 | (struct jit_objfile_data): New. | |
6161 | (get_jit_objfile_data): New function. | |
6162 | (add_objfile_entry): Update. | |
6163 | (jit_read_descriptor): Return int. Replace descriptor_addr | |
6164 | argument with inf_data. Update. Don't call error. | |
6165 | (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up | |
6166 | descriptor here. | |
6167 | (jit_inferior_init): Don't look up descriptor. Don't call error. | |
6168 | (jit_reset_inferior_data_and_breakpoints) | |
6169 | (jit_inferior_created_observer): Remove. | |
6170 | (jit_inferior_exit_hook): Update. | |
6171 | (jit_executable_changed_observer): Remove. | |
6172 | (jit_event_handler): Update. | |
6173 | (free_objfile_data): Reset inferior data if needed. | |
6174 | (_initialize_jit): Update. | |
6175 | ||
f0bbc364 TT |
6176 | 2012-02-01 Tom Tromey <tromey@redhat.com> |
6177 | ||
6178 | * jit.c (bfd_open_from_target_memory): Move higher in file. | |
6179 | ||
47c1316c TG |
6180 | 2012-02-01 Tristan Gingold <gingold@adacore.com> |
6181 | ||
6182 | * libunwind-frame.c (libunwind_load): Display message if dlopen | |
6183 | failed. | |
6184 | ||
8e704927 GB |
6185 | 2012-02-01 Gary Benson <gbenson@redhat.com> |
6186 | ||
09c7a31f | 6187 | * symtab.h (symbol_found_callback_ftype): New typedef. |
8e704927 GB |
6188 | (iterate_over_symbols): Use the above. |
6189 | * symtab.c (iterate_over_symbols): Likewise. | |
6190 | * language.h (language_defn->la_iterate_over_symbols): Likewise. | |
6191 | * ada-lang.c (ada_iterate_over_symbols): Likewise. | |
6192 | * linespec.c (iterate_over_all_matching_symtabs): Likewise. | |
6193 | (iterate_name_matcher): Document return values. | |
6194 | (collect_one_symbol): Likewise. | |
6195 | (collect_function_symbols): Likewise. | |
6196 | (collect_symbols): Likewise. | |
6197 | ||
d9680e73 TT |
6198 | 2012-02-01 Tom Tromey <tromey@redhat.com> |
6199 | ||
6200 | * ada-lang.c (resolve_subexp): Update. | |
6201 | (ada_lookup_symbol_list): Add 'full_search' argument. | |
6202 | (ada_iterate_over_symbols): Pass 0 as full_search argument to | |
6203 | ada_lookup_symbol_list. | |
6204 | (ada_lookup_encoded_symbol): Update. | |
6205 | (get_var_value): Update. | |
6206 | * ada-exp.y (block_lookup): Update. | |
6207 | (write_var_or_type): Update. | |
6208 | (write_name_assoc): Update. | |
6209 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
6210 | ||
72e1143f TT |
6211 | 2012-01-31 Tom Tromey <tromey@redhat.com> |
6212 | ||
6213 | * language.h (struct language_defn) <la_iterate_over_symbols>: Fix | |
6214 | comment. | |
6215 | ||
ab2d2ad3 DE |
6216 | 2012-01-31 Doug Evans <dje@google.com> |
6217 | ||
6218 | * symtab.h: Remove outdated comment. | |
e9111bf7 | 6219 | (SYMBOL_MATCHES_NATURAL_NAME): Delete. |
ab2d2ad3 | 6220 | |
bc884eba JB |
6221 | 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change) |
6222 | ||
6223 | Fix build error in Darwin port. | |
6224 | * i386-darwin-nat.c: Include i386-nat.h. | |
6225 | ||
8fc3fc34 TT |
6226 | 2012-01-30 Tom Tromey <tromey@redhat.com> |
6227 | ||
6228 | PR breakpoints/13568: | |
6229 | * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash' | |
6230 | argument. Check for recursive includes. | |
6231 | (dwarf_decode_macros): Create an include hash. | |
6232 | ||
5d853008 ME |
6233 | 2012-01-30 Michael Eager <eager@eagercon.com> |
6234 | ||
6235 | * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o. | |
6236 | * ppc-linux-tdep.c: Include glibc-tdep.h. | |
ab2d2ad3 | 6237 | (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates. |
5d853008 ME |
6238 | (powerpc_linux_in_plt_stub): New function. |
6239 | (powerpc_linux_in_dynsym_resolve_code): New function. | |
6240 | (ppc_skip_trampoline_code): New function. | |
6241 | (ppc_linux_init_abi): Use PPC specific functions rather than generic. | |
6242 | Use glibc_skip_solib_resolver. | |
6243 | ||
40478521 JK |
6244 | 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
6245 | ||
6246 | Code cleanup: Make 1440 bytes of data segment read-only. | |
6247 | * arch-utils.c (endian_enum): Make it const char *const []. | |
6248 | * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings): | |
6249 | Likewise. | |
6250 | * breakpoint.c (always_inserted_enums): Likewise. | |
6251 | * cli/cli-cmds.c (script_ext_enums): Likewise. | |
6252 | * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the | |
6253 | enumlist parameter const char *const *. | |
6254 | * cli/cli-decode.h (struct cmd_list_element): Make the enums field | |
6255 | const char *const *. | |
6256 | * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist | |
6257 | parameter const char *const *. | |
6258 | * cris-tdep.c (cris_modes): Make it const char *const []. | |
6259 | * filesystem.c (target_file_system_kinds): Likewise. | |
6260 | * i386-tdep.c (valid_flavors, valid_conventions): Likewise. | |
6261 | * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names) | |
6262 | (can_use_displaced_stepping_enum, scheduler_enums) | |
6263 | (exec_direction_names): Likewise. | |
6264 | * language.c (_initialize_language): Make the type_or_range_names and | |
6265 | case_sensitive_names variables const char *const []. | |
6266 | * mips-tdep.c (mips_abi_strings): Make it const char *const []. | |
6267 | * python/python.c (python_excp_enums): Likewise. | |
6268 | * remote.c (interrupt_sequence_modes): Likewise. | |
6269 | * rs6000-tdep.c (powerpc_vector_strings): Likewise. | |
6270 | * serial.c (logbase_enums): Likewise. | |
6271 | * sh-tdep.c (sh_cc_enum): Likewise. | |
6272 | * stack.c (print_frame_arguments_choices, print_entry_values_choices): | |
6273 | Likewise. | |
6274 | * symtab.c (multiple_symbols_modes): Likewise. | |
6275 | * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums): | |
6276 | Likewise. | |
6277 | * utils.c (internal_problem_modes): Likewise. | |
6278 | ||
b3b8b934 JK |
6279 | 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
6280 | ||
6281 | Fix the 2012-01-26 regression by la_get_symbol_name_match_p. | |
6282 | * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P | |
6283 | result. | |
6284 | ||
8c85a4e2 DE |
6285 | 2012-01-27 Doug Evans <dje@google.com> |
6286 | ||
6287 | * configure.ac (with_python): Fix absolute path handling for win32. | |
6288 | * configure: Regenerate. | |
6289 | ||
78d8b4d7 DE |
6290 | 2012-01-26 Doug Evans <dje@google.com> |
6291 | ||
eca864fe DE |
6292 | * symtab.c: Whitespace cleanup, no code changes. |
6293 | ||
7e082072 DE |
6294 | * symtab.c (lookup_symbol_in_language): Improve comment. |
6295 | (lookup_symbol_aux): Fix comment. | |
6296 | ||
7dc25483 DE |
6297 | * psymtab.c (add_psymbol_to_list): Result is now "void". |
6298 | * psympriv.h (add_psymbol_to_list): Update. | |
6299 | ||
78d8b4d7 DE |
6300 | * dwarf2read.c (add_partial_symbol): Delete local psym, unused. |
6301 | ||
4c63965b JK |
6302 | 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
6303 | ||
6304 | Do not open script filenames twice. | |
6305 | * cli/cli-cmds.c (source_script_from_stream): Pass to | |
6306 | source_python_script also STREAM. | |
6307 | * python/py-auto-load.c (source_section_scripts): Pass to | |
6308 | source_python_script_for_objfile also STREAM. | |
6309 | (auto_load_objfile_script): Pass to source_python_script_for_objfile | |
6310 | also INPUT. | |
6311 | * python/python-internal.h (source_python_script_for_objfile): New | |
6312 | parameter file, rename parameter file to filename. | |
6313 | * python/python.c (python_run_simple_file): Call PyRun_SimpleFile | |
6314 | instead if !_WIN32. Update the function comment. | |
6315 | (source_python_script, source_python_script_for_objfile) | |
6316 | (source_python_script): New parameter file, rename parameter file to | |
6317 | filename. Pass FILENAME to python_run_simple_file. | |
6318 | * python/python.h (source_python_script): New parameter file, rename | |
6319 | parameter file to filename. | |
6320 | ||
88f38a04 PA |
6321 | 2012-01-26 Pedro Alves <palves@redhat.com> |
6322 | ||
6323 | * corelow.c (core_has_fake_pid): Delete. | |
6324 | (core_close): Delete references to `core_has_fake_pid'. | |
6325 | (add_to_thread_list): Adjust to mark the inferior's pid as fake. | |
6326 | (core_open): Delete references to `core_has_fake_pid'. | |
6327 | (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of | |
6328 | the removed global. | |
6329 | ||
e078317b JB |
6330 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
6331 | ||
6332 | * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: | |
6333 | Remove language parameter from name_matcher. Adjust the comment. | |
6334 | * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): | |
6335 | Remove language parameter. | |
6336 | * ada-lang.c (ada_expand_partial_symbol_name): Likewise. | |
6337 | * linespec.c (iterate_name_matcher): Likewise. | |
6338 | * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of | |
6339 | name_matcher. Adjust call accordingly. | |
6340 | * psymtab.c (expand_symtabs_matching_via_partial): Likewise. | |
6341 | (maintenance_check_symtabs): Adjust type of parameter "fun". | |
6342 | * psymtab.h (maintenance_check_symtabs): Likewise. | |
6343 | ||
74ccd7f5 JB |
6344 | 2012-01-26 Joel Brobecker <brobecker@adacore.com> |
6345 | ||
6346 | * language.h (symbol_name_match_p_ftype): New typedef. | |
6347 | (struct language_defn): Replace field la_symbol_name_compare | |
6348 | by la_get_symbol_name_match_p. | |
6349 | * ada-lang.c (ada_get_symbol_name_match_p): New function. | |
6350 | (ada_language_defn): Use it. | |
6351 | * linespec.c (struct symbol_matcher_data): New type. | |
6352 | (iterate_name_matcher): Rewrite. | |
6353 | (iterate_over_all_matching_symtabs): Pass a pointer to | |
6354 | a symbol_matcher_data struct to expand_symtabs_matching | |
6355 | instead of just the lookup name. | |
6356 | * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, | |
6357 | opencl-lang.c, p-lang.c, language.c: Delete field | |
6358 | la_symbol_name_compare, and replace by NULL for new field | |
6359 | la_get_symbol_name_match_p. | |
6360 | * symfile.h (struct quick_symbol_functions): Update comment. | |
6361 | ||
5d268276 TT |
6362 | 2012-01-25 Tom Tromey <tromey@redhat.com> |
6363 | ||
6364 | * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before | |
6365 | dereferencing. | |
6366 | ||
edcc5120 TT |
6367 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
6368 | ||
6369 | PR symtab/12406: | |
6370 | * solib.c (update_solib_list): Update the program space's | |
6371 | added_solibs and deleted_solibs fields. | |
6372 | * progspace.h (struct program_space) <added_solibs, | |
6373 | deleted_solibs>: New fields. | |
6374 | (clear_program_space_solib_cache): Declare. | |
6375 | * progspace.c (release_program_space): Call | |
6376 | clear_program_space_solib_cache. | |
6377 | (clear_program_space_solib_cache): New function. | |
6378 | * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call | |
6379 | bpstat_stop_status. Use handle_solib_event. | |
6380 | * breakpoint.c: Include gdb_regex.h. | |
6381 | (print_solib_event): New function. | |
6382 | (bpstat_print): Use print_solib_event. | |
6383 | (bpstat_stop_status): Add special case for bp_shlib_event. | |
6384 | (handle_solib_event): New function. | |
6385 | (bpstat_what): Use handle_solib_event. | |
6386 | (struct solib_catchpoint): New. | |
6387 | (dtor_catch_solib, insert_catch_solib, remove_catch_solib) | |
6388 | (breakpoint_hit_catch_solib, check_status_catch_solib) | |
6389 | (print_it_catch_solib, print_one_catch_solib) | |
6390 | (print_mention_catch_solib, print_recreate_catch_solib): New | |
6391 | functions. | |
6392 | (catch_solib_breakpoint_ops): New global. | |
6393 | (catch_load_or_unload, catch_load_command_1) | |
6394 | (catch_unload_command_1): New functions. | |
6395 | (internal_bkpt_check_status): Add special case for | |
6396 | bp_shlib_event. | |
6397 | (internal_bkpt_print_it): Use print_solib_event. | |
6398 | (initialize_breakpoint_ops): Initialize | |
6399 | catch_solib_breakpoint_ops. | |
6400 | (_initialize_breakpoint): Register "catch load" and "catch | |
6401 | unload". | |
6402 | * breakpoint.h (handle_solib_event): Declare. | |
6403 | * NEWS: Add entry for "catch load" and "catch unload". | |
6404 | ||
fa864999 TT |
6405 | 2012-01-24 Tom Tromey <tromey@redhat.com> |
6406 | ||
6407 | * ada-lang.c: Include gdb_vecs.h. | |
6408 | * charset.c: Include gdb_vecs.h. | |
6409 | * tracepoint.h: Include gdb_vecs.h. | |
6410 | * gdb_vecs.h: New file. | |
6411 | ||
f90263c1 TT |
6412 | 2012-01-24 Pedro Alves <pedro@codesourcery.com> |
6413 | ||
6414 | * breakpoint.c (breakpoint_hit_catch_fork) | |
6415 | (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall) | |
6416 | (breakpoint_hit_catch_exec): Make use of the `ws' argument. | |
6417 | * infrun.c (inferior_has_forked, inferior_has_vforked) | |
6418 | (inferior_has_execd, inferior_has_called_syscall): Delete. | |
6419 | (handle_syscall_event): Get syscall_number from the execution | |
6420 | control state's wait status. | |
6421 | (wait_for_inferior): Don't clear syscall_number. | |
6422 | ||
09ac7c10 TT |
6423 | 2012-01-24 Pedro Alves <palves@redhat.com> |
6424 | ||
6425 | * breakpoint.c (bpstat_check_location, bpstat_stop_status, | |
6426 | pc_at_non_inline_function): Add `ws' parameter, and pass it down. | |
6427 | (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork) | |
6428 | (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add | |
6429 | `ws' parameter. | |
6430 | (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return | |
6431 | false for events other than TARGET_SIGNAL_TRAP. | |
6432 | (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit): | |
6433 | Add `ws' parameter. | |
6434 | (bkpt_breakpoint_hit): Add `ws' parameter. Return false for | |
6435 | events other than TARGET_SIGNAL_TRAP. | |
6436 | (tracepoint_breakpoint_hit): Add `ws' parameter. | |
6437 | * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws' | |
6438 | parameter. | |
6439 | (bpstat_stop_status): Same. | |
6440 | (pc_at_non_inline_function): Same. | |
6441 | * infrun.c (handle_syscall_event, handle_inferior_event): Adjust | |
6442 | to pass the current event's waitstatus to bpstat_stop_status | |
6443 | and pc_at_non_inline_function. | |
6444 | ||
86eb7e95 JK |
6445 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
6446 | ||
6447 | Code cleanup. | |
6448 | * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM. | |
6449 | Update the function comment for it. | |
6450 | (source_script_with_search): Call make_cleanup_fclose for STREAM. | |
6451 | * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose | |
6452 | for STREAM. | |
6453 | ||
a9b3a50f PA |
6454 | 2012-01-24 Pedro Alves <palves@redhat.com> |
6455 | ||
6456 | * breakpoint.c (bpstat_stop_status): Moving clearing print_it | |
6457 | outside `bs->stop' block. | |
6458 | (bpstat_what): Rework bp_shlib_event handling. | |
6459 | (internal_bkpt_check_status): If the breakpoint is a | |
6460 | bp_shlib_event, then set bs->stop and bs->print if | |
6461 | stop_on_solib_events is set. | |
6462 | ||
53fe1783 GB |
6463 | 2012-01-24 Gary Benson <gbenson@redhat.com> |
6464 | ||
6465 | Delete #if 0'd out code. | |
6466 | * stack.c (print_frame_label_vars): Remove. | |
6467 | (catch_info): Likewise. | |
6468 | (_initialize_stack): Remove "info catch" command. | |
6469 | * NEWS: Mention the above. | |
6470 | ||
49c62f2e PA |
6471 | 2012-01-24 Pedro Alves <palves@redhat.com> |
6472 | ||
6473 | * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use | |
6474 | it. | |
6475 | (remote_notice_new_inferior): If the remote end doesn't support | |
6476 | the multiprocess extensions, then the PID is fake. | |
6477 | (add_current_inferior_and_thread): New. | |
6478 | (remote_start_remote): Use it. | |
6479 | (extended_remote_attach_1): Adjust. | |
6480 | (extended_remote_create_inferior_1): Use | |
6481 | add_current_inferior_and_thread. | |
6482 | ||
d0d8b0c6 JK |
6483 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
6484 | ||
6485 | Fix watchpoints to be specific for each inferior. | |
6486 | * breakpoint.c (watchpoint_in_thread_scope): Verify also | |
6487 | current_program_space. | |
6488 | * i386-nat.c (i386_inferior_data_cleanup): New. | |
6489 | (i386_inferior_data_get): Replace variable inf_data_local by an | |
6490 | inferior_data call. | |
6491 | (i386_use_watchpoints): Initialize i386_inferior_data. | |
6492 | * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID | |
6493 | specific iterate_over_lwps. | |
6494 | ||
4403d8e9 JK |
6495 | 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
6496 | ||
6497 | Fix watchpoints across inferior fork. | |
6498 | * amd64-linux-nat.c (update_debug_registers_callback): Update the | |
6499 | comment for linux_nat_iterate_watchpoint_lwps. | |
6500 | (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use | |
6501 | linux_nat_iterate_watchpoint_lwps. | |
6502 | (amd64_linux_prepare_to_resume): New comment on Linux kernel. | |
6503 | * i386-linux-nat.c (update_debug_registers_callback): Update the | |
6504 | comment for linux_nat_iterate_watchpoint_lwps. | |
6505 | (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use | |
6506 | linux_nat_iterate_watchpoint_lwps. | |
6507 | (i386_linux_prepare_to_resume): New comment on Linux kernel. | |
6508 | * i386-nat.c: Include inferior.h. | |
6509 | (dr_mirror): Remove. | |
6510 | (i386_inferior_data, struct i386_inferior_data) | |
6511 | (i386_inferior_data_get): New. | |
6512 | (i386_debug_reg_state): Use i386_inferior_data_get. | |
6513 | (i386_cleanup_dregs, i386_update_inferior_debug_regs) | |
6514 | (i386_insert_watchpoint, i386_remove_watchpoint) | |
6515 | (i386_stopped_data_address, i386_insert_hw_breakpoint) | |
6516 | (i386_remove_hw_breakpoint): New variable state, use | |
6517 | i386_debug_reg_state instead of DR_MIRROR. | |
6518 | * linux-nat.c (delete_lwp): New declaration. | |
6519 | (num_lwps): Move here from downwards. | |
6520 | (delete_lwp_cleanup): New. | |
6521 | (linux_child_follow_fork): Create new child_lp, call | |
6522 | linux_nat_new_thread and linux_nat_prepare_to_resume before calling | |
6523 | PTRACE_DETACH. | |
6524 | (num_lwps): Move upwards. | |
6525 | (linux_nat_iterate_watchpoint_lwps): New. | |
6526 | * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New. | |
6527 | (linux_nat_iterate_watchpoint_lwps_ftype): New declaration. | |
6528 | ||
2992c9a7 | 6529 | 2012-01-24 Joel Brobecker <brobecker@adacore.com> |
6530 | ||
6531 | GDB 7.4 released. | |
6532 | ||
e360902b PA |
6533 | 2012-01-23 Pedro Alves <palves@redhat.com> |
6534 | ||
6535 | * top.c (caution): Rename to ... | |
6536 | (confirm): ... this. | |
6537 | (show_caution): Rename to ... | |
6538 | (show_confirm): ... this. | |
6539 | (quit_cover): Adjust. | |
6540 | (init_main): Adjust. | |
6541 | * top.h (caution): Rename to ... | |
6542 | (confirm): ... this. | |
6543 | * utils.c (internal_vproblem, defaulted_query): Adjust. | |
6544 | ||
050a2e1d PA |
6545 | 2012-01-23 Pedro Alves <palves@redhat.com> |
6546 | ||
6547 | * top.c (caution): Update comment. | |
6548 | (execute_command): Don't consider the current value of `caution'. | |
6549 | ||
77a35dd8 JK |
6550 | 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
6551 | ||
6552 | * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen. | |
6553 | ||
a71b5a38 UW |
6554 | 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org> |
6555 | ||
6556 | * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>. | |
6557 | * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning. | |
6558 | * target.c (target_fileio_pwrite): Remove buffer address from | |
6559 | debug output. | |
6560 | (target_fileio_pread): Likewise. | |
6561 | ||
d99bd577 UW |
6562 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6563 | ||
6564 | * NEWS: Document remote "info proc" and "generate-core-file". | |
6565 | ||
35c2fab7 UW |
6566 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6567 | ||
6568 | * gdbarch.sh (find_memory_regions): New callback. | |
6569 | * gdbarch.c, gdbarch.h: Regenerate. | |
6570 | ||
6571 | * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions | |
6572 | callback before falling back to target method. | |
6573 | ||
6574 | * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove. | |
6575 | (linux_target_install_ops): No longer install it. | |
6576 | ||
6577 | * linux-tdep.c (linux_find_memory_regions): New function. | |
6578 | (linux_init_abi): Install it. | |
6579 | ||
6432734d UW |
6580 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6581 | ||
6582 | * gdbarch.sh (make_corefile_notes): New architecture callback. | |
6583 | * gdbarch.c: Regenerate. | |
6584 | * gdbarch.h: Likewise. | |
6585 | ||
6586 | * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes | |
6587 | before target_make_corefile_notes. If NULL is returned, the | |
6588 | target does not support core file generation. | |
6589 | ||
6590 | * linux-nat.c: Include "linux-tdep.h". | |
6591 | (find_signalled_thread, find_stop_signal): Remove. | |
6592 | (linux_nat_do_thread_registers): Likewise. | |
6593 | (struct linux_nat_corefile_thread_data): Likewise. | |
6594 | (linux_nat_corefile_thread_callback): Likewise. | |
6595 | (iterate_over_spus): Likewise. | |
6596 | (struct linux_spu_corefile_data): Likewise. | |
6597 | (linux_spu_corefile_callback): Likewise. | |
6598 | (linux_spu_make_corefile_notes): Likewise. | |
6599 | (linux_nat_collect_thread_registers): New function. | |
6600 | (linux_nat_make_corefile_notes): Replace contents by call to | |
6601 | linux_make_corefile_notes passing linux_nat_collect_thread_registers | |
6602 | as native-only callback. | |
6603 | ||
6604 | * linux-tdep.h: Include "bfd.h". | |
6605 | (struct regcache): Add forward declaration. | |
6606 | (linux_collect_thread_registers_ftype): New typedef. | |
6607 | (linux_make_corefile_notes): Add prototype. | |
6608 | * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h", | |
6609 | "regset.h", and "elf-bfd.h". | |
6610 | (find_signalled_thread, find_stop_signal): New functions. | |
6611 | (linux_spu_make_corefile_notes): Likewise. | |
6612 | (linux_collect_thread_registers): Likewise. | |
6613 | (struct linux_corefile_thread_data): New data structure. | |
6614 | (linux_corefile_thread_callback): New funcion. | |
6615 | (linux_make_corefile_notes): Likewise. | |
6616 | (linux_make_corefile_notes_1): Likewise. | |
6617 | (linux_init_abi): Install it. | |
6618 | ||
3030c96e UW |
6619 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6620 | ||
6621 | * gdbarch.sh (info_proc): New callback. | |
6622 | * gdbarch.c, gdbarch.h: Regenerate. | |
6623 | ||
6624 | * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback | |
6625 | before falling back to the target info_proc callback. | |
6626 | ||
6627 | * linux-nat.c: Do not include "cli/cli-utils.h". | |
6628 | (linux_nat_info_proc): Remove. | |
6629 | (linux_target_install_ops): No longer install it. | |
6630 | ||
6631 | * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>. | |
6632 | (read_mapping): New function. | |
6633 | (linux_info_proc): Likewise. | |
6634 | (linux_init_abi): Install it. | |
6635 | ||
145b16a9 UW |
6636 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6637 | ||
6638 | * defs.h (enum info_proc_what): Moved here from linux-nat.c | |
6639 | * infcmd.c: (info_proc_cmd_1): New function. | |
6640 | (info_proc_cmd): New function, moved here from equivalent routine | |
6641 | orignally in linux-nat.c. | |
6642 | (info_proc_cmd_mappings): Likewise. | |
6643 | (info_proc_cmd_stat): Likewise. | |
6644 | (info_proc_cmd_status): Likewise. | |
6645 | (info_proc_cmd_cwd): Likewise. | |
6646 | (info_proc_cmd_cmdline): Likewise. | |
6647 | (info_proc_cmd_exe): Likewise. | |
6648 | (info_proc_cmd_all): Likewise. | |
6649 | (_initialize_infcmd): Install "info proc" command and subcommands. | |
6650 | ||
6651 | * target.h (struct target_ops): Add to_info_proc. | |
6652 | (target_info_proc): Add prototype. | |
6653 | * target.c (target_info_proc): New function. | |
6654 | ||
6655 | * procfs.c (procfs_info_proc): Add prototype. | |
6656 | (info_proc_cmd): Rename into ... | |
6657 | (procfs_info_proc): ... this. Update argument types as appropriate | |
6658 | for a to_info_proc implementation. Handle "what" argument. | |
6659 | (procfs_target): Install procfs_info_proc. | |
6660 | (_initialize_procfs): No longer install "info proc" command. | |
6661 | ||
6662 | * linux-nat.c: (enum info_proc_what): Remove. | |
6663 | (linux_nat_info_proc_cmd_1): Rename into ... | |
6664 | (linux_nat_info_proc): ... this. Update argument types as appropriate | |
6665 | for a to_info_proc implementation. | |
6666 | (linux_nat_info_proc_cmd): Remove. | |
6667 | (linux_nat_info_proc_cmd_mappings): Likewise. | |
6668 | (linux_nat_info_proc_cmd_stat): Likewise. | |
6669 | (linux_nat_info_proc_cmd_status): Likewise. | |
6670 | (linux_nat_info_proc_cmd_cwd): Likewise. | |
6671 | (linux_nat_info_proc_cmd_cmdline): Likewise. | |
6672 | (linux_nat_info_proc_cmd_exe): Likewise. | |
6673 | (linux_nat_info_proc_cmd_all): Likewise. | |
6674 | (linux_target_install_ops): Install linux_nat_info_proc. | |
6675 | (_initialize_linux_nat): No longer install "info proc" command | |
6676 | and subcommands. | |
6677 | ||
b9e7b9c3 UW |
6678 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
6679 | ||
6680 | * configure.ac [AC_CHECK_FUNCS]: Check for readlink. | |
6681 | * config.in, configure: Regenerate. | |
6682 | ||
6683 | * target.h (struct target_ops): Add to_fileio_readlink. | |
6684 | (target_fileio_readlink): Add prototype. | |
6685 | * target.c (target_fileio_readlink): New function. | |
6686 | ||
6687 | * inf-child.c: Conditionally include <sys/param.h>. | |
6688 | (inf_child_fileio_readlink): New function. | |
6689 | (inf_child_target): Install it. | |
6690 | ||
6691 | * remote.c (PACKET_vFile_readlink): New enum value. | |
6692 | (remote_hostio_readlink): New function. | |
6693 | (init_remote_ops): Install it. | |
6694 | (_initialize_remote): Handle vFile:readlink packet type. | |
6695 | ||
7313baad UW |
6696 | 2012-01-20 Pedro Alves <palves@redhat.com> |
6697 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
6698 | ||
6699 | * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite. | |
6700 | * config.in, configure: Regenerate. | |
6701 | ||
6702 | * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite, | |
6703 | to_fileio_pread, to_fileio_close, to_fileio_unlink. | |
6704 | (target_fileio_open): Add prototype. | |
6705 | (target_fileio_pwrite): Likewise. | |
6706 | (target_fileio_pread): Likewise. | |
6707 | (target_fileio_close): Likewise. | |
6708 | (target_fileio_unlink): Likewise. | |
6709 | (target_fileio_read_alloc): Likewise. | |
6710 | (target_fileio_read_stralloc): Likewise. | |
6711 | ||
6712 | * target.c: Include "gdb/fileio.h". | |
6713 | (target_read_stralloc): Accept trailing, but not embedded NUL bytes. | |
6714 | (default_fileio_target): New function. | |
6715 | (target_fileio_open): Likewise. | |
6716 | (target_fileio_pwrite): Likewise. | |
6717 | (target_fileio_pread): Likewise. | |
6718 | (target_fileio_close): Likewise. | |
6719 | (target_fileio_unlink): Likewise. | |
6720 | (target_fileio_close_cleanup): Likewise. | |
6721 | (target_fileio_read_alloc_1): Likewise. | |
6722 | (target_fileio_read_alloc): Likewise. | |
6723 | (target_fileio_read_stralloc): Likewise. | |
6724 | ||
6725 | * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>, | |
6726 | <fcntl.h>, and <unistd.h>. | |
6727 | (inf_child_fileio_open_flags_to_host): New function. | |
6728 | (inf_child_errno_to_fileio_error): Likewise. | |
6729 | (inf_child_fileio_open): Likewise. | |
6730 | (inf_child_fileio_pwrite): Likewise. | |
6731 | (inf_child_fileio_pread): Likewise. | |
6732 | (inf_child_fileio_close): Likewise. | |
6733 | (inf_child_fileio_unlink): Likewise. | |
6734 | (inf_child_target): Install to_fileio routines. | |
6735 | ||
6736 | * remote.c (init_remote_ops): Install to_fileio routines. | |
6737 | ||
901f9912 UW |
6738 | 2012-01-20 Pedro Alves <palves@redhat.com> |
6739 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
6740 | ||
6741 | * remote.c (remote_multi_process_p): Only check for multi-process | |
6742 | protocol feature, do not check for extended protocol. | |
6743 | (remote_supports_multi_process): Check for extended protocol here. | |
6744 | (set_general_process): Likewise. | |
6745 | (extended_remote_kill): Likewise. | |
6746 | (remote_pid_to_str): Likewise. | |
6747 | (remote_query_supported): Always query multiprocess mode. | |
6748 | ||
e714e1bf UW |
6749 | 2012-01-20 Pedro Alves <palves@redhat.com> |
6750 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
6751 | ||
6752 | * inferior.h (struct inferior): Add fake_pid_p. | |
6753 | * inferior.c (exit_inferior_1): Clear fake_pid_p. | |
6754 | * remote.c (remote_start_remote): Set fake_pid_p if we have to use | |
6755 | magic_null_ptid since the remote side doesn't provide a real PID. | |
6756 | ||
50897289 TT |
6757 | 2012-01-19 Tom Tromey <tromey@redhat.com> |
6758 | ||
6759 | * NEWS: Combine the two Python sections. | |
6760 | ||
1afc2033 JK |
6761 | 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
6762 | ||
6763 | * target.h (target_close): Update comment on the target's unpush state. | |
6764 | ||
305436e0 PA |
6765 | 2012-01-19 Pedro Alves <palves@redhat.com> |
6766 | ||
6767 | * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and | |
6768 | linux_nat_async directly instead of going through the target | |
6769 | vector. | |
6770 | * target.c (unpush_target): Close target after unpushing it, not | |
6771 | before. | |
6772 | ||
49323895 GB |
6773 | 2012-01-19 Gary Benson <gbenson@redhat.com> |
6774 | ||
6775 | * mdebugread.c (sort_blocks): Replace integer constants with ones | |
6776 | derived from FIRST_LOCAL_BLOCK. | |
6777 | ||
1db33378 PP |
6778 | 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com> |
6779 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
6780 | ||
6781 | PR gdb/9538 | |
6782 | * symfile.c (find_separate_debug_file): New function. | |
6783 | (terminate_after_last_dir_separator): Likewise. | |
6784 | (find_separate_debug_file_by_debuglink): Also try realpath. | |
6785 | * configure.ac (AC_CHECK_FUNCS): Add lstat. | |
6786 | * configure: Regenerate. | |
6787 | * config.in: Regenerate. | |
6788 | ||
f83d8a90 DE |
6789 | 2012-01-18 Doug Evans <dje@google.com> |
6790 | ||
6791 | * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete. | |
6792 | (main.o): Remove rule. | |
6793 | * configure.ac (BINDIR): Define with AC_DEFINE_DIR. | |
6794 | (--with-sysroot): Rewrite. | |
6795 | * configure: Regenerate. | |
6796 | * config.in: Regenerate. | |
6797 | ||
2dbca4d6 SDJ |
6798 | 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com> |
6799 | ||
6800 | * parse.c (initialize_expout): New function. | |
6801 | (reallocate_expout): Likewise. | |
6802 | (parse_exp_in_context): Use `initialize_expout' and | |
6803 | `reallocate_expout' when appropriate. | |
6804 | ||
0695b514 PA |
6805 | 2012-01-18 Pedro Alves <palves@redhat.com> |
6806 | ||
6807 | * record.c (struct record_breakpoint, record_breakpoint_p) | |
6808 | (record_breakpoints): New. | |
6809 | (record_insert_breakpoint, record_remove_breakpoint): Manage | |
6810 | record breakpoints list. Only remove breakpoints from the | |
6811 | inferior if they had been inserted there in the first place. | |
6812 | ||
136e1c30 DE |
6813 | 2012-01-17 Doug Evans <dje@google.com> |
6814 | ||
6815 | * linespec.c (decode_line_internal): Don't call symtabs_from_filename | |
6816 | if we know we don't have a file name to look for. | |
6817 | ||
c0bf857d PA |
6818 | 2012-01-17 Pedro Alves <palves@redhat.com> |
6819 | ||
6820 | * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if | |
6821 | the frame's stop reason is UNWIND_UNAVAILABLE. | |
6822 | ||
b486de60 JK |
6823 | 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
6824 | ||
6825 | Fix compilation error. | |
6826 | * m2-exp.y (yyerror): Use ANSI C prototype. | |
6827 | ||
d04550a6 SDJ |
6828 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
6829 | ||
6830 | * f-exp.y (parse_number): Convert prototype from K&R to ANSI C. | |
6831 | (growbuf_by_size): Likewise. | |
6832 | (yyerror): Likewise. | |
6833 | * m2-exp.y (make_qualname): Remove function (was #if 0'ed). | |
6834 | (modblock): Remove variable (was #if 0'ed). | |
6835 | (parse_number): Convert prototype from K&R to ANSI C. | |
6836 | (yyerror): Likewise. | |
6837 | * objc-exp.y (parse_number): Likewise. | |
6838 | (yyerror): Likewise. | |
6839 | (yylex): Remove #if 0'ed code. | |
6840 | * p-exp.y (uptok): Convert prototype from K&R to ANSI C. | |
6841 | (yyerror): Likewise. | |
6842 | ||
4aac40c8 TT |
6843 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
6844 | ||
6845 | * NEWS: Add item. | |
6846 | * symtab.h (compare_filenames_for_search): Declare. | |
6847 | * symtab.c (compare_filenames_for_search): New function. | |
6848 | (iterate_over_some_symtabs): Use it. | |
6849 | * symfile.h (struct quick_symbol_functions) | |
6850 | <map_symtabs_matching_filename>: Change spec. | |
6851 | * psymtab.c (partial_map_symtabs_matching_filename): Use | |
6852 | compare_filenames_for_search. Update for new spec. | |
6853 | * dwarf2read.c (dw2_map_symtabs_matching_filename): Use | |
6854 | compare_filenames_for_search. Update for new spec. | |
6855 | * breakpoint.c (clear_command): Use compare_filenames_for_search. | |
6856 | ||
cafec441 TT |
6857 | 2012-01-16 Tom Tromey <tromey@redhat.com> |
6858 | ||
6859 | PR python/13281: | |
6860 | * gdbtypes.h (TYPE_FLAG_ENUM): New macro. | |
6861 | (struct main_type) <flag_flag_enum>: New field. | |
6862 | * dwarf2read.c (process_enumeration_scope): Detect "flag" enums. | |
6863 | * NEWS: Add entries. | |
6864 | * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag" | |
6865 | enums. | |
6866 | * python/lib/gdb/printing.py (_EnumInstance): New class. | |
6867 | (FlagEnumerationPrinter): Likewise. | |
6868 | ||
983af33b SDJ |
6869 | 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
6870 | ||
6871 | * breakpoint.c (create_sals_from_address_default): New function. | |
6872 | (create_breakpoints_sal_default): Likewise. | |
6873 | (decode_linespec_default): Likewise. | |
6874 | (is_marker_spec): Removed. | |
6875 | (strace_marker_p): New function. | |
6876 | (init_breakpoint_sal): Using `strace_marker_p' instead of | |
6877 | `is_marker_spec'. | |
6878 | (create_breakpoint): Call method `create_sals_from_address' from | |
6879 | breakpoint_ops, replacing code that created SALs conditionally | |
6880 | on the type of the breakpoint. Call method `create_breakpoints_sal', | |
6881 | replacing code that created breakpoints conditionally on the type | |
6882 | wanted. | |
6883 | (base_breakpoint_create_sals_from_address): New function. | |
6884 | (base_breakpoint_create_breakpoints_sal): Likewise. | |
6885 | (base_breakpoint_decode_linespec): Likewise. | |
6886 | (base_breakpoint_ops): Add methods | |
6887 | `base_breakpoint_create_sals_from_address', | |
6888 | `base_breakpoint_create_breakpoints_sal' and | |
6889 | `base_breakpoint_decode_linespec'. | |
6890 | (bkpt_create_sals_from_address): New function. | |
6891 | (bkpt_create_breakpoints_sal): Likewise. | |
6892 | (bkpt_decode_linespec): Likewise. | |
6893 | (tracepoint_create_sals_from_address): Likewise. | |
6894 | (tracepoint_create_breakpoints_sal): Likewise. | |
6895 | (tracepoint_decode_linespec): Likewise. | |
6896 | (strace_marker_create_sals_from_address): Likewise. | |
6897 | (strace_marker_create_breakpoints_sal): Likewise. | |
6898 | (strace_marker_decode_linespec): Likewise. | |
6899 | (strace_marker_breakpoint_ops): New variable. | |
6900 | (addr_string_to_sals): Remove `marker_spec'. Call method | |
6901 | `decode_linespec' from breakpoint_ops, replacing code that decoded | |
6902 | an address string into a SAL. Use `strace_marker_p' instead of | |
6903 | `marker_spec'. | |
6904 | (strace_command): Decide whether we are dealing with a static | |
6905 | tracepoint with marker or not. Use the appropriate breakpoint_ops. | |
6906 | (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops. | |
6907 | * breakpoint.h (linespec_result, linespec_sals): New forward | |
6908 | declarations. | |
6909 | (breakpoint_ops) <create_sals_from_address>, | |
6910 | <create_breakpoints_sal>, <decode_linespec>: New methods. | |
6911 | ||
4795f398 DE |
6912 | 2012-01-14 Doug Evans <dje@google.com> |
6913 | ||
6914 | * NEWS: Update text for "maint set python print-stack". | |
6915 | It is deprecated in gdb 7.4 and deleted in 7.5. | |
6916 | ||
ee5106fe EZ |
6917 | 2012-01-13 Eli Zaretskii <eliz@gnu.org> |
6918 | ||
6919 | * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before | |
6920 | including curses.h. | |
6921 | ||
b161e06f JK |
6922 | 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
6923 | ||
6924 | * configure: Regenerate. | |
6925 | * config.in: Regenerate. | |
6926 | ||
85254831 KS |
6927 | 2012-01-12 Keith Seitz <keiths@redhat.com> |
6928 | ||
6929 | PR mi/10586 | |
6930 | * varobj.c (ANONYMOUS_STRUCT_NAME): Define. | |
6931 | (ANONYMOUS_UNION_NAME): Define. | |
6932 | (is_path_expr_parent): New function. | |
6933 | (get_path_expr_parent): New function. | |
6934 | (is_anonymous_child): New function. | |
6935 | (create_child_with_value): If the child is anonymous and without | |
6936 | a name, assign an object name to it. | |
6937 | (c_describe_child): Use get_path_expr_parent to determine | |
6938 | the parent expression. | |
6939 | If there field represents an anonymous struct or union and | |
6940 | has no name, set an appropriate display name and expression. | |
6941 | (cplus_describe_child): Likewise. | |
6942 | ||
620fa63a PA |
6943 | 2012-01-12 Pedro Alves <palves@redhat.com> |
6944 | ||
6945 | * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as | |
6946 | available when %ebp is found to be zero (outermost). | |
6947 | ||
2efa2c79 AT |
6948 | 2012-01-11 Andreas Tobler <andreast@fgznet.ch> |
6949 | ||
6950 | * common/gdb_assert.h (gdb_static_assert): Rename static_assert to | |
6951 | an internal gdb_static_assert. | |
6952 | * mi/mi-common.c: Rename static_assert to gdb_static_assert. | |
6953 | ||
88e7d25d TT |
6954 | 2012-01-11 Tom Tromey <tromey@redhat.com> |
6955 | ||
6956 | PR gdb/9598: | |
6957 | * breakpoint.c (_initialize_breakpoint): Fix help for "catch | |
6958 | catch" and "catch throw". | |
6959 | ||
72384ba3 PH |
6960 | 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> |
6961 | ||
6962 | * blockframe.c (block_innermost_frame): Start search from selected | |
6963 | frame, if present, or otherwise the current frame. | |
6964 | ||
6965 | * c-exp.y (variable): Update innermost_block for | |
6966 | 'block COLONCOLON NAME' clause. | |
6967 | * m2-exp.y (variable): Ditto. | |
6968 | * objc-exp.y (variable): Ditto. | |
6969 | ||
065a711f TT |
6970 | 2012-01-10 Tom Tromey <tromey@redhat.com> |
6971 | ||
6972 | PR python/13199: | |
6973 | * python/python.c (finish_python_initialization): Set sys.argv. | |
6974 | ||
f3f5162e DE |
6975 | 2012-01-10 Doug Evans <dje@google.com> |
6976 | ||
6977 | * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg | |
6978 | "want_line_info". All callers updated. | |
6979 | (dwarf_decode_lines_1): New function. | |
6980 | (handle_DW_AT_stmt_list): Add function comment. | |
6981 | New arg "want_line_info". All callers updated. | |
6982 | (read_file_scope,read_type_unit_scope): Move comment from | |
6983 | handle_DW_AT_stmt_list to here. | |
6984 | ||
9934703b JK |
6985 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
6986 | ||
6987 | Fix regression after libiberty/ update for GCC PR 6057 and others. | |
6988 | * c-exp.y (operator) <OPERATOR DELETE> | |
6989 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
6990 | * cp-name-parser.y (fill_comp, make_operator, make_dtor) | |
6991 | (make_builtin_type, make_name): New variable i, add gdb_assert. | |
6992 | (operator) <OPERATOR NEW>: Update ARGS to 3. | |
6993 | (operator) <OPERATOR DELETE>: Add trailing space. | |
6994 | (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3. | |
6995 | (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. | |
6996 | * cp-support.c (cp_canonicalize_string): Check NULL from | |
6997 | cp_comp_to_string, call warning and return. | |
6998 | ||
06b9f45f JK |
6999 | 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
7000 | ||
7001 | Fix duplicate .o files after omitting libbfd.a. | |
7002 | * Makefile.in (ALL_TARGET_OBS): Remove corelow.o. | |
7003 | (SFILES): Add corelow.c. | |
7004 | (COMMON_OBS): Add corelow.o. | |
7005 | (ALLDEPFILES): Remove corelow.c. | |
7006 | * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o. | |
7007 | * config/alpha/alpha-osf3.mh: Likewise. | |
7008 | * config/alpha/fbsd.mh: Likewise. | |
7009 | * config/arm/nbsdaout.mh: Likewise. | |
7010 | * config/arm/nbsdelf.mh: Likewise. | |
7011 | * config/i386/i386gnu.mh: Likewise. | |
7012 | * config/ia64/hpux.mh: Likewise. | |
7013 | * config/ia64/linux.mh: Likewise. | |
7014 | * config/m32r/linux.mh: Likewise. | |
7015 | * config/m68k/linux.mh: Likewise. | |
7016 | * config/mips/irix5.mh: Likewise. | |
7017 | * config/mips/irix6.mh: Likewise. | |
7018 | * config/pa/hpux.mh: Likewise. | |
7019 | * config/pa/linux.mh: Likewise. | |
7020 | * config/powerpc/aix.mh: Likewise. | |
7021 | * config/sparc/linux.mh: Likewise. | |
7022 | * config/sparc/linux64.mh: Likewise. | |
7023 | * config/sparc/sol2.mh: Likewise. | |
7024 | * config/vax/vax.mh: Likewise. | |
7025 | * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu) | |
7026 | (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*) | |
7027 | (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*) | |
7028 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*) | |
7029 | (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*) | |
7030 | (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*) | |
7031 | (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*) | |
7032 | (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*) | |
7033 | (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*) | |
7034 | (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu) | |
7035 | (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*) | |
7036 | (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*) | |
7037 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
7038 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*) | |
7039 | (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*) | |
7040 | (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
7041 | (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*) | |
7042 | (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu) | |
7043 | (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*) | |
7044 | (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*) | |
7045 | (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*) | |
7046 | (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove | |
7047 | corelow.o from gdb_target_obs. | |
7048 | * corefile.c (core_target): Update the comment on NULL value. | |
7049 | (core_file_command): Replace error by gdb_assert on CORE_TARGET. | |
7050 | * corelow.c (sniff_core_bfd): Call error instead of warning on zero | |
7051 | MATCHES. Drop YUMMY set on NULL. | |
7052 | (core_close): Do not call exit_inferior_silent on zero PID. Do not | |
7053 | reclaim CORE_DATA if it is already NULL. | |
7054 | ||
34365054 DE |
7055 | 2012-01-09 Doug Evans <dje@google.com> |
7056 | ||
7057 | * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy. | |
7058 | * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy. | |
7059 | ||
696166a3 KS |
7060 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
7061 | ||
7062 | * breakpoint.c (wrapper.h): Don't include. | |
7063 | ||
8e7b59a5 KS |
7064 | 2012-01-09 Keith Seitz <keiths@redhat.com> |
7065 | ||
7066 | * Makefile.in (SFILES): Remove wrapper.c. | |
7067 | (HFILES_NO_SRCDIR): Remove wrapper.h. | |
7068 | (COMMON_OBS): Remove wrapper.o. | |
7069 | * cli/cli-interp.c: Don't inlude wrapper.h. | |
7070 | * corelow.c: Likewise. | |
7071 | (core_open): Replace gdb_target_find_new_threads with | |
7072 | TRY_CATCH around target_find_new_threads. | |
7073 | * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. | |
7074 | * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. | |
7075 | * varobj.c (varobj_create): Likewise for parse_exp_1 and | |
7076 | evaluate_expression. | |
7077 | (varobj_set_value): Likewise for evaluate_expression and | |
7078 | value_assign. | |
7079 | (install_new_variable): Likewise for value_fetch_lazy. | |
7080 | (adjust_value_for_child_access): Likewise for value_ind. | |
7081 | (c_describe_child): Likewise for value_subscript and | |
7082 | value_ind. | |
7083 | (c_value_of_root): Likewise for evaluate_expression. | |
7084 | * wrapper.c: Remove. | |
7085 | * wrapper.h: Remove. | |
7086 | ||
1a4eeb98 DE |
7087 | 2012-01-09 Doug Evans <dje@google.com> |
7088 | ||
9ff913ba DE |
7089 | * dwarf2read.c (read_and_check_comp_unit_head): Renamed from |
7090 | partial_read_comp_unit_head. Replace "buffer", "buffer_size" and | |
7091 | "abfd" args with "section". All callers updated. | |
7092 | Error checking code moved ... | |
7093 | (error_check_comp_unit_head): ... here. New function. | |
7094 | (read_and_check_type_unit_head): Renamed from read_type_unit_head. | |
7095 | Delete arg "abfd". New arg "type_offset". All callers updated. | |
7096 | (create_debug_types_hash_table): Simplify by using | |
7097 | read_and_check_type_unit_head. | |
7098 | ||
1a4eeb98 DE |
7099 | * parser-defs.h (namecopy): Delete. |
7100 | * parse.c (namecopy, namecopy_size): Move into copy_name. | |
7101 | ||
2e6af8c0 JK |
7102 | 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
7103 | ||
7104 | Partially fix duplicate .o files after omitting libbfd.a. | |
7105 | * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o. | |
7106 | * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
7107 | * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o. | |
7108 | * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
7109 | * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o. | |
7110 | * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o. | |
7111 | * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o. | |
7112 | ||
9f2f828a PA |
7113 | 2012-01-09 Pedro Alves <palves@redhat.com> |
7114 | ||
7115 | * MAINTAINERS: Update my email address. | |
7116 | ||
4d72c0bc DE |
7117 | 2012-01-08 Doug Evans <dje@google.com> |
7118 | ||
d467dd73 DE |
7119 | * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to |
7120 | n_type_units. Rename type_comp_units to all_type_units. | |
7121 | All uses updated. | |
7122 | (add_signatured_type_cu_to_table): Renamed from | |
7123 | add_signatured_type_cu_to_list. All callers updated. | |
7124 | ||
4d72c0bc DE |
7125 | * gdbtypes.h (struct cplus_struct_type): Delete member |
7126 | nfn_fields_total. All uses removed. | |
7127 | ||
21b2bd31 DE |
7128 | 2012-01-06 Doug Evans <dje@google.com> |
7129 | ||
7130 | * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard | |
7131 | to top of file. | |
7132 | (dwarf2_find_comp_unit): Delete. | |
7133 | (process_psymtab_comp_unit): Make result "void". | |
7134 | Delete args buffer, info_ptr, buffer_size, and replace with | |
7135 | "section". All callers updated. | |
7136 | (dwarf2_build_psymtabs_hard): Simplify. | |
7137 | ||
bfd189b1 SDJ |
7138 | 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com> |
7139 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
7140 | ||
7141 | * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword | |
7142 | before `struct gdb_exception'. | |
7143 | * breakpoint.c (update_global_location_list_nothrow) | |
7144 | (update_breakpoint_locations, enable_breakpoint_disp): Likewise. | |
7145 | * cp-abi.c (value_rtti_type): Likewise. | |
7146 | * cp-support.c (cp_validate_operator): Likewise. | |
7147 | * infrun.c (insert_exception_resume_breakpoint) | |
7148 | (check_exception_resume, keep_going): Likewise. | |
7149 | * mi-interp.c (mi_breakpoint_created) | |
7150 | (mi_breakpoint_modified): Likewise. | |
7151 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise. | |
7152 | * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p) | |
7153 | (ia64_hpux_handle_dld_breakpoint_1): Likewise. | |
7154 | ||
6b07635f DE |
7155 | 2012-01-05 Doug Evans <dje@google.com> |
7156 | ||
0b30b85c DE |
7157 | * dwarf2read.c (statement_prologue): Delete, unused. |
7158 | ||
98714339 DE |
7159 | * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int. |
7160 | * dwarf2loc.h (dwarf2_per_cu_addr_size): Update. | |
7161 | ||
6b07635f DE |
7162 | * dwarf2read.c (comp_unit_header): Delete, unused. |
7163 | ||
761f4555 UW |
7164 | 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com> |
7165 | ||
7166 | * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o. | |
7167 | * config/s390/s390.mh (NATDEPFILES): Remove corelow.o. | |
7168 | ||
2ca0b532 PA |
7169 | 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> |
7170 | ||
7171 | * infrun.c (normal_stop): Don't skip calling the normal_stop | |
7172 | observers if the thread was doing a multi-step, but stopped for | |
7173 | some reason other than stepping. | |
7174 | ||
50aeff07 PA |
7175 | 2012-01-05 Pedro Alves <alves.ped@gmail.com> |
7176 | ||
7177 | * cli/cli-decode.h: Add comments. | |
7178 | (CMD_LIST_AMBIGUOUS): Moved to command.h | |
7179 | (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd) | |
7180 | (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq) | |
7181 | (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1) | |
7182 | (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition) | |
7183 | (add_com, add_com_alias, add_info, add_info_alias) | |
7184 | (complete_on_cmdlist, complete_on_enum, help_list): Remove | |
7185 | declarations. | |
7186 | * command.h: Add and adjust comments. | |
7187 | (CMD_LIST_AMBIGUOUS): Moved here. | |
7188 | (help_cmd, help_cmd_list): Delete declarations. | |
7189 | ||
5953832c DE |
7190 | 2012-01-04 Doug Evans <dje@google.com> |
7191 | ||
e5fe5e75 DE |
7192 | * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd". |
7193 | All callers updated. | |
7194 | (load_full_type_unit): Renamed from read_signatured_type_at_offset. | |
7195 | Replace all arguments with "per_cu". All callers updated. | |
7196 | ||
28dee7f5 DE |
7197 | * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment. |
7198 | ||
23745b47 DE |
7199 | * dwarf2read.c (init_one_comp_unit): Delete arg "objfile". |
7200 | New arg "per_cu". All callers updated. | |
7201 | ||
5953832c DE |
7202 | Delete #if 0'd out code. |
7203 | * language.c (binop_result_type): Delete. | |
7204 | (simple_type, ordered_type, same_type, integral_type): Delete. | |
7205 | (numeric_type, character_type, string_type, boolean_type): Delete. | |
7206 | (float_type, structured_type): Delete. | |
7207 | * language.h: Update. | |
7208 | ||
0f5b7562 TT |
7209 | 2012-01-04 Tom Tromey <tromey@redhat.com> |
7210 | ||
7211 | * python/py-value.c (valpy_binop): Initialize 'res_val'. | |
7212 | ||
78218f56 JB |
7213 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7214 | ||
7215 | * corefile.c (close_exec_file): Delete. | |
7216 | (reopen_exec_file): Remove commented out code that seems related | |
7217 | to close_exec_file, which is being deleted here. | |
7218 | * inferior.h (close_exec_file): Delete. | |
7219 | * fork-child.c (fork_inferior): Remove call to fork_inferior. | |
7220 | ||
0fcd72ba JB |
7221 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7222 | ||
7223 | * ada-lang.c: #include "cli/cli-utils.h". | |
7224 | (get_selections): Use skip_spaces. | |
7225 | (ada_get_next_arg): Use skip_spaces and skip_to_space. | |
7226 | (catch_ada_exception_command_split): Use skip_spaces. | |
7227 | (ada_decode_assert_location): Likewise. | |
7228 | ||
1dabb4c4 JB |
7229 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7230 | ||
7231 | * linespec.c (decode_line_internal): Check for C++ or Java | |
7232 | compound constructs only if the current language is C, C++ | |
7233 | or Java. | |
7234 | ||
5931a2fa JK |
7235 | 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
7236 | ||
7237 | Revert: | |
7238 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
7239 | Joel Brobecker <brobecker@adacore.com> | |
7240 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
7241 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
7242 | 3 times. | |
7243 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
7244 | fall through into AT_ENTRY_POINT. | |
7245 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
7246 | DUMMY_ADDR with it. | |
7247 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
7248 | PPC_INSN_SIZE skip to 3 times. | |
7249 | ||
1a2da5ee JB |
7250 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7251 | ||
7252 | * linespec.c (add_minsym): Preserve function descriptors. | |
7253 | ||
8645ff69 UW |
7254 | 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
7255 | ||
7256 | * breakpoint.c (all_locations_are_pending): Consider locations | |
7257 | in program spaces executing during startup pending as well. | |
7258 | ||
0b302171 JB |
7259 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7260 | ||
7261 | Copyright year update in most files of the GDB Project. | |
7262 | ||
8ba098ad JB |
7263 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7264 | ||
7265 | * copyright.sh: Delete. | |
7266 | * copyright.py: Rewrite. | |
7267 | ||
09c01c30 JB |
7268 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7269 | ||
7270 | * gnulib/extra/update-copyright: New file, imported from gnulib. | |
7271 | ||
3c36c0af JB |
7272 | 2012-01-04 Joel Brobecker <brobecker@adacore.com> |
7273 | ||
7274 | * README (Copyright and License Notices): New section. | |
7275 | ||
888fe1e1 TT |
7276 | 2012-01-03 Tom Tromey <tromey@redhat.com> |
7277 | ||
7278 | PR python/12533: | |
7279 | * python/py-value.c (valpy_dereference, valpy_get_address | |
7280 | valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
7281 | (valpy_getitem, valpy_call, valpy_binop, valpy_negative) | |
7282 | (valpy_absolute, valpy_richcompare): Free intermediate values. | |
7283 | ||
6e681866 JB |
7284 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
7285 | ||
7286 | * ada-lang.c: Reformat the copyright notice. | |
7287 | ||
0cd09acb JK |
7288 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7289 | ||
7290 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
7291 | * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*) | |
7292 | (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*) | |
7293 | (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o. | |
7294 | Revert this part of: | |
7295 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
7296 | Build gdb directly from *.o files not using libgdb.a. | |
7297 | * Makefile.in (COMMON_OBS): Remove solib-target.o. | |
7298 | ||
12c3e59c JB |
7299 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
7300 | ||
7301 | * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c, | |
7302 | gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c: | |
7303 | Reformat the copyright header. | |
7304 | ||
11bf1490 JK |
7305 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7306 | ||
7307 | Revert this part of: | |
7308 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> | |
7309 | Remove the gdbtui binary. | |
7310 | * gdb.c (main): Remove args.interpreter_p initialization. | |
7311 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
7312 | * main.h (struct captured_main_args): Remove interpreter_p. | |
7313 | ||
1fef196f JB |
7314 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
7315 | ||
7316 | * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011. | |
7317 | ||
67827812 JB |
7318 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
7319 | ||
7320 | * top.c (print_gdb_version): Update copyright year. | |
7321 | ||
a4d0b831 YQ |
7322 | 2012-01-02 Yao Qi <yao@codesourcery.com> |
7323 | ||
7324 | * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent. | |
7325 | ||
b5914469 JK |
7326 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7327 | Joel Brobecker <brobecker@adacore.com> | |
7328 | ||
7329 | Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. | |
7330 | * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to | |
7331 | 3 times. | |
7332 | * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and | |
7333 | fall through into AT_ENTRY_POINT. | |
7334 | (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust | |
7335 | DUMMY_ADDR with it. | |
7336 | * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase | |
7337 | PPC_INSN_SIZE skip to 3 times. | |
7338 | ||
8da828f7 JK |
7339 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7340 | ||
7341 | * amd64-linux-nat.c (update_debug_registers_callback): New comment on | |
7342 | the return value. | |
7343 | * i386-linux-nat.c (update_debug_registers_callback): Likewise. | |
7344 | ||
8574e74b JK |
7345 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7346 | ||
7347 | Build gdb directly from *.o files not using libgdb.a. | |
7348 | * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o. | |
7349 | (COMMON_OBS): Remove solib-target.o. | |
7350 | (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule. | |
7351 | (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS). | |
7352 | (LIBGDB_OBS, libgdb.a): Move it above. | |
7353 | * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*) | |
7354 | (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu) | |
7355 | (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe) | |
7356 | (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu) | |
7357 | (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*) | |
7358 | (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*) | |
7359 | (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu) | |
7360 | (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*) | |
7361 | (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*) | |
7362 | (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*) | |
7363 | (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
7364 | (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*) | |
7365 | (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*) | |
7366 | (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*) | |
7367 | (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) | |
7368 | (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*) | |
7369 | (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*) | |
7370 | (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) | |
7371 | (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*) | |
7372 | (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu) | |
7373 | (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*) | |
7374 | (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*) | |
7375 | (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*) | |
7376 | (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*) | |
7377 | (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu) | |
7378 | (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*) | |
7379 | (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs. | |
7380 | ||
217bff3e JK |
7381 | 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
7382 | ||
7383 | Remove the gdbtui binary. | |
7384 | * .gitignore (/gdbtui): Remove. | |
7385 | * Makefile.in (TUI): Remove. | |
7386 | (SUBDIR_TUI_OBS): Remove tui-main.o. | |
7387 | (SUBDIR_TUI_SRCS): Remove tui/tui-main.c. | |
7388 | (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui) | |
7389 | (tui-main.o): Remove. | |
7390 | (all_object_files): Remove tui-main.o. | |
7391 | * NEWS: New note for the gdbtui removal. | |
7392 | * configure: Rebuilt. | |
7393 | * configure.ac: No longer add all-tui, clean-tui, install-tui and | |
7394 | uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and | |
7395 | CONFIG_UNINSTALL respectively. | |
7396 | * gdb.c (main): Remove args.interpreter_p initialization. | |
7397 | * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. | |
7398 | * main.h (struct captured_main_args): Remove interpreter_p. | |
7399 | * tui/tui-main.c: Remove. | |
7400 | ||
9cdd5dbd DE |
7401 | 2012-01-01 Doug Evans <dje@google.com> |
7402 | ||
bb5ed363 DE |
7403 | * dwarf2read.c (dwarf2_compute_name): Simplify objfile references. |
7404 | (dwarf2_physname, read_import_statement): Ditto. | |
7405 | (read_call_site_scope, dwarf2_record_block_ranges): Ditto. | |
7406 | (process_structure_scope read_subroutine_type): Ditto. | |
7407 | (read_typedef, load_partial_dies, read_partial_die): Ditto. | |
7408 | (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto. | |
7409 | (dwarf2_fetch_die_location_block): Ditto. | |
7410 | (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto. | |
7411 | ||
a0f42c21 DE |
7412 | * dwarf2read.c (read_signatured_type): Delete `objfile' arg. |
7413 | All callers updated. | |
7414 | (load_full_comp_unit, queue_comp_unit, process_queue): Ditto. | |
7415 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto. | |
7416 | (process_psymtab_comp_unit, load_partial_comp_unit): Ditto. | |
7417 | ||
2dc860c0 DE |
7418 | * dwarf2read.c (load_cu): Move assert to more useful location. |
7419 | ||
68dc6402 DE |
7420 | * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit. |
7421 | All callers updated. | |
7422 | ||
9cdd5dbd DE |
7423 | * dwarf2read.c (dwarf2_per_objfile): Add comment. |
7424 | (dwarf2_elf_names): Minor reformat. | |
7425 | (dwarf2_per_cu_data): Tweak comment. | |
7426 | (dwarf2_read_section): Fix comment. | |
7427 | (create_all_comp_units): Fix comment. | |
7428 | (load_full_comp_unit): Fix comment. | |
7429 | (process_full_comp_unit): Fix comment. | |
7430 | (read_signatured_type): Fix comment. | |
7431 | ||
0c10e53e | 7432 | For older changes see ChangeLog-2011. |
c906108c SS |
7433 | \f |
7434 | Local Variables: | |
7435 | mode: change-log | |
7436 | left-margin: 8 | |
7437 | fill-column: 74 | |
7438 | version-control: never | |
57da7796 | 7439 | coding: utf-8 |
c906108c | 7440 | End: |