Rewrote a loop that caused a seg fault on Windows systems.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
588ae58c
JB
12012-05-15 Joel Brobecker <brobecker@adacore.com>
2
3 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4 of command in two error message.
5
855a6e68
JB
62012-05-15 Joel Brobecker <brobecker@adacore.com>
7
8 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
9
d634f2de
JB
102012-05-15 Joel Brobecker <brobecker@adacore.com>
11
12 * breakpoint.c (find_condition_and_thread): Minor reformatting.
13
9cc815f5
JK
142012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 * NEWS (show auto-load scripts-directory): Add forgotten command.
17
6a609e58
JK
182012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
19
20 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
21 parameters.
22
ac1438b5
L
232012-05-14 H.J. Lu <hongjiu.lu@intel.com>
24
25 * amd64-tdep.c: Include features/i386/x32.c and
26 features/i386/x32-avx.c.
27 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
28 initialize_tdesc_x32_avx.
29
e7e0cddf
SS
302012-05-14 Stan Shebs <stan@codesourcery.com>
31
32 Add dynamic printf.
33 * breakpoint.h (enum bptype): New type bp_dprintf.
34 (struct breakpoint): New field extra_string.
35 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
36 (create_breakpoint): Add extra_string arg.
37 * breakpoint.c (dprintf_breakpoint_ops): New.
38 (is_breakpoint): Add bp_dprintf.
39 (bpstat_what): Add dprintf case.
40 (bptype_string): Ditto.
41 (print_one_breakpoint_location): Ditto.
42 (init_bp_location): Ditto.
43 (bkpt_print_mention): Ditto.
44 (dprintf_style_enums): New array.
45 (dprintf_style): New global.
46 (dprintf_function): New global.
47 (dprintf_channel): New global.
48 (update_dprintf_command_list): New function.
49 (update_dprintf_commands): New function.
50 (init_breakpoint_sal): Add extra_string argument, handle it.
51 (create_breakpoint_sal): Add extra_string argument.
52 (create_breakpoints_sal): Add extra_string argument, update callers.
53 (find_condition_and_thread): Add extra argument.
54 (create_breakpoint): Add extra_string argument, record it.
55 (dprintf_command): New function.
56 (break_command_1): Add arg to create_breakpoint call.
57 (handle_gnu_v3_exceptions): Ditto.
58 (trace_command): Ditto.
59 (ftrace_command): Ditto.
60 (strace_command): Ditto.
61 (bkpt_print_mention): Add dprintf case.
62 (create_breakpoint_sal_default): Add extra_string argument.
63 (_initialize_breakpoint): Add new commands.
64 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
65 * python/py-breakpoint.c (bppy_init): Ditto.
66 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
67
8ae38c14
MR
682012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
69
70 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
71
9f676e66
SCR
722012-05-14 Siva Chandra Reddy <sivachandra@google.com>
73
74 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
75 unsigned long long.
76
7efc75aa
SCR
772012-05-13 Siva Chandra Reddy <sivachandra@google.com>
78
79 Add a new function gdb.find_pc_line to the Python API.
80 * NEWS (Python Scripting): Add entry about the new function.
81 * python/python.c (gdbpy_find_pc_line): New function which
82 implements gdb.find_pc_line.
83 (GdbMethods): Add entry for the new function.
84
70af3797
PA
852012-05-12 Pedro Alves <palves@redhat.com>
86
87 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
88 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
89
06da564e
EZ
902012-05-12 Eli Zaretskii <eliz@gnu.org>
91
92 * inferior.c: Include completer.h
93 (initialize_inferiors): Set completer of add-inferior to
94 filename_completer.
95
0288cee2
L
962012-05-11 H.J. Lu <hongjiu.lu@intel.com>
97
98 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
99 gdbarch_ptr_bit for x32 core dump.
100
f6537a2c
L
1012012-05-11 H.J. Lu <hongjiu.lu@intel.com>
102
103 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
104 and features/i386/x32-avx-linux.c.
105
85d4a676
SS
1062012-05-11 Stan Shebs <stan@codesourcery.com>
107 Kwok Cheung Yeung <kcy@codesourcery.com>
108
109 * NEWS: Describe new info os commands.
110 * common/linux-osdata.c (PID_T, TIME_T): Define.
111 (MAX_PID_T_STRLEN): New.
112 (linux_common_core_of_thread): Add comment. Change to use PID_T and
113 MAX_PID_T_STRLEN.
114 (command_from_pid): Add comment. Change to use PID_T.
115 (commandline_from_pid): Change to use PID_T.
116 (user_from_pid): Add comment.
117 (get_process_owner): Add comment. Change to use PID_T and
118 MAX_PID_T_STRLEN.
119 (get_number_of_cpu_cores): Add comment.
120 (get_cores_used_by_process): Add comment. Change to use PID_T and
121 MAX_PID_T_STRLEN.
122 (linux_xfer_osdata_processes): Change to use PID_T and
123 MAX_PID_T_STRLEN.
124 (compare_processes): New function.
125 (linux_xfer_osdata_processgroups): New function.
126 (linux_xfer_osdata_threads): Change to use PID_T.
127 (linux_xfer_osdata_fds): New function.
128 (format_socket_state, print_sockets): New functions.
129 (union socket_addr): New union.
130 (linux_xfer_osdata_isockets): New function.
131 (time_from_time_t, group_from_gid): New functions.
132 (linux_xfer_osdata_shm): New function.
133 (linux_xfer_osdata_sem): New function.
134 (linux_xfer_osdata_msg): New function.
135 (linux_xfer_osdata_modules): New function.
136 (osdata_table): Add new entries.
137 * common/buffer.c (buffer_xml_printf): Add support for long and
138 long long format specifiers.
139
f24afd6d
L
1402012-05-11 H.J. Lu <hongjiu.lu@intel.com>
141
142 * amd64-linux-tdep.h (tdesc_x32_linux): New.
143 (tdesc_x32_avx_linux): Likewise.
144
7349ff92
JK
1452012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
146
147 Implement multi-component --with-auto-load-dir.
148 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
149 entries.
150 (--with-auto-load-safe-path): Update the default value description.
151 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
152 New.
153 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
154 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
155 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
156 (_initialize_auto_load): Initialize also auto_load_dir. Install new
157 "set auto-load scripts-directory".
158 * config.in: Regenerate.
159 * configure: Regenerate.
160 * configure.ac (--with-auto-load-dir): New configure option.
161 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
162
6dea1fbd
JK
1632012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
164
165 Provide $ddir substitution for --with-auto-load-safe-path.
166 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
167 entries.
168 * auto-load.c: Include observer.h.
169 (auto_load_safe_path_vec_update): Call substitute_path_component for
170 each component. New variable ddir_subst.
171 (auto_load_gdb_datadir_changed): New function.
172 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
173 AUTO_LOAD_SAFE_PATH. New comment.
174 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
175 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
176 * config.in: Regenerate.
177 * configure: Regenerate.
178 * configure.ac (--auto-load-safe-path): Rename
179 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
180 GDB_DATADIR/auto-load.
181 * defs.h (substitute_path_component): New declaration.
182 * top.c: Include observer.h.
183 (set_gdb_datadir): New function.
184 (init_main): Install it for "set data-directory".
185 * utils.c (substitute_path_component): New function.
186
b09aca3a
JK
1872012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
190 * auto-load.c (auto_load_objfile_script): Remove check for NULL
191 DEBUG_FILE_DIRECTORY. Handle multiple components of
192 DEBUG_FILE_DIRECTORY.
193
95554aad
TT
1942012-05-10 Tom Tromey <tromey@redhat.com>
195
196 * dwarf2read.c (recursively_write_psymbols): New function.
197 (write_psymtabs_to_index): Use it.
198
199 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
200 field.
201 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
202 (load_partial_comp_unit): Update.
203 (queue_comp_unit): Add argument 'pretend_language'.
204 (process_queue): Update.
205 (psymtab_to_symtab_1): Skip dependencies that have a user.
206 (load_partial_comp_unit_reader): Give meaning to the 'data'
207 argument.
208 (load_full_comp_unit): Add 'pretend_language' argument.
209 (process_full_comp_unit): Add 'pretend_language' argument. Set
210 language on CU.
211 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
212 Update.
213 (maybe_queue_comp_unit): Add 'pretend_language' argument.
214 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
215 Update.
216 (prepare_one_comp_unit): Add 'pretend_language' argument.
217
218 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
219 (struct dwarf2_per_objfile) <just_read_cus>: New field.
220 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
221 (dw2_do_instantiate_symtab): Check whether symtab was read in
222 before queueing.
223 (dw2_instantiate_symtab): Add assertion. Call
224 process_cu_includes.
225 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
226 (partial_symtab_p): New typedef.
227 (set_partial_user): New function.
228 (dwarf2_build_psymtabs_hard): Use set_partial_user.
229 (scan_partial_symbols): Add imported CU to imported_symtabs.
230 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
231 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
232 (get_symtab, recursively_compute_inclusions)
233 (compute_symtab_includes, process_cu_includes)
234 (process_imported_unit_die): New functions.
235 (process_die) <DW_TAG_imported_unit>: New case.
236 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
237
238 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
239 comment.
240 (struct partial_die_info) <locdesc>: Remove.
241 <d>: New field.
242 (process_psymtab_comp_unit): Add 'read_partial' argument.
243 Update.
244 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
245 (scan_partial_symbols): Handle DW_TAG_imported_unit.
246 (add_partial_symbol): Update.
247 (process_die): Handle DW_TAG_partial_unit.
248 (read_file_scope): Update comment.
249 (load_partial_dies): Handle DW_TAG_imported_unit.
250 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
251 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
252
e871fbb9
TT
2532012-05-10 Tom Tromey <tromey@redhat.com>
254
255 * cc-with-dwz.sh: New file.
256
b5b04b5b
TT
2572012-05-10 Tom Tromey <tromey@redhat.com>
258
259 * symtab.h (struct symtab) <includes, user>: New fields.
260 * block.h (struct block_iterator) <d, idx, which>: New fields.
261 * block.c (initialize_block_iterator, find_iterator_symtab)
262 (block_iterator_step, block_iter_name_step)
263 (block_iter_match_step): New functions.
264 (block_iterator_first, block_iterator_next)
265 (block_iter_name_first, block_iter_name_next)
266 (block_iter_match_first, block_iter_match_next): Rewrite.
267 (get_block_symtab): New function.
268
84a146c9
TT
2692012-05-10 Tom Tromey <tromey@redhat.com>
270
271 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
272 set_block_symtab.
273 * jit.c (finalize_symtab): Use allocate_global_block,
274 set_block_symtab.
275 * buildsym.c (finish_block_internal): New function, from old
276 finish_block.
277 (finish_block): Rewrite.
278 (end_symtab): Use finish_block_internal, set_block_symtab.
279 * block.h (struct global_block): New.
280 (allocate_global_block, set_block_symtab): Declare.
281 * block.c (allocate_global_block, set_block_symtab): New
282 functions.
283
9439a077
TT
2842012-05-10 Tom Tromey <tromey@redhat.com>
285
286 * psymtab.c (partial_map_expand_apply): Add assertion.
287 (partial_map_symtabs_matching_filename): Skip included psymtabs.
288 (psymtab_to_symtab): Find unshared psymtab.
289 (dump_psymtab): Print including psymtabs.
290 (recursively_search_psymtabs): New function.
291 (expand_symtabs_matching_via_partial): Use it.
292 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
293 fields.
294 (enum psymtab_search_status): New.
295
8157b174
TT
2962012-05-10 Tom Tromey <tromey@redhat.com>
297
298 * tracepoint.c (scope_info): Update.
299 * symtab.c (lookup_block_symbol, iterate_over_symbols)
300 (find_pc_sect_symtab, search_symbols)
301 (default_make_symbol_completion_list_break_on)
302 (make_file_symbol_completion_list): Update.
303 * symmisc.c (dump_symtab_1): Update.
304 * stack.c (print_frame_args, iterate_over_block_locals)
305 (print_frame_labels, iterate_over_block_arg_vars): Update.
306 * python/py-block.c (block_object) <dict>: Remove.
307 <block>: New field.
308 <iter>: Change type.
309 (blpy_iter): Update.
310 (blpy_block_syms_iternext): Update.
311 * psymtab.c (map_block): Use block iterators.
312 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
313 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
314 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
315 * infrun.c (check_exception_resume): Update.
316 * cp-support.c (make_symbol_overload_list_block): Update.
317 * coffread.c (patch_opaque_types): Update.
318 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
319 * block.h (struct block_iterator): New.
320 (block_iterator_first, block_iterator_next, block_iter_name_first)
321 (block_iter_name_next, block_iter_match_first)
322 (block_iter_match_next): Declare.
323 (ALL_BLOCK_SYMBOLS): Redefine.
324 * block.c (block_iterator_first, block_iterator_next)
325 (block_iter_name_first, block_iter_name_next)
326 (block_iter_match_first, block_iter_match_next): New functions.
327 * ada-lang.c (ada_add_block_symbols)
328 (ada_make_symbol_completion_list): Use block iterator.
329
a2ca7a52
TT
3302012-05-10 Tom Tromey <tromey@redhat.com>
331
332 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
333 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
334 (lookup_partial_symbol, find_last_source_symtab_from_partial)
335 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
336 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
337 Update.
338
64ea88dc
JB
3392012-05-10 Joel Brobecker <brobecker@adacore.com>
340
341 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
342 print-file-var-lib2.c, print-file-var-main.c and
343 print-file-var.exp (located in gdb/testsuite/gdb.base).
344
99a547d6
JB
3452012-05-10 Joel Brobecker <brobecker@adacore.com>
346
347 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
348 try locating the symbol in the symbol's own objfile first, before
349 extending the search to all objfiles.
350 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
351 out of lookup_symbol_aux_symtabs.
352 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
353 Replace extracted-out code by call to lookup_symbol_aux_objfile.
354 Do not search EXCLUDE_OBJFILE.
355 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
356 (lookup_symbol_global): Search for matches in the block's objfile
357 first, before searching all other objfiles.
358
0ece64fd
TG
3592012-05-10 Tristan Gingold <gingold@adacore.com>
360
361 * printcmd.c (set_command): Add pre/post inc/dec.
362
3d16a105
FCE
3632012-05-09 Frank Ch. Eigler <fche@redhat.com>
364
365 * gdb.1: Document -ex option.
366
2efbc0f7
JB
3672012-05-09 Joel Brobecker <brobecker@adacore.com>
368
369 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
370 * inferior.h (AT_SYMBOL): Delete.
371
2c76a0c7
JB
3722012-05-09 Joel Brobecker <brobecker@adacore.com>
373
374 * mips-tdep.c (mips_push_dummy_code): New function.
375 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
376 ON_STACK and install mips_push_dummy_code as our gdbarch
377 push_dummy_code routine.
378
9401a810
PA
3792012-05-09 Pedro Alves <palves@redhat.com>
380
381 * target.c (set_maintenance_target_async_permitted): Rename to ...
382 (set_target_async_command): ... this.
383 (show_maintenance_target_async_permitted): Rename to ...
384 (show_target_async_command): ... this.
385 (initialize_targets): Adjust.
386
3929b321
DE
3872012-05-08 Doug Evans <dje@google.com>
388
389 * go-exp.y (classify_name): Add missing assignment of fields of
390 yylval.ssym.
391
c41535fd
EZ
3922012-05-08 Eli Zaretskii <eliz@gnu.org>
393
394 Display the ">" prompt in interactive mode while reading canned
395 commands, even when the current interpreter is MI.
396
397 * interps.c (interp_set_temp): New function.
398
399 * interps.h (interp_set_temp): Add prototype.
400
401 * cli/cli-script.c (restore_interp): New cleanup function.
402 (read_command_lines): Temporarily override the current interpreter
403 with CLI and arrange for restoring the original one.
404
c0749c4d
JS
4052012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
406
407 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
408
d7333987
SDJ
4092012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
410
411 * probe.c (parse_probes): Move conditional to check for
412 debuginfo files from here...
413 * stap-probe.c (stap_get_probes): ... to here.
414
649e6d92
MK
4152012-05-07 Mark Kettenis <kettenis@gnu.org>
416 H.J. Lu <hongjiu.lu@intel.com>
417
418 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
419 `movl %esp, %ebp' for the X32 ABI.
420
f39c6ffd
TT
4212012-05-07 Tom Tromey <tromey@redhat.com>
422
423 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
424 get_DW_TAG_name.
425 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
426 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
427 (dwarf_stack_op_name): Remove.
428 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
429 (decode_locdesc): Use get_DW_OP_name.
430 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
431 (dwarf2_compile_expr_to_ax): Likewise.
432 (disassemble_dwarf_expression): Likewise.
433 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
434
1e1f6591
CLT
4352012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
436
437 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
438 (sh_linux_sigtramp_cache): New function.
439 (sh_linux_sigreturn_init): New function.
440 (sh_linux_rt_sigreturn_init): New function.
441 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
442 patterns.
443 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
444 syscall codes.
445 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
446 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
447 (sh_linux_init_abi): Add init calls to register new tramp_frame
448 definitions under 32-bit SH, update comments.
449
545c08b4
PA
4502012-05-07 Pedro Alves <palves@redhat.com>
451
daac165e
PA
452 PR gdb/10952
453
545c08b4
PA
454 * amd64-linux-tdep.c: Include glibc-tdep.h.
455 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
456 gdbarch_skip_solib_resolver callback.
457
af2c1515
JK
4582012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
461 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
462 (show_auto_load_safe_path): Check any-directory by comparison with "/".
463 (add_auto_load_safe_path): Change the error message.
464 (_initialize_auto_load): Change the "safe-path" help text.
465 * configure: Regenerate
466 * configure.ac (--without-auto-load-safe-path): Set
467 WITH_AUTO_LOAD_SAFE_PATH to /.
468
1067f998
SDJ
4692012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
470
471 * stap-probe.h: Do not include unecessary `probe.h'.
472
45dfa85a
AM
4732012-05-05 Alan Modra <amodra@gmail.com>
474
475 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
476 bfd_und_section_ptr.
477 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
478 and bfd_com_section_ptr.
479
cf093994
JB
4802012-05-04 Joel Brobecker <brobecker@adacore.com>
481
762ebb75 482 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 483
d40dc7a8
JB
4842012-05-04 Joel Brobecker <brobecker@adacore.com>
485
486 * windows-nat.h (segment_register_p_ftype): New typedef.
487 (windows_set_segment_register_p): Add declaration.
488 * windows-nat.c (segment_register_p): New static global.
489 (windows_set_segment_register_p): New function.
490 (do_windows_fetch_inferior_registers): Add special handling
491 for segment registers.
492 * amd64-windows-nat.c: #include "amd64-tdep.h".
493 (amd64_windows_segment_register_p): New function.
494 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
495 * i386-windows-nat.c: #include "i386-tdep.h".
496 (i386_windows_segment_register_p): New function.
497 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
498
52b3699b
TG
4992012-05-04 Tristan Gingold <gingold@adacore.com>
500
501 * printcmd.c (set_command): Emit a warning if the expression is not
502 an assignment.
503
94c74239
JB
5042012-05-03 Joel Brobecker <brobecker@adacore.com>
505
506 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
507 Make static.
508
fcf57f19
SDJ
5092012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
510
511 * stap-probe.c (stap_is_operator): Change declaration.
512 (stap_get_opcode): Change return value.
513 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
514 `stap_parse_argument_1'.
515
27d2932e
PA
5162012-05-03 Pedro Alves <pedro@codesourcery.com>
517
518 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
519 debug log.
520
a20ee7a4
SCR
5212012-05-03 Siva Chandra Reddy <sivachandra@google.com>
522
523 Add two new methods global_block and static_block to gdb.Symtab
524 objects.
525 * NEWS (Python scripting): Add entry about the new methods.
526 * python/py-symtab.c (stpy_global_block): New function which
527 implements the gdb.Symtab.global_block() method.
528 (stpy_static_block): New function which implements the
529 gdb.Symtab.static_block() method.
530 (symtab_object_methods): Add entries for the two new methods.
531
943cb756
DE
5322012-05-03 Doug Evans <dje@google.com>
533
534 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
535 files.
536
f4644a3f
YQ
5372012-05-03 Yao Qi <yao@codesourcery.com>
538
539 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
540 space.
541 (i386_process_record): Ditto.
542
ef61f180
JB
5432012-05-02 Joel Brobecker <brobecker@adacore.com>
544
545 * infcall.c (unwind_on_signal_p): Make static.
546
02f1df11
JB
5472012-05-02 Joel Brobecker <brobecker@adacore.com>
548
549 * sol-thread.c (solaris_pid_to_str): Make static.
550 (_initialize_sol_thread): Add prototype.
551
39023530
JB
5522012-05-02 Joel Brobecker <brobecker@adacore.com>
553
554 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
555
c6b0c501
CF
5562012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
557
558 * MAINTAINERS: Remove myself.
559
1ef71717
JK
5602012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 Fix --without-auto-load-safe-path for MS-Windows host platform.
563 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
564
b31b86a7
EZ
5652012-05-02 Eli Zaretskii <eliz@gnu.org>
566
567 * gdb_curses.h: Undefine KEY_EVENT before including curses
568 headers. Move "#undef MOUSE_MOVED" before any curses header
569 inclusion.
570
777532fc
SDJ
5712012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
572
573 * features/i386/i386-mmx-linux.c: Regenerate.
574 * features/rs6000/powerpc-32.c: Likewise.
575 * features/rs6000/powerpc-32l.c: Likewise.
576 * features/rs6000/powerpc-403.c: Likewise.
577 * features/rs6000/powerpc-403gc.c: Likewise.
578 * features/rs6000/powerpc-405.c: Likewise.
579 * features/rs6000/powerpc-505.c: Likewise.
580 * features/rs6000/powerpc-601.c: Likewise.
581 * features/rs6000/powerpc-602.c: Likewise.
582 * features/rs6000/powerpc-603.c: Likewise.
583 * features/rs6000/powerpc-604.c: Likewise.
584 * features/rs6000/powerpc-64.c: Likewise.
585 * features/rs6000/powerpc-64l.c: Likewise.
586 * features/rs6000/powerpc-750.c: Likewise.
587 * features/rs6000/powerpc-860.c: Likewise.
588 * features/rs6000/powerpc-e500.c: Likewise.
589 * features/rs6000/powerpc-e500l.c: Likewise.
590 * features/rs6000/powerpc-isa205-32l.c: Likewise.
591 * features/rs6000/powerpc-isa205-64l.c: Likewise.
592 * features/rs6000/rs6000.c: Likewise.
593
d71871bc
SDJ
5942012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
595
596 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
597 variable.
598 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
599 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
600 (stap_parse_argument) <e>: Likewise.
601 (handle_stap_probe) <byte_order>: Likewise.
602
fd820528
DE
6032012-04-30 Doug Evans <dje@google.com>
604
605 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
606 init_and_read_dies_worker. All callers updated.
607 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
608 replaced with init_cutu_and_read_dies.
609 (load_partial_comp_unit): Pass 1 for use_existing_cu.
610 (find_partial_die): Remove FIXME. Don't free current CU.
611
ec3f619d 6122012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
613
614 * contrib: New directory.
615 * contrib/test_pubnames_and_indexes.py: New file.
616
fceca515
DE
6172012-04-30 Doug Evans <dje@google.com>
618
619 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
620 All callers updated.
621 (init_cu_die_reader): Verify the section is non-empty.
622 (dwarf_decode_line_header): Don't dereference section->asection
623 until we know the section is present.
624
311fe7e1
SDJ
6252012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
626
627 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
628 probes.
629
5977971a
YQ
6302012-04-29 Yao Qi <yao@codesourcery.com>
631
632 * gdb-code-style.el: New hook gdb-markup-hook
633 and gdb-comment-hook.
634
dee91e82
DE
6352012-04-28 Doug Evans <dje@google.com>
636
3019eac3
DE
637 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
638 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
639 objfile->obfd.
640 * symfile.h (dwarf2_debug_sections): New member addr.
641 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
642 (ctx_no_get_addr_index): New function.
643 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
644 (ctx_no_get_addr_index): Declare.
645 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
646 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
647 (dwarf_expr_ctx_funcs): Update.
648 (needs_get_addr_index): New function.
649 (needs_frame_ctx_funcs): Update.
650 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
651 * dwarf2read.c: #include "gdbcore.h".
652 (dwarf2_per_objfile): New members addr, dwo_files.
653 (dwarf2_elf_names): Add entry for addr.
654 (struct dwo_section_names): New type.
655 (dwo_section_names): New static global.
656 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
657 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
658 old debug_types_section member updated to use this.
659 Rename member debug_types_section to info_or_types_section,
660 all uses updated.
661 (signatured_type): Rename member type_offset to type_offset_in_tu,
662 all uses updated. New member type_offset_in_section.
663 (struct dwo_sections): New type.
664 (struct dwo_unit): New type.
665 (struct dwo_file): New type.
666 (die_reader_specs): New member dwo_file.
667 (dwarf2_locate_sections): Watch for .debug_addr.
668 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
669 (dwarf2_read_section): Get bfd of section from bfd's asection,
670 instead of objfile.
671 (create_cus_from_index): Initialize the_cu->info_or_types_section.
672 (create_signatured_type_table_from_index): Initialize
673 sig_type->info_or_types_section.
674 (dw2_get_file_names): Statement lists for type units with DWO files
675 live in the DWO file.
676 (create_debug_types_hash_table): New function.
677 (create_all_type_units): Rewrite.
678 (init_cu_die_reader): New arg dwo_file, all callers updated.
679 (init_and_read_dies_worker): Get section from
680 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
681 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
682 continue reading the CU/TU from there.
683 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
684 updated. Get section from this_cu->info_or_types_section.
685 (create_all_comp_units): Initialize this_cu->info_or_types_section.
686 (skip_one_die): New cases DW_FORM_GNU_addr_index,
687 DW_FORM_GNU_str_index.
688 (hash_dwo_file, eq_dwo_file): New functions.
689 (allocate_dwo_file_hash_table): New function.
690 (hash_dwo_unit, eq_dwo_unit): New functions.
691 (allocate_dwo_unit_table): New function.
692 (dwarf2_locate_dwo_sections): New function.
693 (struct create_dwo_info_table_data): New type.
694 (create_debug_info_hash_table_reader): New function.
695 (create_debug_info_hash_table): New function.
696 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
697 (lookup_dwo_file): New function.
698 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
699 (free_dwo_file, free_dwo_file_cleanup): New functions.
700 (free_dwo_file_from_slot, free_dwo_files): New functions.
701 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
702 (dwarf2_record_block_ranges): Ditto.
703 (read_partial_die): Ditto.
704 (process_enumeration_scope): Update to use type_offset_in_section.
705 (read_full_die_1): New function.
706 (read_full_die): Rewrite.
707 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
708 DW_FORM_GNU_str_index.
709 (read_addr_index_1, read_addr_index): New functions.
710 (read_addr_index_from_leb128): New function.
711 (struct dwarf2_read_addr_index_data): New type.
712 (dwarf2_read_addr_index_reader): New function.
713 (dwarf2_read_addr_index): New function.
714 (read_str_index): New function.
715 (leb128_size): New function.
716 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
717 If processing a type unit from a DWO file, get the line section
718 from the DWO file.
719 (var_decode_location): Watch for DW_OP_GNU_addr_index.
720 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
721 DW_FORM_GNU_str_index.
722 (lookup_die_type): Check whether section offset of type's die is
723 known before looking it up. Remove assert. Condition can
724 legimately happen for inter-cu type references.
725 (dwarf_attr_name): Handle Fission attributes.
726 (dwarf_form_name): Handle Fission forms.
727 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
728 DW_FORM_GNU_str_index.
729 (follow_die_sig): Update to use type_offset_in_section.
730 (decode_locdesc): New case DW_OP_GNU_addr_index.
731 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
732 DW_FORM_GNU_str_index.
733 (cu_debug_loc_section): New function.
734 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
735 (dwarf2_per_objfile_free): Unmap .debug_addr section.
736 Free DWO files if present.
737 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
738
dee91e82
DE
739 Refactor DIE reading.
740 * dwarf2read.c (dwarf2_per_objfile): Replace members
741 debug_info_type_hash and debug_types_type_hash with die_type_hash.
742 (die_reader_specs): New member "die_section". Temporarily make
743 member "buffer" non-const, pending constifying all info_ptr uses.
744 (die_reader_func_ftype): New typedef.
745 (dw2_get_file_names_reader): New function.
746 (dw2_get_file_names): Rewrite.
747 (read_and_check_type_unit_head): Rename arg type_offset to
748 type_offset_in_tu.
749 (create_all_type_units): Improve debugging message.
750 Improve dummy type unit check.
751 (init_cu_die_reader): New arg "section". All callers updated.
752 (init_and_read_dies_worker): New function.
753 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
754 (init_cutu_and_read_dies_no_follow): New function.
755 (init_cutu_and_read_dies_simple): New function.
756 (process_psymtab_comp_unit_reader): New function.
757 (process_psymtab_comp_unit): Delete args section,
758 is_debug_types_section. Rewrite. All callers updated.
759 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
760 All callers updated. Rewrite.
761 (load_partial_comp_unit_reader): New function.
762 (load_partial_comp_unit): Rewrite.
763 (skip_children): New arg reader. Delete args buffer, cu.
764 All callers updated.
765 (skip_one_die): New arg reader. Delete args buffer, cu.
766 All callers updated.
767 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
768 All callers updated.
769 (load_full_comp_unit_reader): New function.
770 (load_full_comp_unit): Rewrite.
771 (read_comp_unit): Delete.
772 (read_die_and_children_1): Delete, contents moved ...
773 (read_die_and_children): ... here.
774 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
775 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
776 All callers updated.
777 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
778 All callers updated.
779 (find_partial_die): Rewrite load_all_dies support.
780 (read_attribute_value): New arg reader. Delete args abfd, cu.
781 All callers updated.
782 (read_attribute): New arg reader. Delete args abfd, cu.
783 All callers updated.
784 (load_full_type_unit): Add assert.
785 (read_signatured_type_reader): New function.
786 (read_signatured_type): Rewrite.
787 (free_stack_comp_unit): Remove call to age_cached_comp_units.
788 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
789 All callers updated. Set per_cu->cu = NULL after freeing it.
790 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
791 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
792 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
793 (set_die_type): Update.
794 (get_die_type_at_offset): Update.
795 (read_file_scope): Call prepare_one_comp_unit.
796 (read_type_unit_scope): Ditto.
797 (prepare_one_comp_unit): Set producer if present.
798
72d59e0d
SDJ
7992012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
800
801 * probe.c (compile_rx_or_error): Silence ARI warning about missing
802 gettext function on `error'.
803
0fefef59
DE
8042012-04-27 Doug Evans <dje@google.com>
805
806 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
807 is empty.
808
28106bc2
SDJ
8092012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
810 Tom Tromey <tromey@redhat.com>
811
812 * breakpoint.c (struct breakpoint_objfile_data)
813 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
814 <exception_probes>: New fields.
815 (free_breakpoint_probes): New function.
816 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
817 `_Unwind_DebugHook'.
818 (create_exception_master_breakpoint): Likewise.
819 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
820 * infrun.c: Including necessary header files for handling SystemTap
821 probes.
822 (handle_inferior_event): Handling longjmp breakpoint and exceptions
823 via SystemTap probes.
824 (check_exception_resume): Remove `func' argument. Handle exception
825 unwinding breakpoint set via a SystemTap probe.
826 (insert_exception_resume_from_probe): New function.
827
55aa24fb
SDJ
8282012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
829 Tom Tromey <tromey@redhat.com>
830 Jan Kratochvil <jan.kratochvil@redhat.com>
831
832 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
833 (COMMON_OBS): Likewise.
834 (HFILES_NO_SRCDIR): Add `probe'.
835 * NEWS: Mention support for static and SystemTap probes.
836 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
837 SystemTap probes' arguments parser.
838 * arm-linux-tdep.c: Including headers needed to perform the parsing
839 of SystemTap probes' arguments.
840 (arm_stap_is_single_operand): New function.
841 (arm_stap_parse_special_token): Likewise.
842 (arm_linux_init_abi): Initializing proper fields used by SystemTap
843 probes' arguments parser.
844 * ax-gdb.c (require_rvalue): Removing static declaration.
845 (gen_expr): Likewise.
846 * ax-gdb.h (gen_expr): Declaring function.
847 (require_rvalue): Likewise.
848 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
849 (bkpt_probe_breakpoint_ops): New variable.
850 (momentary_breakpoint_from_master): Set the `probe' value.
851 (add_location_to_breakpoint): Likewise.
852 (break_command_1): Using proper breakpoint_ops according to the
853 argument passed by the user in the command line.
854 (bkpt_probe_insert_location): New function.
855 (bkpt_probe_remove_location): Likewise.
856 (bkpt_probe_create_sals_from_address): Likewise.
857 (bkpt_probe_decode_linespec): Likewise.
858 (tracepoint_probe_create_sals_from_address): Likewise.
859 (tracepoint_probe_decode_linespec): Likewise.
860 (tracepoint_probe_breakpoint_ops): New variable.
861 (trace_command): Using proper breakpoint_ops according to the
862 argument passed by the user in the command line.
863 (initialize_breakpoint_ops): Initializing breakpoint_ops for
864 static probes on breakpoints and tracepoints.
865 * breakpoint.h (struct bp_location) <probe>: New field.
866 * cli-utils.c (skip_spaces_const): New function.
867 (extract_arg): Likewise.
868 * cli-utils.h (skip_spaces_const): Likewise.
869 (extract_arg): Likewise.
870 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
871 * configure.ac: Append `stap-probe.o' to be generated when ELF
872 support is present.
873 * configure: Regenerate.
874 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
875 * elfread.c: Include `probe.h' and `arch-utils.h'.
876 (probe_key): New variable.
877 (elf_get_probes): New function.
878 (elf_get_probe_argument_count): Likewise.
879 (elf_evaluate_probe_argument): Likewise.
880 (elf_compile_to_ax): Likewise.
881 (elf_symfile_relocate_probe): Likewise.
882 (stap_probe_key_free): Likewise.
883 (elf_probe_fns): New variable.
884 (elf_sym_fns): Add `sym_probe_fns' value.
885 (elf_sym_fns_lazy_psyms): Likewise.
886 (elf_sym_fns_gdb_index): Likewise.
887 (_initialize_elfread): Initialize objfile cache for static
888 probes.
889 * gdb_vecs.h (struct probe): New forward declaration.
890 (probe_p): New VEC declaration.
891 * gdbarch.c: Regenerate.
892 * gdbarch.h: Regenerate.
893 * gdbarch.sh (stap_integer_prefix): New variable.
894 (stap_integer_suffix): Likewise.
895 (stap_register_prefix): Likewise.
896 (stap_register_suffix): Likewise.
897 (stap_register_indirection_prefix): Likewise.
898 (stap_register_indirection_suffix): Likewise.
899 (stap_gdb_register_prefix): Likewise.
900 (stap_gdb_register_suffix): Likewise.
901 (stap_is_single_operand): New function.
902 (stap_parse_special_token): Likewise.
903 (struct stap_parse_info): Forward declaration.
904 * i386-tdep.c: Including headers needed to perform the parsing
905 of SystemTap probes' arguments.
906 (i386_stap_is_single_operand): New function.
907 (i386_stap_parse_special_token): Likewise.
908 (i386_elf_init_abi): Initializing proper fields used by SystemTap
909 probes' arguments parser.
910 * i386-tdep.h (i386_stap_is_single_operand): New function.
911 (i386_stap_parse_special_token): Likewise.
912 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
913 * mipsread.c (ecoff_sym_fns): Likewise.
914 * objfiles.c (objfile_relocate1): Support relocation for static
915 probes.
916 * parse.c (prefixify_expression): Remove static declaration.
917 (initialize_expout): Likewise.
918 (reallocate_expout): Likewise.
919 * parser-defs.h (initialize_expout): Declare function.
920 (reallocate_expout): Likewise.
921 (prefixify_expression): Likewise.
922 * ppc-linux-tdep.c: Including headers needed to perform the parsing
923 of SystemTap probes' arguments.
924 (ppc_stap_is_single_operand): New function.
925 (ppc_stap_parse_special_token): Likewise.
926 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
927 probes' arguments parser.
928 * probe.c: New file, for generic statically defined probe support.
929 * probe.h: Likewise.
930 * s390-tdep.c: Including headers needed to perform the parsing of
931 SystemTap probes' arguments.
932 (s390_stap_is_single_operand): New function.
933 (s390_gdbarch_init): Initializing proper fields used by SystemTap
934 probes' arguments parser.
935 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
936 * stap-probe.c: New file, for SystemTap probe support.
937 * stap-probe.h: Likewise.
938 * symfile.h: Include `gdb_vecs.h'.
939 (struct sym_probe_fns): New struct.
940 (struct sym_fns) <sym_probe_fns>: New field.
941 * symtab.c (init_sal): Initialize `probe' field.
942 * symtab.h (struct probe): Forward declaration.
943 (struct symtab_and_line) <probe>: New field.
944 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
945 locations.
946 (stop_tracing): Likewise.
947 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
948
22d2b532
SDJ
9492012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
950 Tom Tromey <tromey@redhat.com>
951
952 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
953 and to compile agent expressions.
954 * infrun.c (siginfo_make_value): New argument `ignore'.
955 (siginfo_funcs): New struct.
956 (_initialize_infrun): New argument when calling
957 `create_internalvar_type_lazy'.
958 * thread.c (thread_id_make_value): New argument `ignore'.
959 (thread_funcs): New struct.
960 (_initialize_thread): New argument when calling
961 `create_internalvar_type_lazy'.
962 * tracepoint.c (sdata_make_value): New argument `ignore'.
963 (sdata_funcs): New struct.
964 (_initialize_tracepoint): New argument when calling
965 `create_internalvar_type_lazy'.
966 * value.c (make_value): New struct.
967 (create_internalvar_type_lazy): New argument `data'.
968 (compile_internalvar_to_ax): New function.
969 (value_of_internalvar): Properly handling `make_value' case.
970 (clear_internalvar): Likewise.
971 (show_convenience): Adding `TRY_CATCH' block.
972 * value.h (internalvar_make_value): Delete, replace by...
973 (struct internalvar_funcs): ... this.
974 (create_internalvar_type_lazy) <fun>: Delete argument.
975 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
976 (compile_internalvar_to_ax): New function.
977 * windows-tdep.c (tlb_make_value): New argument `ignore'.
978 (tlb_funcs): New struct.
979 (_initialize_windows_tdep): New argument when calling
980 `create_internalvar_type_lazy'.
981
91da1414
MW
9822012-04-27 Mark Wielaard <mjw@redhat.com>
983
984 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
985 see whether it is an address or a constant offset from DW_AT_low_pc.
986 (dwarf2_record_block_ranges): Likewise.
987 (read_partial_die): Likewise.
988
4ab9d8ec
MW
9892012-04-26 Mark Wielaard <mjw@redhat.com>
990
991 * MAINTAINERS (Write After Approval): Add myself to the list.
992
a0911fd0
MR
9932012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
994
995 * proc-utils.h (proc_prettyprint_signalset): New prototype.
996 (proc_prettyprint_signal): Likewise.
997 (proc_prettyprint_faultset): Likewise.
998 (proc_prettyprint_fault): Likewise.
999 (proc_prettyprint_actionset): Likewise.
1000 (proc_prettyprint_flags): Move to new proc-flags.c section.
1001 (proc_prettyfprint_flags): New prototype.
1002 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1003 (proc_syscall, proc_cursig): Likewise.
1004 (proc_set_kill_on_last_close): Likewise.
1005 (proc_unset_kill_on_last_close): Likewise.
1006 (proc_set_watchpoint): Make static.
1007 (proc_delete_dead_threads): Likewise.
1008 (procfs_set_watchpoint): Likewise.
1009 (_initialize_procfs): Add prototype.
1010 * proc-events.c: Include proc-utils.h.
1011 (init_syscall_table): Make static.
1012 * proc-api.c (_initialize_proc_api): Add prototype.
1013 * proc-flags.c: Include proc-utils.h.
1014
9009e1ae
MR
10152012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1016
1017 * configure.ac: Add AC_ARG_PROGRAM.
1018 * configure: Regenerate.
1019
4fae6e18
JK
10202012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 Fix DW_AT_lower_bound defaults for DWARF-4+.
1023 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1024 high. New variable low_default_is_valid. Implement DWARF-4+
1025 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1026 no default by the DWARF standard.
1027
14132e89
MR
10282012-04-26 Maciej W. Rozycki <macro@mips.com>
1029 Maciej W. Rozycki <macro@codesourcery.com>
1030
1031 * infrun.c (handle_inferior_event): Move the check for return
1032 trampolines ahead of the check for function trampolines.
1033 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
1034 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
1035 (mips_str_mips16_ret_stub): Likewise.
1036 (mips_str_call_fp_stub): Likewise.
1037 (mips_str_call_stub): Likewise.
1038 (mips_str_fn_stub): Likewise.
1039 (mips_str_pic): Likewise.
1040 (mips_in_frame_stub): New function.
1041 (mips_unwind_pc): Return the return address rather than the PC
1042 if the PC of an intermediate frame is inside a call thunk.
1043 (mips_is_stub_suffix): New function.
1044 (mips_is_stub_mode): Likewise.
1045 (mips_get_mips16_fn_stub_pc): Likewise.
1046 (mips_skip_mips16_trampoline_code): Update to handle all the
1047 currently generated stub types. Don't recurse into __fn_stub
1048 thunks. Remove heuristics to handle stubs beyond etext/_etext.
1049 Use cooked register accesses.
1050 (mips_in_return_stub): Reintroduce function.
1051 (mips_skip_trampoline_code): Traverse trampolines recursively.
1052 (mips_gdbarch_init): Handle MIPS16 return trampolines.
1053
518f0db5 10542012-04-26 Joel Brobecker <brobecker@adacore.com>
1055
1056 GDB 7.4.1 released.
1057
3184d3f9
JL
10582012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
1059
1060 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
1061 * features/arm-with-m-vfp-d16.xml: New file. Describes
1062 Cortex-M with VFPv4-sp-d16 FPU register layout.
1063 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
1064 * features/arm-with-m-vfp-d16.c: New. Generated from above.
1065 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
1066 (arm-register_g_packet_guesses): Add vfp-d16 guess.
1067 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
1068
b6201d44
DE
10692012-04-25 Doug Evans <dje@google.com>
1070
1071 * cli/cli-decode.c (print_doc_line): Use stream instead of
1072 current_uiout.
1073
4e2f8df6
SDJ
10742012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1075
1076 * features/arm-with-iwmmxt.c: Regenerate.
1077 * features/arm-with-m-fpa-layout.c: Likewise.
1078 * features/arm-with-m.c: Likewise.
1079 * features/arm-with-neon.c: Likewise.
1080 * features/arm-with-vfpv2.c: Likewise.
1081 * features/arm-with-vfpv3.c: Likewise.
1082 * features/mips-dsp-linux.c: Likewise.
1083 * features/mips-linux.c: Likewise.
1084 * features/mips64-dsp-linux.c: Likewise.
1085 * features/mips64-linux.c: Likewise.
1086 * features/s390-linux32.c: Likewise.
1087 * features/s390-linux32v1.c: Likewise.
1088 * features/s390-linux32v2.c: Likewise.
1089 * features/s390-linux64.c: Likewise.
1090 * features/s390-linux64v1.c: Likewise.
1091 * features/s390-linux64v2.c: Likewise.
1092 * features/s390x-linux64.c: Likewise.
1093 * features/s390x-linux64v1.c: Likewise.
1094 * features/s390x-linux64v2.c: Likewise.
1095 * features/tic6x-c62x-linux.c: Likewise.
1096 * features/tic6x-c62x.c: Likewise.
1097 * features/tic6x-c64x-linux.c: Likewise.
1098 * features/tic6x-c64x.c: Likewise.
1099 * features/tic6x-c64xp-linux.c: Likewise.
1100 * features/tic6x-c64xp.c: Likewise.
1101 * target-descriptions.c: Only generate `field_type' and `type'
1102 variables when needed.
1103
2def3e66
JB
11042012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
1105
1106 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
1107
a766d390
DE
11082012-04-25 Doug Evans <dje@google.com>
1109
1110 Initial pass at Go language support.
1111 * NEWS: Mention Go.
1112 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
1113 go-valprint.c.
1114 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
1115 (YYFILES): Add go-exp.c.
1116 (YYOBJ): Add go-exp.o.
1117 (local-maintainer-clean): Delete go-exp.c.
1118 * defs.h (enum language): Add language_go.
1119 * dwarf2read.c: #include "go-lang.h".
1120 (fixup_go_packaging): New function.
1121 (process_full_comp_unit): Call it when processing Go CUs.
1122 (dwarf2_physname): Add Go support.
1123 (read_file_scope): Handle missing language spec for GNU Go.
1124 (set_cu_language): Handle DW_LANG_Go.
1125 * go-exp.y: New file.
1126 * go-lang.h: New file.
1127 * go-lang.c: New file.
1128 * go-typeprint.c: New file.
1129 * go-valprint.c: New file.
1130 * symtab.c: #include "go-lang.h".
1131 (symbol_set_language): Handle language_go.
1132 (symbol_find_demangled_name, symbol_set_names): Ditto.
1133 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
1134
4e2af517
JM
11352012-04-24 Jim Meyering <meyering@redhat.com>
1136
1137 avoid a few strncpy-induced buffer overruns
1138 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
1139 fname and psargs before trying to concatenate.
1140 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
1141 "name" before applying strchr.
1142
b77b7f52
SCR
11432012-04-25 Siva Chandra Reddy <sivachandra@google.com>
1144
1145 * CONTRIBUTE: Use unified diff instead of context diff when
1146 generating patches.
1147
6321c22a
MR
11482012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1149
1150 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
1151 code. Handle JR.HB correctly.
1152
742c84f6
MR
11532012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1154
1155 * mips-tdep.c
1156 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
1157 with the other MIPS16 helpers.
1158
7fc7e0c3
SDJ
11592012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1160
1161 * observer.sh: Conditionally declare `args', thus cleaning up
1162 unused instances of this variable.
1163
20388dd6
YQ
11642012-04-24 Yao Qi <yao@codesourcery.com>
1165
1166 Revert this patch to allow breakpoint always-inserted
1167 in record target.
1168 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1169 * breakpoint.c: Include record.h.
1170 (breakpoints_always_inserted_mode): Return false when the record
1171 target is in use.
1172
1173 * breakpoint.c (iterate_over_bp_locations): New.
1174 * breakpoint.h: Declare.
1175 New typedef walk_bp_location_callback.
1176 * record.c (record_open): Call record_init_record_breakpoints.
1177 (record_sync_record_breakpoints): New.
1178 (record_init_record_breakpoints): New.
1179 * NEWS: Mention supporting breakpoint always-inserted mode in
1180 record target.
1181
4734f50e
MK
11822012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
1183
1184 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
1185 any thread.
1186
c326b90e
YQ
11872012-04-24 Yao Qi <yao@codesourcery.com>
1188
1189 * breakpoint.c (ep_is_catchpoint): Renamed to ...
1190 (is_catchpoint): ... it.
1191 (print_one_breakpoint_location): Caller update.
1192 * breakpoint.h: Update declaration.
1193
d8fb5a1e
DM
11942012-04-23 David S. Miller <davem@davemloft.net>
1195
1196 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1197
34431a2a
TT
11982012-04-23 Tom Tromey <tromey@redhat.com>
1199
1200 * buildsym.c (add_free_pendings): Remove.
1201 * buildsym.h (add_free_pendings): Remove.
1202
4568ecf9
DE
12032012-04-23 Doug Evans <dje@google.com>
1204
1205 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1206 attr.u.unsnd instead of attr.u.addr.
1207 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1208 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1209 DW_FORM_ref_udata.
1210 (dump_die_shallow): Update cases DW_FORM_ref_addr,
1211 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
1212 DW_FORM_ref_udata.
1213 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1214
dca9aa3a
MR
12152012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
1216
1217 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1218 (mips_o32_return_value): Likewise.
1219 (mips_o64_return_value): Likewise.
1220
c8ea1972
PH
12212012-04-21 Paul Hilfinger <hilfinger@adacore.com>
1222
1223 * ada-lang.c (ada_evaluate_subexp): Add cases for
1224 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1225 their treatment in eval.c.
1226
8d1b3521
DM
12272012-04-21 David S. Miller <davem@davemloft.net>
1228
1229 * sparc-tdep.c (X_DISP10): Define.
1230 (sparc_analyze_control_transfer): Handle compare-and-branch.
1231
03145bf4
JL
12322012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
1233
1234 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1235 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1236
004159a2
MR
12372012-04-20 Nigel Stephens <nigel@mips.com>
1238 Maciej W. Rozycki <macro@codesourcery.com>
1239
1240 * mips-tdep.c (mips_float_register_p): New function.
1241 (mips_convert_register_float_case_p): Use mips_float_register_p.
1242 (mips_register_type): Likewise.
1243 (mips_print_register): Likewise.
1244 (print_gp_register_row): Likewise.
1245 (mips_print_registers_info): Likewise.
1246
7f0e6aae
MR
12472012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
1248
1249 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1250 of mips16 symbols.
1251
bc17beea
AP
12522012-04-20 Andrew Pinski <apinski@cavium.com>
1253
1254 * MAINTAINERS (Write After Approval): Add myself to the list.
1255
1730a5a5
SDJ
12562012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1257
1258 * MAINTAINERS: Update my e-mail address.
1259
38ea300a
PA
12602012-04-20 Pedro Alves <palves@redhat.com>
1261
1262 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1263 $srcdir.
1264 * configure: Regenerate.
1265
111dfaae
SDJ
12662012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1267
1268 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1269 declaration.
1270 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1271
4fb2c64a
JK
12722012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1273
1274 Fix compilation compatibility with python-2.4
1275 * python/py-type.c (convert_field): Cast ADDRSTRING for
1276 PyObject_SetAttrString as non-const. New comment.
1277
6328eb38
TT
12782012-04-19 Tom Tromey <tromey@redhat.com>
1279
1280 * top.c (quit_target): Use all_cleanups.
1281 * main.c (captured_command_loop): Use all_cleanups.
1282 * exceptions.c (throw_exception): Use all_cleanups.
1283
c971b7fa
PA
12842012-04-19 Pedro Alves <palves@redhat.com>
1285
1286 * Makefile.in (GNULIB_BUILDDIR): New.
1287 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1288 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1289 (CLEANDIRS). Remove gnulib/import.
1290 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1291 (all-lib): Ditto.
1292 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1293 (gnulib/import/Makefile): Replace gnulib/import with
1294 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1295 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1296 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1297 acx_configure_dir.m4.
1298 * acinclude.m4: Include acx_configure_dir.m4.
1299 * acx_configure_dir.m4: New file.
1300 * aclocal.m4: Regenerate.
a09130f9
PA
1301 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1302 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1303 (GNULIB): New variable.
1304 (GNULIB_STDINT_H): Adjust.
1305 (AC_OUTPUT): Don't output gnulib/Makefile.
1306 * gdb/defs.h: Include build-gnulib/config.h.
1307 * aclocal.m4: Regenerate.
1308 * config.in: Regenerate.
1309 * configure: Regenerate.
1310
1311 * gnulib/Makefile.in: New file.
1312 * gnulib/configure.ac: New file.
1313 * gnulib/aclocal.m4: New file.
1314 * gnulib/config.in: New file.
1315 * gnulib/configure: New file.
c971b7fa
PA
1316 * gnulib/: Re-run gnulib-tool to adjust.
1317
b10faa68
DE
13182012-04-19 Doug Evans <dje@google.com>
1319
1320 * cleanups.h (struct cleanup): Move to cleanups.c.
1321 (make_cleanup_dtor_ftype): New typedef.
1322 (make_cleanup_dtor): Use it.
1323 (ALL_CLEANUPS): Replace with ...
1324 (all_cleanups): ... this. Declare. All uses updated.
1325 * cleanups.c: #include "gdb_assert.h".
1326 (sentinel_cleanup): New static global.
1327 (SENTINEL_CLEANUP): Define.
1328 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1329 (make_my_cleanup2): Assert result is non-NULL.
1330 (all_cleanups): New function.
1331 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1332 of NULL.
1333
d8c267cc
PA
13342012-04-19 Pedro Alves <palves@redhat.com>
1335
1336 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1337 Adjust paths to gnulib imported files.
1338
809277f8
PA
13392012-04-19 Pedro Alves <palves@redhat.com>
1340
1341 * gnulib/: Move whole directory ...
1342 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1343 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1344 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1345 (aclocal_m4_deps): Adjust.
1346 * aclocal.m4: Regenerate.
1347 * configure: Regenerate.
1348 * configure.ac: Adjust AC_OUTPUT output.
1349
aad9eab9
YQ
13502012-04-19 Yao Qi <yao@codesourcery.com>
1351
1352 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1353 (vec.o): New rule.
1354 * vec.c: Move it ...
1355 * common/vec.c: ... here.
1356 * vec.h: Move it ...
1357 * common/vec.h: ... here.
1358
48fe4669
YQ
13592012-04-19 Yao Qi <yao@codesourcery.com>
1360
1361 * gdb-code-style.el: New.
1362
770d76d7
PA
13632012-04-18 Pedro Alves <palves@redhat.com>
1364
1365 Update gnulib from latest git.
1366 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1367
1368 * gnulib/Makefile.am: Update.
1369 * gnulib/dummy.c: Update.
1370 * gnulib/extra/arg-nonnull.h: Update.
1371 * gnulib/extra/c++defs.h: Update.
1372 * gnulib/extra/update-copyright: Update.
1373 * gnulib/extra/warn-on-use.h: Update.
1374 * gnulib/inttypes.in.h: Update.
1375 * gnulib/m4/00gnulib.m4: Update.
1376 * gnulib/m4/extensions.m4: Update.
1377 * gnulib/m4/gnulib-cache.m4: Update.
1378 * gnulib/m4/gnulib-common.m4: Update.
1379 * gnulib/m4/gnulib-comp.m4: Update.
1380 * gnulib/m4/gnulib-tool.m4: Update.
1381 * gnulib/m4/include_next.m4: Update.
1382 * gnulib/m4/inttypes-pri.m4: Update.
1383 * gnulib/m4/inttypes.m4: Update.
1384 * gnulib/m4/longlong.m4: Update.
1385 * gnulib/m4/memchr.m4: Update.
1386 * gnulib/m4/memmem.m4: Update.
1387 * gnulib/m4/mmap-anon.m4: Update.
1388 * gnulib/m4/multiarch.m4: Update.
1389 * gnulib/m4/onceonly.m4: Update.
1390 * gnulib/m4/stddef_h.m4: Update.
1391 * gnulib/m4/stdint.m4: Update.
1392 * gnulib/m4/string_h.m4: Update.
1393 * gnulib/m4/warn-on-use.m4: Update.
1394 * gnulib/m4/wchar_h.m4: Update.
1395 * gnulib/m4/wchar_t.m4: Update.
1396 * gnulib/m4/wint_t.m4: Update.
1397 * gnulib/memchr.c: Update.
1398 * gnulib/memmem.c: Update.
1399 * gnulib/stddef.in.h: Update.
1400 * gnulib/stdint.in.h: Update.
1401 * gnulib/str-two-way.h: Update.
1402 * gnulib/string.in.h: Update.
1403 * gnulib/wchar.in.h: Update.
1404
1405 * gnulib/extra/arg-nonnull.h: Delete.
1406 * gnulib/extra/c++defs.h: Delete.
1407 * gnulib/extra/warn-on-use.h: Delete.
1408 * gnulib/m4/wchar_h.m4: Delete.
1409 * gnulib/m4/wint_t.m4: Delete.
1410 * gnulib/wchar.in.h: Delete.
1411
1412 * gnulib/extra/snippets/arg-nonnull.h: New.
1413 * gnulib/extra/snippets/c++defs.h: New.
1414 * gnulib/extra/snippets/warn-on-use.h: New.
1415
1416 * aclocal.m4: Regenerate.
1417 * config.in: Regenerate.
1418 * configure: Regenerate.
1419 * gnulib/Makefile.in: Regenerate.
1420
174e088e
PA
14212012-04-18 Pedro Alves <palves@redhat.com>
1422
1423 Reimport the update-copyright module from gnulib
1424 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1425
1426 * configure: Regenerate.
1427 * gnulib/Makefile.am: Update.
1428 * gnulib/Makefile.in: Regenerate.
1429 * gnulib/extra/update-copyright: Update.
1430 * gnulib/m4/gnulib-cache.m4: Update.
1431 * gnulib/m4/gnulib-comp.m4: Update.
1432
7f533142
JB
14332012-04-18 Tristan Gingold <gingold@adacore.com>
1434
1435 * configure.ac (aix): Put -lpthread into libs.
1436 * configure: Regenerate.
1437
001822aa
TT
14382012-04-18 Tom Tromey <tromey@redhat.com>
1439
1440 * linespec.c (convert_linespec_to_sals): Don't use
1441 SYMBOL_OBJ_SECTION.
1442 (compare_msymbols): Arguments are minsym_and_objfile, not
1443 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1444
db026a31
PA
14452012-04-18 Pedro Alves <palves@redhat.com>
1446
1447 Revert gnulib/ part of:
1448 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1449 Copyright year update in most files (performed by copyright.sh).
1450
12df843f
JK
14512012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 Fix 64-bit constants on 32-bit hosts.
1454 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1455 from unsigned long to ULONGEST.
1456 (read_signed_leb128): Change declaration return type from long to
1457 LONGEST.
1458 (dwarf2_const_value_attr): Change declaration parameter value from long
1459 to LONGEST.
1460 (dwarf2_compute_name): Change variable value from long to LONGEST.
1461 (read_unsigned_leb128): Change return type, variable result and some
1462 casts from unsigned long to ULONGEST.
1463 (read_signed_leb128): Change return type, variable result and some
1464 casts from long to LONGEST.
1465 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1466 value from long to LONGEST.
1467 (dwarf2_const_value): Change variable value from long to LONGEST.
1468 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1469 plongest and hex_string.
1470 * symtab.h (struct general_symbol_info): Change ivalue from long to
1471 LONGEST, remove the comment.
1472 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1473 Change SYMBOL_VALUE format strings to use plongest and hex_string.
1474
14e75d8e
JK
14752012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
1476
1477 PR symtab/7259:
1478 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1479 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
1480 (ada_discrete_type_low_bound): Fix function comment. Use
1481 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
1482 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1483 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1484 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1485 Use TYPE_FIELD_ENUMVAL.
1486 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1487 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1488 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1489 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
1490 TYPE_CODE_ENUM.
1491 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1492 * dwarf2read.c (process_enumeration_scope): Likewise.
1493 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1494 field.bitpos.
1495 (class StructMainTypePrettyPrinter): Support also
1496 FIELD_LOC_KIND_ENUMVAL.
1497 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1498 TYPE_CODE_ENUM.
1499 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1500 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1501 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1502 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
1503 field enumval.
1504 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1505 accommodate enumval.
1506 (struct call_site): Adjust loc_kind to accommodate enumval.
1507 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1508 (TYPE_FIELD_ENUMVAL): New macros.
1509 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1510 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1511 TYPE_CODE_ENUM.
1512 * p-typeprint.c (pascal_type_print_base): Likewise.
1513 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1514 enumval.
1515 * python/lib/gdb/types.py (make_enum_dict): Likewise.
1516 * python/py-type.c (convert_field): New variable addrstring. Use
1517 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1518 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1519 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1520 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1521 TYPE_CODE_ENUM.
1522 * valprint.c (generic_val_print): Likewise.
1523
380bca97
DE
15242012-04-17 Doug Evans <dje@google.com>
1525
dcc07052
DE
1526 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1527
380bca97
DE
1528 * dwarf2read.c: Whitespace fixes.
1529 (lookup_signatured_type): Tweak comment.
1530 (get_die_type_at_offset): Fix comment.
1531
ec92004f
JB
15322012-04-17 Joel Brobecker <brobecker@adacore.com>
1533
1534 * xcoffread.c (xcoff_secnum_to_sections): New function.
1535 (secnum_to_section, secnum_to_bfd_section): Reimplement
1536 using xcoff_secnum_to_sections. Rename "secnum" parameter
1537 into "n_scnum".
1538 (RECORD_MINIMAL_SYMBOL): Delete.
1539 (record_minimal_symbol): New function.
1540 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1541 by call to record_minimal_symbol and set misc_func_recorded
1542 to 1. Set last_csect_sec to the XCOFF section index instead
1543 of GDB's section_offset index. Update calls to
1544 prim_record_minimal_symbol_and_info to pass the BFD section
1545 as well.
1546
40301fb7
JB
15472012-04-17 Joel Brobecker <brobecker@adacore.com>
1548
1549 * xcoffread.c (read_xcoff_symtab): Delete variables
1550 last_csect_val and last_csect_sec and associated code.
1551
e0088cfd
DE
15522012-04-17 Doug Evans <dje@google.com>
1553
58d5e2c3
DE
1554 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1555 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1556 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1557 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1558
c27f5738
DE
1559 * cleanups.h: New file.
1560 * cleanups.c: New file.
1561 * Makefile.in (SFILES): Add cleanups.c.
1562 (HFILES_NO_SRCDIR): Add cleanups.h.
1563 (COMMON_OBS): Add cleanups.o.
1564 * defs.h (struct cleanup): Moved to cleanups.h.
1565 (do_cleanups,do_final_cleanups): Ditto.
1566 (discard_cleanups,discard_final_cleanups): Ditto
1567 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1568 (save_cleanups,save_final_cleanups): Ditto.
1569 (restore_cleanups,restore_final_cleanups): Ditto.
1570 (null_cleanup): Ditto.
1571 (make_my_cleanup,make_my_cleanup2): Ditto.
1572 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1573 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1574 (do_cleanups,do_final_cleanups): Ditto.
1575 (discard_cleanups,discard_final_cleanups): Ditto
1576 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1577 (save_cleanups,save_final_cleanups): Ditto.
1578 (restore_cleanups,restore_final_cleanups): Ditto.
1579 (null_cleanup): Ditto.
1580 (make_my_cleanup,make_my_cleanup2): Ditto.
1581 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1582
e0088cfd
DE
1583 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1584 make_my_cleanup.
1585 (make_cleanup_dyn_string_delete): Ditto.
1586 (make_cleanup_ui_file_delete): Ditto.
1587 (make_cleanup_ui_out_redirect_pop): Ditto.
1588 (make_cleanup_free_section_addr_info): Ditto.
1589 (make_cleanup_restore_integer): Ditto.
1590 (make_cleanup_unpush_target): Ditto.
1591 (make_cleanup_value_free_to_mark): Ditto.
1592 (make_cleanup_value_free): Ditto.
1593 (make_cleanup_free_so): Ditto.
1594
4dc84fd1
JK
15952012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 New option "set debug auto-load".
1598 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1599 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1600 (auto_load_safe_path_vec_update)
1601 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1602 if DEBUG_AUTO_LOAD.
1603 (file_is_auto_load_safe): New parameters debug_fmt and ....
1604 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1605 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1606 caller by explanatory string.
1607 (_initialize_auto_load): Register "set debug auto-load".
1608 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1609 and ....
1610 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1611 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1612 by explanatory string.
1613 * main.c (captured_main): Likewise.
1614 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1615 (source_section_scripts): Likewise.
1616
bccbefd2
JK
16172012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 New option "set auto-load safe-path".
1620 * NEWS: New commands "set auto-load safe-path"
1621 and "show auto-load safe-path".
1622 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1623 (auto_load_safe_path, auto_load_safe_path_vec)
1624 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1625 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1626 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1627 (source_gdb_script_for_objfile): New variable is_safe. Call
1628 file_is_auto_load_safe. Return if it is not.
1629 (struct loaded_script): New field loaded.
1630 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
1631 (print_script): Use LOADED indicator instead of FULL_PATH. Change
1632 output "Missing" to "No".
1633 (_initialize_auto_load): New variable cmd. Initialize
1634 auto_load_safe_path. Register "set auto-load safe-path",
1635 "show auto-load safe-path" and "add-auto-load-safe-path".
1636 * auto-load.h (maybe_add_script): Add parameter loaded.
1637 (file_is_auto_load_safe): New declaration.
1638 * config.in: Regenerate.
1639 * configure: Regenerate.
1640 * configure.ac: New parameters --with-auto-load-safe-path
1641 and --without-auto-load-safe-path.
1642 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1643 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1644 * main.c (captured_main): Check file_is_auto_load_safe for
1645 LOCAL_GDBINIT.
1646 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1647 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
1648 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
1649 not.
1650
bf88dd68
JK
16512012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1652
1653 auto-load: Implementation.
1654 * NEWS: New descriptions for "info auto-load",
1655 "info auto-load gdb-scripts", "info auto-load python-scripts",
1656 "info auto-load local-gdbinit" and "info auto-load libthread-db".
1657 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1658 and "show auto-load-scripts". New description for "set auto-load",
1659 "show auto-load", "set auto-load gdb-scripts",
1660 "show auto-load gdb-scripts", "set auto-load python-scripts",
1661 "show auto-load python-scripts", "set auto-load local-gdbinit",
1662 "show auto-load local-gdbinit", "set auto-load libthread-db" and
1663 "show auto-load libthread-db".
1664 * auto-load.c: Remove include python/python-internal.h. Add includes
1665 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1666 cli/cli-setshow.h.
1667 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1668 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1669 (gdbpy_global_auto_load): Rename to ...
1670 (global_auto_load): ... here.
1671 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1672 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1673 (script_language_gdb, source_gdb_script_for_objfile): New.
1674 (struct loaded_script): New field language.
1675 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1676 LANGUAGE.
1677 (maybe_add_script): Add parameter language. Drop redundant
1678 entry.full_path initialization. Initialize entry.language and
1679 (*slot)->language.
1680 (auto_load_objfile_script): Change parameter suffix to language.
1681 Remove the call of maybe_add_script.
1682 Call language->source_script_for_objfile.
1683 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1684 New.
1685 (collect_matching_scripts): Adjust it for
1686 struct collect_matching_scripts_data.
1687 (auto_load_info_scripts_pattern_nl): New variable.
1688 (info_auto_load_scripts): Rename to ...
1689 (auto_load_info_scripts): ... here, add parameter language. Adjust it
1690 for struct collect_matching_scripts_data.
1691 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1692 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1693 (auto_load_show_cmdlist_get, info_auto_load_cmd)
1694 (auto_load_info_cmdlist_get): New.
1695 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1696 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
1697 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1698 "info auto-load local-gdbinit".
1699 * auto-load.h (struct script_language): New.
1700 (gdbpy_global_auto_load): Rename to ...
1701 (global_auto_load): ... here.
1702 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1703 (auto_load_local_gdbinit_loaded): New declarations.
1704 (maybe_add_script): New parameter language.
1705 (auto_load_objfile_script): Change parameter suffix to language.
1706 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1707 (auto_load_info_scripts, auto_load_set_cmdlist_get)
1708 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1709 declarations.
1710 * linux-thread-db.c: Include auto-load.h and ctype.h.
1711 (auto_load_thread_db, show_auto_load_thread_db): New.
1712 (struct thread_db_info): New field filename.
1713 (delete_thread_db_info): Call xfree for FILENAME.
1714 (try_thread_db_load): Initialize FILENAME.
1715 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1716 if !AUTO_LOAD_THREAD_DB.
1717 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1718 (_initialize_thread_db): Install auto_load_thread_db
1719 as "set auto-load libthread-db" and install info_auto_load_libthread_db
1720 as "info auto-load libthread-db".
1721 * main.c (captured_main): Rename gdbpy_global_auto_load to
1722 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1723 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1724 (print_gdb_help): Extend the help for 'local init file'.
1725 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1726 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1727 (auto_load_scripts): Rename to ...
1728 (auto_load_python_scripts): ... here, update the comment.
1729 (gdbpy_load_auto_script_for_objfile): New declaration.
1730 (show_auto_load_python_scripts, script_language_python)
1731 (gdbpy_load_auto_script_for_objfile): New.
1732 (source_section_scripts): Refactor the code.
1733 (load_auto_scripts_for_objfile): Rename to ...
1734 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1735 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1736 (info_auto_load_python_scripts): New.
1737 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1738 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1739 Register "set auto-load-scripts" as its deprecated alias. Register
1740 "info auto-load python-scripts". Register "info auto-load-scripts" as
1741 its deprecated alias.
1742 (load_auto_scripts_for_objfile): Rename to ...
1743 (gdbpy_load_auto_scripts_for_objfile): ... here.
1744 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1745 (gdbpy_load_auto_scripts_for_objfile): ... here.
1746
e2207b9a
JK
17472012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 auto-load: Move files.
1750 * Makefile.in (SFILES): Add auto-load.c.
1751 (HFILES_NO_SRCDIR): Add auto-load.h.
1752 (COMMON_OBS): Add auto-load.o.
1753 (distclean): Change .gdbinit for gdb-gdb.gdb.
1754 * auto-load.c: New file, with parts from python/py-auto-load.c.
1755 * auto-load.h: New file, with parts from python/python.h.
1756 * configure: Regenerate.
1757 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1758 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1759 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1760 * main.c: Include auto-load.h.
1761 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1762 command.h, observer.h and progspace.h to auto-load.c. Add include
1763 auto-load.h.
1764 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1765 (struct loaded_script, auto_load_pspace_data)
1766 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1767 (hash_loaded_script_entry, eq_loaded_script_entry)
1768 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1769 (maybe_add_script): Move to auto-load.c.
1770 (source_section_scripts): Change maybe_add_script parameters passing,
1771 use script_not_found_warning_print.
1772 (clear_section_scripts, auto_load_objfile_script)
1773 (auto_load_new_objfile, loaded_script_ptr)
1774 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1775 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1776 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1777 auto_load_new_objfile and info_auto_load_scripts initizations to
1778 auto-load.c.
1779 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1780
e4ab2fad
JK
17812012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1782
1783 Code cleanup.
1784 * charset.c (find_charset_names): Remove variables ix and elt.
1785 Use free_char_ptr_vec.
1786 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1787 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1788 debugdir_end. New variable debugdir_len.
1789 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1790 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1791 declarations.
1792 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1793 and elt. Use free_char_ptr_vec.
1794 * source.c (add_path): Remove variables argv, arg and argv_index.
1795 New variables dir_vec, back_to, ix and name.
1796 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1797 make_cleanup_freeargv. Remove variable separator. Simplify the code
1798 no longer expecting DIRNAME_SEPARATOR.
1799 (openp): Remove variable p, p1 and len. New variables dir_vec,
1800 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1801 no longer expecting DIRNAME_SEPARATOR.
1802 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1803 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1804 debugdir_end.
1805 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1806 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1807 (dirnames_to_char_ptr_vec): New functions.
1808
5ee4ed9f
JK
18092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1810
1811 Code cleanup.
1812 * source.c (add_path): Remove always true conditional 'p == 0' and
1813 unindent its code block.
1814
f41f5e61
PA
18152012-04-17 Pedro Alves <palves@redhat.com>
1816
1817 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1818 (FIELD_BITPOS_LVAL): ... this.
1819 (FIELD_BITPOS): New.
1820 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1821 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1822 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1823 SET_FIELD_BITPOS.
1824 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1825 SET_FIELD_BITPOS.
1826 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1827 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1828 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1829 SET_FIELD_BITPOS.
1830
945b3a32
JK
18312012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1834 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1835 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1836 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1837 * jv-lang.c (java_link_class_type): Likewise, once.
1838 * stabsread.c (read_enum_type): Likewise.
1839
42476b70
YQ
18402012-04-16 Yao Qi <yao@codesourcery.com>
1841
1842 * common/agent.c (agent_run_command): Add one more parameter `len'.
1843 Update callers.
1844 * common/agent.h: Update declaration.
1845 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1846 Update.
1847 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1848
8264ba82
AG
18492012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1850
1851 PR mi/13393
1852 * value.c (value_actual_type): New function.
1853 * value.h (value_actual_type): New declaration.
1854 * varobj.c (update_type_if_necessary): New function.
1855 (varobj_create): Call value_actual_type instead of
1856 value_type.
1857 (install_dynamic_child): distinct changed and type changed MI variable
1858 objects.
1859 (update_dynamic_varobj_children): Updated for install_dynamic_child
1860 change. All callers updated.
a09130f9 1861 (varobj_update): Support for MI variable object type change if
8264ba82
AG
1862 the value changed and RTTI is used to determine the type.
1863 (create_child_with_value): Call value_actual_type instead of
1864 value_type.
a09130f9 1865 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
1866 specify whether the given value should be casted to enclosing type.
1867 All callers updated.
1868
55a8c076
YQ
18692012-04-14 Yao Qi <yao@codesourcery.com>
1870
1871 Import gnulib module inttypes from git
1872 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1873 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
1874 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1875 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
1876 * aclocal.m4, config.in, configure: Regenerated.
1877 * gnulib/Makefile.am: Update.
1878 * gnulib/Makefile.in: Update.
1879 * gnulib/m4/gnulib-cache.m4: Update.
1880 * gnulib/m4/gnulib-comp.m4: Update.
1881 * gnulib/inttypes.in.h: New.
1882 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 1883 * gnulib/m4/inttypes.m4: New.
55a8c076 1884
ca7781d2
LM
18852012-04-13 Luis Machado <lgustavo@codesourcery.com>
1886
1887 * infrun.c (resume): Update PC address to the real PC after
1888 preparing to do displaced stepping.
1889
e319fa28
DE
18902012-04-12 Doug Evans <dje@google.com>
1891
1892 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1893 All callers updated.
1894
15add3f5
MK
18952012-04-12 Mark Kettenis <kettenis@gnu.org>
1896
1897 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1898
52dc124a
DE
18992012-04-12 Doug Evans <dje@google.com>
1900
0e50663e
DE
1901 * dwarf2read.c (create_all_type_units): Renamed from
1902 create_debug_types_hash_table. All callers updated.
1903
52dc124a
DE
1904 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1905 local type_sig to sig_type, type_offset to type_offset_in_tu.
1906 (hash_signatured_type): Renamed from hash_type_signature,
1907 all callers updated.
1908 (eq_signatured_type): Renamed from eq_type_signature,
1909 all callers updated.
1910 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1911 (process_enumeration_scope): Ditto.
1912 (lookup_signatured_type_at_offset): Ditto.
1913 (load_full_type_unit, read_signatured_type): Ditto.
1914
248fd3bf
YQ
19152012-04-12 Yao Qi <yao@codesourcery.com>
1916
1917 * remote.c (async_remote_interrupt): Correct function name in
1918 debug message.
1919 (async_remote_interrupt_twice): Ditto.
1920
bc3aa6c3
DE
19212012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1922
1923 * source.c (find_and_open_source): Consistently pass resulting
1924 full path through xfullpath.
1925
9e529e1d
JK
19262012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 Provide more specific displaced-stepping memory error message.
1929 * infrun.c (displaced_step_prepare): New variable status. Call
1930 target_read_memory instead of read_memory, provide more specific
1931 error message.
1932
82e0cec1
TG
19332012-04-11 Tristan Gingold <gingold@adacore.com>
1934
1935 PR gdb/13901
1936 * darwin-nat.c (darwin_execvp): Revert previous patch.
1937
d987a266
TG
19382012-04-11 Tristan Gingold <gingold@adacore.com>
1939
1940 PR gdb/13901
1941 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1942 in case of change.
1943
016b7430
TG
19442012-04-11 Tristan Gingold <gingold@adacore.com>
1945
1946 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1947 warning.
1948
06fc020f
SCR
19492012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1950
1951 New command 'explore' which helps explore values and types in
1952 scope.
1953 * NEWS: Add an entry about the new 'explore' command.
1954 * data-directory/Makefile.in: Add gdb/command/explore.py
1955 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 1956 command using the GDB Python API.
06fc020f 1957
de0919f8 19582012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
1959
1960 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1961 extension in jump target calculation.
1962
de0919f8 19632012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
1964
1965 * mips-tdep.c (mips32_next_pc): Handle JALX.
1966
2f26ef89
YQ
19672012-04-10 Yao Qi <yao@codesourcery.com>
1968
1969 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1970
2e505b66
YQ
19712012-04-10 Yao Qi <yao@codesourcery.com>
1972
1973 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1974 and gnulib/m4/gnulib-tool.m4.
1975
0d99eb77
DE
19762012-04-10 Doug Evans <dje@google.com>
1977
1978 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1979 (load_partial_dies): Clarify comment.
1980 (find_partial_die): Support rereading type units.
1981 Clarify CU handling, if we know offset is in CU, don't search for the
1982 containing CU. Add comment regarding memory waste.
1983
9a82b8ff
L
19842012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1985
1986 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1987 i386/x32-avx and i386/x32-avx-linux.
1988 (i386/x32-expedite): New.
1989 (i386/x32-linux-expedite): Likewise.
1990 (i386/x32-avx-expedite): Likewise.
1991 (i386/x32-avx-linux-expedite): Likewise.
1992 ($(outdir)/i386/x32.dat): Likewise.
1993 ($(outdir)/i386/x32-linux.dat): Likewise.
1994 ($(outdir)/i386/x32-avx.dat): Likewise.
1995 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1996
1997 * features/i386/x32-avx-linux.xml: New file.
1998 * features/i386/x32-avx.xml: Likewise.
1999 * features/i386/x32-core.xml: Likewise.
2000 * features/i386/x32-linux.xml: Likewise.
2001 * features/i386/x32.xml: Likewise.
2002
2003 * features/i386/x32-avx-linux.c: New. Generated.
2004 * features/i386/x32-avx.c: Likewise.
2005 * features/i386/x32-linux.c: Likewise.
2006 * features/i386/x32.c: Likewise.
2007 * regformats/i386/x32-avx-linux.dat: Likewise.
2008 * regformats/i386/x32-avx.dat: Likewise.
2009 * regformats/i386/x32-linux.dat: Likewise.
2010 * regformats/i386/x32.dat: Likewise.
2011
ee41036f
TG
20122012-04-10 Tristan Gingold <gingold@adacore.com>
2013
2014 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2015 code to kill the inferior.
2016
a7aa5b8a
MK
20172012-04-09 Mark Kettenis <kettenis@gnu.org>
2018
2019 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2020 defines.
2021 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2022 defines.
a09130f9 2023 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
2024 (yyvsp): New defines.
2025 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2026 defines.
2027 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2028 defines.
2029 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2030 defines.
2031 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2032 defines.
2033 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2034 defines.
2035
fb57d452
MK
20362012-04-09 Mark Kettenis <kettenis@gnu.org>
2037
a09130f9 2038 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
2039 (sparc64_store_arguments): Fix coding style.
2040
cdc7b32f
MK
20412012-04-07 Mark Kettenis <kettenis@gnu.org>
2042
2043 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2044 complex floats, adjust some related comments and tighten a related
2045 assertion.
2046 (sparc64_extract_return_value): Handle complex floats.
2047
7adf1e79
DE
20482012-04-07 Doug Evans <dje@google.com>
2049
2050 * dwarf2read.c (load_partial_dies): Change condition to assert.
2051
50f1ae7b
DE
20522012-04-06 Doug Evans <dje@google.com>
2053
2054 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
2055 "mov %rsp,%rbp".
2056
55fa75c3
KB
20572012-04-05 Kevin Buettner <kevinb@redhat.com>
2058
2059 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
2060 fencepost error.
2061 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
2062 (v850_gdbarch_init): Set `num_regs' as appropriate for the
2063 architecture.
2064
40e084e1
KS
20652012-04-05 Keith Seitz <keiths@redhat.com>
2066
2067 * linespec.c (decode_compound): Remove.
2068 (enum offset_relative_sign): New enum.
2069 (struct line_offset): New struct.
2070 (struct linespec): New struct.
2071 (struct linespec_state): Move file_symtabs,
2072 user_filename, and user_function into struct linespec.
2073 Make result an anonymous struct holding vectors of
2074 symbolp and minsym_and_objfile_d.
2075 Add language member.
2076 (enum ls_token_type): New enum.
2077 (linespec_keywords): New array.
2078 (struct ls_token): New struct.
2079 (struct ls_parser): New struct.
2080 (linespec_lexer_lex_number): New function.
2081 (linespec_lexer_lex_keyword): New function.
2082 (is_ada_operator): New function.
2083 (skip_quote_char): New function.
2084 (copy_token_string): New function.
2085 (is_closing_quote_enclosed): New function.
2086 (find_parameter_list_end): New function.
2087 (linespec_lexer_lex_string): New function.
2088 (linespec_lexer_lex_one): New function.
2089 (linespec_lexer_consume_token): New function.
2090 (linespec_lexer_peek_token): New function.
2091 (cplusplus_error): Remove unused function.
2092 (find_methods): Update comment.
2093 (find_toplevel_char): Return const.
2094 (is_objc_method_format): Remove unused function.
2095 (find_toplevel_string): New function.
2096 (is_linespec_boundary): Remove.
2097 (symbol_not_found_error): New function.
2098 (find_method_overload_end): Remove function.
2099 (unexpected_linespec_error): New function.
2100 (keep_name_info): Remove.
2101 (linespec_parse_line_offset): New function.
2102 (linespec_parse_basic): New function.
2103 (canonicalize_linespec): New function.
2104 (decode_line_internal): Remove.
2105 (create_sals_line_offset): New function adapted from
2106 decode_all_digits.
2107 (convert_linespec_to_sals): New function.
2108 (parse_linespec): New function.
2109 (linespec_parser_new): New function.
2110 (linespec_state_destructor): Change parameter type to
2111 struct linespec_state *.
2112 Add language parameter.
2113 Remove freeing of moved members.
2114 (linespec_parser_delete): New function.
2115 (decode_line_full): Use parse_linespec and linespec_parser_new.
2116 (decode_line_1): Likewise.
2117 (decode_indirect): Rename to ...
2118 (linespec_expression_to_pc): ... this and rewrite
2119 to simply find CORE_ADDR, storing this result for later
2120 conversion to SALs.
2121 (locate_first_half): Remove.
2122 (deocde_objc): Add parameter LS.
2123 Initialize new struct collect_info members.
2124 Handle minimal symbols, too.
2125 (decode_compound): Delete.
2126 (lookup_prefix_sym): Rewrite.
2127 (compare_msymbols): New function.
2128 (find_method): Rewrite.
2129 Do not call cplusplus_error.
2130 (symtabs_from_filename): Rewrite.
2131 (collect_function_symbols): Delete.
2132 (find_function_symbols): Rewrite without ARGPTR-style
2133 processing.
2134 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
2135 (decode_dollar): Adapted and renamed to ...
2136 (linespec_parse_variable): ... this.
2137 (find_linespec_symbols): New function.
2138 (decode_label): Adapted and renamed to ...
2139 (find_label_symbols): ... this.
2140 (decode_digits_list_mode): Add and use LS argument.
2141 (decode_digits_ordinary): Likewise.
2142 (collect_symbols): Do not collect SALs, just symbols and msymbols.
2143 If in list mode, allow any symbol class. Otherwise, only
2144 permit LOC_BLOCK symbols.
2145 (minsym_found): Update comments.
2146 (search_minsyms_for_name): Do not convert the matching symbol
2147 into a SAL. Simply push the symbol and objfile into the
2148 result vector.
2149 (decode_variable): Delete. Contents adapted into
2150 find_linespec_symbols.
2151
2152 * cp-support.c (SKIP_SPACE): Remove.
2153 (operator_tokens): Remove unused global.
2154 (cp_validate_operator): Remove.
2155 * cp-support.h (cp_validate_operator): Remove declaration.
2156
a72c8f6a
JK
21572012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
2160 for TYPE_VPTR_FIELDNO.
2161 * valprint.c (valprint_check_validity): Make it global, move the
2162 function comment ...
2163 * value.h (valprint_check_validity): ... to this new declaration.
2164
cf9bb588
TG
21652012-04-02 Tristan Gingold <gingold@adacore.com>
2166
2167 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
2168 the STATE32 api for i386 state.
2169 (i386_darwin_store_inferior_registers): Likewise.
2170
17092398
TG
21712012-04-02 Tristan Gingold <gingold@adacore.com>
2172
2173 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
2174 SS offset.
2175 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2176 format_string.
2177
ece0061f
TG
21782012-04-02 Tristan Gingold <gingold@adacore.com>
2179
2180 PR gdb/13901
d987a266 2181 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 2182
cf65ecd3
JK
21832012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2184
2185 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
2186
9bc3523d
TT
21872012-03-30 Tom Tromey <tromey@redhat.com>
2188
2189 * python/python.c (gdbpy_decode_line): Move cleanup creation out
2190 of TRY_CATCH. Fix error handling.
2191 * python/py-value.c (convert_value_from_python): Move 'old'
2192 declaration to innermost scope.
2193
b1ed564a
JB
21942012-03-29 Joel Brobecker <brobecker@adacore.com>
2195 Andrey Smirnov <andrew.smirnov@gmail.com>
2196
2197 -Wshadow warning fix.
2198 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2199 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2200 Adjust code accordingly.
2201
cb8e9b97
JB
22022012-03-29 Joel Brobecker <brobecker@adacore.com>
2203
2204 * ada-lang.c (symbol_completion_add): Rename parameter
2205 "encoded" into "encoded_p". Ajust code and documentation
2206 accordingly.
2207
c0af1706
JB
22082012-03-29 Joel Brobecker <brobecker@adacore.com>
2209 Andrey Smirnov <andrew.smirnov@gmail.com>
2210
2211 -Wshadow warning fix.
2212 * ada-lang.c (symbol_completion_add): Rename parameter
2213 "wild_match" into wild_match_p. Update code and documentation
2214 accordingly.
2215
6ea35997
JB
22162012-03-29 Joel Brobecker <brobecker@adacore.com>
2217
2218 * ada-lang.c (symbol_completion_match): Rename parameter
2219 "encoded" into "encoded_p". Ajust code and documentation
2220 accordingly.
2221
e701b3c0
JB
22222012-03-29 Joel Brobecker <brobecker@adacore.com>
2223 Andrey Smirnov <andrew.smirnov@gmail.com>
2224
2225 -Wshadow warning fix.
2226 * ada-lang.c (symbol_completion_match): Rename parameter
2227 "wild_match" into "wild_match_p". Adjust code and function
2228 documentation accordingly.
2229
5e2336be
JB
22302012-03-29 Joel Brobecker <brobecker@adacore.com>
2231 Andrey Smirnov <andrew.smirnov@gmail.com>
2232
2233 -Wshadow warning fix.
2234 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2235 "symbol_info" into "info". Adjust code accordingly.
2236 (ada_lookup_symbol): Likewise.
2237
9f88c959
JB
22382012-03-29 Joel Brobecker <brobecker@adacore.com>
2239
2240 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2241 of this function's documentation.
2242
82ccd55e
JB
22432012-03-29 Joel Brobecker <brobecker@adacore.com>
2244 Andrey Smirnov <andrew.smirnov@gmail.com>
2245
2246 -Wshadow warning fix.
2247 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2248 variable into "wild_match_p". Adjust code accordingly.
2249
d0a8ab18
JB
22502012-03-29 Joel Brobecker <brobecker@adacore.com>
2251 Andrey Smirnov <andrew.smirnov@gmail.com>
2252
2253 -Wshadow warning fix.
2254 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2255 parameter into "wild_match_p". Adjust code accordingly.
2256 Document this parameter in the function description.
2257
48b78332
JB
22582012-03-29 Joel Brobecker <brobecker@adacore.com>
2259 Andrey Smirnov <andrew.smirnov@gmail.com>
2260
2261 -Wshadow warning fix.
2262 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2263 "wild_match" parameter to "wild_match_p" (-Wshadow).
2264
2e6e0353
JB
22652012-03-29 Joel Brobecker <brobecker@adacore.com>
2266
2267 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2268 in function documentation.
2269
dc4024cd
JB
22702012-03-29 Joel Brobecker <brobecker@adacore.com>
2271 Andrey Smirnov <andrew.smirnov@gmail.com>
2272
2273 -Wshadow warning fix.
2274 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2275 variable into wild_match_p. Adjust code accordingly.
2276
6c88661c
JB
22772012-03-29 Joel Brobecker <brobecker@adacore.com>
2278 Andrey Smirnov <andrew.smirnov@gmail.com>
2279
2280 * ada-valprint.c (ada_val_print_1): Move the code handling
2281 TYPE_CODE_ENUM inside its own lexical block. Declare
2282 variables len and val there, instead of in the function's
2283 top level block. Avoid declaring deref_val again in a way
2284 that shadows another variable of the same name declared
2285 in one of the up-level blocks. Just re-use the up-level
2286 variable instead.
2287
4e5c77fe
JB
22882012-03-29 Joel Brobecker <brobecker@adacore.com>
2289
2290 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2291 Replace block_found argument by symbol_info. Adjust
2292 implementation accordingly. Add function documentation.
2293 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2294 Fix documentation.
2295 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2296 * ada-exp.y (write_object_renaming): Adjust to new
2297 ada_lookup_encoded_symbol API.
2298
1c0ac8c7
JB
22992012-03-29 Joel Brobecker <brobecker@adacore.com>
2300
2301 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2302 documentation.
2303
2aaed979
KB
23042012-03-28 Rathish C <rathish.c@kpitcummins.com>
2305
2306 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2307 (v850_register_name): Add the mpu and fpu register names.
2308 (v850e_register_name): Add the mpu and fpu register names.
2309 (v850e2_register_name): New function.
a09130f9 2310 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
2311 bfd_mach_v850e2v3.
2312
927fbba6
JB
23132012-03-28 Joel Brobecker <brobecker@adacore.com>
2314
2315 * NEWS: Add entry for Ada varobj support.
2316
d32cafc7
JB
23172012-03-28 Joel Brobecker <brobecker@adacore.com>
2318
2319 * varobj.c (default_value_is_changeable_p): New function,
2320 extracted from varobj_value_is_changeable_p. Add declaration.
2321 (ada_value_is_changeable_p): New function, extracted from
2322 varobj_value_is_changeable_p. Add declaration.
2323 (struct language_specific): New field "value_is_changeable_p".
2324 (languages): Add entries for new field.
2325 (varobj_create): Set language before calling install_new_value.
2326 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2327 "value_is_changeable_p" language callback.
2328
181875a4
JB
23292012-03-28 Joel Brobecker <brobecker@adacore.com>
2330
2331 * ada-varobj.h, ada-varobj.c: New files.
2332 * Makefile.in (SFILES): Add ada-varobj.c.
2333 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2334 (COMMON_OBS): Add ada-varobj.o.
2335
7a290c40
JB
23362012-03-28 Joel Brobecker <brobecker@adacore.com>
2337
2338 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2339 (struct language_specific): New field "value_has_mutated".
2340 (languages): Set field "value_has_mutated" in each entry of array.
2341 (varobj_value_has_mutated): New function.
2342 (varobj_udpdate): Add handling of type mutation.
2343 (value_of_root): Add handling of type mutation.
2344 (ada_value_has_mutated): New function.
2345
ca9b8b9c
PA
23462012-03-28 Pedro Alves <palves@redhat.com>
2347
2348 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2349 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2350
cc0265cd
TT
23512012-03-28 Tom Tromey <tromey@redhat.com>
2352
2353 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2354 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2355 before returning.
2356
3ad2ec6f
TT
23572012-03-28 Tom Tromey <tromey@redhat.com>
2358
2359 * .dir-locals.el: New file.
2360
4a6510ba
PA
23612012-03-28 Pedro Alves <palves@redhat.com>
2362
2363 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2364
5a75128f
JB
23652012-03-28 Joel Brobecker <brobecker@adacore.com>
2366
2367 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2368 handling for r0.
2369
f99d8bf4
PA
23702012-03-27 Pedro Alves <palves@redhat.com>
2371
2372 Eliminate struct ui_stream.
2373
2374 * ui-out.h (struct ui_stream): Delete.
2375 (ui_out_field_stream): Adjust prototype.
2376 (ui_out_stream_new, ui_out_stream_delete)
2377 (make_cleanup_ui_out_stream_delete): Delete declarations.
2378 * ui-out.c (ui_out_field_stream): Change prototype to take a
2379 ui_file instead of a ui_stream. Adjust.
2380 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2381 (make_cleanup_ui_out_stream_delete): Delete.
2382 * breakpoint.c (print_breakpoint_location)
2383 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2384 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2385 * disasm.c (dump_insns): Ditto.
2386 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2387 prototype.
2388 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2389 ui_stream/ui_out_stream_new.
2390 * infcmd.c (print_return_value): Ditto.
2391 * osdata.c (info_osdata_command): Don't allocate a local
2392 ui_stream.
2393 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2394 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2395 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2396 allocate a local ui_stream.
2397 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2398 instead of ui_stream/ui_out_stream_new.
2399 (list_args_or_locals): Don't allocate a local ui_stream.
2400 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2401 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2402 ui_stream/ui_out_stream_new.
2403 * cli/cli-setshow.c (do_setshow_command): Ditto.
2404
6350a066 24052012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 2406
6350a066
PA
2407 * arm-linux-tdep.c (arm_linux_init_abi): Call
2408 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2409 * arm-tdep.c (arm_process_record): New function.
2410 (deallocate_reg_mem): New function.
2411 (decode_insn): New function.
2412 (thumb_record_branch): New function.
2413 (thumb_record_ldm_stm_swi(): New function.
2414 (thumb_record_misc): New function.
2415 (thumb_record_ld_st_stack): New function.
2416 (thumb_record_ld_st_imm_offset): New function.
2417 (thumb_record_ld_st_reg_offset(): New function.
2418 (thumb_record_add_sub_cmp_mov): New function.
2419 (thumb_record_shift_add_sub): New function.
2420 (arm_record_coproc_data_proc): New function.
2421 (arm_record_coproc): New function.
2422 (arm_record_b_bl): New function.
2423 (arm_record_ld_st_multiple): New function.
2424 (arm_record_ld_st_reg_offset): New function.
2425 (arm_record_ld_st_imm_offset): New function.
2426 (arm_record_data_proc_imm): New function.
2427 (arm_record_data_proc_misc_ld_str): New function.
2428 (arm_record_extension_space): New function.
2429 (arm_record_strx): New function.
2430 (sbo_sbz): New function.
2431 (struct insn_decode_record): New structure for arm insn record.
2432 (REG_ALLOC): New macro for reg allocations.
2433 (MEM_ALLOC): New macro for memory allocations.
2434 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 2435
89e028e2
AS
24362012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2437
2438 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2439 (store_register): Likewise.
2440
6350a066 24412012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 2442
6350a066 2443 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 2444
5b43fab2
JK
24452012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2446
2447 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2448 Describe also the option "auto".
2449
b5453b95
RH
24502012-03-22 Richard Henderson <rth@redhat.com>
2451
2452 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2453 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2454
227ee7fc
RH
24552012-03-22 Richard Henderson <rth@redhat.com>
2456
2457 * jit.c (jit_read_code_entry): Compute alignment and offset of
2458 int64_t member before computing entry_size.
2459
7b282c5a
SCR
24602012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2461
2462 Python scripting: Add new method Value.referenced_value to
2463 gdb.Value which can dereference pointer as well as reference
2464 values.
2465 * NEWS: Add entry under 'Python scripting' about the new method
2466 Value.referenced_value on gdb.Value objects.
2467 * python/py-value.c (valpy_referenced_value): New function
2468 defining a new method on gdb.Value objects which can dereference
2469 pointer and reference values.
2470
0c83539f
SCR
24712012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2472
2473 * MAINTAINERS (Write After Approval): Add myself to the list.
2474
7ccffd7c
KB
24752012-03-21 Kevin Buettner <kevinb@redhat.com>
2476
2477 * symtab.c (skip_prologue_sal): Change test to check for "main()"
2478 in addition to "main".
2479
bd0b9f9e
JB
24802012-03-21 Joel Brobecker <brobecker@adacore.com>
2481
2482 * expression.h (op_name): Add declaration.
2483 * expprint.c (op_name): Remove declaration. Make non-static.
2484 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2485
a5362b9a
TS
24862012-03-21 Thomas Schwinge <thomas@codesourcery.com>
2487
2488 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2489 of struct siginfo.
2490 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2491 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2492 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2493 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2494 (linux_nat_get_siginfo): Likewise.
2495 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2496 (linux_nat_get_siginfo): Likewise.
2497 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2498 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2499 * procfs.c (gdb_siginfo_t): Likewise.
2500
adcadaab
MF
25012012-03-21 Mike Frysinger <vapier@gentoo.org>
2502
2503 * .gitignore: Ignore more files.
2504
e278ad5b
PA
25052012-03-20 Pedro Alves <palves@redhat.com>
2506
2507 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2508 returns.
2509
741e63d7
YQ
25102012-03-20 Yao Qi <yao@codesourcery.com>
2511
2512 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2513 comment.
2514
b64f50a1
JK
25152012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2518 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2519 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2520 sect_offset.
2521 * dwarf2expr.h (cu_offset, sect_offset): New types.
2522 (struct dwarf_expr_context_funcs) <dwarf_call>
2523 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2524 sect_offset.
2525 (struct dwarf_expr_context) <len>: Improve the comment.
2526 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2527 cu_offset and sect_offset.
2528 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2529 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2530 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2531 * dwarf2loc.h: Include dwarf2expr.h.
2532 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2533 and sect_offset.
2534 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2535 Improve the comment.
2536 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2537 (struct signatured_type, struct line_header, struct partial_die_info)
2538 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2539 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2540 (get_die_type_at_offset, create_cus_from_index)
2541 (create_signatured_type_table_from_index, dw2_get_file_names)
2542 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2543 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2544 (create_debug_types_hash_table, process_psymtab_comp_unit)
2545 (load_partial_comp_unit, create_all_comp_units)
2546 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2547 (load_full_comp_unit, dwarf2_physname, read_import_statement)
2548 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2549 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2550 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2551 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2552 (find_partial_die, read_attribute_value, lookup_die_type)
2553 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2554 (is_ref_attr): New function comment.
2555 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2556 Use cu_offset and sect_offset.
2557 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2558 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2559 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2560 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2561 (offset_and_type_hash, offset_and_type_eq, set_die_type)
2562 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2563 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2564 sect_offset.
2565
e97a38f7
JK
25662012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 Code cleanup.
2569 * python/py-auto-load.c (source_section_scripts): New variable back_to.
2570 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2571 with xfree.
2572 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2573
8320cc4f
JK
25742012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2575
2576 * NEWS: Describe new options --init-command=FILE, -ix and
2577 --init-eval-command=COMMAND, -iex.
2578 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2579 CMDARG_INIT_COMMAND.
2580 (captured_main): New enum items OPT_IX and OPT_IEX. Add
2581 "init-command", "init-eval-command", "ix" and "iex" to the variable
2582 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
2583 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2584 (print_gdb_help): Describe --init-command=FILE, -ix and
2585 --init-eval-command=COMMAND, -iex.
2586
26743505
JK
25872012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Code cleanup.
2590 * main.c (struct cmdarg): Move it here from main. Add more comments.
2591 (cmdarg_s, VEC (cmdarg_s)): New.
2592 (main): Move struct cmdarg from here. New variables cmdarg_vec and
2593 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
2594 Install cleanup for cmdarg_vec. Update filling for options 'x' and
2595 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
2596 of CMDARG.
2597
5ff5c7b4
TT
25982012-03-19 Tom Tromey <tromey@redhat.com>
2599
2600 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2601
ab260dad
JK
26022012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 PR symtab/13777
2605 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2606 GCC >=4.5.
2607
c366c1f0
TT
26082012-03-16 Chris January <chris.january@allinea.com>
2609
2610 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2611 of clear.
2612
e16edb45
TT
26132012-03-16 Chris January <chris.january@allinea.com>
2614
2615 * source.c (add_path): Use memmove instead of strcpy because the
2616 strings overlap.
2617
53ba8333
JB
26182012-03-16 Joel Brobecker <brobecker@adacore.com>
2619
2620 * value.h (set_value_parent): Add declaration.
2621 * value.c (set_value_parent): New function.
2622 (value_address): If VALUE->PARENT is not NULL, then use it as
2623 the base address instead of VALUE->LOCATION.address.
2624 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2625 the same as OBJ's address. Adjust V's offset accordingly.
2626 Set V's parent.
2627
481860b3
GB
26282012-03-16 Gary Benson <gbenson@redhat.com>
2629
2630 PR breakpoints/10738
2631 * dwarf2read.c (use_deprecated_index_sections): New global.
2632 (struct partial_die_info): New member may_be_inlined.
2633 (read_partial_die): Set may_be_inlined where appropriate.
2634 (add_partial_subprogram): Add partial symbols for partial
2635 DIEs that may be inlined.
2636 (new_symbol_full): Add inlined subroutines to the current
2637 scope.
2638 (write_psymtabs_to_index): Bump version number.
2639 (dwarf2_read_index): Read only version 6 indices unless
2640 use_deprecated_index_sections is set.
2641 * linespec.c (symbol_and_data_callback): New structure.
2642 (iterate_inline_only): New function.
2643 (iterate_over_all_matching_symtabs): New argument
2644 "include_inline". If nonzero, also call the callback for
2645 symbols representing inlined subroutines.
2646 (lookup_prefix_sym): Pass extra argument to the above.
2647 (find_function_symbols): Likewise.
2648 (add_matching_symbols_to_info): Likewise.
2649 * NEWS: Mention that GDB can now set breakpoints on inlined
2650 functions.
2651
d0e7e15a
PM
26522012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2653
2654 * p-typeprint.c (pascal_type_print_method_args):
2655 Fix display of parameter of methods.
2656
3d354654
PM
26572012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2658
2659 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2660 Add missing prototype.
2661
cafe75b0
JK
26622012-03-16 Yao Qi <yao@codesourcery.com>
2663 Jan Kratochvil <jan.kratochvil@redhat.com>
2664
2665 Fix false compilation warning.
2666 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2667
25f8c692
JL
26682012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
2669 Pedro Alves <pedro@codesourcery.com>
2670
2671 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2672 (arm_register_g_packet_guesses): New function.
2673 (arm_gdbarch_init): Don't force a target description with
2674 registers when the executable is detected as M-profile. Instead
2675 set gdbarch->tdep->is_m. Register `g' packet guesses.
2676 (_initialize_arm_tdep): Initialize the new target description.
2677 * features/arm-with-m-fpa-layout.xml: New description.
2678 * features/arm-with-m-fpa-layout.c: New, generated.
2679
35c63cd8
JB
26802012-03-15 Joel Brobecker <brobecker@adacore.com>
2681
2682 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2683 Update function description.
2684 (insert_bp_location): Do not wipe bl->target_info out.
2685 * mem-break.c: #include "gdb_string.h".
2686 (default_memory_insert_breakpoint): Do not call target_read_memory
2687 with a pointer to the breakpoint's shadow_contents buffer. Use
2688 a local buffer instead.
2689 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2690
57651221
TT
26912012-03-15 Tom Tromey <tromey@redhat.com>
2692
2693 * NEWS: Mention "info vtbl", not "info vtable".
2694 * cp-support.c (info_vtbl_command): Fix comment.
2695 (_initialize_cp_support): Fix text.
2696
410528f0
TT
26972012-03-15 Tom Tromey <tromey@redhat.com>
2698
2699 * cp-valprint.c (cp_print_value_fields): Use
2700 print_function_pointer_address for vtable slot.
2701
c4aeac85
TT
27022012-03-15 Tom Tromey <tromey@redhat.com>
2703
2704 * gnu-v3-abi.c (struct value_and_voffset): New.
2705 (hash_value_and_voffset, eq_value_and_voffset)
2706 (compare_value_and_voffset, compute_vtable_size)
2707 (print_one_vtable, gnuv3_print_vtable): New functions.
2708 (init_gnuv3_ops): Initialize 'print_vtable' field.
2709 * cp-support.c (info_vtbl_command): New function.
2710 (_initialize_cp_support): Add "info vtbl".
2711 * cp-abi.h (cplus_print_vtable): Declare.
2712 (struct cp_abi_ops) <print_vtable>: New field.
2713 * cp-abi.c (cplus_print_vtable): New function.
2714 * NEWS: Update.
2715
95cbceff
TT
27162012-03-15 Tom Tromey <tromey@redhat.com>
2717
2718 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2719 iterate_over_symbols.
2720
589b4a32
DE
27212012-03-14 Doug Evans <dje@google.com>
2722
2723 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2724 DW_OP_GNU_parameter_ref.
2725
e837f12a
JK
27262012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 Fix double prompt of 'interpreter-exec mi'.
2729 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2730 (mi_interpreter_resume): use it.
2731 (mi_execute_command_input_handler): New function.
2732 * mi/mi-main.c (mi_execute_command): Move prompt printing to
2733 mi_execute_command_input_handler.
2734
ff1e4526 27352012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
2736
2737 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2738 prototype.
2739 (darwin_debug_port_info): Make static.
2740 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2741 * machoread.c (_initialize_machoread): Add prototype.
2742 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2743 (i386_darwin_set_control, i386_darwin_get_control)
2744 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2745 i386_darwin_get_status, i386_darwin_get_control):
2746 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2747
d8a5d6ee
JB
27482012-03-13 Joel Brobecker <brobecker@adacore.com>
2749
2750 * ax-gdb.c (gen_usual_unary): Remove special handling of
2751 enum and bool types.
2752
af381b8c
JB
27532012-03-13 Joel Brobecker <brobecker@adacore.com>
2754
2755 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2756
786c562f
JB
27572012-03-13 Joel Brobecker <brobecker@adacore.com>
2758
2759 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2760
e3ebf1bb
JB
27612012-03-13 Chris January <chris.january@allinea.com>
2762
2763 * aix-thread.c (fill_sprs): Store the floating point registers
2764 at the correct offsets into vals.
2765
c5b7e1cb
DE
27662012-03-13 Doug Evans <dje@google.com>
2767
16899756
DE
2768 * NEWS: Mention symbol-reloading has been deleted.
2769 * symfile.c (symbol_reloading): Delete.
2770 (show_symbol_reloading): Delete.
2771 (_initialize_symfile): Delete set/show symbol-reloading.
2772
c5b7e1cb
DE
2773 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2774 read_in_chain until we have successfully read it in.
2775 (load_full_comp_unit): Ditto.
2776 (read_signatured_type): Add comment.
2777
46cb6474
JB
27782012-03-13 Chris January <chris.january@allinea.com>
2779
2780 * stabsread.c (fix_common_block): Change type of valu argument
2781 to CORE_ADDR.
2782
76219d77
JB
27832012-03-13 Chris January <chris.january@allinea.com>
2784
2785 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2786 instruction.
2787
87b0bb13
JK
27882012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2789
2790 * common/linux-procfs.c (linux_proc_get_int): New, from
2791 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2792 field.
2793 (linux_proc_get_tgid): Only call linux_proc_get_int.
2794 (linux_proc_get_tracerpid): New.
2795 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2796 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2797 linux_proc_pid_has_state.
2798 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2799 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2800 (linux_ptrace_attach_warnings): New.
2801 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2802 New declaration.
2803 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2804 (linux_nat_attach): New variables ex, buffer, message and message_s.
2805 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2806
5f572dec
JK
28072012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2808
2809 * Makefile.in (linux-ptrace.o): New.
2810 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2811 from linux-nat.c.
2812 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2813 * common/linux-ptrace.c: New file.
2814 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2815 * config/arm/linux.mh: Likewise.
2816 * config/i386/linux.mh: Likewise.
2817 * config/i386/linux64.mh: Likewise.
2818 * config/ia64/linux.mh: Likewise.
2819 * config/m32r/linux.mh: Likewise.
2820 * config/m68k/linux.mh: Likewise.
2821 * config/mips/linux.mh: Likewise.
2822 * config/pa/linux.mh: Likewise.
2823 * config/powerpc/linux.mh: Likewise.
2824 * config/powerpc/ppc64-linux.mh: Likewise.
2825 * config/powerpc/spu-linux.mh: Likewise.
2826 * config/s390/s390.mh: Likewise.
2827 * config/sparc/linux.mh: Likewise.
2828 * config/sparc/linux64.mh: Likewise.
2829 * config/xtensa/linux.mh: Likewise.
2830 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2831 common/linux-procfs.c.
2832 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2833
44f238bb
PA
28342012-03-13 Hui Zhu <teawater@gmail.com>
2835 Pedro Alves <palves@redhat.com>
2836
2837 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2838 CREATE_BREAKPOINT_FLAGS_INSERTED.
2839 (create_breakpoint_sal, create_breakpoints_sal)
2840 (base_breakpoint_create_breakpoints_sal)
2841 (tracepoint_create_breakpoints_sal)
2842 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2843 down.
2844 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2845 (ftrace_command, strace_command): Adjust.
2846 (create_tracepoint_from_upload): Pass
2847 CREATE_BREAKPOINT_FLAGS_INSERTED.
2848 * breakpoint.h (enum breakpoint_create_flags): New.
2849 (create_breakpoint): New flags parameter.
2850 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2851 * python/py-breakpoint.c (bppy_init): Adjust.
2852 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2853 * spu-tdep.c (spu_catch_start): Adjust.
2854
1e51243a
PA
28552012-03-13 Pedro Alves <palves@redhat.com>
2856 Hui Zhu <teawater@gmail.com>
2857 Yao Qi <yao@codesourcery.com>
2858
2859 * remote.c (struct remote_state): New field `starting_up'.
2860 (remote_start_remote): Set and clear it.
2861 (remote_can_download_tracepoint): If starting up, return false.
2862
fa3064dd
YQ
28632012-03-13 Yao Qi <yao@codesourcery.com>
2864
2865 * inferior.h (struct inferior): Remove fields any_syscall_count,
2866 syscalls_counts and total_syscalls_count. Move them to new
2867 struct catch_syscall_inferior_data in breakpoint.c.
2868 * breakpoint.c: Call DEF_VEC_I(int).
2869 (struct catch_syscall_inferior_data): New.
2870 (get_catch_syscall_inferior_data): New.
2871 (catch_syscall_inferior_data_cleanup): New.
2872 (insert_catch_syscall): Update to access data in
2873 struct catch_syscall_inferior_data.
2874 (insert_catch_syscall): Likewise.
2875 (remove_catch_syscall): Likewise.
2876 (remove_catch_syscall): Likewise.
2877 (is_syscall_catchpoint_enabled): Likewise.
2878 (add_catch_command): Likewise.
2879 (_initialize_breakpoint): Register cleanup.
2880 * breakpoint.h: Removed DEF_VEC_I(int).
2881 * dwarf2loc.c: Call DEF_VEC_I(int).
2882 * mi/mi-main.c: Likewise.
2883
460fac3c
MK
28842012-03-12 Mark Kettenis <kettenis@gnu.org>
2885
2886 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2887
e1aca11e
JB
28882012-03-12 Chris January <chris.january@allinea.com>
2889
2890 * aix-thread.c (_initialize_aix_thread): Add prototype.
2891 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2892 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2893
649c7061
JB
28942012-03-12 Joel Brobecker <brobecker@adacore.com>
2895
2896 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2897 include of "amd64-nat.h".
2898
0b49e518
TT
28992012-03-12 Tom Tromey <tromey@redhat.com>
2900
2901 * buildsym.c (record_pending_block): Now static.
2902 * buildsym.h: (record_pending_block): Remove.
2903
fd24fa94
AT
29042012-03-12 Andreas Tobler <andreast@fgznet.ch>
2905
2906 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2907
ba919b58
TT
29082012-03-09 Tom Tromey <tromey@redhat.com>
2909
2910 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2911 producer_is_gxx_lt_4_6>: New fields.
2912 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2913
a48e046c
TT
29142012-03-09 Tom Tromey <tromey@redhat.com>
2915
2916 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2917
6f5e9362
JB
29182012-03-08 Joel Brobecker <brobecker@adacore.com>
2919
2920 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2921 prototype.
2922
8d037db9
JB
29232012-03-08 Joel Brobecker <brobecker@adacore.com>
2924
2925 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2926
4e841acf
JK
29272012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2928
2929 Fix -Wmissing-prototypes build.
2930 * arm-linux-nat.c (get_thread_id): Make it static.
2931 * xtensa-linux-nat.c (get_thread_id): Likewise.
2932
c6030312
JB
29332012-03-08 Joel Brobecker <brobecker@adacore.com>
2934
2935 * server.c (process_point_options): If a conditional expression
2936 is found, only print a message if remote_debug is nonzero.
2937
52323be9
LM
29382012-03-08 Luis Machado <lgustavo@codesourcery.com>
2939
2940 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2941 of internal error for unknown/unsupported types.
2942
7fe25d9b
JK
29432012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 Fix CU relative vs. absolute DIE offsets.
2946 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2947 offset to offset_in_cu.
2948 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2949 TYPE_OFFSET.
2950 (dwarf2_fetch_die_location_block): Rename parameter offset to
2951 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2952
05e7c244
JK
29532012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2954
2955 * libunwind-frame.c: Rename to ...
2956 * ia64-libunwind-tdep.c: ... here.
2957 * libunwind-frame.h: Rename to ...
2958 * ia64-libunwind-tdep.h: ... here.
2959 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2960 ia64-libunwind-tdep.h.
2961 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2962 * README (--with-libunwind): Rename to ...
2963 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2964 * config.in: Regenerate.
2965 * configure: Regenerate.
2966 * configure.ac: New option --with-libunwind-ia64, make the
2967 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2968 Remove AC_DEFINE for HAVE_LIBUNWIND.
2969 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2970 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2971 Rename libunwind-frame in the general comment.
2972 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2973 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2974 Move forward declarations inside #ifndef. Rename libunwind-frame in
2975 the general comment.
2976 * ia64-tdep.c: Rename libunwind-frame.h #include to
2977 ia64-libunwind-tdep.h.
2978 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2979 (ia64_libunwind_descr): Rename libunwind-frame to
2980 ia64-libunwind-tdep in these function comments.
2981 * ia64-tdep.h: Rename libunwind-frame.h #include to
2982 ia64-libunwind-tdep.h.
2983 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2984 ia64-libunwind-tdep in that data comment.
2985
3755cbfd
JK
29862012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2987
2988 * libunwind-frame.h (struct frame_unwind): New declaration.
2989
d1cda5d9
JB
29902012-03-08 Joel Brobecker <brobecker@adacore.com>
2991
2992 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2993 "set breakpoint condition-evaluation" command.
2994
a0ba0aa2
TG
29952012-03-08 Tristan Gingold <gingold@adacore.com>
2996
2997 * sparc-stub.c: Move to stubs/
2998 * sh-stub.c: Likewise.
2999 * m68k-stub.c: Likewise.
3000 * m32r-stub.c: Likewise.
3001 * i386-stub.c: Likewise.
3002
7b8b6d6d
AS
30032012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3004
007cafee
AS
3005 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3006 linux_get_siginfo_type.
3007
7b8b6d6d
AS
3008 * m68klinux-nat.c: Include "gdb_proc_service.h".
3009 (PTRACE_GET_THREAD_AREA): Define.
3010 (ps_get_thread_area): New function.
3011
bba74b36
YQ
30122012-03-08 Yao Qi <yao@codesourcery.com>
3013
3014 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3015 `xsnprintf'.
3016 (remote_query_attached): Likewise.
3017 (remote_static_tracepoint_marker_at): Likewise.
3018 (remote_set_permissions): Likewise.
3019 (remote_detach_1, extended_remote_attach_1): Likewise.
3020 (send_g_packet, remote_vkill): Likewise.
3021 (extended_remote_disable_randomization): Likewise.
3022 (remote_add_target_side_condition): Likewise.
3023 (remote_insert_breakpoint): Likewise.
3024 (remote_remove_breakpoint): Likewise.
3025 (remote_insert_watchpoint): Likewise.
3026 (remote_remove_watchpoint): Likewise.
3027 (remote_insert_hw_breakpoint): Likewise.
3028 (remote_insert_hw_breakpoint): Likewise.
3029 (remote_remove_hw_breakpoint): Likewise.
3030 (remote_download_command_source): Likewise.
3031 (remote_download_tracepoint): Likewise.
3032 (remote_download_trace_state_variable): Likewise.
3033 (remote_disable_tracepoint): Likewise.
3034 (remote_trace_set_readonly_regions): Likewise.
3035 (remote_get_tracepoint_status): Likewise.
3036 (remote_trace_find): Likewise.
3037 (remote_get_trace_state_variable_value): Likewise.
3038 (remote_set_disconnected_tracing): Likewise.
3039 (remote_set_circular_trace_buffer): Likewise.
3040 (remote_get_min_fast_tracepoint_insn_len): Likewise.
3041 (remote_use_agent): Likewise.
3042 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
3043 Update callers.
3044
9b224c5e
PA
30452012-03-07 Pedro Alves <palves@redhat.com>
3046
3047 * NEWS: Mention QProgramSignals.
3048 * inferior.h (update_signals_program_target): Declare.
3049 * infrun.c: (update_signals_program_target): New.
3050 (handle_command): Update the target of the new program signals
3051 array changes.
3052 * remote.c (PACKET_QProgramSignals): New enum.
3053 (last_program_signals_packet): New global.
3054 (remote_program_signals): New.
3055 (remote_start_remote): Update the target with the program signals
3056 list.
3057 (remote_protocol_features): Add entry for QPassSignals.
3058 (remote_open_1): Free anc clear last_program_signals_packet.
3059 (init_remote_ops): Install remote_program_signals.
3060 * target.c (update_current_target): Adjust.
3061 (target_program_signals): New.
3062 * target.h (struct target_ops) <to_program_signals>: New field.
3063 (target_program_signals): Declare.
3064
74c48cbb
PA
30652012-03-07 Pedro Alves <palves@redhat.com>
3066
3067 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
3068 extensions.
3069
0c13fc49
AS
30702012-03-07 Andreas Schwab <schwab@linux-m68k.org>
3071
3072 * m68klinux-nat.c (getregs_supplies): Make static.
3073 (getfpregs_supplies): Likewise.
3074 (have_ptrace_getregs): Likewise.
3075
1281d2a3
JB
30762012-03-06 Joel Brobecker <brobecker@adacore.com>
3077
3078 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
3079 in call to get_die_type_at_offset.
3080
2b03b41d
SS
30812012-03-06 Stan Shebs <stan@codesourcery.com>
3082
3083 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
3084 * mi/mi-cmd-disas.c: Ditto.
3085 * mi/mi-cmd-env.c: Ditto.
3086 * mi/mi-cmd-file.c: Ditto.
3087 * mi/mi-cmd-stack.c: Ditto.
3088 * mi/mi-cmd-target.c: Ditto.
3089 * mi/mi-cmd-var.c: Ditto.
3090 * mi/mi-cmds.c: Ditto.
3091 * mi/mi-cmds.h: Ditto.
3092 * mi/mi-console.c: Ditto.
3093 * mi/mi-getopt.c: Ditto.
3094 * mi/mi-getopt.h: Ditto.
3095 * mi/mi-interp.c: Ditto.
3096 * mi/mi-main.c: Ditto.
3097 * mi/mi-out.c: Ditto.
3098 * mi/mi-parse.c: Ditto.
3099 * mi/mi-parse.h: Ditto.
3100 * mi/mi-symbol-cmds.c: Ditto.
3101
3102 * mi/mi-getopt.h: Move mi_opt struct up.
3103 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
3104 return.
3105 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
3106
c988ad87
TT
31072012-03-06 Tom Tromey <tromey@redhat.com>
3108
3109 * proc-service.c (ps_pglobal_lookup): Set the current program
3110 space.
3111
1b7c1b10
PA
31122012-03-06 Pedro Alves <palves@redhat.com>
3113
3114 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
3115
3c182069
JB
31162012-03-05 Joel Brobecker <brobecker@adacore.com>
3117
3118 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
3119
2e794194
JK
31202012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3121
3122 Code cleanup.
3123 * common/linux-osdata.c (linux_common_core_of_thread): New function
3124 comment.
3125 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
3126 call by linux_common_core_of_thread.
3127 (linux_nat_core_of_thread_1): Remove.
3128 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
3129 * linux-thread-db.c: Include linux-osdata.h.
3130 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
3131 linux_common_core_of_thread.
3132
9f9f1f31
TT
31332012-03-05 Tom Tromey <tromey@redhat.com>
3134
3135 * value.c (value_primitive_field): Don't fetch contents for
3136 non-virtual bases.
3137
b7b189f3
TT
31382012-03-05 Tom Tromey <tromey@redhat.com>
3139
3140 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
3141
05b8a789 31422012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 3143
5538f557
JB
3144 * s390-nat.c: Include "gregset.h".
3145
75528772
JK
31462012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
3149 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
3150 (libunwind_load): New variable so_error, use it for dlerror. Try to
3151 load also LIBUNWIND_SO_7.
3152
275418ae
PA
31532012-03-05 Pedro Alves <palves@redhat.com>
3154
3155 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
3156 is not NULL, and remove resulting dead code.
3157
5cbb9812
TS
31582012-03-05 Thomas Schwinge <thomas@codesourcery.com>
3159
3160 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
3161 prologue to sh_analyze_prologue.
3162 (sh_analyze_prologue): Make better use of such an upper limit, and
3163 generally be more cautious about accessing memory.
3164
541515ad
TT
31652012-03-05 Tom Tromey <tromey@redhat.com>
3166
3167 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
3168 _initialize_ia64_hpux_tdep.
3169
b4d36fb8
PA
31702012-03-05 Pedro Alves <palves@redhat.com>
3171
24490249
PA
3172 PR gdb/13766
3173
b4d36fb8
PA
3174 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
3175 the register state is clear, supply explicit zero, instead of
3176 marking the register unavailable.
3177
60c9a3c0
TG
31782012-03-05 Tristan Gingold <gingold@adacore.com>
3179
3180 * NEWS: Mention OpenVMS ia64 new target.
3181
696759ad
TG
31822012-03-05 Tristan Gingold <gingold@adacore.com>
3183
3184 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
3185 (ia64_unw_accessors, ia64_unw_rse_accessors)
3186 (ia64_libunwind_descr): Declare.
3187 * ia64-vms-tdep.c: New file.
3188 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
3189 (ia64_libunwind_descr): Make them public.
3190 * configure.tgt: Add ia64-*-*vms*.
3191 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
3192 (ALLDEPFILES): Add ia64-vms-tdep.c
3193
34864976
TG
31942012-03-05 Tristan Gingold <gingold@adacore.com>
3195
169081d0
TG
3196 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3197 * remote.c (PACKET_qXfer_uib): New enum value.
3198 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3199 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3200 (_initialize_remote): Call add_packet_config_cmd for
3201 xfer:uib packet.
3202
32032012-03-05 Tristan Gingold <gingold@adacore.com>
3204
3205 * osabi.c (gdb_osabi_names): Add OpenVMS.
3206 (generic_elf_osabi_sniffer): Likewise.
3207 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 3208
6597b100
JK
32092012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Removed unused code.
3212 * libunwind-frame.c (libunwind_frame_unwind)
3213 (libunwind_frame_base_address): Remove.
3214 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3215
87399aa1
YQ
32162012-03-04 Yao Qi <yao@codesourcery.com>
3217
3218 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3219 remove trailing new line.
3220 (agent_run_command, agent_run_command): Add _ markup.
3221 (agent_capability_check): Likewise.
3222
abf1152a
JK
32232012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 * breakpoint.c (set_condition_evaluation_mode): Set
3226 CONDITION_EVALUATION_MODE unconditionally.
3227
5808517f
YQ
32282012-03-03 Yao Qi <yao@codesourcery.com>
3229
3230 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3231 * common/agent.h: Update declaration.
3232 * inf-child.c (inf_child_use_agent): New.
3233 (inf_child_can_use_agent): New.
3234 (inf_child_target): Initialize fields `to_use_agent'
3235 and `to_can_use_agent'.
3236 * agent.c (agent_new_objfile): New.
89b7509a 3237 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
3238 observer.
3239
3240 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3241 New.
89b7509a 3242 (linux_target_install_ops): Initialize field
5808517f
YQ
3243 `to_static_tracepoint_markers_by_strid'.
3244 * remote.c (free_current_marker): Move it to ...
3245 * tracepoint.c (free_current_marker): ... here. New.
3246 (cleanup_target_stop): New.
3247 * tracepoint.h: Declare free_current_marker.
3248 * NEWS: Add one entry about `info static-tracepoint-marker'.
3249
58b4daa5
YQ
32502012-03-03 Yao Qi <yao@codesourcery.com>
3251
3252 * common/agent.c (agent_loaded_p): New.
89b7509a 3253 (agent_look_up_symbols): New global.
58b4daa5
YQ
3254 * common/agent.h: Declare agent_loaded_p.
3255
8ffcbaaf
YQ
32562012-03-03 Yao Qi <yao@codesourcery.com>
3257
3258 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3259 (agent_capability_check, agent_capability_invalidate): New.
3260 (symbol_list): New array element.
3261 * common/agent.h (enum agent_capa): New.
3262 * target.c (target_pre_inferior): Call agent_capability_invalidate.
3263
d1feda86
YQ
32642012-03-03 Yao Qi <yao@codesourcery.com>
3265
3266 * target.h (struct target_ops) <to_use_agent>: New field.
3267 (struct target_ops) <to_can_use_agent>: New field.
3268 (target_use_agent, target_can_use_agent): New macro.
3269 * target.c (update_current_target): Update.
3270 * remote.c: New enum `PACKET_QAgent'.
3271 (remote_protocol_features): Add a new element.
3272 (remote_use_agent, remote_can_use_agent): New.
3273 (init_remote_ops): Initialize field `can_use_agent' with
3274 remote_can_use_agent. Intiailize field `use_agent' with
3275 remote_use_agent.
3276 * common/agent.c (use_agent): New global.
3277 * common/agent.h: Declare it.
3278 * tracepoint.c (info_static_tracepoint_markers_command): Add
3279 comment.
3280 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3281 (COMMON_OBS): Add common/agent.o and agent.o
3282 (common-agent.o): New rule.
3283 * agent.c: New.
3284
2fa291ac
YQ
32852012-03-03 Yao Qi <yao@codesourcery.com>
3286
3287 * common/agent.c: New.
3288 * common/agent.h: New.
3289 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3290 AC_CHECK_HEADERS.
3291 * configure, configh.in: Regenerated.
3292
9fc05685
KB
32932012-03-02 Kevin Buettner <kevinb@redhat.com>
3294
3295 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3296 unless it exists for this architecture.
3297
a5ee536b
JB
32982012-03-02 Joel Brobecker <brobecker@adacore.com>
3299
3300 * language.h (struct language_defn): New "method" la_read_var_value.
3301 * findvar.c: #include "language.h".
3302 (default_read_var_value): Renames read_var_value. Rewrite
3303 function description.
3304 (read_var_value): New function.
3305 * value.h (default_read_var_value): Add prototype.
3306 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3307 New functions.
3308 (ada_language_defn): Add entry for la_read_var_value.
3309 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3310 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3311 language_defn structures to add entry for new la_read_var_value
3312 field.
3313
f59f708a
PA
33142012-03-02 Tom Tromey <tromey@redhat.com>
3315 Pedro Alves <palves@redhat.com>
3316
3317 PR breakpoints/13776:
3318 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3319 breakpoints.
3320 (delete_longjmp_breakpoint_at_next_stop): New.
3321 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3322 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3323 before deleting the inferior. Add comments.
3324 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3325 breakpoints immediately, but only on next stop. Move that code
3326 next to where we mark other breakpoints for deletion.
3327
44099a67
JB
33282012-03-02 Joel Brobecker <brobecker@adacore.com>
3329
3330 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3331 marker.
3332 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3333 violation.
3334
2a2ef594
PA
33352012-03-02 Pedro Alves <palves@redhat.com>
3336
3337 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3338
b261e0c5
UW
33392012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3340
3341 Fix -Wmissing-prototypes build.
3342 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3343 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3344 (gdbsim_has_memory): Likewise.
3345
a95babbf
YQ
33462012-03-02 Yao Qi <yao@codesourcery.com>
3347
3348 Fix -Wmissing-prototypes build.
3349 * charset.c (phony_iconv_open): Make static.
3350 (phony_iconv_close, phony_iconv): Likewise.
3351 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3352 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3353 prototype.
3354 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3355 * ser-mingw.c (create_select_thread): Make static.
3356 * windows-termcap.c (tgetent): New prototype.
3357 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3358
d603d4b3
JK
33592012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3360
3361 Fix -Wmissing-prototypes build.
3362 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3363 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3364 (_initialize_loadable): New prototypes.
3365
7fb3ad1f
DE
33662012-03-02 Doug Evans <dje@google.com>
3367
3368 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3369 abbrev table, read_comp_unit will do it.
3370
693be288
JK
33712012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 Fix -Wmissing-prototypes build.
3374 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3375 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3376 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3377 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3378 (_initialize_arm_symbian_tdep): New prototype.
3379 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3380 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3381 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3382 static.
3383 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3384 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3385 prototype.
3386 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3387 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3388 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3389 static.
3390 * moxie-tdep.c (moxie_process_record): Likewise.
3391 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3392 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3393 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3394 (_initialize_rl78_tdep): New prototype.
3395 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3396 (_initialize_rx_tdep): New prototype.
3397 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3398 (_initialize_darwin_solib): New prototype.
3399 * solib-spu.c: Include solib-spu.h.
3400 (_initialize_spu_solib): New prototype.
3401 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3402 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3403 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3404 (tic6x_software_single_step): Make it static.
3405 (_initialize_tic6x_tdep): New prototype.
3406
638234e5
JK
34072012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Fix -Wmissing-prototypes build.
3410 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3411 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3412
f4a6f16d
JK
34132012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 Fix -Wmissing-prototypes build.
3416 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3417 (frv_have_stopped_data_address): Remove.
3418
04dcf5fa
JK
34192012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 Fix -Wmissing-prototypes build.
3422 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3423 * sh-tdep.c: Include sh64-tdep.h.
3424 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3425 * sh64-tdep.c: Include sh64-tdep.h.
3426 * sh64-tdep.h: New file.
3427
19080931
MR
34282012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3429
3430 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3431
9aac7884
MR
34322012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3433
3434 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3435 sp_regnum once the gdbarch_init_osabi hook has been called.
3436
a385295e
MR
34372012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3438
3439 * mips-tdep.c (mips32_bc1_pc): New function.
3440 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3441 BPOSGE32 and BPOSGE64 instructions.
3442 (deal_with_atomic_sequence): Likewise.
3443 (mips32_instruction_has_delay_slot): Likewise.
3444
1faeff08 34452012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
3446 Chris Dearman <chris@mips.com>
3447 Maciej W. Rozycki <macro@codesourcery.com>
3448 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
3449
3450 * features/mips-dsp.xml: New file.
3451 * features/mips64-dsp.xml: New file.
3452 * features/mips-dsp-linux.xml: New file.
3453 * features/mips64-dsp-linux.xml: New file.
3454 * features/Makefile (WHICH): Add mips-dsp-linux and
3455 mips64-dsp-linux.
3456 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3457 * features/mips-dsp-linux.c: New file.
3458 * features/mips64-dsp-linux.c: New file.
3459 * regformats/mips-dsp-linux.dat: New file.
3460 * regformats/mips64-dsp-linux.dat: New file.
3461 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3462 registers.
3463 (mips64_linux_register_addr): Likewise.
3464 (mips64_linux_regsets_fetch_registers): Likewise.
3465 (mips64_linux_regsets_store_registers): Likewise.
3466 (mips64_linux_fetch_registers): Update call to
3467 mips64_linux_regsets_fetch_registers.
3468 (mips64_linux_store_registers): Update call to
3469 mips64_linux_regsets_store_registers.
3470 (mips_linux_read_description): Probe for DSP registers.
3471 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3472 and initialize_tdesc_mips64_dsp_linux.
3473 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3474 Remove padding of no longer used embedded register slots.
3475 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3476 (MIPS_RESTART_REGNUM): Redefine enum value.
3477 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3478 strings.
3479 (mips_tx39_reg_names): Likewise.
3480 (mips_linux_reg_names): New array of register names for Linux
3481 targets.
3482 (mips_register_name): Check for a null pointer in
3483 mips_processor_reg_names and return an empty string.
3484 (mips_register_type): Exclude embedded registers for the IRIX
3485 and Linux ABIs.
3486 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
3487 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
3488 DSP registers.
3489 (mips_stab_reg_to_regnum): Handle DSP accumulators.
3490 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3491 (mips_gdbarch_init): Likewise. Initialize internal register
3492 indices for the Linux ABI. Use dynamic numbers to refer to
3493 registers, as applicable, while parsing the target description.
3494 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3495
263689d8
JB
34962012-03-01 Joel Brobecker <brobecker@adacore.com>
3497
3498 * frame.h (read_frame_register_unsigned): Fix typo in function
3499 description.
3500
f3b4f45c
PA
35012012-03-01 Pedro Alves <palves@redhat.com>
3502
3503 * jit-reader.in [!__cplusplus]
3504 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3505
b03a2011
PA
35062012-03-01 Pedro Alves <palves@redhat.com>
3507
3508 * configure.ac (build_warnings): Add -Wmissing-prototypes.
3509 * configure: Regenerate.
3510
70221824
PA
35112012-03-01 Pedro Alves <palves@redhat.com>
3512
3513 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3514 * breakpoint.c (create_exception_master_breakpoint, trace_command)
3515 (ftrace_command, strace_command): Make static.
3516 * d-lang.c (_initialize_d_language): Declare.
3517 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3518 * dwarf2loc.c (_initialize_dwarf2loc):
3519 * dwarf2read.c (process_psymtab_comp_unit): Make static.
3520 * exec.c (exec_get_section_table): Make static.
3521 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3522 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3523 * inferior.c (remove_inferior_command, add_inferior_command)
3524 (clone_inferior_command): Make static.
3525 * linux-nat.c (linux_nat_thread_address_space)
3526 (linux_nat_core_of_thread): Make static.
3527 * linux-tdep.c (_initialize_linux_tdep): Declare.
3528 * objc-lang.c (_initialize_objc_lang): Declare.
3529 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3530 Make static.
3531 (_initialize_opencl_language): Declare.
3532 * record.c (_initialize_record): Declare.
3533 * remote.c (demand_private_info, remote_get_tib_address)
3534 (remote_supports_cond_tracepoints)
3535 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3536 Make static.
3537 * skip.c (_initialize_step_skip): Declare.
3538 * symtab.c (skip_prologue_using_lineinfo): Make static.
3539 * tracepoint.c (delete_trace_state_variable)
3540 (trace_variable_command, delete_trace_variable_command)
3541 (get_uploaded_tsv, find_matching_tracepoint_location)
3542 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3543 Make static.
3544 * value.c (pack_unsigned_long): Make static.
3545 * varobj.c (varobj_ensure_python_env): Make static.
3546 * windows-tdep.c (_initialize_windows_tdep): Declare.
3547 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3548
33fbcbee
PA
35492012-03-01 Pedro Alves <palves@redhat.com>
3550
3551 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
3552 gdbarch parameter.
3553 (linux_init_abi): Install it as has_shared_address_space gdbarch
3554 callback.
3555
44d0cd3b
PA
35562012-03-01 Pedro Alves <palves@redhat.com>
3557
3558 * observer.c (observer_test_first_notification_function)
3559 (observer_test_second_notification_function)
3560 (observer_test_third_notification_function): Add declarations.
3561
ed01b82c
PA
35622012-03-01 Pedro Alves <palves@redhat.com>
3563
3564 * common/signals.c (default_target_signal_to_host)
3565 (default_target_signal_from_host): Move ...
3566 * arch-utils.c: ... here.
3567 * arch-utils.h (default_target_signal_to_host)
3568 (default_target_signal_from_host): Declare.
3569
3570 * common/signals.c (target_signal_from_command): Move ...
3571 * infrun.c: ... here.
3572 * inferior.h (target_signal_from_command): Declare.
3573 * target.h (target_signal_from_command)
3574 (default_target_signal_from_host, default_target_signal_to_host):
3575 Delete declarations.
3576
3577 * common/signals.c (_initialize_signals): Delete.
3578
c9b87335
PA
35792012-03-01 Pedro Alves <palves@redhat.com>
3580
3581 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3582 both __cplusplus and !__cplusplus.
3583
9340a6c0
PA
35842012-03-01 Pedro Alves <palves@redhat.com>
3585
3586 * psymtab.c (find_and_open_source): Delete declaration.
3587 * source.c (find_and_open_source): Move comment ...
3588 * source.h (find_and_open_source): ... to this new declaration.
3589
e451c4a1
PA
35902012-03-01 Pedro Alves <palves@redhat.com>
3591
3592 * inline-frame.c: Include inline-frame.h.
3593
983fb104
PA
35942012-03-01 Pedro Alves <palves@redhat.com>
3595
3596 * tui/tui-data.c (set_gen_win_origin): Delete.
3597 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3598 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3599
5fbce5df
PA
36002012-03-01 Pedro Alves <palves@redhat.com>
3601
3602 * remote.c (encode_actions): Delete declaration.
3603 * tracepoint.c (encode_actions): Make extern.
3604 * tracepoint.h (encode_actions): Declare.
3605
49a8461d
PA
36062012-03-01 Pedro Alves <palves@redhat.com>
3607
3608 * python/py-breakpoint.c: Include python.h.
3609 * python/py-continueevent.c (create_continue_event_object): Make
3610 static.
3611 * python/py-lazy-string.c (stpy_get_type): Make static.
3612 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3613 Make static.
3614 * python/py-utils.c (unicode_to_target_python_string): Make
3615 static.
3616 * python/py-value.c: Include python.h.
3617
9079102f
PA
36182012-03-01 Pedro Alves <palves@redhat.com>
3619
3620 * inferior.c (delete_threads_of_inferior): Delete.
3621
a298c5e8
PA
36222012-03-01 Pedro Alves <palves@redhat.com>
3623
3624 Import fallback definitions from glibc.
3625
3626 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3627 ps_prochandle): Forward declare.
3628 (ps_err_e): Use glibc's comments.
3629 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3630 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3631 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3632 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3633 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3634 (struct ps_prochandle): Adjust comment.
3635
e3084549
PA
36362012-03-01 Pedro Alves <palves@redhat.com>
3637
3638 * ada-lang.c (ada_modulus_from_name): Delete.
3639 * ada-lex.l (lexer_init): Make static.
3640
ad5f7d6e
PA
36412012-03-01 Pedro Alves <palves@redhat.com>
3642
3643 PR gdb/13767
3644
3645 * frame.c (read_frame_register_unsigned): New.
3646 * frame.h (read_frame_register_unsigned): Declare.
3647 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3648 Handle it.
3649 (print_i387_control_word): New parameter `control_p'. Handle it.
3650 (i387_print_float_info): Handle unavailable float registers.
3651
e0a4d108
KS
36522012-03-01 Keith Seitz <keiths@redhat.com>
3653
3654 * linespec.c (decode_line_2): Sort the list of methods
3655 alphabetically before presenting the user with a selection
3656 menu.
3657
122d1940
DE
36582012-03-01 Doug Evans <dje@google.com>
3659
3660 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3661 has_namespace_info.
3662 (dwarf2_read_abbrevs): Remove corresponding initialization.
3663
7d74f244
DE
36642012-03-01 Scott J. Goldman <scottjg@vmware.com>
3665
3666 * NEWS: Mention new python command class gdb.COMMAND_USER.
3667 * cli/cli-cmds.c (show_user): Print error when used on a python
3668 command.
3669 (init_cli_cmds): Update documentation strings for "show user" and
3670 "set/show max-user-call-depth" to clarify that it does not apply to
3671 python commands.
3672 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3673 error check.
3674 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3675 gdb python api.
3676 * top.c (execute_command): Only execute a user-defined command as a
3677 legacy macro if c->user_commands is set.
3678
e88acd96
TT
36792012-03-01 Tom Tromey <tromey@redhat.com>
3680
3681 * valprint.h (struct generic_val_print_decorations): New.
3682 (generic_val_print): Declare.
3683 * valprint.c (generic_val_print): New function.
3684 * p-valprint.c (p_decorations): New global.
3685 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3686 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3687 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3688 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3689 * m2-valprint.c (m2_decorations): New global.
3690 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3691 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3692 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3693 TYPE_CODE_ERROR>: Call generic_val_print.
3694 * f-valprint.c (f_decorations): New global.
3695 (f_val_print): Use print_function_pointer_address.
3696 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3697 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3698 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3699 generic_val_print.
3700 * c-valprint.c (c_decorations): New global.
3701 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3702 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3703 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3704 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3705 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3706 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3707 case.
3708
d3eab38a
TT
37092012-03-01 Tom Tromey <tromey@redhat.com>
3710
3711 * valprint.c (val_print): Update.
3712 * p-valprint (pascal_val_print): Return void.
3713 * p-lang.h (pascal_val_print): Return void.
3714 * m2-valprint.c (m2_val_print): Return void.
3715 * m2-lang.h (m2_val_print): Return void.
3716 * language.h (struct language_defn) <la_val_print>: Return void.
3717 * language.c (unk_lang_val_print): Return void.
3718 * jv-valprint.c (java_val_print): Return void.
3719 * jv-lang.h (java_val_print): Return void.
3720 * f-valprint.c (f_val_print): Return void.
3721 * f-lang.h (f_val_print): Return void.
3722 * d-valprint.c (d_val_print): Return void.
3723 (dynamic_array_type): Update.
3724 * d-lang.h (d_val_print): Return void.
3725 * c-valprint.c (c_val_print): Return void.
3726 * c-lang.h (c_val_print): Return void.
3727 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3728 void.
3729 * ada-lang.h (ada_val_print): Return void.
3730
35c0084b
TT
37312012-03-01 Tom Tromey <tromey@redhat.com>
3732
3733 * value.h (val_print): Return void.
3734 * valprint.c (val_print): Return void.
3735
a1f5dd1b
TT
37362012-03-01 Tom Tromey <tromey@redhat.com>
3737
3738 * value.h (common_val_print): Return void.
3739 * valprint.c (common_val_print): Return void.
3740
8e069a98
TT
37412012-03-01 Tom Tromey <tromey@redhat.com>
3742
3743 * value.h (value_print): Return void.
3744 * valprint.c (value_print): Return void.
3745 * p-valprint.c (pascal_value_print): Return void.
3746 * p-lang.h (pascal_value_print): Return void.
3747 * language.h (struct language_defn) <la_value_print>: Return
3748 void.
3749 * language.c (unk_lang_value_print): Return void.
3750 * jv-valprint.c (java_value_print): Return void.
3751 * jv-lang.h (java_value_print): Return void.
3752 * f-valprint.c (c_value_print): Don't declare.
3753 Include c-lang.h.
3754 * c-valprint.c (c_value_print): Return void.
3755 * c-lang.h (c_value_print): Return void.
3756 * ada-valprint.c (ada_value_print): Return void.
3757 * ada-lang.h (ada_value_print): Return void.
3758
be335936
TT
37592012-03-01 Tom Tromey <tromey@redhat.com>
3760
3761 * value.c (value_primitive_field): Handle virtual base classes.
3762
b0db66a7
TT
37632012-03-01 Tom Tromey <tromey@redhat.com>
3764
3765 * gdbtypes.h (struct vbase): Remove.
3766
132c57b4
TT
37672012-03-01 Tom Tromey <tromey@redhat.com>
3768
3769 * c-valprint.c (print_function_pointer_address): Move...
3770 * valprint.c: ... here. Make non-static.
3771 * m2-valprint.c (print_function_pointer_address): Remove.
3772 * valprint.h (print_function_pointer_address): Declare.
3773
e41eec66
JB
37742012-03-01 Joel Brobecker <brobecker@adacore.com>
3775
3776 * NEWS: Document the fact that one can provide a condition when
3777 creating an Ada exception catchpoint.
3778
19c37f24
TT
37792012-03-01 Tom Tromey <tromey@redhat.com>
3780
3781 * valprint.c (val_print_type_code_flags): Fix placement of
3782 trailing brace.
3783
f0fed3a3
JB
37842012-03-01 Joel Brobecker <brobecker@adacore.com>
3785
3786 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3787 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3788 environment variable before calling update-copyright.
3789
8ba85d85
JB
37902012-03-01 Joel Brobecker <brobecker@adacore.com>
3791
3792 * gnulib/extra/update-copyright: Update to the latest from
3793 gnulib's git repository.
3794 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3795 variable to 2 instead of 1.
3796
8219b1e8
JB
37972012-02-29 Joel Brobecker <brobecker@adacore.com>
3798
3799 * varobj.c (c_value_of_variable): Remove dead code.
3800
718cb7da
JB
38012012-02-29 Joel Brobecker <brobecker@adacore.com>
3802
3803 * ada-lex.p (processId): Do not modify already encoded IDs.
3804 Update function documentation.
3805
739593e0
JB
38062012-02-29 Joel Brobecker <brobecker@adacore.com>
3807
3808 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3809 "name" with "struct symbol *name_sym".
3810 * ada-exp.y (write_var_or_type): Update call to
3811 ada_find_renaming_symbol.
3812 "name" with "struct symbol *name_sym". Adjust Implementation
3813 accordingly. Adjust the function documentation.
3814
852dff6c
JB
38152012-02-29 Joel Brobecker <brobecker@adacore.com>
3816
3817 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3818 * ada-lang.c (ada_find_any_type): Add advance declaration.
3819 Make static. Replace ada_find_any_symbol by
3820 ada_find_any_type_symbol.
3821 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3822 Improve function description. Make static.
3823 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3824 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3825
1b611343
JB
38262012-02-29 Joel Brobecker <brobecker@adacore.com>
3827
3828 * ada-lang.c (struct tag_args): Delete.
3829 (ada_get_tsd_type): Function body moved up in source file.
3830 (ada_tag_name_1, ada_tag_name_2): Delete.
3831 (ada_get_tsd_from_tag): New function.
3832 (ada_tag_name_from_tsd): New function.
3833 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3834 to determine the tag name.
3835
41246937
JB
38362012-02-29 Joel Brobecker <brobecker@adacore.com>
3837
3838 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3839 declaration.
3840 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3841 function.
3842
ffde82bf
JB
38432012-02-29 Joel Brobecker <brobecker@adacore.com>
3844
3845 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3846
2ad01556
JB
38472012-02-29 Joel Brobecker <brobecker@adacore.com>
3848
3849 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3850 full searches.
3851
99b1c762
JB
38522012-02-29 Joel Brobecker <brobecker@adacore.com>
3853
3854 * ada-lang.c (constrained_packed_array_type): If there is a
3855 parallel XA type, use it to determine the array index type.
3856
2d4a02ee
JB
38572012-02-29 Joel Brobecker <brobecker@adacore.com>
3858
3859 * ada-valprint.c (ada_val_print_1): If our value is a reference
3860 to an array descriptor, dereference it before converting it
3861 to a simple array.
3862
c48db5ca
JB
38632012-02-29 Joel Brobecker <brobecker@adacore.com>
3864
3865 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3866 creating fixed value.
3867 (ada_value_ind, ada_coerce_ref, assign_component)
3868 (ada_evaluate_subexp): Remove call to unwrap_value before
3869 call to ada_to_fixed_value.
3870
2e6fda7d
JB
38712012-02-29 Joel Brobecker <brobecker@adacore.com>
3872
3873 * ada-lang.c (to_fixed_array_type): Set result's type name.
3874
5845583d
JB
38752012-02-29 Joel Brobecker <brobecker@adacore.com>
3876
3877 * ada-lang.c (catch_ada_exception_command_split): Add new
3878 argument cond_string. Add support for condition at end of
3879 "catch exception" commands.
3880 (ada_decode_exception_location): Add new argument cond_string.
3881 Update call to catch_ada_exception_command_split.
3882 (create_ada_exception_catchpoint): Add new argument cond_string.
3883 Set the breakpoint condition if needed.
3884 (catch_ada_exception_command): Update call to
3885 ada_decode_exception_location.
3886 (ada_decode_assert_location): Add function documentation.
3887 Add support for condition at end of "catch assert" command.
3888 (catch_assert_command): Update calls to ada_decode_assert_location
3889 and create_ada_exception_catchpoint.
3890
9a7f938f
JK
38912012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3892
3893 Fix disp-step-syscall.exp: fork: single step over fork.
3894 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3895 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3896 comment, change parameters gdbarch and ptid to regcache. Remove
3897 parameter regcache, initialize gdbarch from regcache here.
3898 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3899 New functions.
3900 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3901 instead.
3902 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3903 'syscall'. Make the 'int' check more strict.
3904
ffdf6de5
JK
39052012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3906
3907 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3908 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3909 (i386_linux_intx80_sysenter_syscall_record): ... here.
3910 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3911 Use the renamed function name.
3912
c70a6932
JK
39132012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3916 * breakpoint.c (until_break_command): Likewise.
3917 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3918 * infcall.c (call_function_by_hand): Likewise.
3919 * infcmd.c (finish_forward): Likewise.
3920 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3921
05b8a789 39222012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 3923
d4cd3da9
JB
3924 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3925 avoid variable assignments inside condition.
3926
6425366c
JK
39272012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3928
3929 Fix static analysis issue found by cppcheck.
3930 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3931 uninitialized BUF for size 2.
3932
c8cef75f 39332012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
3934 Nathan Froyd <froydnj@codesourcery.com>
3935 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
3936
3937 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3938 (mips16_instruction_has_delay_slot): Likewise.
3939 (mips_segment_boundary): Likewise.
3940 (mips_adjust_breakpoint_address): Likewise.
3941 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3942
473347ad 39432012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 3944 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
3945
3946 * infrun.c (handle_inferior_event): Don't proceed through
3947 shared library trampolines if stepping at the machine
3948 instruction level.
3949
cf233303
MR
39502012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3951
3952 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3953 too.
3954
cb2cf4ce
TS
39552012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3956
3957 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3958 (sh_stub_unwind_sniffer): New functions.
3959 (sh_stub_unwind): New variable.
3960 (sh_gdbarch_init): Wire everything.
3961
644cebc9
PA
39622012-02-27 Pedro Alves <palves@redhat.com>
3963
3964 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3965 (linux_nat_post_attach_wait): Adjust to use
3966 linux_proc_pid_is_stopped.
3967 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3968 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3969 based on pid_is_stopped from both linux-nat.c and
3970 gdbserver/linux-low.c, and renamed.
3971
283002cf
MR
39722012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3973
3974 * remote.c (remote_watchpoint_addr_within_range): New function.
3975 (init_remote_ops): Use it.
3976
9b3e86b1
MR
39772012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3978
3979 * target.h (target_watchpoint_addr_within_range): Document macro.
3980
e36930bb
PA
39812012-02-24 Pedro Alves <palves@redhat.com>
3982
3983 * stack.c (set_last_displayed_sal): Issue internal_error instead
3984 of warning, and issue it after clearing the last displayed sal.
3985
883bc8d1
PA
39862012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3987 Pedro Alves <palves@redhat.com>
3988
3989 * breakpoint.c (until_break_command): Install breakpoints after
3990 all frame manipulations.
3991
b775012e
LM
39922012-02-24 Luis Machado <lgustavo@codesourcery.com>
3993
3994 * remote.c (remote_supports_cond_breakpoints): New forward
3995 declaration.
3996 (remote_add_target_side_condition): New function.
3997 (remote_insert_breakpoint): Add target-side breakpoint
3998 conditional if supported.
3999 (remote_insert_hw_breakpoint): Likewise.
4000 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4001 hook.
4002
4003 * target.c (update_current_target): Inherit
4004 to_supports_evaluation_of_breakpoint_conditions.
4005 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4006
4007 * target.h (struct target_ops)
4008 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4009 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4010
4011 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4012 (condition_evaluation_both, condition_evaluation_auto,
4013 condition_evaluation_host, condition_evaluation_target,
4014 condition_evaluation_enums, condition_evaluation_mode_1,
4015 condition_evaluation_mode): New static globals.
4016 (translate_condition_evaluation_mode): New function.
4017 (breakpoint_condition_evaluation_mode): New function.
4018 (gdb_evaluates_breakpoint_condition_p): New function.
4019 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4020 (mark_breakpoint_modified): New function.
4021 (mark_breakpoint_location_modified): New function.
4022 (set_condition_evaluation_mode): New function.
4023 (show_condition_evaluation_mode): New function.
4024 (bp_location_compare_addrs): New function.
4025 (get_first_location_gte_addr): New helper function.
4026 (set_breakpoint_condition): Free condition bytecode if locations
4027 has become unconditional. Call mark_breakpoint_modified (...).
4028 (condition_command): Call update_global_location_list (1) for
4029 breakpoints.
4030 (breakpoint_xfer_memory): Use is_breakpoint (...).
4031 (is_breakpoint): New function.
4032 (parse_cond_to_aexpr): New function.
4033 (build_target_condition_list): New function.
4034 (insert_bp_location): Handle target-side conditional
4035 breakpoints and call build_target_condition_list (...).
4036 (update_inserted_breakpoint_locations): New function.
4037 (insert_breakpoint_locations): Handle target-side conditional
4038 breakpoints.
4039 (bpstat_check_breakpoint_conditions): Add comment.
4040 (bp_condition_evaluator): New function.
4041 (bp_location_condition_evaluator): New function.
4042 (print_breakpoint_location): Print information on where the condition
4043 will be evaluated.
4044 (print_one_breakpoint_location): Likewise.
4045 (init_bp_location): Call mark_breakpoint_location_modified (...) for
4046 breakpoint location.
4047 (force_breakpoint_reinsertion): New functions.
4048 (update_global_location_list): Handle target-side breakpoint
4049 conditions.
4050 Reinsert locations that are already inserted if conditions have
4051 changed.
4052 (bp_location_dtor): Free agent expression bytecode.
4053 (disable_breakpoint): Call mark_breakpoint_modified (...).
4054 Call update_global_location_list (...) with parameter 1 for breakpoints.
4055 (disable_command): Call mark_breakpoint_location_modified (...).
4056 Call update_global_location_list (...) with parameter 1 for breakpoints.
4057 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
4058 (enable_command): mark_breakpoint_location_modified (...).
4059 (_initialize_breakpoint): Update documentation and add
4060 condition-evaluation breakpoint subcommand.
4061
4062 * breakpoint.h: Include ax.h.
4063 (condition_list): New data structure.
4064 (condition_status): New enum.
4065 (bp_target_info) <cond_list>: New field.
4066 (bp_location) <condition_changed, cond_bytecode>: New fields.
4067 (is_breakpoint): New prototype.
4068
3788aec7
LM
40692012-02-24 Luis Machado <lgustavo@codesourcery.com>
4070
4071 * remote.c (remote_state) <cond_breakpoints>: New field.
4072 (PACKET_ConditionalBreakpoints): New enum.
4073 (remote_cond_breakpoint_feature): New function.
4074 (remote_protocol_features): Add new ConditionalBreakpoints entry.
4075 (remote_supports_cond_breakpoints): New function.
4076 (_initialize_remote): Add new packet configuration for
4077 target-side conditional breakpoints.
4078
72895ff6
LM
40792012-02-24 Luis Machado <lgustavo@codesourcery.com>
4080
4081 * NEWS: Mention target-side conditional breakpoint support,
4082 new condition-evaluation breakpoint subcommand and remote
4083 packet extensions.
4084
dea2aa5f
LM
40852012-02-24 Luis Machado <lgustavo@codesourcery.com>
4086
4087 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
4088 number.
4089
8a8bc27f
TS
40902012-02-24 Thomas Schwinge <thomas@codesourcery.com>
4091
4092 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
4093 (after_prologue): Remove.
4094
6b446fdf
TT
40952012-02-23 Tom Tromey <tromey@redhat.com>
4096
4097 * jv-valprint.c (java_val_print): Remove dead code.
4098
ef59abfb
TG
40992012-02-23 Tristan Gingold <gingold@adacore.com>
4100
a09130f9
PA
4101 * ada-tasks.c (struct ada_tasks_inferior_data): Add
4102 known_tasks_element and known_tasks_length fields.
4103 (read_known_tasks_array): Change argument type. Use pointer type
4104 and number of elements from DATA. Adjust.
4105 (read_known_tasks_list): Likewise.
4106 (get_known_tasks_addr): Remove.
4107 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
4108 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
4109 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 4110
def166f6
JK
41112012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4112
4113 PR backtrace/13716
4114 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
4115 it after set_momentary_breakpoint.
4116
aeaa2474
SA
41172012-02-22 Sterling Augustine <saugustine@google.com>
4118
4119 PR 13689:
4120 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
4121
feea76c2
GB
41222012-02-22 Gary Benson <gbenson@redhat.com>
4123
4124 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
4125 (find_slot_in_mapped_hash): Likewise.
4126
f06e05e0
JK
41272012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4128
4129 PR build/13638
4130 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
4131 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
4132 * configure: Regenerate.
4133
b54a8fd7
PA
41342012-02-21 Tristan Gingold <gingold@adacore.com>
4135 Pedro Alves <palves@redhat.com>
4136
4137 * ia64-tdep.c: Do not include libunwind-ia64.h.
4138 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
4139 Include libunwind-ia64.h instead of libunwind.h.
4140 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
4141 for libunwind.h existence.
4142 * configure, config.in: Regenerate.
4143
dfcee124
AG
41442012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4145
4146 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
4147 instead of value_rtti_target_type.
4148 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
4149 instead of value_rtti_target_type.
4150 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
4151 value_rtti_target_type.
4152 * valops.c (value_ind): Extract function readjust_indirect_value_type.
4153 (value_rtti_target_type): Rename to ...
4154 (value_rtti_indirect_type): ... here and make it indirect. Update
4155 function comment.
4156 * value.c (readjust_indirect_value_type): New function.
4157 (coerce_ref): Support for enclosing type setting for references
4158 with readjust_indirect_value_type.
4159 * value.h (readjust_value_type): New declaration.
4160 (value_rtti_target_type): Rename to ...
4161 (value_rtti_indirect_type): ... here.
4162
02568277
AG
41632012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4164
4165 * MAINTAINERS (Write After Approval): Add myself to the list.
4166
10c07b7e 41672012-02-20 Doug Evans <dje@google.com>
28ee876a 4168
d82ea6a8
DE
4169 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
4170 Rename objfile_p_char parameter to objfilep.
4171 (build_objfile_section_table): Result is now void. All callers
4172 updated.
4173 * objfiles.h (struct objfile): Tweak comments, whitespace.
4174 (build_objfile_section_table): Update.
4175
28ee876a
DE
4176 * elfread.c (elf_symfile_segments): Fix warning text.
4177
24c79950
TT
41782012-02-20 Tom Tromey <tromey@redhat.com>
4179
4180 PR gdb/13498:
4181 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
4182 particular set of file names once.
4183 (dw2_map_symbol_filenames): Likewise.
4184
3a9b40b6
JK
41852012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 Code cleanup.
4188 * main.c (write_files): Remove the declaration.
4189 (external_editor_command): Move the declaration ...
4190 [GDBTK] (external_editor_command): ... here. Fix the comment.
4191
4d0795ca
TT
41922012-02-20 Tom Tromey <tromey@redhat.com>
4193
4194 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4195 extraneous block.
4196
637fd620
TG
41972012-02-20 Tristan Gingold <gingold@adacore.com>
4198
4199 * darwin-nat.h (enum darwin_msg_state): Add comments.
4200
6f124894
TG
42012012-02-20 Tristan Gingold <gingold@adacore.com>
4202
4203 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4204 value.
4205
2e6e3d9c
JB
42062012-20-18 Joel Brobecker <brobecker@adacore.com>
4207
4208 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4209 between function description and implementation.
4210
2e8265fd
TT
42112012-02-17 Tom Tromey <tromey@redhat.com>
4212
4213 PR python/12070:
4214 * python/py-event.c (event_object_getset): New global.
4215 (event_object_type): Reference it.
4216 * python/py-type.c (field_object_getset): New global.
4217 (field_object_type): Reference it.
4218 * python/python-internal.h (gdb_py_generic_dict): Declare.
4219 * python/py-utils.c (gdb_py_generic_dict): New function.
4220
8544a150 42212012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 4222
8544a150 4223 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 4224
ca193e27
TS
42252012-02-17 Thomas Schwinge <thomas@codesourcery.com>
4226
4227 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4228 TYPE_CALLING_CONVENTION annotation.
4229
e5586183
KB
42302012-02-16 Kevin Buettner <kevinb@redhat.com>
4231
4232 * MAINTAINERS: Add rx to target ISA section.
4233 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4234 (ALLDEPFILES): Add rx-tdep.c.
4235
7dcd53a0
TT
42362012-02-16 Tom Tromey <tromey@redhat.com>
4237
4238 * symfile.c (symbol_file_add_main_1): Use inferior's
4239 symfile_flags.
4240 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4241 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4242 inferior.
4243 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4244 inferior.
4245 (follow_exec): Use inferior's symfile_flags.
4246 * inferior.h (struct inferior) <symfile_flags>: New field.
4247
ddd60447
MF
42482012-02-16 Mike Frysinger <vapier@gentoo.org>
4249
4250 PR gdb/9734:
4251 * remote-sim.c (gdbsim_create_inferior): Call error() when
4252 sim_create_inferior() fails.
4253
b0d32fb6
TG
42542012-02-16 Josh Matthews <josh@joshmatthews.net>
4255
4256 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4257
9addecb9
TT
42582012-02-16 Tom Tromey <tromey@redhat.com>
4259
4260 PR c++/13653:
4261 * thread.c (struct current_thread_cleanup) <was_removable>: New
4262 field.
4263 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4264 (make_cleanup_restore_current_thread): Initialize new field.
4265
a58b110a
KB
42662012-02-15 Kevin Buettner <kevinb@redhat.com>
4267
4268 * MAINTAINERS: Add rl78 to target ISA section.
4269 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4270 (ALLDEPFILES): Add rl78-tdep.c.
4271 * NEWS: Mention rl78 as a new target.
4272
4cb6da1c
AR
42732012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4274
4275 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4276 data.
4277 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4278
3af2590d
TT
42792012-02-15 Tom Tromey <tromey@redhat.com>
4280
4281 PR gdb/12659:
4282 * infcmd.c (registers_info): Print just the current register's
4283 name.
4284
c6910659
TT
42852012-02-15 Tom Tromey <tromey@redhat.com>
4286
4287 * python/py-symbol.c (sympy_value): Use _().
4288
7cee1e54
PA
42892012-02-15 Pedro Alves <palves@redhat.com>
4290
4291 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4292 output to be like native targets'.
4293 (remote_pid_to_str): Special case the null ptid.
4294
816338b5
SS
42952012-02-14 Stan Shebs <stan@codesourcery.com>
4296
4297 * NEWS: Mention enable count command.
4298 * breakpoint.h (struct breakpoint): New field enable_count.
4299 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4300 (enable_breakpoint): Add arg to call.
4301 (struct disp_data): New struct.
4302 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4303 (do_map_enable_once_breakpoint): Create a struct and pass it.
4304 (do_map_enable_delete_breakpoint): Ditto.
4305 (do_map_enable_count_breakpoint): New function.
4306 (enable_count_command): New function.
4307 (bpstat_stop_status): Decrement enable_count.
4308 (print_one_breakpoint_location): Report enable count.
4309 (_initialize_breakpoint): Add enable count command.
4310
c47a44f4
KB
43112012-02-14 Kevin Buettner <kevinb@redhat.com>
4312
4313 * rl78-tdep.c (reggroups.h): Include.
4314 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4315 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4316 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4317 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4318 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4319 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4320 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4321 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4322 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4323 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4324 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4325 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4326 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4327 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4328 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4329 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4330 beginning of register list.
4331 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4332 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4333 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4334 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4335 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4336 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4337 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4338 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4339 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4340 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4341 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4342 the pseudo registers. Rearrange other pseudo registers too so
4343 that the bank registers appear at the end.
4344 (rl78_register_type): Account for the fact that the byte sized
4345 bank registers are now pseudo-registers.
4346 (rl78_register_name): Rearrange the register name array. Make
4347 initial set of raw banked registers inaccessible.
4348 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4349 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4350 case for copying bytes back and forth between raw and pseudo
4351 versions of the banked registers. Update other cases to reflect
4352 the changed names.
4353 (rl78_return_value): Update to account for changed names of
4354 raw registers.
4355 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4356 rl78_register_sim_regno().
4357
e4569f1e
KB
43582012-02-14 Kevin Buettner <kevinb@redhat.com>
4359
4360 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4361 the name parameter being passed to find_pc_partial_function().
4362
7a05aae7
JK
43632012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 * MAINTAINERS: Step down from being ia64 target maintainer.
4366
11fde611
JK
43672012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4370 compilation warning.
4371
57008375
JK
43722012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4373
4374 Fix crash on loaded shlibs without loaded exec_bfd.
4375 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4376 (set_section_command): Replace exec_bfd by p->bfd.
4377
ff3c9849
TT
43782012-02-10 Tom Tromey <tromey@redhat.com>
4379
4380 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4381 when we have a C++ qualified name.
4382
db2b9fdd
PA
43832012-02-10 Pedro Alves <palves@redhat.com>
4384
4385 * inferior.c (inferior_pid_to_str): New.
4386 (print_inferior, inferior_command): Use it.
4387
12cd34f3
PA
43882012-02-10 Pedro Alves <palves@redhat.com>
4389
4390 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4391 the test CFLAGS.
4392 * configure: Regenerate.
4393
e871429d
JK
43942012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4395
4396 * linespec.c (decode_line_internal): Fix comment correctness.
4397
1916efaf
PA
43982012-02-09 Valery Khromov <valery.khromov@gmail.com>
4399
4400 PR gdb/12953
4401 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4402 * amd64bsd-nat.c: Add support for debug registers (adapted from
4403 i386bsd-nat.c).
4404 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4405 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4406 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4407 (amd64bsd_dr_get_control): New functions.
4408 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4409 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4410 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4411 watchpoints initialization.
4412 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4413
f4859d94
JK
44142012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4415
4416 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4417 flds_bnds.fields.
4418 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4419
c56a97f9
JK
44202012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4421
4422 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4423
1a119f36
JB
44242012-02-08 Joel Brobecker <brobecker@adacore.com>
4425
4426 * language.h (symbol_name_cmp_ftype): Renames
4427 symbol_name_match_p_ftype.
4428 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4429 la_get_symbol_name_match_p.
4430 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4431 ada_get_symbol_name_match_p. Update comment.
4432 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4433 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4434 Renames symbol_name_match_p. Update field type.
4435 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4436 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4437 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4438 "la_get_symbol_name_cmp" in comments.
4439 * language.c: Likewise.
4440
c71bb1cf
RO
44412012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4442
4443 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4444 %eflags offset.
4445 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4446 (amd64_sol2_gregset32_reg_offs): Likewise.
4447
4b2d20a5
TG
44482012-02-08 Joel Brobecker <brobecker@adacore.com>
4449
4450 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4451 of the returned BFD is allocated by GDB.
4452
f0823d2c
TT
44532012-02-07 Tom Tromey <tromey@redhat.com>
4454
4455 PR python/12027:
4456 * python/python-internal.h (frame_object_type): Declare.
4457 * python/py-symbol.c (sympy_needs_frame): New function.
4458 (sympy_value): New function.
4459 (symbol_object_getset): Add "needs_frame".
4460 (symbol_object_methods): Add "value".
4461 * python/py-frame.c (frame_object_type): No longer static.
4462
64e7d9dd
TT
44632012-02-07 Tom Tromey <tromey@redhat.com>
4464
4465 PR python/13599:
4466 * python/py-symbol.c (sympy_line): New function.
4467 (symbol_object_getset): Add "line".
4468
1d6b2d2b
TT
44692012-02-07 Tom Tromey <tromey@redhat.com>
4470
4471 * charset.c (find_charset_names): Check 'in' against NULL.
4472
0d5cff50
DE
44732012-02-06 Doug Evans <dje@google.com>
4474
4475 * gdbtypes.h (struct main_type): Change type of name,tag_name,
4476 and fields.name members from char * to const char *. All uses updated.
4477 (struct cplus_struct_type): Change type of fn_fieldlists.name member
4478 from char * to const char *. All uses updated.
4479 (type_name_no_tag): Update.
4480 (lookup_unsigned_typename, lookup_signed_typename): Update.
4481 * gdbtypes.c (type_name_no_tag): Change result type
4482 from char * to const char *. All callers updated.
4483 (lookup_unsigned_typename, lookup_signed_typename): Change type of
4484 name parameter from char * to const char *.
4485 * symtab.h (struct cplus_specific): Change type of demangled_name
4486 member from char * to const char *. All uses updated.
4487 (struct general_symbol_info): Change type of name and
4488 mangled_lang.demangled_name members from char * to const char *.
4489 All uses updated.
4490 (symbol_get_demangled_name, symbol_natural_name): Update.
4491 (symbol_demangled_name, symbol_search_name): Update.
4492 * symtab.c (symbol_get_demangled_name): Change result type
4493 from char * to const char *. All callers updated.
4494 (symbol_natural_name, symbol_demangled_name): Ditto.
4495 (symbol_search_name): Ditto.
4496 (completion_list_add_name): Change type of symname,sym_text,
4497 text,word parameters from char * to const char *.
4498 (completion_list_objc_symbol): Change type of sym_text,
4499 text,word parameters from char * to const char *.
4500 * ada-lang.c (find_struct_field): Change type of name parameter
4501 from char * to const char *.
4502 (encoded_ordered_before): Similarly for N0,N1 parameters.
4503 (old_renaming_is_invisible): Similarly for function_name parameter.
4504 (ada_type_name): Change result type from char * to const char *.
4505 All callers updated.
4506 * ada-lang.h (ada_type_name): Update.
4507 * buildsym.c (hashname): Change type of name parameter
4508 from char * to const char *.
4509 * buildsym.h (hashname): Update.
4510 * dbxread.c (end_psymtab): Change type of include_list parameter
4511 from char ** to const char **.
4512 * dwarf2read.c (determine_prefix): Change result type
4513 from char * to const char *. All callers updated.
4514 * f-lang.c (find_common_for_function): Change type of name, funcname
4515 parameters from char * to const char *.
4516 * f-lang.c (find_common_for_function): Update.
4517 * f-valprint.c (list_all_visible_commons): Change type of funcname
4518 parameters from char * to const char *.
4519 * gdbarch.sh (static_transform_name): Change type of name parameter
4520 and result from char * to const char *.
4521 * gdbarch.c: Regenerate.
4522 * gdbarch.h: Regenerate.
4523 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4524 of name parameter from char * to const char *.
4525 * jv-lang.c (java_primitive_type_from_name): Ditto.
4526 (java_demangled_signature_length): Similarly for signature parameter.
4527 (java_demangled_signature_copy): Ditto.
4528 (java_demangle_type_signature): Ditto.
4529 * jv-lang.h (java_primitive_type_from_name): Update.
4530 (java_demangle_type_signature): Update.
4531 * objc-lang.c (specialcmp): Change type of a,b parameters
4532 from char * to const char *.
4533 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4534 from char * to const char *. All callers updated.
4535 * p-lang.h (is_pascal_string_type): Update.
4536 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4537 of name parameter from char * to const char *.
4538 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4539 * utils.c (fprintf_symbol_filtered): Ditto.
4540 * defs.h (fprintf_symbol_filtered): Update.
4541 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4542 * stabsread.h (end_psymtab): Update.
4543 * stack.c (find_frame_funname): Change type of funname parameter
4544 from char ** to const char **.
4545 * stack.h (find_frame_funname): Update.
4546 * typeprint.c (type_print): Change type of varstring parameter
4547 from char * to const char *.
4548 * value.h (type_print): Update.
4549 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4550 from char * to const char *. All callers updated.
4551 (xcoff_end_psymtab): Change type of include_list parameter
4552 from char ** to const char **. All callers updated.
4553 (swap_sym): Similarly for name parameter. All callers updated.
4554 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4555 Use xstrdup.
4556 (process_coff_symbol): Use xstrdup.
4557 * stabsread.c (stabs_method_name_from_physname): Renamed from
4558 update_method_name_from_physname. Change result type from void
4559 to char *. All callers updated.
4560 (read_member_functions): In has_destructor case, store name in objfile
4561 obstack instead of malloc space. In !has_stub case, fix mem leak.
4562
5579a92e
TT
45632012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
4564
4565 * configure: Rebuild.
4566 * configure.ac: Put -L../bfd and -L../libiberty at the front of
4567 LDFLAGS.
4568
9058f767
KB
45692012-02-03 Kevin Buettner <kevinb@redhat.com>
4570
4571 * configure.tgt (rl78-*-elf): New target.
4572 * rl78-tdep.c: New file.
4573
5b37825d
PW
45742012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4575
4576 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4577 and continue the loop. Add QUIT statement.
4578
e009ee71
TT
45792012-02-03 Tom Tromey <tromey@redhat.com>
4580
4581 PR gdb/13596:
4582 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4583 bfd_lookup_symbol_from_symtab.
4584 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4585 gdb_bfd_lookup_symbol_from_symtab.
4586
f7e44f65
JB
45872012-02-03 Joel Brobecker <brobecker@adacore.com>
4588
4589 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4590 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4591 symbol. Add assertion that sym2 is never NULL.
4592
2c02bd72
DE
45932012-02-02 Doug Evans <dje@google.com>
4594
4595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4596 "name" parameter to const char ** from char **. All callers updated.
4597 (find_pc_partial_function): Ditto.
4598 (cache_pc_function_name): Change type to const char * from char *.
4599 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4600 (find_pc_partial_function): Update.
4601 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4602 type of "name" parameter to const char * from char *.
4603 All uses updated.
4604 * arch-utils.c (generic_in_solib_return_trampoline): Change
4605 type of "name" parameter to const char * from char *.
4606 * arch-utils.h (generic_in_solib_return_trampoline): Update.
4607 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4608 type of "name" parameter to const char * from char *.
4609 * gdbarch.sh (in_solib_return_trampoline): Ditto.
4610 * gdbarch.c: Regenerate.
4611 * gdbarch.h: Regenerate.
4612 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4613 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4614 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4615 type of "name" parameter to const char * from char *.
4616 * skip.c (skip_function_pc): Ditto.
4617 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4618 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4619 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4620 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4621 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4622 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4623 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4624 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4625 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4626
e886a173
PA
46272012-02-02 Pedro Alves <palves@redhat.com>
4628
4629 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4630 the current inferior has no execution. Make sure the current
4631 remote process matches gdb's current inferior.
4632
c709a7c2
TT
46332012-02-02 Tom Tromey <tromey@redhat.com>
4634
4635 PR gdb/13405:
4636 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4637 read-only memory.
4638
f149aabd
TT
46392012-02-02 Tom Tromey <tromey@redhat.com>
4640
4641 PR gdb/9307:
4642 * symtab.c (lookup_language_this): Set block_found.
4643
03bef283
TT
46442012-02-01 Tom Tromey <tromey@redhat.com>
4645
4646 PR gdb/13431:
4647 * jit.c (struct jit_inferior_data): Rewrite.
4648 (struct jit_objfile_data): New.
4649 (get_jit_objfile_data): New function.
4650 (add_objfile_entry): Update.
4651 (jit_read_descriptor): Return int. Replace descriptor_addr
4652 argument with inf_data. Update. Don't call error.
4653 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
4654 descriptor here.
4655 (jit_inferior_init): Don't look up descriptor. Don't call error.
4656 (jit_reset_inferior_data_and_breakpoints)
4657 (jit_inferior_created_observer): Remove.
4658 (jit_inferior_exit_hook): Update.
4659 (jit_executable_changed_observer): Remove.
4660 (jit_event_handler): Update.
4661 (free_objfile_data): Reset inferior data if needed.
4662 (_initialize_jit): Update.
4663
f0bbc364
TT
46642012-02-01 Tom Tromey <tromey@redhat.com>
4665
4666 * jit.c (bfd_open_from_target_memory): Move higher in file.
4667
47c1316c
TG
46682012-02-01 Tristan Gingold <gingold@adacore.com>
4669
4670 * libunwind-frame.c (libunwind_load): Display message if dlopen
4671 failed.
4672
8e704927
GB
46732012-02-01 Gary Benson <gbenson@redhat.com>
4674
09c7a31f 4675 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
4676 (iterate_over_symbols): Use the above.
4677 * symtab.c (iterate_over_symbols): Likewise.
4678 * language.h (language_defn->la_iterate_over_symbols): Likewise.
4679 * ada-lang.c (ada_iterate_over_symbols): Likewise.
4680 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4681 (iterate_name_matcher): Document return values.
4682 (collect_one_symbol): Likewise.
4683 (collect_function_symbols): Likewise.
4684 (collect_symbols): Likewise.
4685
d9680e73
TT
46862012-02-01 Tom Tromey <tromey@redhat.com>
4687
4688 * ada-lang.c (resolve_subexp): Update.
4689 (ada_lookup_symbol_list): Add 'full_search' argument.
4690 (ada_iterate_over_symbols): Pass 0 as full_search argument to
4691 ada_lookup_symbol_list.
4692 (ada_lookup_encoded_symbol): Update.
4693 (get_var_value): Update.
4694 * ada-exp.y (block_lookup): Update.
4695 (write_var_or_type): Update.
4696 (write_name_assoc): Update.
4697 * ada-lang.h (ada_lookup_symbol_list): Update.
4698
72e1143f
TT
46992012-01-31 Tom Tromey <tromey@redhat.com>
4700
4701 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4702 comment.
4703
ab2d2ad3
DE
47042012-01-31 Doug Evans <dje@google.com>
4705
4706 * symtab.h: Remove outdated comment.
e9111bf7 4707 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 4708
bc884eba
JB
47092012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
4710
4711 Fix build error in Darwin port.
4712 * i386-darwin-nat.c: Include i386-nat.h.
4713
8fc3fc34
TT
47142012-01-30 Tom Tromey <tromey@redhat.com>
4715
4716 PR breakpoints/13568:
4717 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4718 argument. Check for recursive includes.
4719 (dwarf_decode_macros): Create an include hash.
4720
5d853008
ME
47212012-01-30 Michael Eager <eager@eagercon.com>
4722
4723 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4724 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 4725 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
4726 (powerpc_linux_in_plt_stub): New function.
4727 (powerpc_linux_in_dynsym_resolve_code): New function.
4728 (ppc_skip_trampoline_code): New function.
4729 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4730 Use glibc_skip_solib_resolver.
4731
40478521
JK
47322012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4733
4734 Code cleanup: Make 1440 bytes of data segment read-only.
4735 * arch-utils.c (endian_enum): Make it const char *const [].
4736 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4737 Likewise.
4738 * breakpoint.c (always_inserted_enums): Likewise.
4739 * cli/cli-cmds.c (script_ext_enums): Likewise.
4740 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4741 enumlist parameter const char *const *.
4742 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4743 const char *const *.
4744 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4745 parameter const char *const *.
4746 * cris-tdep.c (cris_modes): Make it const char *const [].
4747 * filesystem.c (target_file_system_kinds): Likewise.
4748 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4749 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4750 (can_use_displaced_stepping_enum, scheduler_enums)
4751 (exec_direction_names): Likewise.
4752 * language.c (_initialize_language): Make the type_or_range_names and
4753 case_sensitive_names variables const char *const [].
4754 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4755 * python/python.c (python_excp_enums): Likewise.
4756 * remote.c (interrupt_sequence_modes): Likewise.
4757 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4758 * serial.c (logbase_enums): Likewise.
4759 * sh-tdep.c (sh_cc_enum): Likewise.
4760 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4761 Likewise.
4762 * symtab.c (multiple_symbols_modes): Likewise.
4763 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4764 Likewise.
4765 * utils.c (internal_problem_modes): Likewise.
4766
b3b8b934
JK
47672012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4770 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4771 result.
4772
8c85a4e2
DE
47732012-01-27 Doug Evans <dje@google.com>
4774
4775 * configure.ac (with_python): Fix absolute path handling for win32.
4776 * configure: Regenerate.
4777
78d8b4d7
DE
47782012-01-26 Doug Evans <dje@google.com>
4779
eca864fe
DE
4780 * symtab.c: Whitespace cleanup, no code changes.
4781
7e082072
DE
4782 * symtab.c (lookup_symbol_in_language): Improve comment.
4783 (lookup_symbol_aux): Fix comment.
4784
7dc25483
DE
4785 * psymtab.c (add_psymbol_to_list): Result is now "void".
4786 * psympriv.h (add_psymbol_to_list): Update.
4787
78d8b4d7
DE
4788 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4789
4c63965b
JK
47902012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 Do not open script filenames twice.
4793 * cli/cli-cmds.c (source_script_from_stream): Pass to
4794 source_python_script also STREAM.
4795 * python/py-auto-load.c (source_section_scripts): Pass to
4796 source_python_script_for_objfile also STREAM.
4797 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4798 also INPUT.
4799 * python/python-internal.h (source_python_script_for_objfile): New
4800 parameter file, rename parameter file to filename.
4801 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4802 instead if !_WIN32. Update the function comment.
4803 (source_python_script, source_python_script_for_objfile)
4804 (source_python_script): New parameter file, rename parameter file to
4805 filename. Pass FILENAME to python_run_simple_file.
4806 * python/python.h (source_python_script): New parameter file, rename
4807 parameter file to filename.
4808
88f38a04
PA
48092012-01-26 Pedro Alves <palves@redhat.com>
4810
4811 * corelow.c (core_has_fake_pid): Delete.
4812 (core_close): Delete references to `core_has_fake_pid'.
4813 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4814 (core_open): Delete references to `core_has_fake_pid'.
4815 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4816 the removed global.
4817
e078317b
JB
48182012-01-26 Joel Brobecker <brobecker@adacore.com>
4819
4820 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4821 Remove language parameter from name_matcher. Adjust the comment.
4822 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4823 Remove language parameter.
4824 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4825 * linespec.c (iterate_name_matcher): Likewise.
4826 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4827 name_matcher. Adjust call accordingly.
4828 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4829 (maintenance_check_symtabs): Adjust type of parameter "fun".
4830 * psymtab.h (maintenance_check_symtabs): Likewise.
4831
74ccd7f5
JB
48322012-01-26 Joel Brobecker <brobecker@adacore.com>
4833
4834 * language.h (symbol_name_match_p_ftype): New typedef.
4835 (struct language_defn): Replace field la_symbol_name_compare
4836 by la_get_symbol_name_match_p.
4837 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4838 (ada_language_defn): Use it.
4839 * linespec.c (struct symbol_matcher_data): New type.
4840 (iterate_name_matcher): Rewrite.
4841 (iterate_over_all_matching_symtabs): Pass a pointer to
4842 a symbol_matcher_data struct to expand_symtabs_matching
4843 instead of just the lookup name.
4844 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4845 opencl-lang.c, p-lang.c, language.c: Delete field
4846 la_symbol_name_compare, and replace by NULL for new field
4847 la_get_symbol_name_match_p.
4848 * symfile.h (struct quick_symbol_functions): Update comment.
4849
5d268276
TT
48502012-01-25 Tom Tromey <tromey@redhat.com>
4851
4852 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4853 dereferencing.
4854
edcc5120
TT
48552012-01-24 Tom Tromey <tromey@redhat.com>
4856
4857 PR symtab/12406:
4858 * solib.c (update_solib_list): Update the program space's
4859 added_solibs and deleted_solibs fields.
4860 * progspace.h (struct program_space) <added_solibs,
4861 deleted_solibs>: New fields.
4862 (clear_program_space_solib_cache): Declare.
4863 * progspace.c (release_program_space): Call
4864 clear_program_space_solib_cache.
4865 (clear_program_space_solib_cache): New function.
4866 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4867 bpstat_stop_status. Use handle_solib_event.
4868 * breakpoint.c: Include gdb_regex.h.
4869 (print_solib_event): New function.
4870 (bpstat_print): Use print_solib_event.
4871 (bpstat_stop_status): Add special case for bp_shlib_event.
4872 (handle_solib_event): New function.
4873 (bpstat_what): Use handle_solib_event.
4874 (struct solib_catchpoint): New.
4875 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4876 (breakpoint_hit_catch_solib, check_status_catch_solib)
4877 (print_it_catch_solib, print_one_catch_solib)
4878 (print_mention_catch_solib, print_recreate_catch_solib): New
4879 functions.
4880 (catch_solib_breakpoint_ops): New global.
4881 (catch_load_or_unload, catch_load_command_1)
4882 (catch_unload_command_1): New functions.
4883 (internal_bkpt_check_status): Add special case for
4884 bp_shlib_event.
4885 (internal_bkpt_print_it): Use print_solib_event.
4886 (initialize_breakpoint_ops): Initialize
4887 catch_solib_breakpoint_ops.
4888 (_initialize_breakpoint): Register "catch load" and "catch
4889 unload".
4890 * breakpoint.h (handle_solib_event): Declare.
4891 * NEWS: Add entry for "catch load" and "catch unload".
4892
fa864999
TT
48932012-01-24 Tom Tromey <tromey@redhat.com>
4894
4895 * ada-lang.c: Include gdb_vecs.h.
4896 * charset.c: Include gdb_vecs.h.
4897 * tracepoint.h: Include gdb_vecs.h.
4898 * gdb_vecs.h: New file.
4899
f90263c1
TT
49002012-01-24 Pedro Alves <pedro@codesourcery.com>
4901
4902 * breakpoint.c (breakpoint_hit_catch_fork)
4903 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4904 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4905 * infrun.c (inferior_has_forked, inferior_has_vforked)
4906 (inferior_has_execd, inferior_has_called_syscall): Delete.
4907 (handle_syscall_event): Get syscall_number from the execution
4908 control state's wait status.
4909 (wait_for_inferior): Don't clear syscall_number.
4910
09ac7c10
TT
49112012-01-24 Pedro Alves <palves@redhat.com>
4912
4913 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4914 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4915 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4916 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4917 `ws' parameter.
4918 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4919 false for events other than TARGET_SIGNAL_TRAP.
4920 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4921 Add `ws' parameter.
4922 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4923 events other than TARGET_SIGNAL_TRAP.
4924 (tracepoint_breakpoint_hit): Add `ws' parameter.
4925 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4926 parameter.
4927 (bpstat_stop_status): Same.
4928 (pc_at_non_inline_function): Same.
4929 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4930 to pass the current event's waitstatus to bpstat_stop_status
4931 and pc_at_non_inline_function.
4932
86eb7e95
JK
49332012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 Code cleanup.
4936 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4937 Update the function comment for it.
4938 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4939 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4940 for STREAM.
4941
a9b3a50f
PA
49422012-01-24 Pedro Alves <palves@redhat.com>
4943
4944 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4945 outside `bs->stop' block.
4946 (bpstat_what): Rework bp_shlib_event handling.
4947 (internal_bkpt_check_status): If the breakpoint is a
4948 bp_shlib_event, then set bs->stop and bs->print if
4949 stop_on_solib_events is set.
4950
53fe1783
GB
49512012-01-24 Gary Benson <gbenson@redhat.com>
4952
4953 Delete #if 0'd out code.
4954 * stack.c (print_frame_label_vars): Remove.
4955 (catch_info): Likewise.
4956 (_initialize_stack): Remove "info catch" command.
4957 * NEWS: Mention the above.
4958
49c62f2e
PA
49592012-01-24 Pedro Alves <palves@redhat.com>
4960
4961 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4962 it.
4963 (remote_notice_new_inferior): If the remote end doesn't support
4964 the multiprocess extensions, then the PID is fake.
4965 (add_current_inferior_and_thread): New.
4966 (remote_start_remote): Use it.
4967 (extended_remote_attach_1): Adjust.
4968 (extended_remote_create_inferior_1): Use
4969 add_current_inferior_and_thread.
4970
d0d8b0c6
JK
49712012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 Fix watchpoints to be specific for each inferior.
4974 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4975 current_program_space.
4976 * i386-nat.c (i386_inferior_data_cleanup): New.
4977 (i386_inferior_data_get): Replace variable inf_data_local by an
4978 inferior_data call.
4979 (i386_use_watchpoints): Initialize i386_inferior_data.
4980 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4981 specific iterate_over_lwps.
4982
4403d8e9
JK
49832012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 Fix watchpoints across inferior fork.
4986 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4987 comment for linux_nat_iterate_watchpoint_lwps.
4988 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4989 linux_nat_iterate_watchpoint_lwps.
4990 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4991 * i386-linux-nat.c (update_debug_registers_callback): Update the
4992 comment for linux_nat_iterate_watchpoint_lwps.
4993 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4994 linux_nat_iterate_watchpoint_lwps.
4995 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4996 * i386-nat.c: Include inferior.h.
4997 (dr_mirror): Remove.
4998 (i386_inferior_data, struct i386_inferior_data)
4999 (i386_inferior_data_get): New.
5000 (i386_debug_reg_state): Use i386_inferior_data_get.
5001 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5002 (i386_insert_watchpoint, i386_remove_watchpoint)
5003 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5004 (i386_remove_hw_breakpoint): New variable state, use
5005 i386_debug_reg_state instead of DR_MIRROR.
5006 * linux-nat.c (delete_lwp): New declaration.
5007 (num_lwps): Move here from downwards.
5008 (delete_lwp_cleanup): New.
5009 (linux_child_follow_fork): Create new child_lp, call
5010 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5011 PTRACE_DETACH.
5012 (num_lwps): Move upwards.
5013 (linux_nat_iterate_watchpoint_lwps): New.
5014 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5015 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5016
2992c9a7 50172012-01-24 Joel Brobecker <brobecker@adacore.com>
5018
5019 GDB 7.4 released.
5020
e360902b
PA
50212012-01-23 Pedro Alves <palves@redhat.com>
5022
5023 * top.c (caution): Rename to ...
5024 (confirm): ... this.
5025 (show_caution): Rename to ...
5026 (show_confirm): ... this.
5027 (quit_cover): Adjust.
5028 (init_main): Adjust.
5029 * top.h (caution): Rename to ...
5030 (confirm): ... this.
5031 * utils.c (internal_vproblem, defaulted_query): Adjust.
5032
050a2e1d
PA
50332012-01-23 Pedro Alves <palves@redhat.com>
5034
5035 * top.c (caution): Update comment.
5036 (execute_command): Don't consider the current value of `caution'.
5037
77a35dd8
JK
50382012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5039
5040 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
5041
a71b5a38
UW
50422012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5043
5044 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5045 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5046 * target.c (target_fileio_pwrite): Remove buffer address from
5047 debug output.
5048 (target_fileio_pread): Likewise.
5049
d99bd577
UW
50502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5051
5052 * NEWS: Document remote "info proc" and "generate-core-file".
5053
35c2fab7
UW
50542012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5055
5056 * gdbarch.sh (find_memory_regions): New callback.
5057 * gdbarch.c, gdbarch.h: Regenerate.
5058
5059 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
5060 callback before falling back to target method.
5061
5062 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
5063 (linux_target_install_ops): No longer install it.
5064
5065 * linux-tdep.c (linux_find_memory_regions): New function.
5066 (linux_init_abi): Install it.
5067
6432734d
UW
50682012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5069
5070 * gdbarch.sh (make_corefile_notes): New architecture callback.
5071 * gdbarch.c: Regenerate.
5072 * gdbarch.h: Likewise.
5073
5074 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
5075 before target_make_corefile_notes. If NULL is returned, the
5076 target does not support core file generation.
5077
5078 * linux-nat.c: Include "linux-tdep.h".
5079 (find_signalled_thread, find_stop_signal): Remove.
5080 (linux_nat_do_thread_registers): Likewise.
5081 (struct linux_nat_corefile_thread_data): Likewise.
5082 (linux_nat_corefile_thread_callback): Likewise.
5083 (iterate_over_spus): Likewise.
5084 (struct linux_spu_corefile_data): Likewise.
5085 (linux_spu_corefile_callback): Likewise.
5086 (linux_spu_make_corefile_notes): Likewise.
5087 (linux_nat_collect_thread_registers): New function.
5088 (linux_nat_make_corefile_notes): Replace contents by call to
5089 linux_make_corefile_notes passing linux_nat_collect_thread_registers
5090 as native-only callback.
5091
5092 * linux-tdep.h: Include "bfd.h".
5093 (struct regcache): Add forward declaration.
5094 (linux_collect_thread_registers_ftype): New typedef.
5095 (linux_make_corefile_notes): Add prototype.
5096 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
5097 "regset.h", and "elf-bfd.h".
5098 (find_signalled_thread, find_stop_signal): New functions.
5099 (linux_spu_make_corefile_notes): Likewise.
5100 (linux_collect_thread_registers): Likewise.
5101 (struct linux_corefile_thread_data): New data structure.
5102 (linux_corefile_thread_callback): New funcion.
5103 (linux_make_corefile_notes): Likewise.
5104 (linux_make_corefile_notes_1): Likewise.
5105 (linux_init_abi): Install it.
5106
3030c96e
UW
51072012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5108
5109 * gdbarch.sh (info_proc): New callback.
5110 * gdbarch.c, gdbarch.h: Regenerate.
5111
5112 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
5113 before falling back to the target info_proc callback.
5114
5115 * linux-nat.c: Do not include "cli/cli-utils.h".
5116 (linux_nat_info_proc): Remove.
5117 (linux_target_install_ops): No longer install it.
5118
5119 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
5120 (read_mapping): New function.
5121 (linux_info_proc): Likewise.
5122 (linux_init_abi): Install it.
5123
145b16a9
UW
51242012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5125
5126 * defs.h (enum info_proc_what): Moved here from linux-nat.c
5127 * infcmd.c: (info_proc_cmd_1): New function.
5128 (info_proc_cmd): New function, moved here from equivalent routine
5129 orignally in linux-nat.c.
5130 (info_proc_cmd_mappings): Likewise.
5131 (info_proc_cmd_stat): Likewise.
5132 (info_proc_cmd_status): Likewise.
5133 (info_proc_cmd_cwd): Likewise.
5134 (info_proc_cmd_cmdline): Likewise.
5135 (info_proc_cmd_exe): Likewise.
5136 (info_proc_cmd_all): Likewise.
5137 (_initialize_infcmd): Install "info proc" command and subcommands.
5138
5139 * target.h (struct target_ops): Add to_info_proc.
5140 (target_info_proc): Add prototype.
5141 * target.c (target_info_proc): New function.
5142
5143 * procfs.c (procfs_info_proc): Add prototype.
5144 (info_proc_cmd): Rename into ...
5145 (procfs_info_proc): ... this. Update argument types as appropriate
5146 for a to_info_proc implementation. Handle "what" argument.
5147 (procfs_target): Install procfs_info_proc.
5148 (_initialize_procfs): No longer install "info proc" command.
5149
5150 * linux-nat.c: (enum info_proc_what): Remove.
5151 (linux_nat_info_proc_cmd_1): Rename into ...
5152 (linux_nat_info_proc): ... this. Update argument types as appropriate
5153 for a to_info_proc implementation.
5154 (linux_nat_info_proc_cmd): Remove.
5155 (linux_nat_info_proc_cmd_mappings): Likewise.
5156 (linux_nat_info_proc_cmd_stat): Likewise.
5157 (linux_nat_info_proc_cmd_status): Likewise.
5158 (linux_nat_info_proc_cmd_cwd): Likewise.
5159 (linux_nat_info_proc_cmd_cmdline): Likewise.
5160 (linux_nat_info_proc_cmd_exe): Likewise.
5161 (linux_nat_info_proc_cmd_all): Likewise.
5162 (linux_target_install_ops): Install linux_nat_info_proc.
5163 (_initialize_linux_nat): No longer install "info proc" command
5164 and subcommands.
5165
b9e7b9c3
UW
51662012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5167
5168 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
5169 * config.in, configure: Regenerate.
5170
5171 * target.h (struct target_ops): Add to_fileio_readlink.
5172 (target_fileio_readlink): Add prototype.
5173 * target.c (target_fileio_readlink): New function.
5174
5175 * inf-child.c: Conditionally include <sys/param.h>.
5176 (inf_child_fileio_readlink): New function.
5177 (inf_child_target): Install it.
5178
5179 * remote.c (PACKET_vFile_readlink): New enum value.
5180 (remote_hostio_readlink): New function.
5181 (init_remote_ops): Install it.
5182 (_initialize_remote): Handle vFile:readlink packet type.
5183
7313baad
UW
51842012-01-20 Pedro Alves <palves@redhat.com>
5185 Ulrich Weigand <ulrich.weigand@linaro.org>
5186
5187 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
5188 * config.in, configure: Regenerate.
5189
5190 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
5191 to_fileio_pread, to_fileio_close, to_fileio_unlink.
5192 (target_fileio_open): Add prototype.
5193 (target_fileio_pwrite): Likewise.
5194 (target_fileio_pread): Likewise.
5195 (target_fileio_close): Likewise.
5196 (target_fileio_unlink): Likewise.
5197 (target_fileio_read_alloc): Likewise.
5198 (target_fileio_read_stralloc): Likewise.
5199
5200 * target.c: Include "gdb/fileio.h".
5201 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5202 (default_fileio_target): New function.
5203 (target_fileio_open): Likewise.
5204 (target_fileio_pwrite): Likewise.
5205 (target_fileio_pread): Likewise.
5206 (target_fileio_close): Likewise.
5207 (target_fileio_unlink): Likewise.
5208 (target_fileio_close_cleanup): Likewise.
5209 (target_fileio_read_alloc_1): Likewise.
5210 (target_fileio_read_alloc): Likewise.
5211 (target_fileio_read_stralloc): Likewise.
5212
5213 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5214 <fcntl.h>, and <unistd.h>.
5215 (inf_child_fileio_open_flags_to_host): New function.
5216 (inf_child_errno_to_fileio_error): Likewise.
5217 (inf_child_fileio_open): Likewise.
5218 (inf_child_fileio_pwrite): Likewise.
5219 (inf_child_fileio_pread): Likewise.
5220 (inf_child_fileio_close): Likewise.
5221 (inf_child_fileio_unlink): Likewise.
5222 (inf_child_target): Install to_fileio routines.
5223
5224 * remote.c (init_remote_ops): Install to_fileio routines.
5225
901f9912
UW
52262012-01-20 Pedro Alves <palves@redhat.com>
5227 Ulrich Weigand <ulrich.weigand@linaro.org>
5228
5229 * remote.c (remote_multi_process_p): Only check for multi-process
5230 protocol feature, do not check for extended protocol.
5231 (remote_supports_multi_process): Check for extended protocol here.
5232 (set_general_process): Likewise.
5233 (extended_remote_kill): Likewise.
5234 (remote_pid_to_str): Likewise.
5235 (remote_query_supported): Always query multiprocess mode.
5236
e714e1bf
UW
52372012-01-20 Pedro Alves <palves@redhat.com>
5238 Ulrich Weigand <ulrich.weigand@linaro.org>
5239
5240 * inferior.h (struct inferior): Add fake_pid_p.
5241 * inferior.c (exit_inferior_1): Clear fake_pid_p.
5242 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5243 magic_null_ptid since the remote side doesn't provide a real PID.
5244
50897289
TT
52452012-01-19 Tom Tromey <tromey@redhat.com>
5246
5247 * NEWS: Combine the two Python sections.
5248
1afc2033
JK
52492012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5250
5251 * target.h (target_close): Update comment on the target's unpush state.
5252
305436e0
PA
52532012-01-19 Pedro Alves <palves@redhat.com>
5254
5255 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5256 linux_nat_async directly instead of going through the target
5257 vector.
5258 * target.c (unpush_target): Close target after unpushing it, not
5259 before.
5260
49323895
GB
52612012-01-19 Gary Benson <gbenson@redhat.com>
5262
5263 * mdebugread.c (sort_blocks): Replace integer constants with ones
5264 derived from FIRST_LOCAL_BLOCK.
5265
1db33378
PP
52662012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
5267 Jan Kratochvil <jan.kratochvil@redhat.com>
5268
5269 PR gdb/9538
5270 * symfile.c (find_separate_debug_file): New function.
5271 (terminate_after_last_dir_separator): Likewise.
5272 (find_separate_debug_file_by_debuglink): Also try realpath.
5273 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5274 * configure: Regenerate.
5275 * config.in: Regenerate.
5276
f83d8a90
DE
52772012-01-18 Doug Evans <dje@google.com>
5278
5279 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5280 (main.o): Remove rule.
5281 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5282 (--with-sysroot): Rewrite.
5283 * configure: Regenerate.
5284 * config.in: Regenerate.
5285
2dbca4d6
SDJ
52862012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5287
5288 * parse.c (initialize_expout): New function.
5289 (reallocate_expout): Likewise.
5290 (parse_exp_in_context): Use `initialize_expout' and
5291 `reallocate_expout' when appropriate.
5292
0695b514
PA
52932012-01-18 Pedro Alves <palves@redhat.com>
5294
5295 * record.c (struct record_breakpoint, record_breakpoint_p)
5296 (record_breakpoints): New.
5297 (record_insert_breakpoint, record_remove_breakpoint): Manage
5298 record breakpoints list. Only remove breakpoints from the
5299 inferior if they had been inserted there in the first place.
5300
136e1c30
DE
53012012-01-17 Doug Evans <dje@google.com>
5302
5303 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5304 if we know we don't have a file name to look for.
5305
c0bf857d
PA
53062012-01-17 Pedro Alves <palves@redhat.com>
5307
5308 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5309 the frame's stop reason is UNWIND_UNAVAILABLE.
5310
b486de60
JK
53112012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5312
5313 Fix compilation error.
5314 * m2-exp.y (yyerror): Use ANSI C prototype.
5315
d04550a6
SDJ
53162012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5317
5318 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5319 (growbuf_by_size): Likewise.
5320 (yyerror): Likewise.
5321 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5322 (modblock): Remove variable (was #if 0'ed).
5323 (parse_number): Convert prototype from K&R to ANSI C.
5324 (yyerror): Likewise.
5325 * objc-exp.y (parse_number): Likewise.
5326 (yyerror): Likewise.
5327 (yylex): Remove #if 0'ed code.
5328 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5329 (yyerror): Likewise.
5330
4aac40c8
TT
53312012-01-16 Tom Tromey <tromey@redhat.com>
5332
5333 * NEWS: Add item.
5334 * symtab.h (compare_filenames_for_search): Declare.
5335 * symtab.c (compare_filenames_for_search): New function.
5336 (iterate_over_some_symtabs): Use it.
5337 * symfile.h (struct quick_symbol_functions)
5338 <map_symtabs_matching_filename>: Change spec.
5339 * psymtab.c (partial_map_symtabs_matching_filename): Use
5340 compare_filenames_for_search. Update for new spec.
5341 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5342 compare_filenames_for_search. Update for new spec.
5343 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5344
cafec441
TT
53452012-01-16 Tom Tromey <tromey@redhat.com>
5346
5347 PR python/13281:
5348 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5349 (struct main_type) <flag_flag_enum>: New field.
5350 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5351 * NEWS: Add entries.
5352 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5353 enums.
5354 * python/lib/gdb/printing.py (_EnumInstance): New class.
5355 (FlagEnumerationPrinter): Likewise.
5356
983af33b
SDJ
53572012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5358
5359 * breakpoint.c (create_sals_from_address_default): New function.
5360 (create_breakpoints_sal_default): Likewise.
5361 (decode_linespec_default): Likewise.
5362 (is_marker_spec): Removed.
5363 (strace_marker_p): New function.
5364 (init_breakpoint_sal): Using `strace_marker_p' instead of
5365 `is_marker_spec'.
5366 (create_breakpoint): Call method `create_sals_from_address' from
5367 breakpoint_ops, replacing code that created SALs conditionally
5368 on the type of the breakpoint. Call method `create_breakpoints_sal',
5369 replacing code that created breakpoints conditionally on the type
5370 wanted.
5371 (base_breakpoint_create_sals_from_address): New function.
5372 (base_breakpoint_create_breakpoints_sal): Likewise.
5373 (base_breakpoint_decode_linespec): Likewise.
5374 (base_breakpoint_ops): Add methods
5375 `base_breakpoint_create_sals_from_address',
5376 `base_breakpoint_create_breakpoints_sal' and
5377 `base_breakpoint_decode_linespec'.
5378 (bkpt_create_sals_from_address): New function.
5379 (bkpt_create_breakpoints_sal): Likewise.
5380 (bkpt_decode_linespec): Likewise.
5381 (tracepoint_create_sals_from_address): Likewise.
5382 (tracepoint_create_breakpoints_sal): Likewise.
5383 (tracepoint_decode_linespec): Likewise.
5384 (strace_marker_create_sals_from_address): Likewise.
5385 (strace_marker_create_breakpoints_sal): Likewise.
5386 (strace_marker_decode_linespec): Likewise.
5387 (strace_marker_breakpoint_ops): New variable.
5388 (addr_string_to_sals): Remove `marker_spec'. Call method
5389 `decode_linespec' from breakpoint_ops, replacing code that decoded
5390 an address string into a SAL. Use `strace_marker_p' instead of
5391 `marker_spec'.
5392 (strace_command): Decide whether we are dealing with a static
5393 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5394 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5395 * breakpoint.h (linespec_result, linespec_sals): New forward
5396 declarations.
5397 (breakpoint_ops) <create_sals_from_address>,
5398 <create_breakpoints_sal>, <decode_linespec>: New methods.
5399
4795f398
DE
54002012-01-14 Doug Evans <dje@google.com>
5401
5402 * NEWS: Update text for "maint set python print-stack".
5403 It is deprecated in gdb 7.4 and deleted in 7.5.
5404
ee5106fe
EZ
54052012-01-13 Eli Zaretskii <eliz@gnu.org>
5406
5407 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5408 including curses.h.
5409
b161e06f
JK
54102012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5411
5412 * configure: Regenerate.
5413 * config.in: Regenerate.
5414
85254831
KS
54152012-01-12 Keith Seitz <keiths@redhat.com>
5416
5417 PR mi/10586
5418 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5419 (ANONYMOUS_UNION_NAME): Define.
5420 (is_path_expr_parent): New function.
5421 (get_path_expr_parent): New function.
5422 (is_anonymous_child): New function.
5423 (create_child_with_value): If the child is anonymous and without
5424 a name, assign an object name to it.
5425 (c_describe_child): Use get_path_expr_parent to determine
5426 the parent expression.
5427 If there field represents an anonymous struct or union and
5428 has no name, set an appropriate display name and expression.
5429 (cplus_describe_child): Likewise.
5430
620fa63a
PA
54312012-01-12 Pedro Alves <palves@redhat.com>
5432
5433 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5434 available when %ebp is found to be zero (outermost).
5435
2efa2c79
AT
54362012-01-11 Andreas Tobler <andreast@fgznet.ch>
5437
5438 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5439 an internal gdb_static_assert.
5440 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5441
88e7d25d
TT
54422012-01-11 Tom Tromey <tromey@redhat.com>
5443
5444 PR gdb/9598:
5445 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5446 catch" and "catch throw".
5447
72384ba3
PH
54482012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5449
5450 * blockframe.c (block_innermost_frame): Start search from selected
5451 frame, if present, or otherwise the current frame.
5452
5453 * c-exp.y (variable): Update innermost_block for
5454 'block COLONCOLON NAME' clause.
5455 * m2-exp.y (variable): Ditto.
5456 * objc-exp.y (variable): Ditto.
5457
065a711f
TT
54582012-01-10 Tom Tromey <tromey@redhat.com>
5459
5460 PR python/13199:
5461 * python/python.c (finish_python_initialization): Set sys.argv.
5462
f3f5162e
DE
54632012-01-10 Doug Evans <dje@google.com>
5464
5465 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
5466 "want_line_info". All callers updated.
5467 (dwarf_decode_lines_1): New function.
5468 (handle_DW_AT_stmt_list): Add function comment.
5469 New arg "want_line_info". All callers updated.
5470 (read_file_scope,read_type_unit_scope): Move comment from
5471 handle_DW_AT_stmt_list to here.
5472
9934703b
JK
54732012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5474
5475 Fix regression after libiberty/ update for GCC PR 6057 and others.
5476 * c-exp.y (operator) <OPERATOR DELETE>
5477 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5478 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5479 (make_builtin_type, make_name): New variable i, add gdb_assert.
5480 (operator) <OPERATOR NEW>: Update ARGS to 3.
5481 (operator) <OPERATOR DELETE>: Add trailing space.
5482 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5483 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5484 * cp-support.c (cp_canonicalize_string): Check NULL from
5485 cp_comp_to_string, call warning and return.
5486
06b9f45f
JK
54872012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5488
5489 Fix duplicate .o files after omitting libbfd.a.
5490 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5491 (SFILES): Add corelow.c.
5492 (COMMON_OBS): Add corelow.o.
5493 (ALLDEPFILES): Remove corelow.c.
5494 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5495 * config/alpha/alpha-osf3.mh: Likewise.
5496 * config/alpha/fbsd.mh: Likewise.
5497 * config/arm/nbsdaout.mh: Likewise.
5498 * config/arm/nbsdelf.mh: Likewise.
5499 * config/i386/i386gnu.mh: Likewise.
5500 * config/ia64/hpux.mh: Likewise.
5501 * config/ia64/linux.mh: Likewise.
5502 * config/m32r/linux.mh: Likewise.
5503 * config/m68k/linux.mh: Likewise.
5504 * config/mips/irix5.mh: Likewise.
5505 * config/mips/irix6.mh: Likewise.
5506 * config/pa/hpux.mh: Likewise.
5507 * config/pa/linux.mh: Likewise.
5508 * config/powerpc/aix.mh: Likewise.
5509 * config/sparc/linux.mh: Likewise.
5510 * config/sparc/linux64.mh: Likewise.
5511 * config/sparc/sol2.mh: Likewise.
5512 * config/vax/vax.mh: Likewise.
5513 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5514 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5515 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5516 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5517 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5518 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5519 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5520 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5521 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5522 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5523 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5524 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5525 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5526 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5527 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5528 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5529 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5530 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5531 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5532 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5533 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5534 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5535 corelow.o from gdb_target_obs.
5536 * corefile.c (core_target): Update the comment on NULL value.
5537 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5538 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5539 MATCHES. Drop YUMMY set on NULL.
5540 (core_close): Do not call exit_inferior_silent on zero PID. Do not
5541 reclaim CORE_DATA if it is already NULL.
5542
34365054
DE
55432012-01-09 Doug Evans <dje@google.com>
5544
5545 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5546 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5547
696166a3
KS
55482012-01-09 Keith Seitz <keiths@redhat.com>
5549
5550 * breakpoint.c (wrapper.h): Don't include.
5551
8e7b59a5
KS
55522012-01-09 Keith Seitz <keiths@redhat.com>
5553
5554 * Makefile.in (SFILES): Remove wrapper.c.
5555 (HFILES_NO_SRCDIR): Remove wrapper.h.
5556 (COMMON_OBS): Remove wrapper.o.
5557 * cli/cli-interp.c: Don't inlude wrapper.h.
5558 * corelow.c: Likewise.
5559 (core_open): Replace gdb_target_find_new_threads with
5560 TRY_CATCH around target_find_new_threads.
5561 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5562 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5563 * varobj.c (varobj_create): Likewise for parse_exp_1 and
5564 evaluate_expression.
5565 (varobj_set_value): Likewise for evaluate_expression and
5566 value_assign.
5567 (install_new_variable): Likewise for value_fetch_lazy.
5568 (adjust_value_for_child_access): Likewise for value_ind.
5569 (c_describe_child): Likewise for value_subscript and
5570 value_ind.
5571 (c_value_of_root): Likewise for evaluate_expression.
5572 * wrapper.c: Remove.
5573 * wrapper.h: Remove.
5574
1a4eeb98
DE
55752012-01-09 Doug Evans <dje@google.com>
5576
9ff913ba
DE
5577 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5578 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
5579 "abfd" args with "section". All callers updated.
5580 Error checking code moved ...
5581 (error_check_comp_unit_head): ... here. New function.
5582 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5583 Delete arg "abfd". New arg "type_offset". All callers updated.
5584 (create_debug_types_hash_table): Simplify by using
5585 read_and_check_type_unit_head.
5586
1a4eeb98
DE
5587 * parser-defs.h (namecopy): Delete.
5588 * parse.c (namecopy, namecopy_size): Move into copy_name.
5589
2e6af8c0
JK
55902012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5591
5592 Partially fix duplicate .o files after omitting libbfd.a.
5593 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5594 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5595 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5596 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5597 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5598 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5599 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5600
9f2f828a
PA
56012012-01-09 Pedro Alves <palves@redhat.com>
5602
5603 * MAINTAINERS: Update my email address.
5604
4d72c0bc
DE
56052012-01-08 Doug Evans <dje@google.com>
5606
d467dd73
DE
5607 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5608 n_type_units. Rename type_comp_units to all_type_units.
5609 All uses updated.
5610 (add_signatured_type_cu_to_table): Renamed from
5611 add_signatured_type_cu_to_list. All callers updated.
5612
4d72c0bc
DE
5613 * gdbtypes.h (struct cplus_struct_type): Delete member
5614 nfn_fields_total. All uses removed.
5615
21b2bd31
DE
56162012-01-06 Doug Evans <dje@google.com>
5617
5618 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5619 to top of file.
5620 (dwarf2_find_comp_unit): Delete.
5621 (process_psymtab_comp_unit): Make result "void".
5622 Delete args buffer, info_ptr, buffer_size, and replace with
5623 "section". All callers updated.
5624 (dwarf2_build_psymtabs_hard): Simplify.
5625
bfd189b1
SDJ
56262012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
5627 Thiago Jung Bauermann <bauerman@br.ibm.com>
5628
5629 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5630 before `struct gdb_exception'.
5631 * breakpoint.c (update_global_location_list_nothrow)
5632 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5633 * cp-abi.c (value_rtti_type): Likewise.
5634 * cp-support.c (cp_validate_operator): Likewise.
5635 * infrun.c (insert_exception_resume_breakpoint)
5636 (check_exception_resume, keep_going): Likewise.
5637 * mi-interp.c (mi_breakpoint_created)
5638 (mi_breakpoint_modified): Likewise.
5639 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5640 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5641 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5642
6b07635f
DE
56432012-01-05 Doug Evans <dje@google.com>
5644
0b30b85c
DE
5645 * dwarf2read.c (statement_prologue): Delete, unused.
5646
98714339
DE
5647 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5648 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5649
6b07635f
DE
5650 * dwarf2read.c (comp_unit_header): Delete, unused.
5651
761f4555
UW
56522012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
5653
5654 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5655 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5656
2ca0b532
PA
56572012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
5658
5659 * infrun.c (normal_stop): Don't skip calling the normal_stop
5660 observers if the thread was doing a multi-step, but stopped for
5661 some reason other than stepping.
5662
50aeff07
PA
56632012-01-05 Pedro Alves <alves.ped@gmail.com>
5664
5665 * cli/cli-decode.h: Add comments.
5666 (CMD_LIST_AMBIGUOUS): Moved to command.h
5667 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5668 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5669 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5670 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5671 (add_com, add_com_alias, add_info, add_info_alias)
5672 (complete_on_cmdlist, complete_on_enum, help_list): Remove
5673 declarations.
5674 * command.h: Add and adjust comments.
5675 (CMD_LIST_AMBIGUOUS): Moved here.
5676 (help_cmd, help_cmd_list): Delete declarations.
5677
5953832c
DE
56782012-01-04 Doug Evans <dje@google.com>
5679
e5fe5e75
DE
5680 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5681 All callers updated.
5682 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5683 Replace all arguments with "per_cu". All callers updated.
5684
28dee7f5
DE
5685 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5686
23745b47
DE
5687 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5688 New arg "per_cu". All callers updated.
5689
5953832c
DE
5690 Delete #if 0'd out code.
5691 * language.c (binop_result_type): Delete.
5692 (simple_type, ordered_type, same_type, integral_type): Delete.
5693 (numeric_type, character_type, string_type, boolean_type): Delete.
5694 (float_type, structured_type): Delete.
5695 * language.h: Update.
5696
0f5b7562
TT
56972012-01-04 Tom Tromey <tromey@redhat.com>
5698
5699 * python/py-value.c (valpy_binop): Initialize 'res_val'.
5700
78218f56
JB
57012012-01-04 Joel Brobecker <brobecker@adacore.com>
5702
5703 * corefile.c (close_exec_file): Delete.
5704 (reopen_exec_file): Remove commented out code that seems related
5705 to close_exec_file, which is being deleted here.
5706 * inferior.h (close_exec_file): Delete.
5707 * fork-child.c (fork_inferior): Remove call to fork_inferior.
5708
0fcd72ba
JB
57092012-01-04 Joel Brobecker <brobecker@adacore.com>
5710
5711 * ada-lang.c: #include "cli/cli-utils.h".
5712 (get_selections): Use skip_spaces.
5713 (ada_get_next_arg): Use skip_spaces and skip_to_space.
5714 (catch_ada_exception_command_split): Use skip_spaces.
5715 (ada_decode_assert_location): Likewise.
5716
1dabb4c4
JB
57172012-01-04 Joel Brobecker <brobecker@adacore.com>
5718
5719 * linespec.c (decode_line_internal): Check for C++ or Java
5720 compound constructs only if the current language is C, C++
5721 or Java.
5722
5931a2fa
JK
57232012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5724
5725 Revert:
5726 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5727 Joel Brobecker <brobecker@adacore.com>
5728 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5729 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5730 3 times.
5731 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5732 fall through into AT_ENTRY_POINT.
5733 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5734 DUMMY_ADDR with it.
5735 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5736 PPC_INSN_SIZE skip to 3 times.
5737
1a2da5ee
JB
57382012-01-04 Joel Brobecker <brobecker@adacore.com>
5739
5740 * linespec.c (add_minsym): Preserve function descriptors.
5741
8645ff69
UW
57422012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5743
5744 * breakpoint.c (all_locations_are_pending): Consider locations
5745 in program spaces executing during startup pending as well.
5746
0b302171
JB
57472012-01-04 Joel Brobecker <brobecker@adacore.com>
5748
5749 Copyright year update in most files of the GDB Project.
5750
8ba098ad
JB
57512012-01-04 Joel Brobecker <brobecker@adacore.com>
5752
5753 * copyright.sh: Delete.
5754 * copyright.py: Rewrite.
5755
09c01c30
JB
57562012-01-04 Joel Brobecker <brobecker@adacore.com>
5757
5758 * gnulib/extra/update-copyright: New file, imported from gnulib.
5759
3c36c0af
JB
57602012-01-04 Joel Brobecker <brobecker@adacore.com>
5761
5762 * README (Copyright and License Notices): New section.
5763
888fe1e1
TT
57642012-01-03 Tom Tromey <tromey@redhat.com>
5765
5766 PR python/12533:
5767 * python/py-value.c (valpy_dereference, valpy_get_address
5768 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5769 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5770 (valpy_absolute, valpy_richcompare): Free intermediate values.
5771
6e681866
JB
57722011-01-03 Joel Brobecker <brobecker@adacore.com>
5773
5774 * ada-lang.c: Reformat the copyright notice.
5775
0cd09acb
JK
57762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5777
5778 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5779 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5780 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5781 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5782 Revert this part of:
5783 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5784 Build gdb directly from *.o files not using libgdb.a.
5785 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5786
12c3e59c
JB
57872012-01-02 Joel Brobecker <brobecker@adacore.com>
5788
5789 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5790 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5791 Reformat the copyright header.
5792
11bf1490
JK
57932012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5794
5795 Revert this part of:
5796 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 Remove the gdbtui binary.
5798 * gdb.c (main): Remove args.interpreter_p initialization.
5799 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5800 * main.h (struct captured_main_args): Remove interpreter_p.
5801
1fef196f
JB
58022012-01-02 Joel Brobecker <brobecker@adacore.com>
5803
5804 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5805
67827812
JB
58062012-01-02 Joel Brobecker <brobecker@adacore.com>
5807
5808 * top.c (print_gdb_version): Update copyright year.
5809
a4d0b831
YQ
58102012-01-02 Yao Qi <yao@codesourcery.com>
5811
5812 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5813
b5914469
JK
58142012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 Joel Brobecker <brobecker@adacore.com>
5816
5817 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5818 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5819 3 times.
5820 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5821 fall through into AT_ENTRY_POINT.
5822 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5823 DUMMY_ADDR with it.
5824 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5825 PPC_INSN_SIZE skip to 3 times.
5826
8da828f7
JK
58272012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5828
5829 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5830 the return value.
5831 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5832
8574e74b
JK
58332012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5834
5835 Build gdb directly from *.o files not using libgdb.a.
5836 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5837 (COMMON_OBS): Remove solib-target.o.
5838 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5839 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5840 (LIBGDB_OBS, libgdb.a): Move it above.
5841 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5842 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5843 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5844 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5845 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5846 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5847 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5848 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5849 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5850 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5851 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5852 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5853 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5854 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5855 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5856 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5857 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5858 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5859 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5860 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5861 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5862 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5863 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5864 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5865 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5866 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5867 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5868
217bff3e
JK
58692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5870
5871 Remove the gdbtui binary.
5872 * .gitignore (/gdbtui): Remove.
5873 * Makefile.in (TUI): Remove.
5874 (SUBDIR_TUI_OBS): Remove tui-main.o.
5875 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5876 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5877 (tui-main.o): Remove.
5878 (all_object_files): Remove tui-main.o.
5879 * NEWS: New note for the gdbtui removal.
5880 * configure: Rebuilt.
5881 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5882 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5883 CONFIG_UNINSTALL respectively.
5884 * gdb.c (main): Remove args.interpreter_p initialization.
5885 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5886 * main.h (struct captured_main_args): Remove interpreter_p.
5887 * tui/tui-main.c: Remove.
5888
9cdd5dbd
DE
58892012-01-01 Doug Evans <dje@google.com>
5890
bb5ed363
DE
5891 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5892 (dwarf2_physname, read_import_statement): Ditto.
5893 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5894 (process_structure_scope read_subroutine_type): Ditto.
5895 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5896 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5897 (dwarf2_fetch_die_location_block): Ditto.
5898 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5899
a0f42c21
DE
5900 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5901 All callers updated.
5902 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5903 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5904 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5905
2dc860c0
DE
5906 * dwarf2read.c (load_cu): Move assert to more useful location.
5907
68dc6402
DE
5908 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5909 All callers updated.
5910
9cdd5dbd
DE
5911 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5912 (dwarf2_elf_names): Minor reformat.
5913 (dwarf2_per_cu_data): Tweak comment.
5914 (dwarf2_read_section): Fix comment.
5915 (create_all_comp_units): Fix comment.
5916 (load_full_comp_unit): Fix comment.
5917 (process_full_comp_unit): Fix comment.
5918 (read_signatured_type): Fix comment.
5919
0c10e53e 5920For older changes see ChangeLog-2011.
c906108c
SS
5921\f
5922Local Variables:
5923mode: change-log
5924left-margin: 8
5925fill-column: 74
5926version-control: never
57da7796 5927coding: utf-8
c906108c 5928End:
This page took 1.659229 seconds and 4 git commands to generate.