[gdb] Fix regoff_t incompatibility
authorTom de Vries <tdevries@suse.de>
Tue, 13 Apr 2021 15:38:53 +0000 (17:38 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 13 Apr 2021 15:38:53 +0000 (17:38 +0200)
commit329534fda79702d50374304d1b724bc0b83a9421
treef654b12c470243c665fdc3439b334842d31a7781
parentd9d2ef05f11736bf2e889047cc7588d0c0dd907e
[gdb] Fix regoff_t incompatibility

I did an experiment with importing the regex module in gnulib, and trying to
build gdb.

The first problem I ran into was that:
- regoff_t was defined as long int, and
- the address of a regoff_t variable i in ui_file_style::parse was passed
  as int * to function extended_color.

Fix this by changing the types of some function parameters of functions
read_semi_number and extended_color from int * to regoff_t *.

Tested on x86_64-linux.

gdb/ChangeLog:

2021-04-13  Tom de Vries  <tdevries@suse.de>

* ui-style.c (read_semi_number, extended_color): Change idx parameter
type to regoff_t *.
gdb/ChangeLog
gdb/ui-style.c
This page took 0.024742 seconds and 4 git commands to generate.