gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2
3 * frame.c: Remove one extra white space after #include
4 directive.
5
6 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9
10 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11
12 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
13 and dir commands into an if block.
14
15 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
16
17 * python/py-breakpoint (struct pybp_code): Use int instead of
18 enum type_code.
19
20 2013-02-15 Pedro Alves <pedro@codesourcery.com>
21 Hafiz Abid Qadeer <abidh@codesourcery.com>
22
23 * NEWS: Mention new field "trace-file".
24 * tracepoint.c (trace_status_mi): Output "trace-file" field.
25 (tfile_open): Record the trace file's filename in the trace
26 status.
27 (tfile_files_info): Mention the name of the trace file.
28 Check the "filename" field explicitely.
29 (trace_status_command): Explicitely check "filename" field.
30 (trace_find_command): Ditto.
31 (trace_find_pc_command): Ditto.
32 (trace_find_tracepoint_command): Ditto.
33 (trace_find_line_command): Ditto.
34 (trace_find_range_command): Ditto.
35 (trace_find_outside_command): Ditto.
36 * tracepoint.h (struct trace_status) <from_file>: Rename it
37 to "filename" and make it hold the trace file's filename
38 instead of a boolean.
39 * remote.c (remote_get_trace_status): Initialize "filename"
40 field with NULL instead of 0.
41
42 2013-02-15 Yao Qi <yao@codesourcery.com>
43
44 * remote.c: Fix a typo.
45
46 2013-02-14 Pierre Muller <muller@sourceware.org>
47
48 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
49
50 2013-02-14 Pedro Alves <palves@redhat.com>
51
52 * utils.c (savestring): Don't #undef it. Move function to
53 common/common-utils.c.
54 * common/common-utils.c: Include gdb_string.h.
55 (savestring): Move here from utils.c.
56 * common/common-utils.h (savestring): Declare.
57
58 2013-02-14 Pedro Alves <palves@redhat.com>
59
60 * utils.c (savestring): Rename parameter 'size' to 'len'.
61
62 2013-02-14 Pedro Alves <palves@redhat.com>
63 Yufeng Zhang <yufeng.zhang@arm.com>
64
65 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
66 (aarch64_inferior_data, struct aarch64_inferior_data):
67 Delete.
68 (struct aarch64_process_info): New.
69 (aarch64_process_list): New global.
70 (aarch64_find_process_pid, aarch64_add_process)
71 (aarch64_process_info_get): New functions.
72 (aarch64_inferior_data_get): Delete.
73 (aarch64_process_info_get): New function.
74 (aarch64_forget_process): New function.
75 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
76 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
77 aarch64_get_debug_reg_state.
78 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
79 instead of linux_nat_iterate_watchpoint_lwps.
80 (aarch64_linux_new_fork): New function.
81 (aarch64_linux_child_post_startup_inferior): Use
82 aarch64_forget_process instead of aarch64_init_debug_reg_state.
83 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
84 (aarch64_linux_remove_hw_breakpoint)
85 (aarch64_handle_aligned_watchpoint)
86 (aarch64_handle_unaligned_watchpoint)
87 (aarch64_linux_insert_watchpoint)
88 (aarch64_linux_remove_watchpoint)
89 (aarch64_linux_stopped_data_address): Adjust to pass the current
90 process id to aarch64_debug_reg_state.
91 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
92 linux_nat_new_fork hook, and aarch64_forget_process as
93 linux_nat_forget_process hook; remove the call to
94 register_inferior_data_with_cleanup.
95
96 2013-02-14 Pedro Alves <palves@redhat.com>
97
98 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
99 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
100 lval_memory.
101
102 2013-02-14 Pedro Alves <pedro@codesourcery.com>
103 Hafiz Abid Qadeer <abidh@codesourcery.com>
104
105 * tracepoint.h (validate_trace_state_variable_name): Declare.
106 * tracepoint.c (validate_trace_state_variable_name): New.
107 (trace_variable_command): Parse the trace state variable's name
108 without using parse_expression. Do several validations.
109 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
110 trace state variable's name with parse_expression. Validate it.
111
112 2013-02-14 Yao Qi <yao@codesourcery.com>
113
114 * infcmd.c (breakpoint_proceeded): Remove it.
115
116 2013-02-14 Yao Qi <yao@codesourcery.com>
117
118 * tracepoint.c (end_actions_pseudocommand): Make it static.
119 (while_stepping_pseudocommand): Likewise.
120 * tracepoint.h (end_actions_pseudocommand): Remove the
121 declaration.
122 (while_stepping_pseudocommand): Likewise.
123
124 2013-02-14 Yao Qi <yao@codesourcery.com>
125
126 * cli/cli-decode.c (help_cmd): Remove the declaration of
127 "cmdlist".
128 (help_all): Likewise.
129
130 2013-02-13 Pedro Alves <palves@redhat.com>
131
132 * amd64-linux-nat.c (update_debug_registers_callback):
133 Update comment.
134 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
135 iterate_over_lwps.
136 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
137 i386_debug_reg_state.
138 (amd64_linux_new_fork): New function.
139 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
140 linux_nat_new_fork hook, and i386_forget_process as
141 linux_nat_forget_process hook.
142 * i386-linux-nat.c (update_debug_registers_callback):
143 Update comment.
144 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
145 iterate_over_lwps.
146 (i386_linux_prepare_to_resume): Pass the lwp's pid to
147 i386_debug_reg_state.
148 (i386_linux_new_fork): New function.
149 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
150 linux_nat_new_fork hook, and i386_forget_process as
151 linux_nat_forget_process hook.
152 * i386-nat.c (i386_init_dregs): Delete.
153 (i386_inferior_data, struct i386_inferior_data):
154 Delete.
155 (struct i386_process_info): New.
156 (i386_process_list): New global.
157 (i386_find_process_pid, i386_add_process, i386_process_info_get):
158 New functions.
159 (i386_inferior_data_get): Delete.
160 (i386_process_info_get): New function.
161 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
162 (i386_forget_process): New function.
163 (i386_cleanup_dregs): Rewrite.
164 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
165 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
166 (i386_stopped_data_address, i386_insert_hw_breakpoint)
167 (i386_remove_hw_breakpoint): Adjust to pass the current process id
168 to i386_debug_reg_state.
169 (i386_use_watchpoints): Don't register inferior data.
170 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
171 adjust comment.
172 (i386_forget_process): Declare.
173 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
174 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
175 New static globals.
176 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
177 (add_initial_lwp): New, factored out from ...
178 (add_lwp): ... this. Don't check the number of lwps before
179 calling linux_nat_new_thread.
180 (linux_nat_iterate_watchpoint_lwps): Delete.
181 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
182 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
183 forks and vforks.
184 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
185 initial lwp.
186 (linux_nat_kill, linux_nat_mourn_inferior): Call
187 linux_nat_forget_process.
188 (linux_nat_set_new_fork, linux_nat_set_forget_process)
189 (linux_nat_forget_process): New functions.
190 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
191 type.
192 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
193 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
194 types.
195 (linux_nat_set_new_fork, linux_nat_set_forget_process)
196 (linux_nat_forget_process): New declarations.
197
198 * amd64fbsd-nat.c (super_mourn_inferior): New global.
199 (amd64fbsd_mourn_inferior): New function.
200 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
201 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
202
203 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
204
205 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
206 Adding _().
207
208 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
209
210 * aarch64-linux-nat.c (debug_reg_change_callback)
211 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
212 %s and phex().
213
214 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
215
216 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
217 with LONGEST.
218
219 2013-02-13 Pedro Alves <palves@redhat.com>
220 Hafiz Abid Qadeer <abidh@codesourcery.com>
221
222 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
223
224 2013-02-12 Tom Tromey <tromey@redhat.com>
225
226 PR symtab/11464:
227 * c-exp.y (lex_one_token): Initialize other fields of yylval on
228 NAME return.
229 (classify_inner_name): Remove 'first_name' argument, add
230 'context'. Remove unused variable.
231 (yylex): Explicitly maintain the context type. Exit loop earlier
232 if NAME result is seen.
233
234 2013-02-12 Pedro Alves <palves@redhat.com>
235
236 * amd64-darwin-tdep.c: Add (C) after Copyright.
237 * cli/cli-cmds.h: Ditto.
238 * cli/cli-decode.c: Ditto.
239 * cli/cli-decode.h: Ditto.
240 * cli/cli-dump.c: Ditto.
241 * cli/cli-dump.h: Ditto.
242 * cli/cli-interp.c: Ditto.
243 * cli/cli-logging.c: Ditto.
244 * cli/cli-script.c: Ditto.
245 * cli/cli-script.h: Ditto.
246 * cli/cli-setshow.c: Ditto.
247 * cli/cli-setshow.h: Ditto.
248 * cli/cli-utils.c: Ditto.
249 * cli/cli-utils.h: Ditto.
250 * config/alpha/nm-osf3.h: Ditto.
251 * config/djgpp/djconfig.sh: Ditto.
252 * config/i386/nm-fbsd.h: Ditto.
253 * config/i386/nm-i386gnu.h: Ditto.
254 * config/nm-linux.h: Ditto.
255 * config/nm-nto.h: Ditto.
256 * config/rs6000/nm-rs6000.h: Ditto.
257 * config/sparc/nm-sol2.h: Ditto.
258 * darwin-nat-info.c: Ditto.
259 * dfp.c: Ditto.
260 * dfp.h: Ditto.
261 * gdb-demangle.h: Ditto.
262 * i386-darwin-nat.c: Ditto.
263 * i386-darwin-tdep.c: Ditto.
264 * linux-fork.h: Ditto.
265 * m32c-tdep.c: Ditto.
266 * microblaze-linux-tdep.c: Ditto.
267 * microblaze-rom.c: Ditto.
268 * microblaze-tdep.c: Ditto.
269 * microblaze-tdep.h: Ditto.
270 * mips-linux-tdep.h: Ditto.
271 * ppc-ravenscar-thread.c: Ditto.
272 * ppc-ravenscar-thread.h: Ditto.
273 * prologue-value.c: Ditto.
274 * prologue-value.h: Ditto.
275 * ravenscar-thread.c: Ditto.
276 * ravenscar-thread.h: Ditto.
277 * sparc-ravenscar-thread.c: Ditto.
278 * sparc-ravenscar-thread.h: Ditto.
279 * tilegx-linux-tdep.c: Ditto.
280 * unwind_stop_reasons.def: Ditto.
281 * windows-nat.h: Ditto.
282 * xtensa-linux-tdep.c: Ditto.
283 * xtensa-xtregs.c: Ditto.
284 * regformats/regdat.sh: Ditto.
285 * regformats/regdef.h: Ditto.
286
287 2013-02-12 Pedro Alves <palves@redhat.com>
288
289 * break-catch-sig.c: Update copyright years.
290
291 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
292
293 Add support for a destructor for ui_out data and use it to
294 provide a ui_out destructor.
295 * ui-out.h: Declare the new ui_out destructor.
296 (ui_out_impl): Add a field for data destructor in ui_out_impl.
297 * ui-out.c (default_data_destroy): Add a default data destructor
298 which does nothing.
299 (default_ui_out_impl): Set the new data_destroy field to
300 default_data_destroy
301 (uo_data_destroy): Local function which invokes the data
302 destructor if present.
303 (clear_table): Local function which clears the table data of a
304 ui_out object.
305 (ui_out_destroy): Public function which frees a ui_out object.
306 (ui_out_table_end): Use the new clear_table function.
307 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
308 NULL.
309 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
310 to NULL.
311
312 2013-02-11 Doug Evans <dje@google.com>
313
314 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
315 (printf_decfloat): New function. Broken out from ui_printf.
316 Remove unnecessary code to shift the entire format string down.
317 (printf_pointer): New function.
318 (ui_printf): Code to print C strings, wide C strings, decfloats,
319 and pointers moved to separate functions.
320
321 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
322
323 * valops.c (value_assign): Handling bitfield offset in
324 `lval_internalvar_component' case.
325
326 2013-02-08 Doug Evans <dje@google.com>
327
328 * common/format.c (parse_format_string): Fix whitespace.
329
330 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
331
332 * stack.c (return_command): Work around uninitialized variable
333 warning.
334
335 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
336
337 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
338 number of the registers from 36 to 34.
339
340 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
341
342 * NEWS: Mention new AArch64 native and target support.
343
344 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
345
346 * MAINTAINERS (Write After Approval): Add myself.
347
348 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
349 Marcus Shawcroft <marcus.shawcroft@arm.com>
350 Nigel Stephens <nigel.stephens@arm.com>
351 Yufeng Zhang <yufeng.zhang@arm.com>
352
353 * aarch64-linux-nat.c: New file.
354 * config/aarch64/linux.mh: New file.
355 * configure.host: Add AArch64.
356 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
357
358 2013-02-07 Doug Evans <dje@google.com>
359
360 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
361 disassemble command.
362
363 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
364
365 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
366 set_gdbarch_fetch_tls_load_module_address.
367
368 2013-02-06 David S. Miller <davem@davemloft.net>
369
370 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
371 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
372 * value.c (struct_return_convention): New function.
373 (using_struct_return): Implement in terms of struct_return_convention.
374 * value.h (struct_return_convention): Declare.
375 * stack.c (return_command): Allow successful overriding of the return
376 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
377
378 2013-02-06 Tom Tromey <tromey@redhat.com>
379
380 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
381 outside of TRY_CATCH.
382
383 2013-02-06 Yao Qi <yao@codesourcery.com>
384
385 * mi/mi-interp.c: Include "tracepoint.h".
386 (mi_tsv_modified): Declare.
387 (mi_tsv_created, mi_tsv_deleted): Update declaration.
388 (mi_interpreter_init): Call observer_attach_tsv_modified.
389 (mi_tsv_modified): New.
390 (mi_tsv_created, mi_tsv_deleted): Update.
391 * tracepoint.c (trace_variable_command): Call
392 observer_notify_tsv_modified if the initial value of tsv is
393 changed.
394 (delete_trace_state_variable): Call
395 observer_notify_tsv_deleted earlier.
396 (trace_variable_command): Caller update.
397 (create_tsv_from_upload): Likewise.
398 * observer.sh: Declare "struct trace_state_variable".
399
400 * NEWS: Mention the new MI notification "=tsv-modified".
401
402 2013-02-05 Doug Evans <dje@google.com>
403
404 * completer.c (location_completer): Fix typo in comment.
405
406 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 * breakpoint.c (add_location_to_breakpoint): Insert the location with
409 ADDRESS sorted.
410
411 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
412
413 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
414 Refactor if statement to avoid trailing || operator.
415
416 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
417
418 * NEWS: Add PowerPC FreeBSD as a new native configuration.
419
420 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
421
422 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
423 * configure.host: Add powerpc*-*-freebsd* target.
424 * configure.tgt: Add target info for powerpc*-*-freebsd*.
425 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
426 * config/powerpc/fbsd.mh: New file.
427
428 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
429 Denys Vlasenko <dvlasenk@redhat.com>
430 Pedro Alves <palves@redhat.com>
431
432 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
433 (struct elf_internal_linux_prpsinfo): Forward declare.
434 * gdbarch.h, gdbarch.c: Regenerate.
435 * linux-tdep.c: Include `cli/cli-utils.h'.
436 (linux_fill_prpsinfo): New function.
437 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
438 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
439 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
440 depending on gdbarch pointer bitness.
441 * ppc-linux-tdep.c: Include elf-bfd.h.
442 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
443 on 32-bit.
444
445 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
446 Marcus Shawcroft <marcus.shawcroft@arm.com>
447 Nigel Stephens <nigel.stephens@arm.com>
448 Yufeng Zhang <yufeng.zhang@arm.com>
449
450 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
451
452 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
453 Marcus Shawcroft <marcus.shawcroft@arm.com>
454 Nigel Stephens <nigel.stephens@arm.com>
455 Yufeng Zhang <yufeng.zhang@arm.com>
456
457 * aarch64-newlib-tdep.c: New file.
458 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
459 aarch64*-*-elf.
460 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
461 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
462 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
463 * osabi.c (gdb_osabi_names): Add "Newlib".
464
465 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
466 Marcus Shawcroft <marcus.shawcroft@arm.com>
467 Nigel Stephens <nigel.stephens@arm.com>
468 Yufeng Zhang <yufeng.zhang@arm.com>
469
470 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
471 (ALLDEPFILES): Add aarch64-linux-tdep.c.
472 * aarch64-linux-tdep.c: New file.
473 * aarch64-linux-tdep.h: New file.
474 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
475 * configure.tgt: Add aarch64-none-linux-gnu.
476
477 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
478 Marcus Shawcroft <marcus.shawcroft@arm.com>
479 Nigel Stephens <nigel.stephens@arm.com>
480 Yufeng Zhang <yufeng.zhang@arm.com>
481
482 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
483 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
484 (ALLDEPFILES): Add aarch64-tdep.c.
485 * aarch64-tdep.c: New file.
486 * aarch64-tdep.h: New file.
487 * configure.tgt: Add AArch64.
488 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
489 (aarch64-expedite): New definition.
490 * features/aarch64-core.xml: New file.
491 * features/aarch64-fpu.xml: New file.
492 * features/aarch64-without-fpu.c: New file (generated).
493 * features/aarch64-without-fpu.xml: New file.
494 * features/aarch64.c: New file (generated).
495 * features/aarch64.xml: New file.
496 * regformats/aarch64-without-fpu.dat: New file (generated).
497 * regformats/aarch64.dat: New file (generated).
498
499 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
500
501 * contrib/expect-read1.c: New file.
502 * contrib/expect-read1.sh: New file.
503
504 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
505
506 * dwarf2read.c (file_file_name): New function with code from
507 file_full_name.
508 (file_full_name): Move most of the code to file_file_name.
509 (macro_start_file): Rename variable full_name to file_name and use
510 file_file_name for it. Add comp_dir parameter to new_macro_table.
511 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
512 macro_source_file->filename access by macro_source_fullname call.
513 * macroscope.c (_initialize_macroscope): Update the new_macro_table
514 caller.
515 * macrotab.c (struct macro_table): New field comp_dir.
516 (macro_include): New variables link_fullname and source_fullname.
517 Replace any macro_source_file->filename access by macro_source_fullname
518 call.
519 (macro_lookup_inclusion): Remove the partial filenames checking code.
520 (check_for_redefinition): New variables source_fullname and
521 found_key_fullname. Replace any macro_source_file->filename access by
522 macro_source_fullname call.
523 (macro_undef): New variables source_fullname and key_fullname. Replace
524 any macro_source_file->filename access by macro_source_fullname call.
525 (macro_lookup_definition): New variables retval and source_fullname.
526 Replace any macro_source_file->filename access by macro_source_fullname
527 call.
528 (foreach_macro): New variable key_fullname. Replace any
529 macro_source_file->filename access by macro_source_fullname call.
530 (foreach_macro_in_scope): New variable datum_fullname. Replace any
531 macro_source_file->filename access by macro_source_fullname call.
532 (new_macro_table): Add parameter comp_dir. Initialize T with it.
533 (macro_source_fullname): New function.
534 * macrotab.h (struct macro_source_file): Extent the filename field
535 comment.
536 (new_macro_table): New parameter comp_dir, add a comment for it.
537 (macro_source_fullname): new declaration.
538
539 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
540
541 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
542 this_real_name to outer block. Use it also for
543 compare_filenames_for_search.
544 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
545 with dw2_get_real_path for file_matcher, considering also
546 BASENAMES_MAY_DIFFER.
547 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
548
549 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
552 to the file_matcher parameter. Pass 0 to it.
553 (dwarf2_create_include_psymtab): Copy also DIRNAME.
554 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
555 NULL psymtab_to_fullname result.
556 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
557 an expected filename instead.
558 (expand_symtabs_matching_via_partial): Add basenames parameter to the
559 file_matcher parameter. Call also psymtab_to_fullname, after newly
560 considering BASENAMES_MAY_DIFFER.
561 * source.c (rewrite_source_path): Remove static.
562 * source.h (rewrite_source_path): New declaration.
563 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
564 the expand_symtabs_matching field. Comment it.
565 * symtab.c (file_matches): New function comment. Add parameter
566 basenames, implement it.
567 (search_symbols_file_matches): Add basenames parameter. Update the
568 file_matches caller.
569 (search_symbols): Match FILES also against symtab_to_fullname.
570 Optimize it for BASENAMES_MAY_DIFFER.
571
572 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
573
574 * source.c (print_source_lines_base): Print for TUI also "fullname".
575 * tui/tui-data.c (init_content_element): Change tui_locator_element
576 field to full_name.
577 * tui/tui-data.h (struct tui_locator_element): Likewise.
578 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
579 tui_update_locator_filename calls to tui_update_locator_fullname.
580 Replace symtab->filename refererence by symtab_to_fullname call.
581 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
582 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
583 field to full_name. Replace symtab->filename refererence by
584 symtab_to_fullname call.
585 (tui_show_symtab_source): Rename parameter to fullname. Change
586 tui_locator_element field to full_name.
587 * tui/tui-stack.c: Include source.h.
588 (tui_set_locator_filename): Rename the declaration to ...
589 (tui_set_locator_fullname): ... here. Rename its parameter to
590 fullname, updates its comment.
591 (tui_set_locator_info): Rename its parameter to fullname.
592 (tui_set_locator_filename): Rename the definition to ...
593 (tui_set_locator_fullname): ... here. Rename its parameter to
594 fullname, updates its comment. Change tui_locator_element field to
595 full_name.
596 (tui_set_locator_info): Rename its parameter to fullname.
597 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
598 (tui_update_locator_filename): Rename to ...
599 (tui_update_locator_fullname): ... here. Rename callee to
600 tui_set_locator_fullname.
601 (tui_show_frame_info): Replace symtab->filename refererence by
602 symtab_to_fullname call.
603 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
604 (tui_update_locator_fullname): ... here.
605 * tui/tui-winsource.c (tui_display_main): Rename the callee to
606 tui_update_locator_fullname. Replace symtab->filename refererence by
607 symtab_to_fullname call.
608 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
609 Rename the callee to tui_update_locator_fullname.
610 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
611
612 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
613
614 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
615 by symtab_to_filename_for_display calls.
616 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
617 (clear_command): New variable sal_fullname, initialize it. Replace
618 compare_filenames_for_search by filename_cmp with sal_fullname.
619 (say_where, update_static_tracepoint): Replace symtab->filename
620 refererences by symtab_to_filename_for_display calls.
621 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
622 Likewise.
623 * dwarf2read.c: Include source.h.
624 (fixup_go_packaging): Replace symtab->filename refererences by
625 symtab_to_filename_for_display calls.
626 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
627 Replace symtab->filename refererences by symtab_to_filename_for_display
628 calls.
629 (create_sals_line_offset, convert_linespec_to_sals): New variable
630 fullname, initialize it, replace symtab->filename reference by the
631 variable.
632 * linux-fork.c: Include source.h.
633 (info_checkpoints_command): Replace symtab->filename refererences by
634 symtab_to_filename_for_display calls.
635 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
636 by symtab_to_filename_for_display calls.
637 * mdebugread.c: Include source.h.
638 (psymtab_to_symtab_1): Replace symtab->filename refererences by
639 symtab_to_filename_for_display calls.
640 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
641 (mi_cmd_file_list_exec_source_files): Likewise.
642 * printcmd.c: Include source.h.
643 (build_address_symbolic): Replace symtab->filename refererences by
644 symtab_to_filename_for_display calls.
645 * psymtab.c (partial_map_symtabs_matching_filename)
646 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
647 with psymtab_to_fullname.
648 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
649 by symtab_to_filename_for_display calls.
650 (stpy_get_filename): New variable filename, initialize it, use instead
651 of symtab->filename refererences.
652 (salpy_str): Make variable filename const char *. Replace
653 symtab->filename refererences by symtab_to_filename_for_display calls.
654 * skip.c: Include source.h and filenames.h.
655 (skip_file_command): Remove const from the symtab variable. Replace
656 symtab->filename refererences by symtab_to_fullname call.
657 (function_name_is_marked_for_skip): New variables searched_for_fullname
658 and fullname. Use them to search also with symtab's fullname.
659 * source.c (find_source_lines): Replace symtab->filename refererences
660 by symtab_to_filename_for_display calls.
661 (print_source_lines_base): New variable filename, use it instead of
662 symtab->filename. Replace symtab->filename refererences by
663 symtab_to_filename_for_display calls.
664 (line_info, forward_search_command): Replace symtab->filename
665 refererences by symtab_to_filename_for_display calls.
666 (reverse_search_command): Replace symtab->filename refererences by
667 symtab_to_filename_for_display calls. New variable filename for it.
668 * stack.c (frame_info): Likewise.
669 * symmisc.c: Include source.h.
670 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
671 (maintenance_info_symtabs): Replace symtab->filename refererences by
672 symtab_to_filename_for_display calls.
673 * symtab.c (iterate_over_some_symtabs): Call
674 compare_filenames_for_search also with symtab_to_fullname.
675 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
676 symtab->filename refererences by symtab_to_filename_for_display calls.
677 (find_line_symtab): Replace symtab->filename refererences by
678 symtab_to_filename_for_display calls.
679 (file_matches): Replace filename_cmp by compare_filenames_for_search.
680 (print_symbol_info): Make the last parameter const char *. New
681 variable s_filename. Use it in the function.
682 (symtab_symbol_info): Make the last_filename variable const char *.
683 Replace symtab->filename refererences by symtab_to_filename_for_display
684 calls.
685 (rbreak_command): New variable fullname. Use it. Replace
686 symtab->filename refererence by symtab_to_filename_for_display call.
687 * tracepoint.c (set_traceframe_context, trace_find_line_command)
688 (print_one_static_tracepoint_marker): Replace symtab->filename
689 refererences by symtab_to_filename_for_display calls.
690 * tui/tui-source.c (tui_set_source_content): New variables filename and
691 s_filename. Replace symtab->filename refererences by this variable.
692 Replace other symtab->filename refererences by
693 symtab_to_filename_for_display calls.
694
695 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
696 Jan Kratochvil <jan.kratochvil@redhat.com>
697
698 Add a new variable that controls a way in which filenames are
699 displayed.
700 * NEWS (set filename-display): New entry.
701 * source.c (filename_display_basename, filename_display_relative)
702 (filename_display_absolute, filename_display_kind_names)
703 (filename_display_string, show_filename_display_string)
704 (symtab_to_filename_for_display): New.
705 (_initialize_source): Added initialization of 'filename-display'
706 variable.
707 * source.h (symtab_to_filename_for_display): Added declaration.
708 * stack.c (print_frame): Added new variable and calling of a new
709 function and condition with this variable. Changed third argument of
710 calling of a function.
711
712 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
713
714 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
715 Rename field reference filename to fullname.
716 * tui/tui-data.h (struct tui_source_info): Rename field filename to
717 fullname. New comment for it.
718 * tui/tui-source.c (tui_set_source_content): Rename field reference
719 filename to fullname. Initialize field by symtab_to_fullname now.
720 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
721 reference filename to fullname. Use symtab_to_fullname during
722 comparison.
723
724 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
725
726 Code cleanup.
727 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
728 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
729 filename to fullname. Rename variable this_name to this_fullname.
730 Lowercase FILENAME_CMP call.
731 (dw2_find_symbol_file): New comment for the returned string.
732 (dwarf2_gdb_index_functions): Rename the function to
733 dw2_expand_symtabs_with_fullname.
734 * psymtab.c (read_psymtabs_with_filename): Rename to ...
735 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
736 fullname.
737 (psym_functions): Rename the function to read_psymtabs_with_fullname.
738 * symfile.h (struct quick_symbol_functions): Rename field
739 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
740 parameter filename to fullname. Document returned string meaning for
741 find_symbol_file.
742 * symtab.c (find_line_symtab): Rename the called function to
743 expand_symtabs_with_fullname.
744
745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
746
747 Code cleanup.
748 * breakpoint.c (clear_command): Remove variable is_abs, unify the
749 call of filename_cmp with compare_filenames_for_search.
750 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
751 is_abs, unify the call of FILENAME_CMP with
752 compare_filenames_for_search. New gdb_asserts for real_path and name.
753 Unify the call of compare_filenames_for_search with FILENAME_CMP.
754 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
755 * symfile.h (struct quick_symbol_functions): Extend the comment for
756 map_symtabs_matching_filename.
757 * symtab.c (compare_filenames_for_search): Remove the function comment
758 relative path requirement. Handle absolute filenames, with a comment.
759 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
760 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
761 real_path and name. Unify the call of compare_filenames_for_search
762 with FILENAME_CMP.
763 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
764
765 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
766
767 Code cleanup.
768 * breakpoint.c (print_breakpoint_location): Replace bp_location field
769 source_file references by symtab field references. Remove variables
770 sal and fullname.
771 (momentary_breakpoint_from_master, add_location_to_breakpoint):
772 (clear_command, say_where): Replace bp_location field source_file
773 references by symtab field references.
774 (bp_location_dtor): Remove the source_file reference.
775 (update_static_tracepoint): Replace bp_location field source_file
776 references by symtab field references.
777 (breakpoint_free_objfile): New function.
778 * breakpoint.h (struct bp_location): Extend the comment for line_number.
779 Replace the field source_file by field symtab, extend its comment.
780 (breakpoint_free_objfile): New declaration.
781 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
782 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
783 field source_file references by symtab field references.
784
785 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 Replace xfullpath calls by gdb_realpath calls.
788 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
789 function comment.
790 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
791 Remove it from the iterate_over_some_symtabs call.
792 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
793 Remove it from the dw2_map_expand_apply calls, remove a block handling
794 it.
795 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
796 Remove it from the iterate_over_some_symtabs call.
797 (partial_map_symtabs_matching_filename): Remove parameter full_path.
798 Remove it from the partial_map_expand_apply calls, remove a block
799 handling it. Drop gdb_realpath call and cleanups from the real_path
800 handling.
801 * source.c (openp): Drop the comment part about xfullpath. Replace
802 xfullpath calls by gdb_realpath calls.
803 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
804 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
805 from method map_symtabs_matching_filename and its comment.
806 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
807 gdb_realpath call.
808 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
809 remove it also from the function comment, remove a block handling it.
810 Drop gdb_realpath call and cleanups from the real_path handling.
811 (iterate_over_symtabs): Drop variable full_path and its use.
812 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
813 * utils.c (xfullpath): Remove.
814 * utils.h (xfullpath): Remove.
815
816 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
817
818 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
819 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
820 (ALLDEPFILES): Add ppc64-tdep.c.
821 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
822 ppc64-tdep.o to gdb_target_obs.
823 * ppc64-tdep.h: New file.
824 * ppc64-tdep.c: New file.
825 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
826 ppc-linux-tdep.c to here.
827 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
828 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
829 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
830 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
831 from ppc-linux-tdep.c to here.
832 (ppc64_convert_from_func_ptr_addr): Rename from
833 ppc64_linux_convert_from_func_ptr_addr to
834 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
835 here.
836 * rs6000-tdep.c:
837 (read_insn): Move from ppc-linux-tdep.c to here.
838 (insns_match_pattern, insn_d_field, insn_ds_field): Move
839 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
840 * ppc-linux-tdep.c: Include ppc64-tdep.h.
841 Removed above functions.
842 (ppc_linux_init_abi): Adjust.
843
844 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
845
846 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
847
848 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
849
850 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
851
852 2013-02-01 Pedro Alves <palves@redhat.com>
853
854 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
855 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
856
857 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 * elfread.c (elf_symfile_read): Limit separate debug info additions to
860 files with no separate debug info.
861 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
862 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
863 only for files with no separate debug info.
864
865 2013-01-31 Tom Tromey <tromey@redhat.com>
866
867 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
868 change type.
869 (struct jit_program_space_data): Rename from jit_inferior_data.
870 Update comments.
871 (get_jit_program_space_data): Rename from get_jit_inferior_data.
872 Change return type. Attach data to program space.
873 (jit_program_space_data_cleanup): Rename from
874 jit_inferior_data_cleanup; change argument type.
875 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
876 change type.
877 (jit_register_code): Update.
878 (jit_update_inferior_cache): Remove.
879 (jit_breakpoint_deleted): Get jit data from the location's program
880 space.
881 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
882 'ps_data', change type.
883 (jit_inferior_init, jit_breakpoint_re_set_internal)
884 (jit_event_handler): Update.
885 (free_objfile_data): Get data from objfile's program space.
886 (_initialize_jit): Update.
887
888 2013-01-31 Tom Tromey <tromey@redhat.com>
889
890 PR gdb/13987:
891 * jit.c (struct jit_inferior_data) <cached_code_address,
892 jit_breakpoint>: New fields.
893 (jit_breakpoint_re_set_internal): Fix logging. Only create
894 breakpoint if cached address has changed.
895 (jit_update_inferior_cache, jit_breakpoint_deleted): New
896 functions.
897 (_initialize_jit): Register breakpoint deleted observer.
898
899 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
900
901 * infrun.c (handle_syscall_event): Remove unused gdbarch.
902 (save_infcall_suspend_state): Ifdef out unused inf.
903 (restore_infcall_suspend_state): Ifdef out unused inf.
904 * jit.c (jit_register_code): Remove unused i, b, inf_data.
905 (jit_frame_sniffer): Remove unused inf_data.
906
907 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
908
909 * c-exp.y (classify_inner_name): Remove unused type.
910 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
911 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
912 need_escape.
913 (c_get_string): Remove unused kind.
914 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
915
916 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
917
918 * charset.c (intermediate_encoding): Remove unused i.
919 * completer.c (signal_completer): Remove unused i.
920 * continuations.c (discard_my_continuations_1): Remove unused
921 continuation_ptr.
922 * corelow.c (core_close): Remove unuseD name.
923 (get_core_siginfo): Remove unused pid.
924 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
925 i, cps.
926 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
927 (loclist_describe_location): Remove unused first.
928 * event-top.c (command_line_handler): Remove unused got_eof.
929 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
930 (resize_section_table): Remove unused old_value.
931 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
932 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
933 * i386-tdep.c (i386_process_record): Remove unused rex.
934 * infcmd.c (get_return_value): Remove unused uiout.
935 * jv-lang.c (type_from_class): Remove unused is_array.
936 * jv-valprint.c (java_val_print): Remove unused i.
937 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
938 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
939 * m2-typeprint.c (m2_print_type): Remove unused code.
940 * macroexp.c (get_character_constant): Remove unused body_start.
941 (macro_stringify): Remove unused result.
942 * objc-lang.c (find_methods): Remove unused gdbarch.
943 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
944 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
945 * stack.c (print_frame_args): Remove unused summary.
946 * thread.c (thread_apply_command): Remove unused p.
947 * valarith.c (value_x_unop): Remove unused mangle_ptr.
948 * valops.c (search_struct_method): Remove unused skip.
949 * valprint.c (generic_val_print): Remove unused byte_order.
950 * varobj.c (varobj_update): Remove unused changed.
951 * cli/cli-cmds.c (complete_command): Remove unused next_item.
952 (alias_command): Remove unused c.
953 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
954 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
955 format.
956 (mi_cmd_data_write_memory): Remove unused word_format.
957 (mi_cmd_data_write_memory_bytes): Remove unused r.
958 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
959 p_start, p_end.
960 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
961 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
962 line_width.
963
964 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
965
966 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
967 * symtab.c (iterate_over_symtabs): Remove unused s.
968 (find_pc_sect_symtab): Remove unused pspAce.
969 (find_pc_sect_line): Remove unused alt_symtab.
970 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
971 (completion_list_add_name): Remove unused newsize.
972
973 2013-01-31 Tom Tromey <tromey@redhat.com>
974
975 PR c++/14998:
976 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
977 TYPE_CODE_FUNC.
978
979 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
980
981 * target.c (target_read_string): Remove unused origlen.
982
983 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
984
985 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
986 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
987 * ax-general.c (ax_print): Remove unused is_float.
988 * blockframe.c (block_innermost_frame): Remove unused start, end.
989 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
990
991 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
992
993 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
994 (svr4_read_so_list): Remove unused lmo.
995 * solib-target.c (solib_target_relocate_section_addresses): Remove
996 unused flags.
997
998 2013-01-30 Tom Tromey <tromey@redhat.com>
999
1000 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1001
1002 2013-01-30 Tom Tromey <tromey@redhat.com>
1003
1004 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1005 * utils.c (gnu_debuglink_crc32): Remove.
1006 * utils.h (gnu_debuglink_crc32): Don't declare.
1007
1008 2013-01-30 Tom Tromey <tromey@redhat.com>
1009
1010 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1011 (read_structure_type, read_enumeration_type): Remove cast.
1012
1013 2013-01-30 Tom Tromey <tromey@redhat.com>
1014
1015 * dwarf2read.c (read_namespace_type): Remove cast.
1016 (read_typedef): Likewise.
1017
1018 2013-01-29 Tom Tromey <tromey@redhat.com>
1019
1020 * dwarf2read.c (free_dwo_file): Remove assert.
1021
1022 2013-01-29 Tom Tromey <tromey@redhat.com>
1023
1024 * value.c (deprecated_set_value_modifiable): Remove.
1025 * value.h (deprecated_set_value_modifiable): Remove.
1026
1027 2013-01-28 Doug Evans <dje@google.com>
1028
1029 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1030 to addresses from dwo files.
1031
1032 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1033
1034 * valops.c (find_overload_match): Remove unused argument 'lax'.
1035 * value.h: Remove unused argument 'lax' from the declaration of
1036 find_overload_match.
1037 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1038 to find_overload_match.
1039 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1040 argument to find_overload_match.
1041
1042 2013-01-25 Tom Tromey <tromey@redhat.com>
1043
1044 * dwarf2read.c (processing_has_namespace_info): Remove.
1045 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1046 (process_die, read_func_scope, dwarf2_start_symtab)
1047 (new_symbol_full): Update.
1048
1049 2013-01-25 Tom Tromey <tromey@redhat.com>
1050
1051 * cp-namespace.c (cp_set_block_scope): Remove.
1052 * cp-support.h (cp_set_block_scope): Remove.
1053 * dbxread.c: Include block.h.
1054 (cp_set_block_scope): New function.
1055 (process_one_symbol): Update.
1056 * dwarf2read.c (read_func_scope): Use block_set_scope.
1057
1058 2013-01-25 Pedro Alves <palves@redhat.com>
1059
1060 * remote.c (add_current_inferior_and_thread): Tweak comment.
1061
1062 2013-01-25 Tom Tromey <tromey@redhat.com>
1063
1064 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1065 (cp_add_using_directive): Add 'copy_names' argument.
1066 * cp-support.h (cp_add_using_directive): Update.
1067 (struct using_direct) <import_src, import_dest, alias,
1068 declaration>: Now const.
1069 * dwarf2read.c (read_import_statement): Use obconcat.
1070 Don't copy names passed to cp_add_using_directive.
1071
1072 2013-01-25 Tom Tromey <tromey@redhat.com>
1073
1074 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1075
1076 2013-01-25 Pedro Alves <palves@redhat.com>
1077
1078 * remote.c (stop_reply_extract_thread): New.
1079 (add_current_inferior_and_thread): New parameter 'wait_status'.
1080 Handle it.
1081 (remote_start_remote): Pass wait status to
1082 add_current_inferior_and_thread.
1083 (extended_remote_run): Update comment.
1084 (extended_remote_create_inferior_1): Pass wait status to
1085 add_current_inferior_and_thread.
1086
1087 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1088 Ulrich Weigand <uweigand@de.ibm.com>
1089
1090 * valarith.c (value_vector_widen): New function for replicating a
1091 scalar into a vector.
1092 (value_binop): Use value_vector_widen to widen scalar to vector
1093 rather than casting, this better matches gcc C behaviour.
1094 * valops.c (value_casst): Update logic for casting between vector
1095 types, and for casting from scalar to vector, try to match gcc C
1096 behaviour.
1097 * value.h (value_vector_widen): Declare.
1098 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1099 function, handle special case for casting scalar to vector.
1100 (opencl_relop): Use opencl_value_cast.
1101 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1102 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1103 in order to use opencl_value_cast.
1104
1105 2013-01-25 Yao Qi <yao@codesourcery.com>
1106
1107 * event-loop.c: Include "queue.h".
1108 (gdb_event_p): New typedef.
1109 (DECLARE_QUEUE_P): Use.
1110 (DEFINE_QUEUE_P): Use.
1111 (async_queue_event): Remove.
1112 (gdb_event_xfree): New.
1113 (initialize_event_loop): New.
1114 (process_event): Use QUEUE macros.
1115 (event_queue): Remove.
1116 (gdb_wait_for_event): Caller update.
1117 (check_async_event_handlers): Likewise.
1118 (poll_timers): Likewise.
1119 * event-loop.h (initialize_event_loop): Declare.
1120 * event-loop.c (gdb_event_xfree): New.
1121 * top.c (gdb_init): Call initialize_event_loop.
1122
1123 2013-01-25 Yao Qi <yao@codesourcery.com>
1124
1125 * event-loop.c (async_queue_event): Remove one parameter
1126 'position'. Remove code handling 'position' == TAIL.
1127 (gdb_wait_for_event): Caller update.
1128 (check_async_event_handlers): Caller update.
1129 (poll_timers): Caller update.
1130 * event-loop.h (enum queue_position): Remove.
1131
1132 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1133
1134 * MAINTAINERS: Update my email.
1135
1136 2013-01-25 Yao Qi <yao@codesourcery.com>
1137
1138 * main.c (print_gdb_help): Remove "--epoch" from the help
1139 message.
1140
1141 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1142
1143 * symtab.c (skip_prologue_using_sal): Consider a file
1144 change the same as an increased line number
1145
1146 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1147
1148 * MAINTAINERS (Write After Approval): Add myself to the list.
1149
1150 2013-01-24 Tom Tromey <tromey@redhat.com>
1151
1152 * ada-lang.h (ada_decode_symbol): Make return type const.
1153 * ada-lang.c (ada_decode_symbol): Likewise.
1154
1155 2013-01-23 Doug Evans <dje@google.com>
1156
1157 * linespec.c (find_linespec_symbols): Make static.
1158
1159 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1160
1161 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1162 type on float conversion for complex type.
1163
1164 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1165
1166 Add a new class gdb.Architecture which exposes GDB's
1167 internal representation of architecture via GDB Python API.
1168 * Makefile.in: Add entries corresponding to the new file
1169 python/py-arch.c.
1170 * NEWS (Python Scripting): Add entries for the new class
1171 gdb.Architecture and the new method gdb.Frame.architecture.
1172 * python/py-arch.c: Implement gdb.Architecture class.
1173 * python/py-frame.c (frapy_arch): Implement the method
1174 gdb.Frame.architecture().
1175 (frame_object_methods): Add 'architecture' to the method table.
1176 * python/python-internal.h: Add declarations of new utility
1177 functions.
1178 * python/python.c (_initialize_python): Initialize
1179 gdb.Architecture class.
1180
1181 2013-01-23 Doug Evans <dje@google.com>
1182
1183 Work around binutils/15021.
1184 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1185 type_unit_group out of union s. All uses updated.
1186 (read_index_from_section): Watch for index version 8.
1187 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1188 an imported symtab.
1189 (write_psymtabs_to_index): Increment version number to 8.
1190
1191 2013-01-22 Pedro Alves <palves@redhat.com>
1192
1193 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1194 user-visible.
1195
1196 2013-01-22 Pedro Alves <palves@redhat.com>
1197
1198 * annotate.c (annotate_breakpoints_changed): Rename to ...
1199 (annotate_breakpoints_invalid): ... this. Make static.
1200 (breakpoint_changed): Adjust.
1201 (_initialize_annotate): Always install the observers. Install a
1202 "breakpoint_created" observer.
1203 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1204 * breakpoint.c (set_breakpoint_condition)
1205 (breakpoint_set_commands, do_map_commands_command)
1206 (init_raw_breakpoint, clear_command, set_ignore_count)
1207 (enable_breakpoint_disp): No longer call
1208 annotate_breakpoints_changed.
1209
1210 2013-01-22 Pedro Alves <palves@redhat.com>
1211
1212 * annotate.c: Include "inferior.h".
1213 (frames_invalid_emitted)
1214 (breakpoints_invalid_emitted): New globals.
1215 (async_background_execution_p): New function.
1216 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1217 emitting the annotation if it has already been emitted.
1218 (annotate_display_prompt): New function.
1219 * annotate.h (annotate_display_prompt): New declaration.
1220 * event-top.c: Include annotate.h.
1221 (display_gdb_prompt): Call annotate_display_prompt.
1222
1223 2013-01-22 Pedro Alves <palves@redhat.com>
1224
1225 * annotate.c (ignore_count_changed): Delete.
1226 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1227 (annotate_ignore_count_change): Delete.
1228 (annotate_stopped): Don't emit a delayed breakpoints-changed
1229 annotation.
1230 * annotate.h (annotate_ignore_count_change): Delete.
1231 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1232 annotate_ignore_count_change.
1233
1234 2013-01-22 Tom Tromey <tromey@redhat.com>
1235
1236 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1237 require_rvalue for a register location.
1238
1239 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1240
1241 * breakpoint.c (print_one_breakpoint_location): Add MI
1242 field 'thread-groups' when printing a breakpoint.
1243 (output_thread_groups): New function.
1244
1245 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1246
1247 * python/lib/gdb/commands/explore.py
1248 (CompoundExplorer.explore_expr): Correct the name of a method
1249 being invoked.
1250 (ExploreTypeCommand.invoke): Add a missing 'return'.
1251
1252 2013-01-21 Tom Tromey <tromey@redhat.com>
1253
1254 * gdb_obstack.h (obconcat): Move declaration here, from...
1255 * symfile.h (obconcat): ... here.
1256 * gdb_obstack.c: New file.
1257 (obconcat): Move from...
1258 * symfile.c (obconcat): ... here.
1259 * Makefile.in (SFILES): Add gdb_obstack.c.
1260 (COMMON_OBS): Add gdb_obstack.o.
1261
1262 2013-01-21 Tom Tromey <tromey@redhat.com>
1263
1264 * symfile.h (obsavestring): Don't declare.
1265 * symfile.c (obsavestring): Remove.
1266 * ada-exp.y: Use obstack_copy0, not obsavestring.
1267 * ada-lang.c: Use obstack_copy0, not obsavestring.
1268 * coffread.c: Use obstack_copy0, not obsavestring.
1269 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1270 * dbxread.c: Use obstack_copy0, not obsavestring.
1271 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1272 * jit.c: Use obstack_copy0, not obsavestring.
1273 * mdebugread.c: Use obstack_copy0, not obsavestring.
1274 * psymtab.c: Use obstack_copy0, not obsavestring.
1275 * stabsread.c: Use obstack_copy0, not obsavestring.
1276 * xcoffread.c: Use obstack_copy0, not obsavestring.
1277
1278 2013-01-21 Tom Tromey <tromey@redhat.com>
1279
1280 * dwarf2read.c (fixup_go_packaging): Save package name
1281 on objfile obstack.
1282 * gdbtypes.c (init_type): Don't copy name.
1283
1284 2013-01-21 Tom Tromey <tromey@redhat.com>
1285
1286 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1287 const.
1288 (struct attribute) <u.str>: Now const.
1289 (struct fnfieldlist) <name>: Now const.
1290 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1291 (partial_die_parent_scope): Make return type const.
1292 (partial_die_full_name, add_partial_symbol): Update.
1293 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1294 'name' const.
1295 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1296 (read_file_scope, read_func_scope, dwarf2_add_field)
1297 (dwarf2_add_member_fn, read_structure_type)
1298 (process_enumeration_scope, read_array_type, read_module_type)
1299 (read_base_type, read_subrange_type): Update.
1300 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1301 (new_symbol_full, guess_full_die_structure_name): Update.
1302 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1303 (dwarf2_name): Return const type.
1304 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1305 const.
1306
1307 2013-01-21 Tom Tromey <tromey@redhat.com>
1308
1309 * gdbtypes.c (init_type): Make 'name' const.
1310 * gdbtypes.h (init_type): Update.
1311
1312 2013-01-21 Tom Tromey <tromey@redhat.com>
1313
1314 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1315 (start_symtab): Make 'name' and 'dirname' const. Use
1316 set_last_source_file.
1317 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1318 (last_source_file): Define. Now static.
1319 (set_last_source_file, get_last_source_file): New functions.
1320 * buildsym.h (last_source_file): Don't declare.
1321 (start_symtab): Update.
1322 (set_last_source_file, get_last_source_file): Declare.
1323 * coffread.c (complete_symtab): Use set_last_source_file.
1324 (coff_end_symtab): Likewise.
1325 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1326 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1327 set_last_source_file.
1328 (process_one_symbol): Use get_last_source_file.
1329 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1330 (psymtab_to_symtab_1): Use get_last_source_file.
1331 * xcoffread.c (process_linenos): Use get_last_source_file.
1332 (complete_symtab): Use set_last_source_file.
1333 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1334 (scan_xcoff_symtab): Use set_last_source_file.
1335
1336 2013-01-21 Tom Tromey <tromey@redhat.com>
1337
1338 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1339 (symbol_set_names): Remove casts. Handle field const-ness.
1340
1341 2013-01-21 Tom Tromey <tromey@redhat.com>
1342
1343 * dwarf2read.c (new_symbol_full): Remove cast.
1344 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1345 * symtab.h (symbol_set_demangled_name): Update.
1346
1347 2013-01-21 Tom Tromey <tromey@redhat.com>
1348
1349 * main.c (captured_main): Call bfd_init.
1350
1351 2013-01-21 Tom Tromey <tromey@redhat.com>
1352
1353 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1354 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1355 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1356 * NEWS: Update.
1357
1358 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1359
1360 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1361
1362 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1363
1364 Fix gdb.fortran/common-block.exp crash in PIE mode.
1365 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1366 LOC_COMMON_BLOCK.
1367 * f-valprint.c (info_common_command_for_block): Expect
1368 LOC_COMMON_BLOCK in gdb_assert.
1369 * symtab.h (struct general_symbol_info): Update comment for the
1370 common_block member.
1371 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1372 (enum address_class): New member LOC_COMMON_BLOCK.
1373
1374 2013-01-18 David Blaikie <dblaikie@gmail.com>
1375
1376 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1377
1378 2013-01-18 Tom Tromey <tromey@redhat.com>
1379
1380 PR c++/14999:
1381 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1382 Call require_rvalue.
1383
1384 2013-01-18 Yao Qi <yao@codesourcery.com>
1385
1386 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1387 (dbx_read_symtab): New declaration.
1388 (dbx_psymtab_to_symtab): Delete.
1389 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1390 Rename parameter PST to SELF. Exchanged two parameters.
1391 (start_psymtab): Caller update.
1392 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1393 (dwarf2_read_symtab): New declaration.
1394 (dwarf2_psymtab_to_symtab): Delete.
1395 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1396 Rename parameter PST to SELF. Exchanged two parameters.
1397 (create_partial_symtab): Caller update.
1398 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1399 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1400 Rename parameter PST to SELF. Exchanged two parameters.
1401 (parse_partial_symbols, new_psymtab): Caller update.
1402 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1403 two parameters.
1404 * psymtab.c (psymtab_to_symtab): Caller update.
1405 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1406 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1407 Rename parameter PST to SELF. Exchanged two parameters.
1408 (xcoff_start_psymtab): Caller update.
1409
1410 2013-01-18 Yao Qi <yao@codesourcery.com>
1411
1412 * infrun.c (proceed): Rename local variable 'oneproc' to
1413 'force_step'.
1414
1415 2013-01-17 Doug Evans <dje@google.com>
1416
1417 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1418 (dw2_build_type_unit_groups): Delete. All uses updated.
1419
1420 * symtab.h (struct symbol_search): Add comment.
1421
1422 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 * symtab.c (compare_filenames_for_search): New comment for
1425 HAS_DRIVE_SPEC.
1426
1427 2013-01-17 Tom Tromey <tromey@redhat.com>
1428
1429 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1430
1431 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1434 initialize it by existing make_cleanup. Call new do_cleanups.
1435
1436 2013-01-17 Tom Tromey <tromey@redhat.com>
1437
1438 * cp-abi.c (cp_abi_completer): New function.
1439 (_initialize_cp_abi): Set completer for "set cp-abi".
1440
1441 2013-01-17 Tom Tromey <tromey@redhat.com>
1442
1443 * mem-break.c: Remove obsolete comment.
1444 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1445
1446 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1447
1448 * jit.c (jit_reader_load_command): Interpret the jit reader name
1449 as an absolute path if it begins with a forward slash.
1450
1451 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1452
1453 PR gdb/14550
1454
1455 * jit.c (finalize_symtab): Ensure that only the global block has a
1456 NULL superblock.
1457
1458 2013-01-17 Pedro Alves <palves@redhat.com>
1459
1460 * acinclude.m4: Include ../config/plugins.m4,
1461 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1462 * Makefile.in (aclocal_m4_deps): Update.
1463 * aclocal.m4: Renegerate.
1464
1465 2013-01-16 Doug Evans <dje@google.com>
1466
1467 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1468
1469 2013-01-16 Pedro Alves <palves@redhat.com>
1470 Tom Tromey <tromey@redhat.com>
1471
1472 PR cli/7221:
1473 * NEWS: Add "catch signal".
1474 * breakpoint.c (base_breakpoint_ops): No longer static.
1475 (bpstat_explains_signal): New function.
1476 (init_catchpoint): No longer static.
1477 (base_breakpoint_explains_signal): New function.
1478 (base_breakpoint_ops): Initialize new field.
1479 * breakpoint.h (enum bpstat_signal_value): New.
1480 (struct breakpoint_ops) <explains_signal>: New field.
1481 (bpstat_explains_signal): Remove macro, declare as function.
1482 (base_breakpoint_ops, init_catchpoint): Declare.
1483 * break-catch-sig.c: New file.
1484 * inferior.h (signal_catch_update): Declare.
1485 * infrun.c (signal_catch): New global.
1486 (handle_syscall_event): Update for change to
1487 bpstat_explains_signal.
1488 (handle_inferior_event): Likewise. Always handle random signals
1489 via bpstats.
1490 (signal_cache_update): Check signal_catch.
1491 (signal_catch_update): New function.
1492 (_initialize_infrun): Initialize signal_catch.
1493 * Makefile.in (SFILES): Add break-catch-sig.c.
1494 (COMMON_OBS): Add break-catch-sig.o.
1495
1496 2013-01-16 Tom Tromey <tromey@redhat.com>
1497
1498 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1499 (print_one_catch_solib, print_one_catch_syscall)
1500 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1501 "catch-type".
1502
1503 2013-01-16 Yao Qi <yao@codesourcery.com>
1504
1505 * printcmd.c (current_display_number): Make it static.
1506
1507 2013-01-16 Yao Qi <yao@codesourcery.com>
1508
1509 * infcmd.c (step_once): Don't check '!single_inst' as it was
1510 checked before.
1511
1512 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1513
1514 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1515
1516 2013-01-14 Tom Tromey <tromey@redhat.com>
1517
1518 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1519 set command.
1520 * command.h (add_setshow_string_noescape_cmd): Update.
1521 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1522 (complete_set_gnutarget): New function.
1523 (_initialize_core): Set the "set gnutarget" completer.
1524
1525 2013-01-14 Tom Tromey <tromey@redhat.com>
1526
1527 PR symtab/14442:
1528 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1529 (c_type_print_modifier): Likewise.
1530 * dwarf2read.c (read_tag_restrict_type): New function.
1531 (read_type_die_1): Handle DW_TAG_restrict_type.
1532 * gdbtypes.c (make_restrict_type): New function.
1533 (recursive_dump_type): Handle TYPE_RESTRICT.
1534 * gdbtypes.h (enum type_flag_values): Renumber.
1535 (enum type_instance_flag_value): Add
1536 TYPE_INSTANCE_FLAG_RESTRICT.
1537 (TYPE_RESTRICT): New macro.
1538 (make_restrict_type): Declare.
1539
1540 2013-01-14 Tom Tromey <tromey@redhat.com>
1541
1542 PR symtab/14931:
1543 * psymtab.c (struct psymtab_state): New.
1544 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1545 functions.
1546 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1547 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1548
1549 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1550 Pedro Alves <palves@redhat.com>
1551
1552 PR remote/14786
1553
1554 * remote.c (remote_threads_info): Make a copy of the reply from
1555 qfThreadInfo and use that instead of rs->buf.
1556
1557 2013-01-14 Yao Qi <yao@codesourcery.com>
1558
1559 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1560 (dbx_psymtab_to_symtab): Likewise.
1561 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1562 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1563 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1564
1565 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1568 make_cleanup_restore_current_language. Call set_language. Move
1569 OLD_CHAIN and INNER_CHAIN cleanups.
1570 * utils.c (do_restore_current_language)
1571 (make_cleanup_restore_current_language): New functions.
1572 * utils.h (make_cleanup_restore_current_language): New declaration.
1573
1574 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1575
1576 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1577 non-existing files.
1578
1579 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1580 non-existing files if FILENAME is already absolute.
1581
1582 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1585 fputs_filtered. Append trailing newline.
1586
1587 2013-01-11 Yao Qi <yao@codesourcery.com>
1588 Stan Shebs <stan@codesourcery.com>
1589
1590 * psymtab.c (init_psymbol_list): Clarify the comment.
1591
1592 2013-01-11 Yao Qi <yao@codesourcery.com>
1593
1594 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1595 (update_dprintf_command_list): Assert that 'printf_line' is
1596 non-null. Remove condition check.
1597
1598 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1599
1600 Code cleanup.
1601 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1602 type const char *.
1603 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1604 const char *.
1605 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1606
1607 2013-01-09 Anthony Green <green@moxielogic.com>
1608
1609 * cp-abi.c (cplus_print_vtable): Don't return value from void
1610 function.
1611 * ada-lang.c (re_set_catch_assert): Ditto.
1612
1613 2013-01-09 Doug Evans <dje@google.com>
1614
1615 * symfile.h (quick_symbol_functions): Delete member
1616 pre_expand_symtabs_matching. All uses removed.
1617 * dwarf2read.c (dw2_lookup_symbol): Implement.
1618 (dw2_do_expand_symtabs_matching): Delete.
1619 (dw2_pre_expand_symtabs_matching): Delete.
1620 (struct dw2_symtab_iterator): New type.
1621 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1622 (dw2_expand_symtabs_for_function): Rewrite.
1623 (dwarf2_gdb_index_functions): Update.
1624 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1625 (psym_functions): Update.
1626
1627 2013-01-09 Tom Tromey <tromey@redhat.com>
1628
1629 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1630 * configure: Rebuild.
1631 * configure.ac: Add somread.o to the build if BFD has SOM
1632 support.
1633 * somread.c: Include som/aout.h, not syms.h.
1634 (som_symtab_read): Use som_external_symbol_dictionary_record.
1635 Unpack records manually.
1636 (_initialize_somread): Declare.
1637
1638 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1639
1640 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1641 Cast return_address to 64bits.
1642
1643 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1644
1645 * printcmd.c: Remove define of function output_command.
1646 * tracepoint.c: Remove extern of function output_command.
1647 * valprint.h: (output_command): New extern.
1648
1649 2013-01-07 Tom Tromey <tromey@redhat.com>
1650
1651 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1652 Remove.
1653 (objc_language_defn): Use c_printchar, c_printstr,
1654 c_emit_char.
1655
1656 2013-01-07 Tom Tromey <tromey@redhat.com>
1657
1658 PR cli/7719:
1659 * NEWS: Update.
1660 * ada-valprint.c (printstr, print_field_values): Remove
1661 "inspect_it" code.
1662 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1663 code.
1664 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1665 code.
1666 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1667 * main.c (captured_main): Remove "epoch" argument.
1668 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1669 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1670 * p-valprint.c (pascal_object_print_value_fields): Remove
1671 "inspect_it" code.
1672 * printcmd.c (print_command_1): Remove 'inspect' argument.
1673 (print_command, call_command): Update.
1674 (inspect_command): Remove.
1675 (_initialize_printcmd): Make "inspect" an alias for "print".
1676 * top.c (epoch_interface): Remove.
1677 * top.h (epoch_interface): Remove.
1678 * valprint.c (user_print_options): Update.
1679 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1680 * valprint.h (struct value_print_options) <inspect_it>: Remove
1681 field.
1682
1683 2013-01-04 Tom Tromey <tromey@redhat.com>
1684
1685 * valprint.h (read_string): Add 'extern'.
1686
1687 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1688
1689 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1690 used to decide whether to define darwin_read_dyld_info or not.
1691
1692 2013-01-03 Pierre Muller <muller@sourceware.org>
1693
1694 * main.c (relocate_gdb_directory): Avoid calling stat function
1695 if DIR is empty.
1696
1697 2013-01-03 Yao Qi <yao@codesourcery.com>
1698
1699 * psymtab.c (fixup_psymbol_section): Update declaration.
1700 (fixup_psymbol_section): Remove code returning value.
1701
1702 2013-01-03 Yao Qi <yao@codesourcery.com>
1703
1704 * symtab.h: Remove some out of date comments.
1705 (enum exception_event_kind): Move it ...
1706 * breakpoint.c: ... here.
1707
1708 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1709
1710 PR gdb/14405
1711 * darwin-nat.c (darwin_read_dyld_info): Only build if
1712 TASK_DYLD_INFO_COUNT is defined.
1713 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1714 TASK_DYLD_INFO_COUNT is defined.
1715
1716 2013-01-02 Tom Tromey <tromey@redhat.com>
1717
1718 * symfile.h (struct ecoff_debug_hack): Remove.
1719 * objfiles.c: Don't include mdebugread.h.
1720
1721 2013-01-02 Tom Tromey <tromey@redhat.com>
1722
1723 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1724 * configure.ac: Check for Mach-O support in BFD. Update
1725 CONFIG_OBS.
1726 * configure: Rebuild.
1727
1728 2013-01-02 Tom Tromey <tromey@redhat.com>
1729
1730 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1731 * configure.ac: Use GDB_AC_CHECK_BFD.
1732 * configure: Rebuild.
1733
1734 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1735
1736 * MAINTAINERS: Update my email.
1737
1738 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1739
1740 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1741
1742 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1743
1744 * rs6000-nat.c (bss_data_overlap): New function.
1745 (vmap_symtab): Use it to adjust the .bss section's offset.
1746
1747 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1748
1749 Update year range in copyright notice of all files.
1750
1751 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1752
1753 * top.c (print_gdb_version): Update copyright year.
1754
1755 For older changes see ChangeLog-2012.
1756 \f
1757 Local Variables:
1758 mode: change-log
1759 left-margin: 8
1760 fill-column: 74
1761 version-control: never
1762 coding: utf-8
1763 End: